[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2022-11-21 Thread nsz at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 --- Comment #11 from Szabolcs Nagy --- (In reply to Richard Earnshaw from comment #10) > (In reply to Szabolcs Nagy from comment #9) > > i ran into this again and i think the linker could relax 'adrp xN, weaksym' > > into 'mov xN, 0' if

[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2022-11-21 Thread rearnsha at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 --- Comment #10 from Richard Earnshaw --- (In reply to Szabolcs Nagy from comment #9) > i ran into this again and i think the linker could relax 'adrp xN, weaksym' > into 'mov xN, 0' if weaksym is undefined. Static linker or dynamic? The

[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2022-11-18 Thread nsz at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 Szabolcs Nagy changed: What|Removed |Added CC||nsz at gcc dot gnu.org --- Comment

[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2019-10-21 Thread jwerner at chromium dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 --- Comment #8 from Julius Werner --- > in position dependent code the most reasonable behaviour is to try to > set the symbol address to 0 and if 0 is outside of the range of adrp > then report a linker error. Yes, thanks, that's exactly

[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2019-10-21 Thread nszabolcs at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 Szabolcs Nagy changed: What|Removed |Added CC||nszabolcs at gmail dot com ---

[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2018-01-12 Thread jwerner at chromium dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 Julius Werner changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2018-01-12 Thread rearnsha at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 Richard Earnshaw changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2018-01-08 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 Nick Clifton changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2017-12-18 Thread rearnsha at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 Richard Earnshaw changed: What|Removed |Added CC||rearnsha at gcc dot gnu.org ---

[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2017-12-15 Thread jwerner at chromium dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 --- Comment #2 from Julius Werner --- > Actually the offset stored in the instruction *is* zero. Right, but I think that is incorrect. The point of the 'adrp , ' mnemonic is that you want to generate an instruction that contains the right

[Bug ld/22589] aarch64: adrp relocation gets filled with non-zero address for undefined weak symbol

2017-12-15 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22589 Nick Clifton changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|