summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/depaudit.rd
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2009-09-23 13:54:29 +0000
committerAlan Modra <amodra@bigpond.net.au>2009-09-23 13:54:29 +0000
commitc3ff4eac7b0aa2d083daf2bf0c5fe3a51fa6588d (patch)
tree1b0307f357123432c3c36afa638198452e82249f /ld/testsuite/ld-elf/depaudit.rd
parent32311daa642ef045f0a71cd1e123c288d19fbe58 (diff)
downloadbinutils-redhat-c3ff4eac7b0aa2d083daf2bf0c5fe3a51fa6588d.tar.gz
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.
Diffstat (limited to 'ld/testsuite/ld-elf/depaudit.rd')
-rw-r--r--ld/testsuite/ld-elf/depaudit.rd3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/depaudit.rd b/ld/testsuite/ld-elf/depaudit.rd
new file mode 100644
index 0000000000..98a2692381
--- /dev/null
+++ b/ld/testsuite/ld-elf/depaudit.rd
@@ -0,0 +1,3 @@
+#...
+.*Dependency audit library: \[tmpdir/audit.so\].*
+#pass