Skip to content

Commit

Permalink
Fix typos in documentation (DerekSelander#4), Thanks Ian
Browse files Browse the repository at this point in the history
Fix two typos that I found while reading.
  • Loading branch information
ian-mcdowell authored and DerekSelander committed Dec 2, 2019
1 parent e17f213 commit ab5cb77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ You'll see undefined external symbols preceeded by a uppercase 'U'. It's `dyld`'
## 2.2 Symbol Table Implementation
---

You got the high up, now it's jump into the weeds to see the symbol table data structures in action.
You got the high up, now let's jump into the weeds to see the symbol table data structures in action.

The location of the symbol table is given by the **`LC_SYMTAB`** Mach-O load command. The symbol table is merely just an array of a C struct called **`nlist_64`** (we're discussing 64-bit executables only here). This struct can be found in `<mach-o/nlist.h>` and has the following format:

Expand Down Expand Up @@ -897,7 +897,7 @@ With PIE disabled via LLDB, use this knowledge to run `otool` inside of the LLDB
size 0x0000000000000010
```

> **Note:** It's worth noting that LLDB does have the functionality to dump Mach-O sectrions (via **(lldb) image dump section [ImageName]**), although I am not very happy with the output of that command.
> **Note:** It's worth noting that LLDB does have the functionality to dump Mach-O sections (via **(lldb) image dump section [ImageName]**), although I am not very happy with the output of that command.
For my instance, the `__objc_classlist` starts at `0x0000000100001000` which has a size of 0x10 bytes (the size of 2 pointers). Confirm that this address (`0x0000000100001000`) is the `__DATA_CONST.__objc_classlist` Mach-O section loaded at runtime:

Expand Down

0 comments on commit ab5cb77

Please sign in to comment.