[PATCH] Support 'exclude' in objcopy --set-section-flags

Fangrui Song via binutils binutils@sourceware.org
Thu Jan 16 08:55:00 GMT 2020


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

commit 18ae9cc1db45e2e7f6467b91d8abbc5eb45fbaa5 makes SHF_EXCLUDE
generic, not like other SHF_MASKPROC flags. So we do not preserve
SHF_EXCLUDE when setting sh_flags.

--set-section-flags .foo= => clear SHF_EXCLUDE
--set-section-flags .foo=exclude => set SHF_EXCLUDE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: objcopy.patch
Type: text/x-diff
Size: 3351 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200116/e0701ed8/attachment.bin>


More information about the Binutils mailing list