[llvm-bugs] [Bug 46064] New: Shrink SHT_GROUP if its members are deleted
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 25 10:15:50 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46064
Bug ID: 46064
Summary: Shrink SHT_GROUP if its members are deleted
Product: tools
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-objcopy/strip
Assignee: unassignedbugs at nondot.org
Reporter: i at maskray.me
CC: alexander.v.shaposhnikov at gmail.com,
jake.h.ehrlich at gmail.com,
jh7370.2008 at my.bristol.ac.uk,
llvm-bugs at lists.llvm.org, rupprecht at google.com
.section .foo,"aG", at progbits,foo,comdat
.section .bar,"aG", at progbits,foo,comdat
% as a.s -o a.o
% objcopy -R .foo a.o b.o; readelf -x .group b.o
Hex dump of section '.group':
0x00000000 01000000 05000000 ........
% llvm-objcopy -R .foo a.o b.o; readelf -x .group b.o
Hex dump of section '.group':
0x00000000 01000000 05000000 05000000 ............
GNU objcopy used to write zeros for the deleted member but it changed to
decrease sh_size after
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=415f38a6d04c239b62ef3b384eb8376e5838e8df
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200525/6b289e51/attachment-0001.html>
More information about the llvm-bugs
mailing list