- // By default, gold groups input sections with certain prefixes. This
- // function returns true if this section name NAME contains such a prefix.
- bool
- is_section_name_prefix_grouped(const char *name);
-
+ // Some input sections require special ordering, for compatibility
+ // with GNU ld. Given the name of an input section, return -1 if it
+ // does not require special ordering. Otherwise, return the index
+ // by which it should be ordered compared to other input sections
+ // that require special ordering.
+ static int
+ special_ordering_of_input_section(const char* name);
+