mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-09 10:42:48 +00:00
![Ian Lance Taylor](/assets/img/avatar_default.png)
(statement): Accept SORT around CONSTRUCTORS. * ldctor.c: Include <ctype.h>. (constructors_sorted): New global variable. (ctor_prio, ctor_cmp): New static functions. (ldctor_build_sets): Sort constructors if requested. * ldctor.h (constructors_sorted): Declare. * ldlang.c (print_statement): Print sorted CONSTRUCTORS correctly. * scripttempl/elf.sc: Add sort around CONSTRUCTORS. * ld.texinfo (Output Section Keywords): Document SORT (CONSTRUCTORS).
The files in this directory are linker script templates. genscripts.sh sets some shell variables, then sources EMULATION.sc, to generate EMULATION.{x,xr,xu,xn,xbn} -- the script files for default, -r, -Ur, -n, -N.