]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
objcopy: Don't extend the output section size
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 20 Jun 2025 22:36:56 +0000 (06:36 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 23 Jun 2025 14:30:53 +0000 (22:30 +0800)
commit08c3cbe5926e4d355b5cb70bbec2b1eeb40c2944
tree237467853a05ce59be9dff840371323f43bb14ae
parent41461010eb7c79fee7a9d5f6209accdaac66cc6b
objcopy: Don't extend the output section size

Since the output section contents are copied from the input, don't
extend the output section size beyond the input section size.

PR binutils/33049
* objcopy.c (copy_section): Don't extend the output section
size beyond the input section size.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
binutils/objcopy.c