]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/ChangeLog-2015
Add new linker option: --warn-orphan which generates warning messages when orphan...
authorNick Clifton <nickc@redhat.com>
Tue, 7 Apr 2015 15:29:41 +0000 (16:29 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 7 Apr 2015 15:29:41 +0000 (16:29 +0100)
commit3ea6077552ad86ebb441bef6e1bd40e18d06ab44
tree2a705af6063e141f715ad6e96547feffacec90a8
parent8a06aea71e0aa9099d0ca593dbb58f6e056af4ff
Add new linker option: --warn-orphan  which generates warning messages when orphan sections are detected.

ld * ld.h (struct ld_config_type): Add new field: warn_orphan.
* ldlex.h (enum option_values): Add OPTION_WARN_ORPHAN and
OPTION_NO_WARN_ORPHAN.
* lexsup.c (ld_options): Add --warn-orphan and --no-warn-orphan.
(parse_args): Handle the new options.
* ldemul.c (ldemul_place_orphan): If requested, generate a warning
message when an orphan section is placed in the output file.
* ld.texinfo: Document the new option.
* NEWS: Mention the new feature.

tests * ld-elf/orphan-5.l: New test - checks the linker's output with
--warn-orphan enabled.
* ld-elf/elf.exp: Run the new test.
ld/ChangeLog
ld/NEWS
ld/ld.h
ld/ld.texinfo
ld/ldemul.c
ld/ldlex.h
ld/lexsup.c
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/orphan-5.l [new file with mode: 0644]