Commit Graph

3 Commits

Author SHA1 Message Date
Ian Lance Taylor
63bb5e9a79 * ldgram.y: Include "ldctor.h".
(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).
1998-08-14 19:40:01 +00:00
Ian Lance Taylor
6ade1673fc * ldctor.c (ldctor_add_set_entry): Don't dump core if a
constructor entry is in the absolute section.
1995-01-24 15:34:16 +00:00
Ian Lance Taylor
fcf276c495 Made many changes to eliminate gcc warnings. Made various
cosmetic changes, declared various things in header files, removed
	various extern declarations from .c files.  No substantive
	changes.
1993-12-11 22:55:55 +00:00