[mach-o] remove extra leading underscore on __bss and __got

llvm-svn: 221425
This commit is contained in:
Nick Kledzik 2014-11-06 01:14:12 +00:00
parent 0b1ef201b9
commit 37d1aa715a
4 changed files with 9 additions and 9 deletions

View File

@ -228,9 +228,9 @@ const MachOFinalSectionFromAtomType sectsToAtomType[] = {
typeInitializerPtr),
ENTRY("__DATA", "__mod_term_func", S_MOD_TERM_FUNC_POINTERS,
typeTerminatorPtr),
ENTRY("__DATA", "___got", S_NON_LAZY_SYMBOL_POINTERS,
ENTRY("__DATA", "__got", S_NON_LAZY_SYMBOL_POINTERS,
typeGOT),
ENTRY("__DATA", "___bss", S_ZEROFILL, typeZeroFill),
ENTRY("__DATA", "__bss", S_ZEROFILL, typeZeroFill),
ENTRY("__DATA", "__interposing", S_INTERPOSING, typeInterposingTuples),
};
#undef ENTRY

View File

@ -72,9 +72,9 @@ const MachORelocatableSectionToAtomType sectsToAtomType[] = {
typeInitializerPtr),
ENTRY("__DATA", "__mod_term_func", S_MOD_TERM_FUNC_POINTERS,
typeTerminatorPtr),
ENTRY("__DATA", "___got", S_NON_LAZY_SYMBOL_POINTERS,
ENTRY("__DATA", "__got", S_NON_LAZY_SYMBOL_POINTERS,
typeGOT),
ENTRY("__DATA", "___bss", S_ZEROFILL, typeZeroFill),
ENTRY("__DATA", "__bss", S_ZEROFILL, typeZeroFill),
ENTRY("", "", S_NON_LAZY_SYMBOL_POINTERS,
typeGOT),
ENTRY("__DATA", "__interposing", S_INTERPOSING, typeInterposingTuples),

View File

@ -39,7 +39,7 @@ defined-atoms:
# CHECK: Offset: 4096
# CHECK-LABEL: Section {
# CHECK: Name: ___bss
# CHECK: Name: __bss
# CHECK: Segment: __DATA
# CHECK: Size: 0x0
# CHECK: Offset: 4101

View File

@ -86,12 +86,12 @@ defined-atoms:
# CHECK-NEXT: 0000: 08
# CHECK-NEXT: )
# For __DATA, ___bss (with typeZeroFill)
# For __DATA, __bss (with typeZeroFill)
# FIXME: Attributes & tags of __bss are mostly broken. Should be at end of
# __DATA, should have size, should have S_ZEROFILL flag.
- type: zero-fill
size: 8
# CHECK: Name: ___bss
# CHECK: Name: __bss
# CHECK: Segment: __DATA
# For __DATA, __const, (with typeConstData)
@ -112,10 +112,10 @@ defined-atoms:
# CHECK-NEXT: 0000: 0A00
# CHECK-NEXT: )
# For __DATA, ___got (with typeGOT)
# For __DATA, __got (with typeGOT)
- type: got
content: [ 0B, 00, 00, 00, 00, 00, 00, 00 ]
# CHECK: Name: ___got
# CHECK: Name: __got
# CHECK: Segment: __DATA
# CHECK: SectionData (
# CHECK-NEXT: 0000: 0B000000 00000000