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

2017-12-11 Thread jwerner at chromium dot org
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: jwerner at chromium dot org Target Milestone: --- Consider the following minimal testcase: weaklink.s: .weak myfunction _start: adrp x0

[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 PC-

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

2018-01-10 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 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/24373] New: Arm Cortex-A53 Errata 843419 workaround inserts 4K stub even when unnecessary

2019-03-21 Thread jwerner at chromium dot org
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: jwerner at chromium dot org Target Milestone: --- Target: aarch64-linux-gnu The --fix-cortex-a53-843419 flag causes the BFD linker to work around a

[Bug ld/24373] Arm Cortex-A53 Errata 843419 workaround inserts 4K stub even when unnecessary

2019-04-01 Thread jwerner at chromium dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24373 --- Comment #2 from Julius Werner --- Hi Tamar, Thanks for looking into this. I really have no idea how the linker internals work here so I just hope you can find a way to make it work. When you say it may get quite expensive to recompute th

[Bug ld/24576] New: Feature request: error out when passed the same linker script with -T and as an object file

2019-05-17 Thread jwerner at chromium dot org
Severity: enhancement Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: jwerner at chromium dot org Target Milestone: --- This is just a small feature request to help people notice mistakes. When using Makefiles to

[Bug ld/24373] Arm Cortex-A53 Errata 843419 workaround inserts 4K stub even when unnecessary

2019-05-21 Thread jwerner at chromium dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24373 --- Comment #9 from Julius Werner --- Hi Tamar, Thanks for taking care of this! I think it's a good solution that should be sufficient in practice. The kinds of binaries where an extra 4KB is a big deal should not be larger than 1MB anyway. F

[Bug ld/24576] Feature request: error out when passed the same linker script with -T and as an object file

2019-05-21 Thread jwerner at chromium dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24576 --- Comment #2 from Julius Werner --- Created attachment 11789 --> https://sourceware.org/bugzilla/attachment.cgi?id=11789&action=edit proposed fix Hi Nick, Okay, I looked into it and I think I found a reasonably clean way to do it (just c

[Bug ld/24576] Feature request: error out when passed the same linker script with -T and as an object file

2019-05-22 Thread jwerner at chromium dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24576 --- Comment #7 from Julius Werner --- Great, thanks for taking care of it! -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu

[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 the

[Bug ld/27180] New: RISC-V far relocations for auipc instructions may cause segfault with --emit-relocs

2021-01-13 Thread jwerner at chromium dot org
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: jwerner at chromium dot org Target Milestone: --- I have run into a segfault in GNU ld for the RISC-V architecture. I'm using 2.35.1, but I also br