[Bug ld/24905] X86 PCREL relocation against hidden symbol defined in linker scripts fails

2020-03-11 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24905

H.J. Lu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |2.34

--- Comment #3 from H.J. Lu  ---
Fixed for 2.34.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/24905] X86 PCREL relocation against hidden symbol defined in linker scripts fails

2019-08-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=24905

--- Comment #2 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=81e8046dc0daaf56fb10b11931fc77600a4b5920

commit 81e8046dc0daaf56fb10b11931fc77600a4b5920
Author: H.J. Lu 
Date:   Fri Aug 16 14:25:15 2019 -0700

x86-64: Move PIC check for PC-relative relocations back

commit 83924b3846361f2f76f9a6e7b5afa01c0eebbd4f
Author: H.J. Lu 
Date:   Tue Feb 5 18:45:23 2019 -0800

x86-64: Restore PIC check for PCREL reloc against protected symbol

moved PIC check for PC-relative relocations to elf_x86_64_check_relocs.
Since linker defined symbols may not be processed at the time, we need
to move the check back to elf_x86_64_relocate_section.

bfd/

PR ld/24905
* elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
PC-relative relocations back to ...
(elf_x86_64_relocate_section): Here.

ld/

PR ld/24905
* testsuite/ld-x86-64/pr24905-x32.d: New file.
* testsuite/ld-x86-64/pr24905.d: Likewise.
* testsuite/ld-x86-64/pr24905.s: Likewise.
* testsuite/ld-x86-64/pr24905.t: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.

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


[Bug ld/24905] X86 PCREL relocation against hidden symbol defined in linker scripts fails

2019-08-13 Thread sjc+binutils_bugzilla at immunant dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24905

Stephen Crane  changed:

   What|Removed |Added

 CC||sjc+binutils_bugzilla@immun
   ||ant.com

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


[Bug ld/24905] X86 PCREL relocation against hidden symbol defined in linker scripts fails

2019-08-13 Thread sjc+binutils_bugzilla at immunant dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24905

--- Comment #1 from Stephen Crane  
---
Created attachment 11948
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11948&action=edit
test.ldscript

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