diff options
author | Alan Modra <amodra@gmail.com> | 2009-09-23 13:54:29 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-09-23 13:54:29 +0000 |
commit | 7ee314faa48ba637641861e0288736cb4666f940 (patch) | |
tree | 20e03cb7130dc65e3ad2e741cffd98153f2adb71 /ld/ld.texinfo | |
parent | 8a00d39205398a858642a2c727bd2a54d8e49b46 (diff) | |
download | gdb-7ee314faa48ba637641861e0288736cb4666f940.zip gdb-7ee314faa48ba637641861e0288736cb4666f940.tar.gz gdb-7ee314faa48ba637641861e0288736cb4666f940.tar.bz2 |
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/ld.texinfo')
-rw-r--r-- | ld/ld.texinfo | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo index dca4068..e17d3fc 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -364,6 +364,17 @@ argument must be one of the strings @samp{archive}, @samp{shared}, or @samp{-Bstatic}, and the other two keywords are functionally equivalent to @samp{-Bdynamic}. This option may be used any number of times. +@kindex --audit @var{AUDITLIB} +@item --audit @var{AUDITLIB} +Adds @var{AUDITLIB} to the @code{DT_AUDIT} entry of the dynamic section. +@var{AUDITLIB} is not checked for existence, nor will it use the DT_SONAME +specified in the library. If specified multiple times @code{DT_AUDIT} +will contain a colon separated list of audit interfaces to use. If the linker +finds an object with an audit entry while searching for shared libraries, +it will add a corresponding @code{DT_DEPAUDIT} entry in the output file. +This option is only meaningful on ELF platforms supporting the rtld-audit +interface. + @ifset I960 @cindex architectures @kindex -A @var{arch} @@ -451,6 +462,17 @@ even if a relocatable output file is specified (with @samp{-r}). The script command @code{FORCE_COMMON_ALLOCATION} has the same effect. @xref{Miscellaneous Commands}. +@kindex --depaudit @var{AUDITLIB} +@kindex -P @var{AUDITLIB} +@item --depaudit @var{AUDITLIB} +@itemx -P @var{AUDITLIB} +Adds @var{AUDITLIB} to the @code{DT_DEPAUDIT} entry of the dynamic section. +@var{AUDITLIB} is not checked for existence, nor will it use the DT_SONAME +specified in the library. If specified multiple times @code{DT_DEPAUDIT} +will contain a colon separated list of audit interfaces to use. This +option is only meaningful on ELF platforms supporting the rtld-audit interface. +The -P option is provided for Solaris compatibility. + @cindex entry point, from command line @kindex -e @var{entry} @kindex --entry=@var{entry} |