OSDN Git Service

bfd/
authoramodra <amodra>
Wed, 23 Sep 2009 13:54:28 +0000 (13:54 +0000)
committeramodra <amodra>
Wed, 23 Sep 2009 13:54:28 +0000 (13:54 +0000)
commitfcf2d8a6aa4162cd8d8365a7f13f65a75d9c0d64
tree24f72b4f972e18dcc6cecd34781d6a4e2d8b92c7
parent0cf3b8faafea4d63848eb5673f1fd95a2d1ba6f9
bfd/
* bfd-in.h (bfd_elf_size_dynamic_sections): Add audit and depaudit
arguments.
* elflink.c (bfd_elf_size_dynamic_sections): Generate DT_AUDIT,
DT_DEPAUDIT from audit/depaudit arguments.
(elf_finalize_dynstr): Finalize DT_AUDIT and DT_DEPAUDIT strtab entries.
(elf_link_add_object_symbols): Set dt_audit target data when finding a
DT_AUDIT.
* bfd-in2.h: Regenerate.
* bfd-elf.h: Add dt_audit to elf_obj_tdata, and elf_dt_audit macro.
ld/
* emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit,
--depaudit, and -P options.
(gld${EULATION_NAME}_handle_options): Ditto.
(gld${EULATION_NAME}_list_options): Ditto.
(gld${EMULATION_NAME}_append_to_separated_string): New function for
handling rpath-like colon separated strings.
(gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit
libs to bfd.  Propagate DT_AUDIT from needed libs to depaudit.
* ld.texinfo: Document new options.
ld/testsuite/
* ld-elf/audit.exp: New.
* ld-elf/audit.rd: New.
* ld-elf/depaudit.rd: New.
* ld-elf/depaudit2.rd: New.
13 files changed:
bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/elf-bfd.h
bfd/elflink.c
ld/ChangeLog
ld/emultempl/elf32.em
ld/ld.texinfo
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/audit.exp [new file with mode: 0644]
ld/testsuite/ld-elf/audit.rd [new file with mode: 0644]
ld/testsuite/ld-elf/depaudit.rd [new file with mode: 0644]
ld/testsuite/ld-elf/depaudit2.rd [new file with mode: 0644]