bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/24984] Objcopy -I binary --rename-section reserves space f


From: antonone+sourceware at gmail dot com
Subject: [Bug binutils/24984] Objcopy -I binary --rename-section reserves space for input file, but doesn't include file's contents in .o file
Date: Tue, 10 Sep 2019 09:56:44 +0000

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

--- Comment #2 from Grzegorz Antoniak <antonone+sourceware at gmail dot com> ---
Well, lack of documentation for those section flags doesn't help with using
them properly.

Adding 'contents' to section flags indeed copies the file's contents to the
object file, and resolves my problem.

But if I won't specify contents, so I indicate the section has no contents,
shouldn't the section size be zero? Because without the 'contents' flag,
section size is 500MB. This can be interpreted as 500MB of byte 0x00. It looks
like a content to me.

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