[PATCH][GOLD] Allow a target to fix up output section flags.

Doug Kwan (關振德) dougkwan@google.com
Tue Apr 19 17:25:00 GMT 2011


ping?

On Tue, Apr 5, 2011 at 12:53 AM, Doug Kwan (關振德) <dougkwan@google.com> wrote:
> Hi Ian,
>
>    This patch adds code to allow a target to fix up some flags in an
> output section header.  We need this for ARM's EXIDX section, which is
> required to have SHF_LINK_ORDER set.  We currently do not handle that
> flag correctly in layout, it would be desirable to fix that in the
> long run.  I have tested this for both ARM and X86_64 and I also added
> a new test case.
>
> -Doug
>
> 2011-04-05  Doug Kwan  <dougkwan@google.com>
>
>        * arm.cc (Target_arm::do_adjust_output_section_flags): New
>        method definition.
>        * output.cc (Output_section::write_header): Allow a target to adjust
>        output section flags.
>        * target.h (Target::adjust_output_section_flags): New method definition.
>        (Target::do_adjust_output_section_flags): Same.
>        * testsuite/Makefile.am (arm_exidx_test): New test rules.
>        * testsuite/Makefile.in: Regenerate.
>        * testsuite/arm_exidx_test.s: New file.
>        * testsuite/arm_exidx_test.sh: Same.
>



More information about the Binutils mailing list