From f224a3c59068fc8060c261d329f54bdc7374d63a Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Tue, 28 Jun 2016 13:56:05 -0700 Subject: Implement SORT_BY_INIT_PRIORITY. 2016-06-28 Igor Kudrin gold/ PR gold/18098 * script-c.h (Sort_wildcard): Add SORT_WILDCARD_BY_INIT_PRIORITY. * script-sections.cc (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.cc (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/Makefile.am (script_test_14): New test. * testsuite/Makefile.in: Regenerate. * testsuite/script_test_14.s: New test source file. * testsuite/script_test_14.sh: New test script. * testsuite/script_test_14.t: New test linker script. --- gold/script-c.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gold/script-c.h') diff --git a/gold/script-c.h b/gold/script-c.h index b6ca932cb77..478cf259d03 100644 --- a/gold/script-c.h +++ b/gold/script-c.h @@ -139,7 +139,8 @@ enum Sort_wildcard SORT_WILDCARD_BY_NAME, SORT_WILDCARD_BY_ALIGNMENT, SORT_WILDCARD_BY_NAME_BY_ALIGNMENT, - SORT_WILDCARD_BY_ALIGNMENT_BY_NAME + SORT_WILDCARD_BY_ALIGNMENT_BY_NAME, + SORT_WILDCARD_BY_INIT_PRIORITY }; /* The information we build for a single wildcard specification. */ -- cgit v1.2.1