bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/26083] New: cris linker generate zero sized PLTRELSZ


From: hjl.tools at gmail dot com
Subject: [Bug ld/26083] New: cris linker generate zero sized PLTRELSZ
Date: Thu, 04 Jun 2020 18:37:26 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26083

            Bug ID: 26083
           Summary: cris linker generate zero sized PLTRELSZ
           Product: binutils
           Version: 2.35 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: hp at sourceware dot org
  Target Milestone: ---
            Target: cris

[hjl@gnu-cfl-2 ld]$
/export/build/gnu/tools-build/binutils-gitlab-cross/build-cris-elf/ld/../gas/as-new
 --pic --no-underscore --em=criself
-I/export/gnu/import/git/gitlab/x86-binutils/ld/testsuite/ld-cris  -o
tmpdir/expdyn2.o
/export/gnu/import/git/gitlab/x86-binutils/ld/testsuite/ld-cris/expdyn2.s
[hjl@gnu-cfl-2 ld]$ ./ld-new  
-L/export/gnu/import/git/gitlab/x86-binutils/ld/testsuite/ld-cris  --shared -m
crislinux --version-script
/export/gnu/import/git/gitlab/x86-binutils/ld/testsuite/ld-cris/expalltst3
--hash-style=sysv -o tmpdir/dump tmpdir/expdyn2.o 
[hjl@gnu-cfl-2 ld]$
/export/build/gnu/tools-build/binutils-gitlab-cross/build-cris-elf/ld/../gas/as-new
 --pic --no-underscore --em=criself  -o tmpdir/expdref2.o
/export/gnu/import/git/gitlab/x86-binutils/ld/testsuite/ld-cris/expdref2.s
[hjl@gnu-cfl-2 ld]$ ./ld-new  
-L/export/gnu/import/git/gitlab/x86-binutils/ld/testsuite/ld-cris  --shared -m
crislinux --hash-style=sysv -o tmpdir/dump tmpdir/expdref2.o
tmpdir/libdso-15.so
[hjl@gnu-cfl-2 ld]$ readelf -d tmpdir/dump

Dynamic section at offset 0x1e8 contains 17 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [tmpdir/libdso-15.so]
 0x00000004 (HASH)                       0x94
 0x00000005 (STRTAB)                     0x120
 0x00000006 (SYMTAB)                     0xc0
 0x0000000a (STRSZ)                      45 (bytes)
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000003 (PLTGOT)                     0x2298
 0x00000002 (PLTRELSZ)                   0 (bytes) <<<< Is it really needed?
 0x00000014 (PLTREL)                     RELA
 0x00000017 (JMPREL)                     0x194
 0x00000007 (RELA)                       0x17c
 0x00000008 (RELASZ)                     24 (bytes)
 0x00000009 (RELAENT)                    12 (bytes)
 0x6ffffffe (VERNEED)                    0x15c
 0x6fffffff (VERNEEDNUM)                 1
 0x6ffffff0 (VERSYM)                     0x14e
 0x00000000 (NULL)                       0x0
[hjl@gnu-cfl-2 ld]$

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]