[lld] 0fb2990 - [lld-macho][nfc] Fix YAML input in compact-unwind-sym-relocs.s
Jez Ng via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 11 18:36:41 PDT 2021
Author: Jez Ng
Date: 2021-07-11T21:36:24-04:00
New Revision: 0fb299072c5b26396ab84002445570f296be44b3
URL: https://github.com/llvm/llvm-project/commit/0fb299072c5b26396ab84002445570f296be44b3
DIFF: https://github.com/llvm/llvm-project/commit/0fb299072c5b26396ab84002445570f296be44b3.diff
LOG: [lld-macho][nfc] Fix YAML input in compact-unwind-sym-relocs.s
* 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
Added:
Modified:
lld/test/MachO/compact-unwind-sym-relocs.s
Removed:
################################################################################
diff --git a/lld/test/MachO/compact-unwind-sym-relocs.s b/lld/test/MachO/compact-unwind-sym-relocs.s
index e87c3330841a..ff0896fd0daf 100644
--- a/lld/test/MachO/compact-unwind-sym-relocs.s
+++ b/lld/test/MachO/compact-unwind-sym-relocs.s
@@ -76,7 +76,7 @@ LoadCommands:
content: '0000000000000000010000000000020200000000000000000000000000000000'
relocations:
- address: 0x00000000
- symbolnum: 1
+ symbolnum: 0
pcrel: false
length: 3
extern: true
@@ -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
More information about the llvm-commits
mailing list