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]

Re: PATCH/RFC: ld add -p/-P options


My copyright assignment went through recently, so thats no longer an issue.
I discovered a feature missing from in my patch, when linking to an object
which has a DT_AUDIT, it needs to propagate into a DT_DEPAUDIT in the
output file,

I tried to avoid the iteration over the input_bfd's in before_allocation, by
doing it in the existing loop in _after_open, but this proved to be
quite difficult
due to it exiting the loop early, or skipping objects, etc, so i
finally gave up on that.
so hopefully this is ok.

2009-09-12 ?Matt Rice <ratmice@gmail.com>

 ? ? ? * 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.

2009-09-12 ?Matt Rice <ratmice@gmail.com>

 ? ? ? * 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.

2009-09-12 ?Matt Rice <ratmice@gmail.com>

? ? ? ld-elf/audit.exp: New.
? ? ? ld-elf/audit.rd: New.
? ? ? ld-elf/depaudit.rd: New.
      ld-elf/depaudit2.rd: New.

Attachment: audit3.diff
Description: Binary data


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