[Bug binutils/24984] Objcopy -I binary --rename-section reserves space for input file, but doesn't include file's contents in .o file

2019-09-10 Thread antonone+sourceware at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24984 --- Comment #4 from Grzegorz Antoniak --- Okay, I understand that ".bss" has a non-zero virtual size, and a zero physical size (that means, there is no file data inside the file for this section). But when I mark ".CustomData" as no-content,

[Bug binutils/24984] Objcopy -I binary --rename-section reserves space for input file, but doesn't include file's contents in .o file

2019-09-10 Thread antonone+sourceware at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24984 --- Comment #2 from Grzegorz Antoniak --- 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 prob

[Bug binutils/24984] New: Objcopy -I binary --rename-section reserves space for input file, but doesn't include file's contents in .o file

2019-09-10 Thread antonone+sourceware at gmail dot com
: binutils Version: 2.32 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: antonone+sourceware at gmail dot com Target Milestone: --- Steps to reproduce: # 1. Crea