bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/21099] New: Strip should update symbol section index after


From: jiwang at gcc dot gnu.org
Subject: [Bug binutils/21099] New: Strip should update symbol section index after some sections removed?
Date: Wed, 01 Feb 2017 14:53:22 +0000

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

            Bug ID: 21099
           Summary: Strip should update symbol section index after some
                    sections removed?
           Product: binutils
           Version: 2.29 (HEAD)
            Status: NEW
          Severity: minor
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: jiwang at gcc dot gnu.org
  Target Milestone: ---

Can be reproduced by two commands:
===

ld --verbose | tac | sed '/^===/d' | sed '/using internal linker script/,$d' |
sed s/*\(.debug_line/_test\ =\ .\;\ *\(.debug_line/ | tac > new.ld

echo "int cal () { return 0; }" > test.c ; gcc -Wl,-T new.ld -g -shared test.c
-o libtest.so ; strip -s libtest.so ; readelf -s libtest.so | grep "_test"

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