[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/17166] New: Incorrect processing of GOT relocations against loca
From: |
rth at gcc dot gnu.org |
Subject: |
[Bug ld/17166] New: Incorrect processing of GOT relocations against local symbols |
Date: |
Wed, 16 Jul 2014 20:46:33 +0000 |
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 ld/17166] New: Incorrect processing of GOT relocations against local symbols,
rth at gcc dot gnu.org <=