https://sourceware.org/bugzilla/show_bug.cgi?id=17166
Bug ID: 17166 Summary: Incorrect processing of GOT relocations against local symbols Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: rth at gcc dot gnu.org Original report is https://sourceware.org/ml/binutils/2014-07/msg00130.html One can observe the problem with $ cat ~/z.s .text .global main .type main, %function main: adrp x2, :got:foo ldr x1, [x2, :got_lo12:foo] ldr w0, [x1] ret .data .align 8 .long 0 foo: .long 0 which will segfault with the current linker. If one adds ".global foo", the test case will succeed. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils