This is the mail archive of the 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] PR gold/18098: Add support for SORT_BY_INIT_PRIORITY.

> This patch implements SORT_BY_INIT_PRIORITY.
> gold/ChangeLog
>         PR gold/18098
>         * script-c.h (Sort_wildcard): Add SORT_WILDCARD_BY_INIT_PRIORITY.
>         * (Input_section_sorter::get_init_priority): New method.
>         (Input_section_sorter::operator()): Handle SORT_WILDCARD_BY_INIT_PRIORITY.
>         (Output_section_element_input::print): Likewise.
>         * (script_keyword_parsecodes): Add entry SORT_BY_INIT_PRIORITY.
>         * yyscript.y (SORT_BY_INIT_PRIORITY): New token.
>         (wildcard_section): Handle SORT_BY_INIT_PRIORITY.
>         * testsuite/ (script_test_14): New test.
>         * testsuite/ Regenerate.
>         * testsuite/script_test_14.s: New test source file.
>         * testsuite/ New test script.
>         * testsuite/script_test_14.t: New test linker script.

Committed, with a slight change. I converted the C-style comments in
Input_section_sorter::get_init_priority() to C++ style.



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