[PATCH] [ELF] Make -init/-fini options compatible with the gnu linker

Shankar Easwaran shankar.kalpathi.easwaran at gmail.com
Tue Dec 9 05:33:09 PST 2014


$ ld.gold --help|grep ctors
  --ctors-in-init-array       Use DT_INIT_ARRAY for all constructors (default)
  --no-ctors-in-init-array    Handle constructors as directed by compiler.

If this is the case I recommend using old code so that ctors and init/fini are placed in init array sections or fini array sections.

http://reviews.llvm.org/D6578






More information about the llvm-commits mailing list