This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH [v2]: makes --gc-sections compatible with -r/-q


You need to modify gc_sweep_hook to cope with -r for all targets.
Also, Eric's change, "Add missing guard", is not the proper fix for
ppc_elf_gc_sweep_hook.  You should instead exit ppc_elf_gc_sweep_hook
immediately if -r, because that is what ppc_elf_check_relocs does.

Ok, here is the new version of the patch.


* makes all gc_sweep_hook coherent with check_relocs (ie exit immediately if -r)
* --gc-section -r requires a non-default entry point
* document in --gc-section the use of -e


Tristan.

Attachment: ld-gc.diffs2
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]