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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to