bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/16317] New: [strip] strip does not preserve SHF_INFO_LINK


From: aivchenk at gmail dot com
Subject: [Bug binutils/16317] New: [strip] strip does not preserve SHF_INFO_LINK flag for .rel.plt and erases the padding after .got.plt
Date: Wed, 11 Dec 2013 11:15:51 +0000

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

            Bug ID: 16317
           Summary: [strip] strip does not preserve SHF_INFO_LINK flag for
                    .rel.plt and erases the padding after .got.plt
           Product: binutils
           Version: 2.25 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: aivchenk at gmail dot com

As discussed here: https://sourceware.org/ml/binutils/2013-11/msg00315.html

The testcase for SHF_INFO_LINK:

a.c:

int global_var = 42;

int function(int i) {
  return i + global_var;
}

$> gcc a.c -fpic -c -m32
$> ld.gold a.o --shared -o not_stripped.so
$> strip --strip-debug not_stripped.so -o stripped.so

$> readelf -S stripped.so > stripped_readelf.txt
$> readelf -S not_stripped.so > not_stripped_readelf.txt
$> diff stripped_readelf.txt not_stripped_readelf.txt

10c10
<   [ 5] .rel.plt          REL             000001b0 0001b0 000008 08   A  1   6
 4
---
>   [ 5] .rel.plt          REL             000001b0 0001b0 000008 08  AI  1   6 
>  4

-- 
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]