This is consistent with BFD objcopy.
Previously llvm objcopy would allocate space for SHT_NOBITS sections
often resulting in enormous binary files.
New test case (binary-paddr.test %t6).
Differential D95569
[llvm-objcopy] -O binary: consider SHT_NOBITS sections to be empty pattop on Jan 27 2021, 3:35 PM. Authored by
Details This is consistent with BFD objcopy. Previously llvm objcopy would allocate space for SHT_NOBITS sections New test case (binary-paddr.test %t6).
Diff Detail
Event TimelineComment Actions I forgot to mention that I do not have commit access. If this is acceptable someone else will need to commit on my behalf. Thanks again.
Comment Actions Use a smaller address in test case. This means that if something goes wrong we don't try to make a huge file. Comment Actions I haven't verified the correctness of this versus GNU objcopy, but assuming the two behave identically after this patch, this is fine by me. I'd like someone else to commit though, as I have too much else on my plate currently.
|
I'll add --ignore-case and commit.