[Bug 237676] LLD Filesize and default option suggestions
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat May 18 15:42:12 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237676
maskray <emacsray at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |emacsray at gmail.com
--- Comment #4 from maskray <emacsray at gmail.com> ---
Use --strip-all if you don't want .symtab
Use --no-rosegment to merge R PT_LOAD and RE PT_LOAD
To discard PT_GNU_STACK and .comment, you have to use a linker script, e.g.
PHDRS { text PT_LOAD; }
SECTIONS { /DISCARD/ : {*(.comment)} .text : {*(.text)} :text }
(objcopy options can be combined, e.g. objcopy -S --remove-section=.comment
porcupine.lld
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list