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][GOLD] Handle .ARM.exidx sections in garbage collection.


Hi

    Here is an updated patch.  I factored out the code for adding a
reference between two sections into a new method
Garbage_collection::add_reference and used it to avoid code
duplication.  I also changed the call to define_in_output_data as Ian
suggested.  Since this
now changes non-ARM code.  I also ran the tests on x86_64.

-Doug

2010-01-11  Doug Kwan  <dougkwan@google.com>

        * arm.cc (Arm_relobj::do_gc_process_relocs): New method.
        (Target_arm::do_finalize_sections): Define special EXIDX section
        symbols only if referenced.
        * gc.h (Garbage_collection::add_reference): New method.
        (gc_process_relocs): Use Garbage_collection::add_reference to avoid
        code duplication.

Attachment: patch.txt
Description: Text document


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