[Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu

2018-02-02 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22764 --- Comment #10 from Ard Biesheuvel --- (In reply to Renlin Li from comment #9) > (In reply to Peter Smith from comment #5) > > I think that the new error message for R_AARCH64_ABS32 from the linker makes > > some sense if the destination symb

[Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu

2018-02-02 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22764 --- Comment #8 from Ard Biesheuvel --- (In reply to Andrew Pinski from comment #7) > (In reply to Matthias Klose from comment #6) > > systemd on aarch64 configured with efi support fails with a similar > > relocation error: > > > > ld -o src/

[Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu

2018-01-31 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22764 --- Comment #4 from Ard Biesheuvel --- (In reply to H.J. Lu from comment #3) > (In reply to Ard Biesheuvel from comment #2) > > > > One could argue that absolute relocations against *absolute* ELF symbols > > should always be resolved at stat

[Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu

2018-01-31 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22764 --- Comment #2 from Ard Biesheuvel --- >From commit 79e741920446582bd0e09f3e2b9f899c258efa56 R_AARCH64_ABS64 under LP64 is allowed in shared object and a dynamic relocation entry will be generated. This allows the dynamic linker to do

[Bug ld/22764] [2.30 Regression] ld fails to link 4.13 and 4.15 kernels on aarch64-linux-gnu

2018-01-31 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22764 Ard Biesheuvel changed: What|Removed |Added CC||ard.biesheuvel at linaro dot org

[Bug gas/21999] ARM: relative conditional movw/movt pairs may use incorrect offset

2017-08-26 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21999 --- Comment #1 from Ard Biesheuvel --- Thinking about this again, I suppose this is simply a downside of -mimplicit-it, given that putting the label past the 'it' instruction would be inappropriate as well. -- You are receiving this mail bec

[Bug gas/21999] New: ARM: relative conditional movw/movt pairs may use incorrect offset

2017-08-23 Thread ard.biesheuvel at linaro dot org
Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: ard.biesheuvel at linaro dot org Target Milestone: --- The following code .syntax unified .thumb movwr0, #:lower16:foo - (1f + 4

[Bug binutils/21183] New: ARM: allow relative symbol references in PC relative ldr literals

2017-02-19 Thread ard.biesheuvel at linaro dot org
: enhancement Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: ard.biesheuvel at linaro dot org Target Milestone: --- One thing that would be particularly useful in position independent bare metal code that needs to be

[Bug ld/20402] ld.bfd for emits *_RELATIVE relocations against SHN_ABS symbols

2017-02-06 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20402 --- Comment #5 from Ard Biesheuvel --- As it turns out, this is a known issue (at least to some): https://sourceware.org/ml/binutils/2012-05/msg00019.html SHN_ABS symbols are treated just like other (section relative) symbols, because symbol

[Bug ld/20402] ld.bfd for AArch64 emits R_AARCH64_RELATIVE relocations against SHN_ABS symbols

2016-07-24 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20402 --- Comment #2 from Ard Biesheuvel --- The issue can be reproduced by: abs.s - .quad foo, bar abs.lds --- HIDDEN(foo = ABSOLUTE(0xff00ff11ff22ff33)); bar = ABSOLUTE(0xff44ff55ff66ff77); Build using aarch64-linux-gnu-gcc -

[Bug ld/20402] ld.bfd for AArch64 emits R_AARCH64_RELATIVE relocations against SHN_ABS symbols

2016-07-24 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=20402 --- Comment #1 from Ard Biesheuvel --- Uhm, actually it does not fix it. I will try to come up with a small reproducing test case. -- You are receiving this mail because: You are on the CC list for the bug. __

[Bug ld/20402] New: ld.bfd for AArch64 emits R_AARCH64_RELATIVE relocations against SHN_ABS symbols

2016-07-24 Thread ard.biesheuvel at linaro dot org
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: ard.biesheuvel at linaro dot org Target Milestone: --- ld.bfd in -pie mode will 'optimize' away a R_AARCH64_ABS64 relocation against a hidd

[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2015-08-19 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=11539 Ard Biesheuvel changed: What|Removed |Added CC||ard.biesheuvel at linaro dot org

[Bug ld/18692] AArch64: ld --emit-relocs corrupts section relative relocations

2015-07-23 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=18692 --- Comment #2 from Ard Biesheuvel --- Yes, you are right. Sorry for the noise. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binuti

[Bug ld/18692] New: AArch64: ld --emit-relocs corrupts section relative relocations

2015-07-19 Thread ard.biesheuvel at linaro dot org
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: ard.biesheuvel at linaro dot org Target Milestone: --- When merging ELF sections together, section relative relocations emitted using --emit-relocs do not have their addends recalculated

[Bug gas/18541] ARM: adr reference to global symbol fails to assemble in Thumb mode

2015-06-17 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=18541 --- Comment #3 from Ard Biesheuvel --- Yes, the patch works fine when applied to 2.24. Thanks. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing

[Bug gas/18541] New: ARM: adr reference to global symbol fails to assemble in Thumb mode

2015-06-15 Thread ard.biesheuvel at linaro dot org
Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: ard.biesheuvel at linaro dot org Target Milestone: --- The following ARM code fails to assemble in Thumb mode """ adr r0, cp15_save_power .align .globl