Extend local PLT reference check
commit9637d8a253493be471d9a71640e91349f7a8a050
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 29 Jul 2015 18:57:54 +0000 (29 11:57 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 29 Jul 2015 18:58:06 +0000 (29 11:58 -0700)
tree75c20d5036504483c85fc60a52ec003a51b65b00
parentfebce2ac5f46a0d5c67ca8b535a028425d421be4
Extend local PLT reference check

On x86, linker in binutils 2.26 and newer consolidates R_*_JUMP_SLOT with
R_*_GLOB_DAT relocation against the same symbol.  This patch extends
local PLT reference check to support alternate relocations.

[BZ #18078]
* scripts/check-localplt.awk: Support alternate relocations.
* scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
sections.
* sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
malloc entries with + REL R_386_GLOB_DAT.
* sysdeps/x86_64/localplt.data: New file.
ChangeLog
NEWS
scripts/check-localplt.awk
scripts/localplt.awk
sysdeps/unix/sysv/linux/i386/localplt.data
sysdeps/x86_64/localplt.data [new file with mode: 0644]