bfd/
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 10 Jul 2009 14:03:03 +0000 (14:03 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 10 Jul 2009 14:03:03 +0000 (14:03 +0000)
2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* elf.c (_bfd_elf_get_synthetic_symtab): Remove leading zeros
when reporting  addends.

ld/testsuite/

2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-1-local-x86.d: Updated.
* ld-ifunc/ifunc-1-x86.d: Likewise.Likewise.
* ld-ifunc/ifunc-2-local-x86-64.d: Likewise.Likewise.
* ld-ifunc/ifunc-2-x86-64.d: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.Likewise.

bfd/ChangeLog
bfd/elf.c
ld/testsuite/ChangeLog
ld/testsuite/ld-ifunc/ifunc-1-local-x86.d
ld/testsuite/ld-ifunc/ifunc-1-x86.d
ld/testsuite/ld-ifunc/ifunc-2-local-x86-64.d
ld/testsuite/ld-ifunc/ifunc-2-x86-64.d
ld/testsuite/ld-ifunc/ifunc-3a-x86.d

index e53ff76dcef2bd56024c1c9f725fd0ec3d739846..349516130667059fda53b4fe2f7cae2517850abc 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf.c (_bfd_elf_get_synthetic_symtab): Remove leading zeros
+       when reporting  addends.
+
 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
 
        * elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager
index 0a46a84036deebdd3a721826d8ae0cf10be0fa3a..19f2684204619807c697e526ac820c1b22d9b8ef 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -8965,10 +8965,16 @@ _bfd_elf_get_synthetic_symtab (bfd *abfd,
       names += len;
       if (p->addend != 0)
        {
+         char buf[30], *a;
+         int len;
          memcpy (names, "+0x", sizeof ("+0x") - 1);
          names += sizeof ("+0x") - 1;
-         bfd_sprintf_vma (abfd, names, p->addend);
-         names += strlen (names);
+         bfd_sprintf_vma (abfd, buf, p->addend);
+         for (a = buf; *a == '0'; ++a)
+           ;
+         len = strlen (a);
+         memcpy (names, a, len);
+         names += len;
        }
       memcpy (names, "@plt", sizeof ("@plt"));
       names += sizeof ("@plt");
index be6e2e5a7cdde758236fef6e0b1f3b375d386daf..0c560bdf0ec1e1f1517535a8350e1f505a1b4f37 100644 (file)
@@ -1,3 +1,11 @@
+2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld-ifunc/ifunc-1-local-x86.d: Updated.
+       * ld-ifunc/ifunc-1-x86.d: Likewise.Likewise.
+       * ld-ifunc/ifunc-2-local-x86-64.d: Likewise.Likewise.
+       * ld-ifunc/ifunc-2-x86-64.d: Likewise.
+       * ld-ifunc/ifunc-3a-x86.d: Likewise.Likewise.
+
 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
 
        * ld-ifunc/ifunc.exp: Run for powerpc.  Really generate static
index ee043b1207b8b41802bbe6af423fa6dff0df8bfe..244ef8c40bc3d6465d8e7b1b7ff53cce8f289aaa 100644 (file)
@@ -3,5 +3,5 @@
 #target: x86_64-*-* i?86-*-*
 
 #...
-[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x200@plt>
 #pass
index ee043b1207b8b41802bbe6af423fa6dff0df8bfe..b0f7ccb0bea7fe9014d0381541d4e2b8725640a6 100644 (file)
@@ -3,5 +3,5 @@
 #target: x86_64-*-* i?86-*-*
 
 #...
-[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x220@plt>
 #pass
index fa8710254d00308f981ff015f8d05195cc16f380..f72359d8dc8a66c7cdac482e5fc1ec8a39f2aac3 100644 (file)
@@ -4,6 +4,6 @@
 #target: x86_64-*-*
 
 #...
-[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*@plt>
-[ \t0-9a-f]+:[ \t0-9a-f]+lea[ \t]+.*\(%rip\),%rax.*[ \t0-9a-fq]+<\*ABS\*@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x220@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+lea[ \t]+.*\(%rip\),%rax.*[ \t0-9a-fq]+<\*ABS\*\+0x220@plt>
 #pass
index fa8710254d00308f981ff015f8d05195cc16f380..f72359d8dc8a66c7cdac482e5fc1ec8a39f2aac3 100644 (file)
@@ -4,6 +4,6 @@
 #target: x86_64-*-*
 
 #...
-[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*@plt>
-[ \t0-9a-f]+:[ \t0-9a-f]+lea[ \t]+.*\(%rip\),%rax.*[ \t0-9a-fq]+<\*ABS\*@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x220@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+lea[ \t]+.*\(%rip\),%rax.*[ \t0-9a-fq]+<\*ABS\*\+0x220@plt>
 #pass
index 97225bad7699a0725f08026b7d640b218e888428..88897c2f5e876005703eee1d32ff1f912c21ffa2 100644 (file)
@@ -4,5 +4,5 @@
 #target: x86_64-*-* i?86-*-*
 
 #...
-[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x258@plt>
 #pass