i386: Accept both .plt.got and .plt.sec sections
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 12 Nov 2018 17:29:49 +0000 (09:29 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 12 Nov 2018 17:29:49 +0000 (09:29 -0800)
Glibc commit:

commit a15529fda8d132621328c3fe32997a3d9c55aef4
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon May 14 09:23:55 2018 -0700

    i386: Replace PREINIT_FUNCTION@PLT with *%eax in call

    Since we have loaded address of PREINIT_FUNCTION into %eax, we can
    avoid extra branch to PLT slot.

changed __gmon_start__ relocations in crt1.o from

00000015  0000092b R_386_GOT32X           00000000   __gmon_start__
0000001e  00000904 R_386_PLT32            00000000   __gmon_start__

to

00000015  00000a2b R_386_GOT32X           00000000   __gmon_start__

As the result, .plt.sec section may be generated instead of .plt.got
section, depending on __gmon_start__ relocations.

* testsuite/ld-i386/plt-main-ibt.dd: Accept both .plt.got and
.plt.sec sections.

ld/ChangeLog
ld/testsuite/ld-i386/plt-main-ibt.dd

index 510e333756b079a2aaa76e935eccbf3dbd116347..803662ffdb8aa7ace08c002db30c51d6a7703435 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-i386/plt-main-ibt.dd: Accept both .plt.got and
+       .plt.sec sections.
+
 2018-11-12  Nick Clifton  <nickc@redhat.com>
 
        PR 10865
index 18240a26f00f69ab5aaa2606c1fbe2eb172e50c4..6a1d4bf979da574cba76ba6cb358d05ab9e91367 100644 (file)
@@ -1,5 +1,5 @@
 #...
-Disassembly of section .plt.got:
+Disassembly of section .plt.(sec|got):
 
 [a-f0-9]+ <[_a-z]+@plt>:
 [      ]*[a-f0-9]+:    f3 0f 1e fb             endbr32 
This page took 0.026513 seconds and 4 git commands to generate.