forked from OSchip/llvm-project
[ELF] Emit zeroFill as STT_OBJECT in the final executable. ld does this.
llvm-svn: 171704
This commit is contained in:
parent
cdb892488e
commit
28c6594c71
|
@ -1069,7 +1069,7 @@ public:
|
|||
type = ELF::STT_OBJECT;
|
||||
break;
|
||||
case DefinedAtom::typeZeroFill:
|
||||
type = ELF::STT_COMMON;
|
||||
type = ELF::STT_OBJECT;
|
||||
symbol->st_value = addr;
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
RUN: lld -flavor ld -target x86_64-linux -o %t %p/Inputs/relocs.x86-64 \
|
||||
RUN: && llvm-readobj %t | FileCheck %s
|
||||
|
||||
CHECK: i DATA
|
Loading…
Reference in New Issue