[Bug ld/13387] Abort at elf32-hppa.c:3921 in elf32_hppa_relocate_section

2012-01-27 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13387

--- Comment #4 from cvs-commit at gcc dot gnu.org  2012-01-28 02:22:05 UTC ---
CVSROOT:/cvs/src
Module name:src
Branch: binutils-2_22-branch
Changes by:dang...@sourceware.org2012-01-28 02:22:01

Modified files:
bfd: ChangeLog elf32-hppa.c 

Log message:
Backport from mainline:
2011-11-06  John David Anglin  

PR ld/13387
* elf32-hppa.c (elf32_hppa_hide_symbol): Make STT_GNU_IFUNC symbol
go through PLT.  Reset plt field with init_plt_offset.
(elf32_hppa_adjust_dynamic_symbol): Ensure that a PLT slot is
allocated for symbols referenced by a plabel.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&only_with_tag=binutils-2_22-branch&r1=1.5473.2.33&r2=1.5473.2.34
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-hppa.c.diff?cvsroot=src&only_with_tag=binutils-2_22-branch&r1=1.179&r2=1.179.2.1

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/13387] Abort at elf32-hppa.c:3921 in elf32_hppa_relocate_section

2011-11-06 Thread danglin at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13387

John David Anglin  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #3 from John David Anglin  2011-11-06 
20:47:55 UTC ---
Fixed.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/13387] Abort at elf32-hppa.c:3921 in elf32_hppa_relocate_section

2011-11-06 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13387

--- Comment #2 from cvs-commit at gcc dot gnu.org  2011-11-06 20:25:22 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:dang...@sourceware.org2011-11-06 20:25:18

Modified files:
bfd: ChangeLog elf32-hppa.c 

Log message:
PR ld/13387
* elf32-hppa.c (elf32_hppa_hide_symbol): Make STT_GNU_IFUNC symbol
go through PLT.  Reset plt field with init_plt_offset.
(elf32_hppa_adjust_dynamic_symbol): Ensure that a PLT slot is
allocated for symbols referenced by a plabel.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5509&r2=1.5510
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-hppa.c.diff?cvsroot=src&r1=1.181&r2=1.182

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/13387] Abort at elf32-hppa.c:3921 in elf32_hppa_relocate_section

2011-11-05 Thread danglin at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13387

--- Comment #1 from John David Anglin  2011-11-05 
23:06:27 UTC ---
elf32_hppa_hide_symbol appears to be broken as it can be called
before are all relocs are processed by elf32_hppa_check_relocs.
As a result, the plabel flag may not be set when it is called,
and as a result the plt.refcounts are reset.  This messes up
the refcounts for the symbol causing the abort.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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