Skip to content

Commit

Permalink
[lld-macho][nfc] Fix YAML input in compact-unwind-sym-relocs.s
Browse files Browse the repository at this point in the history
* Adjust strsize so llvm-objdump doesn't complain about it extending
  past the end of file
* Remove symbol that was referencing a deleted section
* Adjust n_sect of the remaining `_main` symbol to point at the right
  section
  • Loading branch information
int3 committed Jul 12, 2021
1 parent a7b7b5d commit 0fb2990
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lld/test/MachO/compact-unwind-sym-relocs.s
Expand Up @@ -76,7 +76,7 @@ LoadCommands:
content: '0000000000000000010000000000020200000000000000000000000000000000'
relocations:
- address: 0x00000000
symbolnum: 1
symbolnum: 0
pcrel: false
length: 3
extern: true
Expand All @@ -86,16 +86,11 @@ LoadCommands:
- cmd: LC_SYMTAB
cmdsize: 24
symoff: 520
nsyms: 2
nsyms: 1
stroff: 552
strsize: 24
strsize: 8
LinkEditData:
NameList:
- n_strx: 8
n_type: 0x0E
n_sect: 2
n_desc: 0
n_value: 8
- n_strx: 2
n_type: 0x0F
n_sect: 1
Expand Down

0 comments on commit 0fb2990

Please sign in to comment.