[PATCH] D72197: [MC][ELF] Emit a relocation if target is defined in the same section and is non-local
James Y Knight via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 07:01:35 PST 2020
jyknight added a comment.
I don't see the behavior you say gnu as has.
On x86_64-linux-gnu, running `as -o /tmp/test.o llvm/test/MC/ELF/target-in-same-section.s && objdump -r /tmp/test.o` gives only one relocation record:
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
0000000000000009 R_X86_64_PLT32 weak-0x0000000000000004
I have: GNU assembler (GNU Binutils for Debian) 2.31.1
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72197/new/
https://reviews.llvm.org/D72197
More information about the llvm-commits
mailing list