xref: /netbsd/external/gpl3/gdb/dist/ld/ChangeLog-2004 (revision 1424dfb3)
1*1424dfb3Schristos2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>
2*1424dfb3Schristos
3*1424dfb3Schristos	* emultempl/pe.em (set_pe_subsystem): Change second arg to
4*1424dfb3Schristos	lang_add_entry to FALSE.
5*1424dfb3Schristos
6*1424dfb3Schristos2004-12-23  Nick Clifton  <nickc@redhat.com>
7*1424dfb3Schristos
8*1424dfb3Schristos	PR 600
9*1424dfb3Schristos	* emulparams/shelf.sh (.stack): Increase stack start address to
10*1424dfb3Schristos	0x300000.
11*1424dfb3Schristos
12*1424dfb3Schristos2004-12-20  Nick Clifton  <nickc@redhat.com>
13*1424dfb3Schristos
14*1424dfb3Schristos	* ldmain.c (main): Issue an error message if -static and -shared
15*1424dfb3Schristos	are used together.
16*1424dfb3Schristos
17*1424dfb3Schristos2004-12-17  Jakub Jelinek  <jakub@redhat.com>
18*1424dfb3Schristos
19*1424dfb3Schristos	* ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
20*1424dfb3Schristos	* ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
21*1424dfb3Schristos	* ldlang.c (lang_size_sections): Use them to avoid wasting virtual
22*1424dfb3Schristos	address space at DATA_SEGMENT_ALIGN.  Fix computation of expected
23*1424dfb3Schristos	PT_GNU_RELRO segment end.
24*1424dfb3Schristos
25*1424dfb3Schristos2004-12-14  P.J. Darcy  <darcypj@us.ibm.com>
26*1424dfb3Schristos
27*1424dfb3Schristos	* configure.tgt: Add s390x-ibm-tpf support.
28*1424dfb3Schristos
29*1424dfb3Schristos2004-12-16  Martin Kögler  <mkoegler@auto.tuwien.ac.at>
30*1424dfb3Schristos
31*1424dfb3Schristos	* ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
32*1424dfb3Schristos	BFD.
33*1424dfb3Schristos
34*1424dfb3Schristos2004-12-07  Ben Elliston  <bje@gnu.org>
35*1424dfb3Schristos
36*1424dfb3Schristos	* ldemul.h: Forward declare struct option.
37*1424dfb3Schristos
38*1424dfb3Schristos2004-12-01  Danny Smith  <dannysmith@users.sourceforge.net>
39*1424dfb3Schristos
40*1424dfb3Schristos	* scripttempl/pe.sc (.data): Add .jcr subsection.
41*1424dfb3Schristos
42*1424dfb3Schristos2004-11-30  Paul Brook  <paul@codesourcery.com>
43*1424dfb3Schristos
44*1424dfb3Schristos	* emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
45*1424dfb3Schristos
46*1424dfb3Schristos2004-11-30  Tero Niemela  <tero_niemela@yahoo.com>
47*1424dfb3Schristos
48*1424dfb3Schristos	* Makefile.am: Change LOCALEDIR to $(datadir)/share.
49*1424dfb3Schristos	* Makefile.in: Regenerate.
50*1424dfb3Schristos
51*1424dfb3Schristos2004-11-26  Melissa Mears  <asterisk@graces.dricas.com>
52*1424dfb3Schristos
53*1424dfb3Schristos	* emultempl/pe.em: Add --subsystem:xbox as well as
54*1424dfb3Schristos	--subsystem:%d.
55*1424dfb3Schristos	* ld.texinfo: (ld_options): Document acceptance of subsystem xbox
56*1424dfb3Schristos	and numeric subsystems.
57*1424dfb3Schristos
58*1424dfb3Schristos2004-11-24  Alan Modra  <amodra@bigpond.net.au>
59*1424dfb3Schristos
60*1424dfb3Schristos	* ldexp.c (fold_name): Correct PR 338 fix.
61*1424dfb3Schristos
62*1424dfb3Schristos2004-11-19  Mark Mitchell  <mark@codesourcery.com>
63*1424dfb3Schristos
64*1424dfb3Schristos	* Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
65*1424dfb3Schristos	(earmelf_linux_eabi.c): New target.
66*1424dfb3Schristos	* configure.tgt (arm*-*-linux-gnueabi): Handle it.
67*1424dfb3Schristos	* emulparams/armelf_linux_eabi.sh: New file.
68*1424dfb3Schristos	* Makefile.in: Regenerated.
69*1424dfb3Schristos
70*1424dfb3Schristos2004-11-19  Nick Clifton  <nickc@redhat.com>
71*1424dfb3Schristos
72*1424dfb3Schristos	PR 518
73*1424dfb3Schristos	* ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
74*1424dfb3Schristos	LENGTH fields in the MEMORY command, to explicitly state that
75*1424dfb3Schristos	symbols cannot be used in their expressions.
76*1424dfb3Schristos
77*1424dfb3Schristos2004-11-19  Jon Beniston <jon@beniston.com>
78*1424dfb3Schristos
79*1424dfb3Schristos	* ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
80*1424dfb3Schristos	* ld/ldgram.y: Add ORIGIN and LENGTH expressions.
81*1424dfb3Schristos	* ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
82*1424dfb3Schristos	which return the length and origin of a memory.
83*1424dfb3Schristos	* ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
84*1424dfb3Schristos	* NEWS: Mention support for ORIGIN and LENGTH operators.
85*1424dfb3Schristos
86*1424dfb3Schristos2004-11-17  Daniel Jacobowitz  <dan@codesourcery.com>
87*1424dfb3Schristos
88*1424dfb3Schristos	* emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
89*1424dfb3Schristos	a dynamic object for stubs.
90*1424dfb3Schristos
91*1424dfb3Schristos2004-11-04  Paul Brook  <paul@codesourcery.com>
92*1424dfb3Schristos
93*1424dfb3Schristos	* ld.texinfo: Document --default-imported-symver.
94*1424dfb3Schristos	* ldmain.c (main): Set link_info.default_imported_symver.
95*1424dfb3Schristos	* lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
96*1424dfb3Schristos	(ld_options): Add --default-imported-symver.
97*1424dfb3Schristos	(parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
98*1424dfb3Schristos
99*1424dfb3Schristos2004-11-08  Inderpreet Singh   <inderpreetb@nioda.hcltech.com>
100*1424dfb3Schristos	    Vineet Sharma      <vineets@noida.hcltech.com>
101*1424dfb3Schristos
102*1424dfb3Schristos	* Makefile.am: Add entries for new maxq-coff target.
103*1424dfb3Schristos	* Makefile.in: Regenerate.
104*1424dfb3Schristos	* configure.tgt: Add support for maxq.
105*1424dfb3Schristos	* emulparams/maxqcoff.sh: New File.
106*1424dfb3Schristos	* scripttempl/maxqcoff.sc: New linker script for target maxq.
107*1424dfb3Schristos	* NEWS: Mention the new target.
108*1424dfb3Schristos
109*1424dfb3Schristos2004-11-04  Daniel Jacobowitz  <dan@debian.org>
110*1424dfb3Schristos
111*1424dfb3Schristos	* Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
112*1424dfb3Schristos	(earmelf_oabi.c): Remove rule.
113*1424dfb3Schristos	* configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
114*1424dfb3Schristos	* emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
115*1424dfb3Schristos	* Makefile.in: Regenerated.
116*1424dfb3Schristos
117*1424dfb3Schristos2004-11-04  Hans-Peter Nilsson  <hp@axis.com>
118*1424dfb3Schristos
119*1424dfb3Schristos	* configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
120*1424dfb3Schristos	* emulparams/criself.sh (INIT_START): Remove emitted "push srp".
121*1424dfb3Schristos	(FINI_START): Ditto.
122*1424dfb3Schristos	(INIT_END): Remove emitted "jump [sp+]".
123*1424dfb3Schristos	(FINI_END): Ditto.
124*1424dfb3Schristos
125*1424dfb3Schristos2004-11-04  Alan Modra  <amodra@bigpond.net.au>
126*1424dfb3Schristos
127*1424dfb3Schristos	* emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
128*1424dfb3Schristos	(no_opd_opt, no_toc_opt): New static vars.
129*1424dfb3Schristos	(ppc_before_allocation): Don't edit opt if no_opd_opt.  Call
130*1424dfb3Schristos	ppc64_elf_edit_toc.
131*1424dfb3Schristos	(OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
132*1424dfb3Schristos	(PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
133*1424dfb3Schristos	(PARSE_AND_LIST_OPTIONS): Describe new options.
134*1424dfb3Schristos	(PARSE_AND_LIST_ARGS_CASES): Handle them.
135*1424dfb3Schristos
136*1424dfb3Schristos2004-10-27  Nick Clifton  <nickc@redhat.com>
137*1424dfb3Schristos
138*1424dfb3Schristos	* emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
139*1424dfb3Schristos	parameter to invocation of lang_section_start.
140*1424dfb3Schristos	* emultempl/aix.em (_handle_option): Likewise.
141*1424dfb3Schristos
142*1424dfb3Schristos	* Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
143*1424dfb3Schristos	eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
144*1424dfb3Schristos	* Makefile.in: Regenerate.
145*1424dfb3Schristos
146*1424dfb3Schristos2004-10-26  Mark Mitchell  <mark@codesourcery.com>
147*1424dfb3Schristos
148*1424dfb3Schristos	* emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
149*1424dfb3Schristos	__exidx_{start,end} when not relocating.
150*1424dfb3Schristos
151*1424dfb3Schristos2004-10-25  Mark Mitchell  <mark@codesourcery.com>
152*1424dfb3Schristos
153*1424dfb3Schristos	* Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
154*1424dfb3Schristos	* ldexp.h (segment_type): New type.
155*1424dfb3Schristos	(segments): New variable.
156*1424dfb3Schristos	* ldexp.c (segments): New variable.
157*1424dfb3Schristos	(exp_print_token): Handle SEGMENT_START.
158*1424dfb3Schristos	(fold_binary): Likewise.
159*1424dfb3Schristos	* ldgram.y (SEGMENT_START): Declare it as a token.
160*1424dfb3Schristos	(exp): Handle SEGMENT_START.
161*1424dfb3Schristos	* ldlang.h (lang_address_statement_type): Add segment field.
162*1424dfb3Schristos	(lang_section_start): Change prototype.
163*1424dfb3Schristos	* ldlang.c (map_input_to_output_sections): Do not process section
164*1424dfb3Schristos	assignments if a corresponding SEGMENT_START has already been
165*1424dfb3Schristos	seen.
166*1424dfb3Schristos	(lang_section_start): Add segment parameter.
167*1424dfb3Schristos	* ldlex.l (SEGMENT_START): Add it.
168*1424dfb3Schristos	* lexsup.c (set_segment_start): New function.
169*1424dfb3Schristos	(parse_args): Use it for -Tbss, -Tdata, and -Ttext.
170*1424dfb3Schristos	* ld.texinfo (SEGMENT_START): Document it.
171*1424dfb3Schristos	* emulparams/armsymbian.sh (EMBEDDED): Set it.
172*1424dfb3Schristos	* scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
173*1424dfb3Schristos	base addresses.  Do not map relocations.
174*1424dfb3Schristos	* NEWS: Mention SEGMENT_START.
175*1424dfb3Schristos
176*1424dfb3Schristos2004-10-26  Paul Brook  <paul@codesourcery.com>
177*1424dfb3Schristos
178*1424dfb3Schristos	* ld.texinfo: Document --default-symver.
179*1424dfb3Schristos	* ldmain.c (main): Set link_info.create_default_symver.
180*1424dfb3Schristos	* lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
181*1424dfb3Schristos	(ld_options): Add default-symver.
182*1424dfb3Schristos	(parse_args): Handle OPTION_DEFAULT_SYMVER.
183*1424dfb3Schristos
184*1424dfb3Schristos2004-10-24 Danny Smith  <dannysmith@users.sourceforge.net>
185*1424dfb3Schristos
186*1424dfb3Schristos	* pe-dll.c (process_def_file): Don't export all symbols by default if
187*1424dfb3Schristos	building a position-independent executable.
188*1424dfb3Schristos
189*1424dfb3Schristos2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
190*1424dfb3Schristos
191*1424dfb3Schristos	PR 463
192*1424dfb3Schristos	* ldmain.c (reloc_overflow): Accept a pointer to struct
193*1424dfb3Schristos	bfd_link_hash_entry. Report symbol location for relocation
194*1424dfb3Schristos	overflow.
195*1424dfb3Schristos
196*1424dfb3Schristos2004-10-21  H.J. Lu  <hongjiu.lu@intel.com>
197*1424dfb3Schristos
198*1424dfb3Schristos	* genscripts.sh (libpath.exp): Really generate for first
199*1424dfb3Schristos	emulation only.
200*1424dfb3Schristos
201*1424dfb3Schristos2004-10-19  Danny Smith  <dannysmith@users.sourceforge.net>
202*1424dfb3Schristos
203*1424dfb3Schristos	* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
204*1424dfb3Schristos	comparison and replacement of filenames.
205*1424dfb3Schristos
206*1424dfb3Schristos2004-10-19  H.J. Lu  <hongjiu.lu@intel.com>
207*1424dfb3Schristos
208*1424dfb3Schristos	PR 459
209*1424dfb3Schristos	* ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
210*1424dfb3Schristos	option on linker script as the one for linker script.
211*1424dfb3Schristos
212*1424dfb3Schristos2004-10-16  Daniel Jacobowitz  <dan@debian.org>
213*1424dfb3Schristos
214*1424dfb3Schristos	* ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
215*1424dfb3Schristos	(check_excluded_libs): New.
216*1424dfb3Schristos	(load_symbols): Call check_excluded_libs.
217*1424dfb3Schristos	* ldlang.h (add_excluded_libs): New prototype.
218*1424dfb3Schristos	* emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
219*1424dfb3Schristos	(gld${EMULATION_NAME}_add_options): Add --exclude-libs.
220*1424dfb3Schristos	(gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
221*1424dfb3Schristos	* ld.texinfo (Command Line Variables): Document --exclude-libs.
222*1424dfb3Schristos	(Options Specific to i386 PE Targets): Remove --exclude-libs.
223*1424dfb3Schristos
224*1424dfb3Schristos2004-10-15  Alan Modra  <amodra@bigpond.net.au>
225*1424dfb3Schristos
226*1424dfb3Schristos	* ldexp.c (exp_fold_tree): Don't immediately exit ld on a
227*1424dfb3Schristos	failing link script assert.
228*1424dfb3Schristos
229*1424dfb3Schristos	* ldctor.c (ldctor_add_set_entry): Fix comment typo.
230*1424dfb3Schristos
231*1424dfb3Schristos2004-10-14  H.J. Lu  <hongjiu.lu@intel.com>
232*1424dfb3Schristos
233*1424dfb3Schristos	PR 445
234*1424dfb3Schristos	* emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
235*1424dfb3Schristos	(SMALL_DATA_DTOR): Set.
236*1424dfb3Schristos	* emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
237*1424dfb3Schristos	(SMALL_DATA_DTOR): Unset.
238*1424dfb3Schristos	* scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
239*1424dfb3Schristos	after .data. If SMALL_DATA_DTOR is set, move .dtors after
240*1424dfb3Schristos	.data.
241*1424dfb3Schristos
242*1424dfb3Schristos2004-10-14  Alan Modra  <amodra@bigpond.net.au>
243*1424dfb3Schristos
244*1424dfb3Schristos	PR 63
245*1424dfb3Schristos	* ldlang.h (lang_output_section_statement_type): Make "next" a
246*1424dfb3Schristos	struct lang_output_section_statement_struct *.
247*1424dfb3Schristos	(struct orphan_save): Move from elf32.em.  Add "name" and "flags".
248*1424dfb3Schristos	(lang_output_section_find_by_flags, lang_insert_orphan): Declare.
249*1424dfb3Schristos	* ldlang.c (lang_output_section_find_1): Adjust for changed
250*1424dfb3Schristos	output_section_statement "next".
251*1424dfb3Schristos	(strip_excluded_output_sections): Likewise.
252*1424dfb3Schristos	(lang_record_phdrs): Likewise.
253*1424dfb3Schristos	(lang_output_section_find_by_flags): New function.
254*1424dfb3Schristos	(output_prev_sec_find): Move from pe.em.  Adjust iterator.
255*1424dfb3Schristos	(lang_insert_orphan): New function.  Tail end of elf32.em's
256*1424dfb3Schristos	place_orphan merged with that from pe.em.  Allow bfd_section to
257*1424dfb3Schristos	be placed first.  New heuristic for placing new output section
258*1424dfb3Schristos	statement in existing script, and accompanying split of __start
259*1424dfb3Schristos	symbol alignment into a separate assignment to dot.
260*1424dfb3Schristos	(lang_add_section): Consistently use output->bfd_section rather than
261*1424dfb3Schristos	an alias, section->output_section.
262*1424dfb3Schristos	(map_input_to_output_sections): Rename overly long arg.  Move
263*1424dfb3Schristos	initialization of data_statement output section to here..
264*1424dfb3Schristos	(lang_check_section_addresses): ..from here.
265*1424dfb3Schristos	(print_assignment): Correct printing of etree_assert.
266*1424dfb3Schristos	(print_all_symbols): Don't bomb if userdata is NULL.
267*1424dfb3Schristos	(IGNORE_SECTION): Rearrange.
268*1424dfb3Schristos	* emultempl/elf32.em (output_rel_find): Adjust interator.
269*1424dfb3Schristos	(output_prev_sec_find): Delete.
270*1424dfb3Schristos	(struct orphan_save): Delete.
271*1424dfb3Schristos	(gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
272*1424dfb3Schristos	flags without creating a duplicate output section statement.
273*1424dfb3Schristos	Revise code holding history of various orphan section placements.
274*1424dfb3Schristos	Allow orphan sections to place before script specified output
275*1424dfb3Schristos	sections.  Call lang_output_section_find_by_flags when placement
276*1424dfb3Schristos	by name fails.  Use lang_insert_orphan.
277*1424dfb3Schristos	* emultempl/mmo.em (output_prev_sec_find): Delete.
278*1424dfb3Schristos	(struct orphan_save): Delete.
279*1424dfb3Schristos	(mmo_place_orphan): Revise code holding history of orphan placement.
280*1424dfb3Schristos	Allow orphans to place before existing output sections.  Use
281*1424dfb3Schristos	lang_insert_orphan.
282*1424dfb3Schristos	* emultempl/pe.em (output_prev_sec_find): Delete.
283*1424dfb3Schristos	(struct orphan_save): Delete.
284*1424dfb3Schristos	(gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
285*1424dfb3Schristos	lang_insert_orphan.
286*1424dfb3Schristos
287*1424dfb3Schristos2004-10-13  Mark Mitchell  <mark@codesourcery.com>
288*1424dfb3Schristos
289*1424dfb3Schristos	* scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
290*1424dfb3Schristos	loadable segment.
291*1424dfb3Schristos
292*1424dfb3Schristos2004-10-13  Alan Modra  <amodra@bigpond.net.au>
293*1424dfb3Schristos
294*1424dfb3Schristos	PR 44
295*1424dfb3Schristos	* ldcref.c (check_section_sym_xref): Delete.
296*1424dfb3Schristos	(check_local_sym_xref): New function.
297*1424dfb3Schristos	(check_nocrossrefs): Adjust call.
298*1424dfb3Schristos	* emultempl/pe.em (struct orphan_save): Add os_tail.
299*1424dfb3Schristos	(place_orphan): Backport assorted fixes from elf32.em.
300*1424dfb3Schristos
301*1424dfb3Schristos2004-10-12  Bob Wilson  <bob.wilson@acm.org>
302*1424dfb3Schristos
303*1424dfb3Schristos	* emultempl/xtensaelf.em: Use ISO C90 formatting.
304*1424dfb3Schristos
305*1424dfb3Schristos2004-10-11  Jakub Jelinek  <jakub@redhat.com>
306*1424dfb3Schristos
307*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
308*1424dfb3Schristos	getline for portability.
309*1424dfb3Schristos
310*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
311*1424dfb3Schristos	(gld${EMULATION_NAME}_parse_ld_so_conf,
312*1424dfb3Schristos	gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
313*1424dfb3Schristos	(gld${EMULATION_NAME}_check_ld_so_conf): Use them.
314*1424dfb3Schristos
315*1424dfb3Schristos2004-10-11  Alan Modra  <amodra@bigpond.net.au>
316*1424dfb3Schristos
317*1424dfb3Schristos	PR 423
318*1424dfb3Schristos	* ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
319*1424dfb3Schristos	rejected when linking statically.
320*1424dfb3Schristos
321*1424dfb3Schristos2004-10-08  Daniel Jacobowitz  <dan@debian.org>
322*1424dfb3Schristos
323*1424dfb3Schristos	* configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
324*1424dfb3Schristos
325*1424dfb3Schristos2004-10-07  Bob Wilson  <bob.wilson@acm.org>
326*1424dfb3Schristos
327*1424dfb3Schristos	* ld.texinfo (Xtensa): Describe new linker relaxation to optimize
328*1424dfb3Schristos	assembler-generated longcall sequences.  Describe new --size-opt
329*1424dfb3Schristos	option.
330*1424dfb3Schristos	* emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
331*1424dfb3Schristos	* emultempl/xtensaelf.em (remove_section,
332*1424dfb3Schristos	replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
333*1424dfb3Schristos	elf_xtensa_after_open): New.
334*1424dfb3Schristos	(OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
335*1424dfb3Schristos	OPTION_NO_LITERAL_MOVEMENT): Define.
336*1424dfb3Schristos	(elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
337*1424dfb3Schristos	(PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
338*1424dfb3Schristos	(PARSE_AND_LIST_OPTIONS): Add --size-opt.
339*1424dfb3Schristos	(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
340*1424dfb3Schristos	OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
341*1424dfb3Schristos	(LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
342*1424dfb3Schristos	* scripttempl/elfxtensa.sc: Update with changes from elf.sc.
343*1424dfb3Schristos	* Makefile.am (eelf32xtensa.c): Update dependencies.
344*1424dfb3Schristos	* Makefile.in: Regenerate.
345*1424dfb3Schristos
346*1424dfb3Schristos2004-10-07  Jeff Baker  <jbaker@qnx.com>
347*1424dfb3Schristos
348*1424dfb3Schristos	* lexsup.c: Handle --warn-shared-textrel option.
349*1424dfb3Schristos	(ld_options): Restore alpha sorting of options.
350*1424dfb3Schristos	* ldmain.c (main): Initialise warn_shared_info field to FALSE.
351*1424dfb3Schristos	* ld.texinfo: Add documentation for --warn-shared-textrel.
352*1424dfb3Schristos	* NEWS: Added mention of --warn-shared-textrel option.
353*1424dfb3Schristos
354*1424dfb3Schristos2004-10-05  Tomer Levi  <Tomer.Levi@nsc.com>
355*1424dfb3Schristos
356*1424dfb3Schristos	* emultempl/crxelf.em (disable_relaxation): Add.
357*1424dfb3Schristos	(crxelf_before_allocation): Enable --relax option by default.
358*1424dfb3Schristos	(PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
359*1424dfb3Schristos	(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
360*1424dfb3Schristos	(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
361*1424dfb3Schristos
362*1424dfb3Schristos2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
363*1424dfb3Schristos
364*1424dfb3Schristos	* NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
365*1424dfb3Schristos	--sort-section name|alignment.
366*1424dfb3Schristos
367*1424dfb3Schristos	* ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
368*1424dfb3Schristos	--sort-section name|alignment.
369*1424dfb3Schristos
370*1424dfb3Schristos	* ld.h (sort_type): New enum.
371*1424dfb3Schristos	(wildcard_spec): Change the type of `sorted' to sort_type.
372*1424dfb3Schristos
373*1424dfb3Schristos	* ldgram.y (SORT): Removed.
374*1424dfb3Schristos	(SORT_BY_NAME): Added.
375*1424dfb3Schristos	(SORT_BY_ALIGNMENT): Added.
376*1424dfb3Schristos	(wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
377*1424dfb3Schristos	SORT_BY_ALIGNMENT.
378*1424dfb3Schristos	(input_section_spec_no_keep): Updated `sorted'.
379*1424dfb3Schristos	(statement): Replace SORT with SORT_BY_NAME.
380*1424dfb3Schristos
381*1424dfb3Schristos	* ldlang.c (compare_section): New function to compare 2
382*1424dfb3Schristos	sections with different sorting schemes.
383*1424dfb3Schristos	(wild_sort): Updated. Use compare_section.
384*1424dfb3Schristos	(update_wild_statements): New function.
385*1424dfb3Schristos	(lang_process): Call update_wild_statements before
386*1424dfb3Schristos	map_input_to_output_sections.
387*1424dfb3Schristos
388*1424dfb3Schristos	* ldlex.l (SORT_BY_NAME): New.
389*1424dfb3Schristos	(SORT_BY_ALIGNMENT): New.
390*1424dfb3Schristos	(SORT): Return SORT_BY_NAME.
391*1424dfb3Schristos
392*1424dfb3Schristos	* ldmain.c (sort_section): New. Defined.
393*1424dfb3Schristos	(main): Initialize it to none.
394*1424dfb3Schristos
395*1424dfb3Schristos	* lexsup.c (option_values): Add OPTION_SORT_SECTION.
396*1424dfb3Schristos	(ld_options): Add an entry for OPTION_SORT_SECTION.
397*1424dfb3Schristos	(parse_args): Handle OPTION_SORT_SECTION.
398*1424dfb3Schristos
399*1424dfb3Schristos	* mri.c (mri_draw_tree): Updated `sorted'.
400*1424dfb3Schristos
401*1424dfb3Schristos2004-10-04  Jakub Jelinek  <jakub@redhat.com>
402*1424dfb3Schristos
403*1424dfb3Schristos	* ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
404*1424dfb3Schristos	* scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
405*1424dfb3Schristos	argument.
406*1424dfb3Schristos	(DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
407*1424dfb3Schristos	and . as second argument.
408*1424dfb3Schristos	(GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
409*1424dfb3Schristos	* ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
410*1424dfb3Schristos	(fold_binary): Add it here.  Insert padding to make relro_end
411*1424dfb3Schristos	COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
412*1424dfb3Schristos	exp_dataseg_relro_adjust phase just use previously computed
413*1424dfb3Schristos	exp_data_seg.base.
414*1424dfb3Schristos	* ldlang.c (lang_size_sections): Set exp_data_seg.base for
415*1424dfb3Schristos	relro_adjust here.  Call lang_size_sections_1 once more if there
416*1424dfb3Schristos	was too big padding at DATA_SEGMENT_RELRO_END.
417*1424dfb3Schristos	* ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
418*1424dfb3Schristos
419*1424dfb3Schristos2004-10-01  Paul Brook  <paul@codesourcery.com>
420*1424dfb3Schristos
421*1424dfb3Schristos	* emulparams/armelf.sh: Add unwinding table sections.
422*1424dfb3Schristos
423*1424dfb3Schristos2004-09-30  Filip Navara  <navaraf@reactos.com>
424*1424dfb3Schristos
425*1424dfb3Schristos	* emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
426*1424dfb3Schristos	correct base address for position independant executables.
427*1424dfb3Schristos	* pe-dll.c (pe_dll_fill_sections): Don't mark position independant
428*1424dfb3Schristos	executables as DLLs.
429*1424dfb3Schristos
430*1424dfb3Schristos2004-09-30  Paul Brook  <paul@codesourcery.com>
431*1424dfb3Schristos
432*1424dfb3Schristos	* ld.texinfo: Document --target2=abs.
433*1424dfb3Schristos	* emulparms/armsymbian.sh (TARGET2_TYPE): Set.
434*1424dfb3Schristos
435*1424dfb3Schristos2004-09-29  Nick Clifton  <nickc@redhat.com>
436*1424dfb3Schristos
437*1424dfb3Schristos	* scripttempl/xstormy16.sc: Only perform the assignments to the
438*1424dfb3Schristos	ROM region when not performing a relocatable link.  The ROM region
439*1424dfb3Schristos	does not start at address 0, but the sections will.
440*1424dfb3Schristos	* Makefile.am: Fix linker script dependency for the generation of
441*1424dfb3Schristos	eelf32xstormy16.c.
442*1424dfb3Schristos	* Makefile.in: Regenerate.
443*1424dfb3Schristos
444*1424dfb3Schristos2004-09-18  Filip Navara  <navaraf@reactos.com>
445*1424dfb3Schristos
446*1424dfb3Schristos	* emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
447*1424dfb3Schristos	emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
448*1424dfb3Schristos	emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
449*1424dfb3Schristos	TARGET_PAGE_SIZE.
450*1424dfb3Schristos	* scripttempl/pe.sc: Make the virtual address and file offset synced if
451*1424dfb3Schristos	the alignment is lower than the target page size.
452*1424dfb3Schristos
453*1424dfb3Schristos2004-09-27  Filip Navara  <navaraf@reactos.com>
454*1424dfb3Schristos
455*1424dfb3Schristos	* emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
456*1424dfb3Schristos	def_file_parse to handle pe_def_file if NULL and prevent crash with
457*1424dfb3Schristos	invalid .def files.
458*1424dfb3Schristos
459*1424dfb3Schristos2004-09-27  Alan Modra  <amodra@bigpond.net.au>
460*1424dfb3Schristos
461*1424dfb3Schristos	* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
462*1424dfb3Schristos	--emit-stub-syms automatically when --emit-relocs.
463*1424dfb3Schristos
464*1424dfb3Schristos2004-09-24  Paul Brook  <paul@codeosurcery.com>
465*1424dfb3Schristos
466*1424dfb3Schristos	* scripttempl/elf.sc: Keep .preinit_array, .init_array and
467*1424dfb3Schristos	.fini_array sections.
468*1424dfb3Schristos
469*1424dfb3Schristos2004-09-19  Andreas Schwab  <schwab@suse.de>
470*1424dfb3Schristos
471*1424dfb3Schristos	* ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
472*1424dfb3Schristos	base so that relro end is suitably aligned.
473*1424dfb3Schristos
474*1424dfb3Schristos2004-09-17  Paul Brook  <paul@codesourcery.com>
475*1424dfb3Schristos
476*1424dfb3Schristos	* ld.texinfo: Rename arm-specific section.  Document --target*
477*1424dfb3Schristos	* emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
478*1424dfb3Schristos	* emulparams/armelf_linux.sh: Ditto.
479*1424dfb3Schristos	* emulparams/armelf_nbsd.sh: Ditto.
480*1424dfb3Schristos	* emultempl/armelf.em: Set default for TARGET2_TYPE.
481*1424dfb3Schristos	(target2_type): New variable.
482*1424dfb3Schristos	(arm_elf_before_allocation): Don't pass target1_type.
483*1424dfb3Schristos	(arm_elf_create_output_section_statements): New function.
484*1424dfb3Schristos	(PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
485*1424dfb3Schristos	(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
486*1424dfb3Schristos	(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
487*1424dfb3Schristos	(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
488*1424dfb3Schristos	* emultempl/armelf_oabi.em (_before_allocation): Remove extra
489*1424dfb3Schristos	argument to bfd_elf32_arm_process_before_allocation.
490*1424dfb3Schristos
491*1424dfb3Schristos2004-09-17  Alan Modra  <amodra@bigpond.net.au>
492*1424dfb3Schristos
493*1424dfb3Schristos	* ldexp.c (fold_name): Update u.undef.next refs.
494*1424dfb3Schristos	* emultempl/pe.em: Likewise.
495*1424dfb3Schristos	* emultempl/sunos.em: Likewise.
496*1424dfb3Schristos
497*1424dfb3Schristos2004-09-17  Alan Modra  <amodra@bigpond.net.au>
498*1424dfb3Schristos
499*1424dfb3Schristos	* Makefile.am: Run "make dep-am".
500*1424dfb3Schristos	* Makefile.in: Regenerate.
501*1424dfb3Schristos	* config.in: Regenerate.
502*1424dfb3Schristos	* configure: Regenerate.
503*1424dfb3Schristos	* aclocal.m4: Regenerate.
504*1424dfb3Schristos	* po/ld.pot: Regenerate.
505*1424dfb3Schristos
506*1424dfb3Schristos2004-09-16  Tomer Levi  <Tomer.Levi@nsc.com>
507*1424dfb3Schristos
508*1424dfb3Schristos	* scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
509*1424dfb3Schristos	(.fini): Likewise.
510*1424dfb3Schristos	(.jcr): Likewise.
511*1424dfb3Schristos
512*1424dfb3Schristos2004-09-16  Alan Modra  <amodra@bigpond.net.au>
513*1424dfb3Schristos
514*1424dfb3Schristos	* emultempl/armelf_oabi.em (before_allocation): Add extra zero param
515*1424dfb3Schristos	to bfd_elf32_arm_process_before_allocation call.
516*1424dfb3Schristos
517*1424dfb3Schristos2004-09-13  Paul Brook  <paul@codesourcery.com>
518*1424dfb3Schristos
519*1424dfb3Schristos	* emulparams/armsymbian.sh: Set TARGET1_IS_REL.
520*1424dfb3Schristos	* emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.
521*1424dfb3Schristos
522*1424dfb3Schristos2004-09-07  H.J. Lu  <hongjiu.lu@intel.com>
523*1424dfb3Schristos
524*1424dfb3Schristos	* configure: Regenerated with autconfig 2.13.
525*1424dfb3Schristos
526*1424dfb3Schristos2004-09-07  Andreas Schwab  <schwab@suse.de>
527*1424dfb3Schristos
528*1424dfb3Schristos	* ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
529*1424dfb3Schristos	alignment before adjusting DATA_SEGMENT_RELRO_END.
530*1424dfb3Schristos
531*1424dfb3Schristos2004-09-06  Mark Mitchell  <mark@codesourcery.com>
532*1424dfb3Schristos
533*1424dfb3Schristos	* emulparams/armsymbian.sh: Use armbpabi script.
534*1424dfb3Schristos	* scripttempl/armbpabi.sc: New script.
535*1424dfb3Schristos
536*1424dfb3Schristos2004-09-02  Mark Mitchell  <mark@codesourcery.com>
537*1424dfb3Schristos
538*1424dfb3Schristos	* Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
539*1424dfb3Schristos	(earmsymbian.c): New target.
540*1424dfb3Schristos	* configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
541*1424dfb3Schristos	* Makefile.in: Regenerated.
542*1424dfb3Schristos	* aclocal.m4: Likewise.
543*1424dfb3Schristos	* configure: Likewise.
544*1424dfb3Schristos	* emulparams/armsymbian.sh: New file.
545*1424dfb3Schristos
546*1424dfb3Schristos2004-09-03  Tomer Levi  <Tomer.Levi@nsc.com>
547*1424dfb3Schristos
548*1424dfb3Schristos	* scripttempl/elf32crx.sc: Edit file with comments.
549*1424dfb3Schristos	(.init): Add new section.
550*1424dfb3Schristos	(.fini): Likewise.
551*1424dfb3Schristos	(.ctor): Control the linkage order.
552*1424dfb3Schristos	(.dtor): Likewise.
553*1424dfb3Schristos
554*1424dfb3Schristos2004-08-27  Nick Clifton  <nickc@redhat.com>
555*1424dfb3Schristos
556*1424dfb3Schristos	* emultempl/pe.em (after_open): Do not assume that either bfd is
557*1424dfb3Schristos	an archive.
558*1424dfb3Schristos
559*1424dfb3Schristos2004-08-26  Alan Modra  <amodra@bigpond.net.au>
560*1424dfb3Schristos
561*1424dfb3Schristos	* ldlang.c (lang_init): Don't compare with TRUE.
562*1424dfb3Schristos
563*1424dfb3Schristos2004-08-25  Dmitry Diky  <diwil@spec.ru>
564*1424dfb3Schristos
565*1424dfb3Schristos	* emulparams/msp430all.sh: Fix RAM sizes for all targets.
566*1424dfb3Schristos	* scripttempl/elf32msp430.sc: Add .profiler section definition.
567*1424dfb3Schristos
568*1424dfb3Schristos2004-08-24  H.J. Lu  <hongjiu.lu@intel.com>
569*1424dfb3Schristos
570*1424dfb3Schristos	* ldlang.c (wildcardp): Defined as a macro with strpbrk.
571*1424dfb3Schristos
572*1424dfb3Schristos2004-08-19  Mark Mitchell  <mark@codesourcery.com>
573*1424dfb3Schristos
574*1424dfb3Schristos	* configure.tgt (arm*-*-symbianelf*): New target.
575*1424dfb3Schristos	(arm*-*-eabi*): Likewise.
576*1424dfb3Schristos
577*1424dfb3Schristos2004-08-19  Jakub Jelinek  <jakub@redhat.com>
578*1424dfb3Schristos
579*1424dfb3Schristos	* emultempl/ppc64elf.em (non_overlapping_opd): New variable.
580*1424dfb3Schristos	(ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
581*1424dfb3Schristos	(OPTION_NON_OVERLAPPING_OPD): Define.
582*1424dfb3Schristos	(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
583*1424dfb3Schristos	--non-overlapping-opd option.
584*1424dfb3Schristos
585*1424dfb3Schristos2004-08-18  Alan Modra  <amodra@bigpond.net.au>
586*1424dfb3Schristos
587*1424dfb3Schristos	PR 338
588*1424dfb3Schristos	* ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
589*1424dfb3Schristos	was already on the undefs list.
590*1424dfb3Schristos
591*1424dfb3Schristos2004-08-17  Alan Modra  <amodra@bigpond.net.au>
592*1424dfb3Schristos
593*1424dfb3Schristos	* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
594*1424dfb3Schristos	prefix the symbol field too.
595*1424dfb3Schristos
596*1424dfb3Schristos2004-08-13  Alan Modra  <amodra@bigpond.net.au>
597*1424dfb3Schristos
598*1424dfb3Schristos	* ldmain.c (link_callbacks): Remove "error_handler".
599*1424dfb3Schristos	* ldmisc.c: Include elf-bfd.h.
600*1424dfb3Schristos	(vfinfo): Sort comment.  Handle %A.  Use %A instead of
601*1424dfb3Schristos	bfd_get_section_indent.
602*1424dfb3Schristos	(error_handler): Delete.
603*1424dfb3Schristos	* ldmisc.h (error_handler): Delete declaration.
604*1424dfb3Schristos
605*1424dfb3Schristos2004-08-10  Alan Modra  <amodra@bigpond.net.au>
606*1424dfb3Schristos
607*1424dfb3Schristos	* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
608*1424dfb3Schristos	ppc64_elf_restore_symbols.
609*1424dfb3Schristos
610*1424dfb3Schristos2004-08-09  Alan Modra  <amodra@bigpond.net.au>
611*1424dfb3Schristos
612*1424dfb3Schristos	* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
613*1424dfb3Schristos	.toc is too large on relocatable linking.
614*1424dfb3Schristos
615*1424dfb3Schristos2004-08-09  Alan Modra  <amodra@bigpond.net.au>
616*1424dfb3Schristos
617*1424dfb3Schristos	* emultempl/ppc64elf.em (ppc_after_open): Delete.
618*1424dfb3Schristos	(LDEMUL_AFTER_OPEN): Don't define.
619*1424dfb3Schristos
620*1424dfb3Schristos2004-08-02  Stephane Carrez  <stcarrez@nerim.fr>
621*1424dfb3Schristos
622*1424dfb3Schristos	* ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
623*1424dfb3Schristos
624*1424dfb3Schristos2004-08-01  Stephane Carrez  <stcarrez@nerim.fr>
625*1424dfb3Schristos
626*1424dfb3Schristos	* scripttempl/elfm68hc12.sc: Align text, rodata and data section
627*1424dfb3Schristos	on power of 2.
628*1424dfb3Schristos
629*1424dfb3Schristos2004-07-27  Jason Thorpe  <thorpej@wasabisystems.com>
630*1424dfb3Schristos
631*1424dfb3Schristos	* emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
632*1424dfb3Schristos
633*1424dfb3Schristos2004-07-26  Dmitry Diky  <diwil@spec.ru>
634*1424dfb3Schristos
635*1424dfb3Schristos	* Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
636*1424dfb3Schristos	msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
637*1424dfb3Schristos	msp430xG439.
638*1424dfb3Schristos	* configure.tgt: Likewise.
639*1424dfb3Schristos	* emulparams/msp430all.sh: Likewise.
640*1424dfb3Schristos	* Makefile.in: Regenerate.
641*1424dfb3Schristos
642*1424dfb3Schristos2004-07-23  Nick Clifton  <nickc@redhat.com>
643*1424dfb3Schristos
644*1424dfb3Schristos	* emultempl/elf32.em (_place_orphan): Use an already existing
645*1424dfb3Schristos	section name if that section does not have any flags set.
646*1424dfb3Schristos
647*1424dfb3Schristos2004-07-21  H.J. Lu  <hongjiu.lu@intel.com>
648*1424dfb3Schristos
649*1424dfb3Schristos	* ldlang.c (already_linked_hash_entry): Removed.
650*1424dfb3Schristos	(already_linked): Likewise.
651*1424dfb3Schristos	(already_linked_table): Likewise.
652*1424dfb3Schristos	(section_already_linked): Call bfd_section_already_linked.
653*1424dfb3Schristos	(lang_process): Replace already_linked_table_init with
654*1424dfb3Schristos	bfd_section_already_linked_table_init and check return. Replace
655*1424dfb3Schristos	already_linked_table_free with bfd_section_already_linked_table_free.
656*1424dfb3Schristos
657*1424dfb3Schristos2004-07-21  Nick Clifton  <nickc@redhat.com>
658*1424dfb3Schristos
659*1424dfb3Schristos	* ldlang.c (init_os): Make sure that the newly allocated userdata
660*1424dfb3Schristos	structure is zeroed out.
661*1424dfb3Schristos
662*1424dfb3Schristos2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
663*1424dfb3Schristos
664*1424dfb3Schristos	* NEWS: Mention the new --add-needed/--no-add-needed and
665*1424dfb3Schristos	--as-needed/--no-as-needed options.
666*1424dfb3Schristos
667*1424dfb3Schristos2004-07-19  H.J. Lu  <hongjiu.lu@intel.com>
668*1424dfb3Schristos
669*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
670*1424dfb3Schristos	check the add_needed field.
671*1424dfb3Schristos	(dt_needed): New struct.
672*1424dfb3Schristos	(gld${EMULATION_NAME}_try_needed): Change the first argument
673*1424dfb3Schristos	to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
674*1424dfb3Schristos	bit in the file where the DT_NEEDED entry comes from.
675*1424dfb3Schristos	(gld${EMULATION_NAME}_search_needed): Change the second
676*1424dfb3Schristos	argument to a pointer to struct dt_needed.
677*1424dfb3Schristos	(gld${EMULATION_NAME}_check_ld_so_conf): Updated.
678*1424dfb3Schristos	(gld${EMULATION_NAME}_after_open): Likewise.
679*1424dfb3Schristos
680*1424dfb3Schristos	* ld.texinfo: Add --add-needed document.
681*1424dfb3Schristos	* ldlang.c (new_afile): Set p->add_needed.
682*1424dfb3Schristos	* ldlang.h (lang_input_statement_type): Add add_needed field.
683*1424dfb3Schristos	* ldmain.h (add_needed): Declare.
684*1424dfb3Schristos	* ldmain.c (add_needed): New global var.
685*1424dfb3Schristos	* lexsup.c (option_values): Add OPTION_ADD_NEEDED and
686*1424dfb3Schristos	OPTION_NO_ADD_NEEDED.
687*1424dfb3Schristos	(ld_options): Likewise.
688*1424dfb3Schristos	(parse_args): Handle them.
689*1424dfb3Schristos
690*1424dfb3Schristos2004-07-13  Christof Petig  <christof@petig-baender.de>
691*1424dfb3Schristos
692*1424dfb3Schristos	* emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
693*1424dfb3Schristos	for endian-ness of extracted addend.
694*1424dfb3Schristos
695*1424dfb3Schristos2004-07-13  Danny Smith  <dannysmith@usesr.sourceforge.net>
696*1424dfb3Schristos
697*1424dfb3Schristos	* pe-dll.c (auto_export):  Filter on just the import prefix,
698*1424dfb3Schristos	"_imp_", not "_imp__".
699*1424dfb3Schristos
700*1424dfb3Schristos2004-07-09  Nick Clifton  <nickc@redhat.com>
701*1424dfb3Schristos
702*1424dfb3Schristos	* configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
703*1424dfb3Schristos
704*1424dfb3Schristos2004-07-06  Tomer Levi  <Tomer.Levi@nsc.com>
705*1424dfb3Schristos
706*1424dfb3Schristos	* Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
707*1424dfb3Schristos	(eelf32crx.c): New target.
708*1424dfb3Schristos	* Makefile.in: Regenerate.
709*1424dfb3Schristos	* configure.tgt: Handle crx-*-elf*.
710*1424dfb3Schristos	* emulparams/elf32crx.sh: New file.
711*1424dfb3Schristos	* emultempl/crxelf.em: New file.
712*1424dfb3Schristos	* scripttempl/elf32crx.sc: New file.
713*1424dfb3Schristos	* NEWS: Mention new target.
714*1424dfb3Schristos
715*1424dfb3Schristos2004-07-06  Nick Clifton  <nickc@redhat.com>
716*1424dfb3Schristos
717*1424dfb3Schristos	* Makefile.am: Add eshlsymbian.c.
718*1424dfb3Schristos	* Makefile.in: Regenerate.
719*1424dfb3Schristos	* configure.tgt: Add sh*-symbian-elf target.
720*1424dfb3Schristos	* emulparams/shlsymbian.sh: New file.  Configure the
721*1424dfb3Schristos	sh-symbian-elf linker scripts.
722*1424dfb3Schristos	* scripttemp/elf32sh-symbian.sc: New file.  Linker script
723*1424dfb3Schristos	template for the sh-symbian-elf target.
724*1424dfb3Schristos
725*1424dfb3Schristos2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
726*1424dfb3Schristos
727*1424dfb3Schristos	* emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
728*1424dfb3Schristos	* emulparams/hppalinux.sh: Likewise.
729*1424dfb3Schristos	* scripttempl/elf.sc: Place .plt just before .got when .plt is in
730*1424dfb3Schristos	data segment and PLT_BEFORE_GOT is defined.
731*1424dfb3Schristos
732*1424dfb3Schristos2004-07-03  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
733*1424dfb3Schristos
734*1424dfb3Schristos	* ld.texinfo (WIN32): Document PE weak symbols.
735*1424dfb3Schristos
736*1424dfb3Schristos2004-07-02  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
737*1424dfb3Schristos
738*1424dfb3Schristos	* emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
739*1424dfb3Schristos
740*1424dfb3Schristos2004-07-01  H.J. Lu  <hongjiu.lu@intel.com>
741*1424dfb3Schristos
742*1424dfb3Schristos	* ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
743*1424dfb3Schristos	the section.
744*1424dfb3Schristos
745*1424dfb3Schristos2004-06-29  Alan Modra  <amodra@bigpond.net.au>
746*1424dfb3Schristos
747*1424dfb3Schristos	* ldlang.c (lang_reset_memory_regions): Save last relax pass section
748*1424dfb3Schristos	size in rawsize.
749*1424dfb3Schristos
750*1424dfb3Schristos2004-06-24  Alan Modra  <amodra@bigpond.net.au>
751*1424dfb3Schristos
752*1424dfb3Schristos	* ldlang.c (print_output_section_statement): Don't print size before
753*1424dfb3Schristos	relaxation.
754*1424dfb3Schristos	(IGNORE_SECTION): Remove bfd arg.  Update all callers.
755*1424dfb3Schristos
756*1424dfb3Schristos	* ldexp.c (fold_name): .. See below.
757*1424dfb3Schristos	* ldlang.c (section_already_linked, print_output_section_statement,
758*1424dfb3Schristos	print_input_section, insert_pad, size_input_section,
759*1424dfb3Schristos	lang_check_section_addresses, lang_size_sections_1,
760*1424dfb3Schristos	lang_size_sections, lang_do_assignments_1, lang_set_startof,
761*1424dfb3Schristos	lang_one_common, lang_reset_memory_regions, lang_process,
762*1424dfb3Schristos	lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
763*1424dfb3Schristos	* ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
764*1424dfb3Schristos	* pe-dll.c (process_def_file, generate_reloc): ..
765*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
766*1424dfb3Schristos	gld${EMULATION_NAME}_before_allocation): ..
767*1424dfb3Schristos	* emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
768*1424dfb3Schristos	* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
769*1424dfb3Schristos	sh64_elf_${EMULATION_NAME}_after_allocation): ..
770*1424dfb3Schristos	* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
771*1424dfb3Schristos	* emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
772*1424dfb3Schristos	ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
773*1424dfb3Schristos	"size" instead of "_raw_size" and "_cooked_size".  Expand
774*1424dfb3Schristos	bfd_section_size macro invocations.
775*1424dfb3Schristos
776*1424dfb3Schristos2004-06-22  Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
777*1424dfb3Schristos
778*1424dfb3Schristos	* ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
779*1424dfb3Schristos	___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
780*1424dfb3Schristos	___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
781*1424dfb3Schristos	___crt_xt_end__.
782*1424dfb3Schristos	(.tls): Define ___tls_start__ and ___tls_end__.
783*1424dfb3Schristos
784*1424dfb3Schristos2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
785*1424dfb3Schristos
786*1424dfb3Schristos	* emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
787*1424dfb3Schristos
788*1424dfb3Schristos2004-06-18  Adam Nemet  <anemet@lnxw.com>
789*1424dfb3Schristos
790*1424dfb3Schristos	* configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
791*1424dfb3Schristos	* configure: Regenerate.
792*1424dfb3Schristos
793*1424dfb3Schristos2004-06-15  Jakub Jelinek  <jakub@redhat.com>
794*1424dfb3Schristos
795*1424dfb3Schristos	* scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
796*1424dfb3Schristos	.gcc_except_table output sections lost accidentally with
797*1424dfb3Schristos	-z relro patch.
798*1424dfb3Schristos
799*1424dfb3Schristos2004-06-15  Alan Modra  <amodra@bigpond.net.au>
800*1424dfb3Schristos
801*1424dfb3Schristos	* ldwrite.c (build_link_order): Use bfd_get_section_size
802*1424dfb3Schristos	instead of bfd_get_section_size_before_reloc or _raw_size.
803*1424dfb3Schristos	* pe-dll.c (process_def_file): Likewise.
804*1424dfb3Schristos
805*1424dfb3Schristos2004-06-14  Alan Modra  <amodra@bigpond.net.au>
806*1424dfb3Schristos
807*1424dfb3Schristos	From Richard Wirth <r.wirth@wirthware.de>
808*1424dfb3Schristos	* ldlang.c (lang_finish): Don't free lang_definedness_table.
809*1424dfb3Schristos
810*1424dfb3Schristos2004-05-29  Alan Modra  <amodra@bigpond.net.au>
811*1424dfb3Schristos
812*1424dfb3Schristos	* ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
813*1424dfb3Schristos	(lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
814*1424dfb3Schristos
815*1424dfb3Schristos2004-05-28  Alan Modra  <amodra@bigpond.net.au>
816*1424dfb3Schristos
817*1424dfb3Schristos	* ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
818*1424dfb3Schristos	throughout file.
819*1424dfb3Schristos	* lexsup.c: Formatting.  Wrap long lines.
820*1424dfb3Schristos	* ldwrite.c: Update copyright date.
821*1424dfb3Schristos
822*1424dfb3Schristos	* ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
823*1424dfb3Schristos	(output_section_callback): Nor SEC_KEEP here.
824*1424dfb3Schristos	(gc_section_callback): Twiddle SEC_EXCLUDE here.
825*1424dfb3Schristos	(lang_gc_wild): Delete.  Fold into..
826*1424dfb3Schristos	(lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
827*1424dfb3Schristos	collecting.
828*1424dfb3Schristos	(lang_process): Always call lang_gc_sections.
829*1424dfb3Schristos	(lang_place_orphans): Handle SEC_EXCLUDE sections.
830*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
831*1424dfb3Schristos	SEC_EXCLUDE code.
832*1424dfb3Schristos
833*1424dfb3Schristos2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
834*1424dfb3Schristos
835*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
836*1424dfb3Schristos	SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
837*1424dfb3Schristos	* ldlang.c (lang_add_section): Likewise.
838*1424dfb3Schristos
839*1424dfb3Schristos2004-05-26  Alan Modra  <amodra@bigpond.net.au>
840*1424dfb3Schristos
841*1424dfb3Schristos	* ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
842*1424dfb3Schristos	sections when doing a final link.  Clear SEC_EXCLUDE when doing
843*1424dfb3Schristos	a relocable link, except for SEC_DEBUGGING sections.
844*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
845*1424dfb3Schristos	same condition here to drop SEC_EXCLUDE orphan sections.
846*1424dfb3Schristos
847*1424dfb3Schristos2004-05-25  Alan Modra  <amodra@bigpond.net.au>
848*1424dfb3Schristos
849*1424dfb3Schristos	* ldlang.c (lang_process): Call bfd_merge_sections later, and
850*1424dfb3Schristos	only when not a relocatable link.
851*1424dfb3Schristos	(print_input_section): Handle SEC_EXCLUDE sections.
852*1424dfb3Schristos	(size_input_section): Don't update dot on SEC_EXCLUDE sections.
853*1424dfb3Schristos	(lang_do_assignments_1): Likewise.
854*1424dfb3Schristos	* ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
855*1424dfb3Schristos	* emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
856*1424dfb3Schristos	* emultempl/hppaelf.em (build_section_lists): Likewise.
857*1424dfb3Schristos	* emultempl/ppc64elf.em (build_toc_list): Likewise.
858*1424dfb3Schristos	(build_section_lists): Likewise.
859*1424dfb3Schristos
860*1424dfb3Schristos2004-05-23  Andreas Schwab  <schwab@suse.de>
861*1424dfb3Schristos
862*1424dfb3Schristos	* ld.texinfo (Options): Fix typo in last change.
863*1424dfb3Schristos
864*1424dfb3Schristos2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
865*1424dfb3Schristos
866*1424dfb3Schristos	* ld.h (ld_config_type): Add new field: hash_table_size.
867*1424dfb3Schristos	* ldmain.c: Initialise the new field to zero.  If it is non-zero
868*1424dfb3Schristos	after parsing the linker's command line call
869*1424dfb3Schristos	bfd_hash_set_default_size.
870*1424dfb3Schristos	* lexsup.c (option_values): Add OPTION_HASH_SIZE.
871*1424dfb3Schristos	(ld_options): Add hash-size.
872*1424dfb3Schristos	(parse_args): Parse --hash-size option.  Allow
873*1424dfb3Schristos	--reduce-memory-overheads to set the default hash table size as
874*1424dfb3Schristos	well.
875*1424dfb3Schristos	* ld.texinfo: Document the new switch.  Also mention that
876*1424dfb3Schristos	--reduce-memory-overheads can affect the hash table size.
877*1424dfb3Schristos	* NEWS: Mention the new feature.
878*1424dfb3Schristos
879*1424dfb3Schristos2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
880*1424dfb3Schristos
881*1424dfb3Schristos	* NEWS: Mention new linker map file generation and the
882*1424dfb3Schristos	--reduce-memory-overheads option.
883*1424dfb3Schristos	* ld.texinfo: Document --reduce-memory-overheads option.
884*1424dfb3Schristos	* ld.h (map_symbol_def): New struct.
885*1424dfb3Schristos	(struct user_section_struct, section_userdata_type): Rename to:
886*1424dfb3Schristos	(struct lean_user_section_struct, lean_section_userdata_type).
887*1424dfb3Schristos	(struct fat_user_section_struct, fat_section_userdata_type): New.
888*1424dfb3Schristos	(SECTION_USERDATA_SIZE): Define.
889*1424dfb3Schristos	(args_type): New member reduce_memory_overheads.
890*1424dfb3Schristos	* ldlang.c (map_obstack): New static variable.
891*1424dfb3Schristos	(init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
892*1424dfb3Schristos	(lang_map): Unless command_line.reduce_memory_overheads is set,
893*1424dfb3Schristos	initialize lists of defined symbols for each section.
894*1424dfb3Schristos	(print_input_section): Unless command_line.reduce_memory_overheads
895*1424dfb3Schristos	is set, use print_all_symbols.
896*1424dfb3Schristos	(init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
897*1424dfb3Schristos	* ldmain.c (main): Initialize command_line.reduce_memory_overheads.
898*1424dfb3Schristos	* lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
899*1424dfb3Schristos	(ld_options): Add entry for --reduce-memory-overheads.
900*1424dfb3Schristos	(parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
901*1424dfb3Schristos
902*1424dfb3Schristos2004-05-19  Jakub Jelinek  <jakub@redhat.com>
903*1424dfb3Schristos
904*1424dfb3Schristos	* ldgram.y (sect_constraint): New.
905*1424dfb3Schristos	(ONLY_IF_RO, ONLY_IF_RW): New tokens.
906*1424dfb3Schristos	(section): Add sect_constraint.  Pass additional argument
907*1424dfb3Schristos	to lang_enter_output_section_statement.
908*1424dfb3Schristos	* mri.c (mri_draw_tree): Pass additional argument to
909*1424dfb3Schristos	lang_enter_output_section_statement.
910*1424dfb3Schristos	* emultempl/pe.em (place_orphan): Likewise.
911*1424dfb3Schristos	(output_prev_sec_find): Disregard output section statements with
912*1424dfb3Schristos	constraint == -1.
913*1424dfb3Schristos	* emultempl/mmo.em (output_prev_sec_find): Likewise.
914*1424dfb3Schristos	(mmo_place_orphan): Pass additional argument to
915*1424dfb3Schristos	lang_enter_output_section_statement.
916*1424dfb3Schristos	* emultempl/elf32.em (output_prev_sec_find): Disregard output section
917*1424dfb3Schristos	statements with constraint == -1.
918*1424dfb3Schristos	(place_orphan): Pass additional argument to
919*1424dfb3Schristos	lang_enter_output_section_statement.
920*1424dfb3Schristos	* ldlang.c (lang_enter_overlay_section): Likewise.
921*1424dfb3Schristos	(lang_output_section_find_1): New.
922*1424dfb3Schristos	(lang_output_section_find): Use it.
923*1424dfb3Schristos	(lang_output_section_statement_lookup_1): New.
924*1424dfb3Schristos	(lang_output_section_statement_lookup): Use it.
925*1424dfb3Schristos	(check_section_callback, check_input_sections): New.
926*1424dfb3Schristos	(map_input_to_output_sections): Check if all input sections
927*1424dfb3Schristos	are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
928*1424dfb3Schristos	(strip_excluded_output_sections): Disregard output section statements
929*1424dfb3Schristos	with constraint == -1.
930*1424dfb3Schristos	(lang_record_phdrs): Likewise.
931*1424dfb3Schristos	(lang_enter_output_section_statement): Add constraint argument.
932*1424dfb3Schristos	Use lang_output_section_statement_lookup_1.
933*1424dfb3Schristos	* ldlang.h (lang_output_section_statement_type): Add constraint
934*1424dfb3Schristos	and all_input_readonly fields.
935*1424dfb3Schristos	(lang_enter_output_section_statement): Adjust prototype.
936*1424dfb3Schristos	* ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
937*1424dfb3Schristos	* scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
938*1424dfb3Schristos	segment if all input sections are readonly.
939*1424dfb3Schristos
940*1424dfb3Schristos2004-05-19  Adam Nemet  <anemet@lnxw.com>
941*1424dfb3Schristos
942*1424dfb3Schristos	* scripttempl/i386lynx.sc: Remove file.
943*1424dfb3Schristos
944*1424dfb3Schristos2004-05-17  Bob Wilson  <bob.wilson@acm.org>
945*1424dfb3Schristos
946*1424dfb3Schristos	* ld.texinfo (Output Section Address): Correct subsection name.
947*1424dfb3Schristos
948*1424dfb3Schristos2004-05-17  Adam Nemet  <anemet@lnxw.com>
949*1424dfb3Schristos
950*1424dfb3Schristos	* configure.tgt (powerpc-*-lynxos* case): New case.
951*1424dfb3Schristos	* configure.host (i[3-7]86-*-lynxos* case): Remove case.
952*1424dfb3Schristos	* emulparams/ppclynx.sh: New file.
953*1424dfb3Schristos	* emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
954*1424dfb3Schristos	* Makefile.am (ALL_EMULATIONS): Add eppclynx.o
955*1424dfb3Schristos	(ei386lynx.c): Update rule to LynxOS 4.0 ELF.
956*1424dfb3Schristos	(eppclynx.c): New rule.
957*1424dfb3Schristos	* Makefile.in: Regenerate.
958*1424dfb3Schristos
959*1424dfb3Schristos2004-05-13  Joel Sherrill <joel@oarcorp.com>
960*1424dfb3Schristos
961*1424dfb3Schristos	* configure.tgt (or32-*-rtems*): Switch to elf and
962*1424dfb3Schristos	support versioned targets.
963*1424dfb3Schristos
964*1424dfb3Schristos2004-05-13  Nick Clifton  <nickc@redhat.com>
965*1424dfb3Schristos
966*1424dfb3Schristos	* po/fr.po: Updated French translation.
967*1424dfb3Schristos
968*1424dfb3Schristos2004-05-11  Jakub Jelinek  <jakub@redhat.com>
969*1424dfb3Schristos
970*1424dfb3Schristos	* genscripts.sh: Generate -z combreloc -z now -z relro scripts
971*1424dfb3Schristos	for binaries, -shared and -pie.
972*1424dfb3Schristos	* emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
973*1424dfb3Schristos	* emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
974*1424dfb3Schristos	* emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
975*1424dfb3Schristos	(OTHER_RELRO_SECTIONS): ... this.
976*1424dfb3Schristos	* ldlex.l (DATA_SEGMENT_RELRO_END): Add.
977*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
978*1424dfb3Schristos	-z relro and -z norelro.
979*1424dfb3Schristos	(gld${EMULATION_NAME}_list_options): Add it to usage.
980*1424dfb3Schristos	(gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
981*1424dfb3Schristos	-z relro scripts when appropriate.
982*1424dfb3Schristos	* scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
983*1424dfb3Schristos	Create separate .got.plt section if SEPARATE_GOTPLT.
984*1424dfb3Schristos	Move sections which are only written during relocation handling
985*1424dfb3Schristos	to the beginning of RW segment.  If NO_SMALL_DATA, move .got
986*1424dfb3Schristos	before .data.  Add DATA_SEGMENT_RELRO_END directive.
987*1424dfb3Schristos	Include OTHER_RELRO_SECTIONS.
988*1424dfb3Schristos	* ldgram.y (DATA_SEGMENT_RELRO_END): Add.
989*1424dfb3Schristos	* ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
990*1424dfb3Schristos	(fold_unary): Likewise.
991*1424dfb3Schristos	(fold_binary): Handle -z relro.
992*1424dfb3Schristos	* ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
993*1424dfb3Schristos	exp_dataseg_relro_adjust phases.  Add relro_end field.
994*1424dfb3Schristos	* ldmain.c (main): Initialize link_info.relro to FALSE.
995*1424dfb3Schristos	* ldlang.c (lang_size_sections): Handle -z relro.
996*1424dfb3Schristos
997*1424dfb3Schristos2004-05-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
998*1424dfb3Schristos
999*1424dfb3Schristos	* scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1000*1424dfb3Schristos
1001*1424dfb3Schristos2004-05-07  J"orn Rennecke <joern.rennecke@superh.com>
1002*1424dfb3Schristos
1003*1424dfb3Schristos	* ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1004*1424dfb3Schristos	before printing it with %W.
1005*1424dfb3Schristos
1006*1424dfb3Schristos2004-05-07  Brian Ford  <ford@vss.fsi.com>
1007*1424dfb3Schristos	    DJ Delorie  <dj@redhat.com>
1008*1424dfb3Schristos
1009*1424dfb3Schristos	* emultempl/pe.em (real_flags): New static.
1010*1424dfb3Schristos	(OPTION_LARGE_ADDRESS_AWARE): New define.
1011*1424dfb3Schristos	(gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1012*1424dfb3Schristos	(gld_${EMULATION_NAME}_list_options): Likewise.
1013*1424dfb3Schristos	(gld${EMULATION_NAME}_handle_option): Likewise.
1014*1424dfb3Schristos	(gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1015*1424dfb3Schristos	* ld.texinfo: Document it.
1016*1424dfb3Schristos	* NEWS: Mention it.
1017*1424dfb3Schristos
1018*1424dfb3Schristos2004-05-07  Brian Ford  <ford@vss.fsi.com>
1019*1424dfb3Schristos
1020*1424dfb3Schristos	* NEWS: Mention DWARF 2 support for i386pe.
1021*1424dfb3Schristos
1022*1424dfb3Schristos2004-05-05  Alexandre Oliva  <aoliva@redhat.com>
1023*1424dfb3Schristos
1024*1424dfb3Schristos	* emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1025*1424dfb3Schristos	elf32-frvfdpic.
1026*1424dfb3Schristos
1027*1424dfb3Schristos2004-04-30  Alan Modra  <amodra@bigpond.net.au>
1028*1424dfb3Schristos
1029*1424dfb3Schristos	* ldlang.c (unique_section_p): Pass section parm, return true on
1030*1424dfb3Schristos	group sections.
1031*1424dfb3Schristos	(output_section_callback): Adjust.
1032*1424dfb3Schristos	* ldlang.h (unique_section_p): Update prototype.
1033*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1034*1424dfb3Schristos
1035*1424dfb3Schristos2004-04-30  Eric Botcazou  <ebotcazou@act-europe.fr>
1036*1424dfb3Schristos
1037*1424dfb3Schristos	* ld.texinfo (--gc-sections): Remove restriction for
1038*1424dfb3Schristos	dynamic linking.
1039*1424dfb3Schristos
1040*1424dfb3Schristos2004-04-29  Brian Ford  <ford@vss.fsi.com>
1041*1424dfb3Schristos
1042*1424dfb3Schristos	* scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1043*1424dfb3Schristos	for DWARF 2/3.  Update stab section's syntax.
1044*1424dfb3Schristos
1045*1424dfb3Schristos2004-04-29  Alan Modra  <amodra@bigpond.net.au>
1046*1424dfb3Schristos
1047*1424dfb3Schristos	* pe-dll.c: Revert changes accidentally committed 2004-03-08.
1048*1424dfb3Schristos	(fill_edata): Correct pointer arithmetic.
1049*1424dfb3Schristos
1050*1424dfb3Schristos2004-04-21  Chris Demetriou  <cgd@broadcom.com>
1051*1424dfb3Schristos
1052*1424dfb3Schristos	* ld.texinfo: Remove MIPS --embedded-relocs documentation.
1053*1424dfb3Schristos	* emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1054*1424dfb3Schristos	* emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1055*1424dfb3Schristos	(EXTRA_EM_FILE): Use mipsecoff.em
1056*1424dfb3Schristos	* emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1057*1424dfb3Schristos	(EXTRA_EM_FILE): Use mipsecoff.em
1058*1424dfb3Schristos	* emultempl/mipsecoff.em: Restructure to be included as an
1059*1424dfb3Schristos	extra emulation file.
1060*1424dfb3Schristos	(check_sections, gld${EMULATION_NAME}_after_open)
1061*1424dfb3Schristos	(gld${EMULATION_NAME}_after_allocation)
1062*1424dfb3Schristos	(gld${EMULATION_NAME}_get_script)
1063*1424dfb3Schristos	(ld_${EMULATION_NAME}_emulation): Remove
1064*1424dfb3Schristos	(gld${EMULATION_NAME}_before_parse): Rename to...
1065*1424dfb3Schristos	(mipsecoff_before_parse): This.
1066*1424dfb3Schristos	(LDEMUL_BEFORE_PARSE): Define.
1067*1424dfb3Schristos	* emultempl/mipself.em: Remove file.
1068*1424dfb3Schristos	* scripttempl/mips.sc (.rel.sdata): Do not include in output.
1069*1424dfb3Schristos	(__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1070*1424dfb3Schristos	these symbols.
1071*1424dfb3Schristos	* Makefile.am: Remove dependencies on emultempl/mipself.em.
1072*1424dfb3Schristos	* Makefile.in: Regenerate.
1073*1424dfb3Schristos
1074*1424dfb3Schristos2004-04-21	Anil Paranjpe	<anilp1@kpitcummins.com>
1075*1424dfb3Schristos
1076*1424dfb3Schristos	* ld.texinfo (synthesizing on H8/300): Information about linker
1077*1424dfb3Schristos	relaxation support for bit manipulation instructions and system
1078*1424dfb3Schristos	control instructions is added.
1079*1424dfb3Schristos
1080*1424dfb3Schristos2004-04-21  Hans-Peter Nilsson  <hp@axis.com>
1081*1424dfb3Schristos
1082*1424dfb3Schristos	* NEWS: Mention change in DEFINED semantics.
1083*1424dfb3Schristos
1084*1424dfb3Schristos2004-04-21  Eric Botcazou  <ebotcazou@act-europe.fr>
1085*1424dfb3Schristos
1086*1424dfb3Schristos	* scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1087*1424dfb3Schristos	(.data): Add KEEP for .gnu.linkonce.d.*personality*.
1088*1424dfb3Schristos	(.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1089*1424dfb3Schristos
1090*1424dfb3Schristos2004-04-21  Ben Elliston  <bje@au.ibm.com>
1091*1424dfb3Schristos
1092*1424dfb3Schristos	* ld.texinfo (Simple Example): Add missing punctuation.
1093*1424dfb3Schristos
1094*1424dfb3Schristos2004-04-20  Chris Demetriou  <cgd@broadcom.com>
1095*1424dfb3Schristos
1096*1424dfb3Schristos	* NEWS: Note that MIPS --embedded-relocs option is deprecated.
1097*1424dfb3Schristos
1098*1424dfb3Schristos2004-04-19  Jakub Jelinek  <jakub@redhat.com>
1099*1424dfb3Schristos
1100*1424dfb3Schristos	* ldlang.c (lang_do_assignments_1): Handle .tbss output section
1101*1424dfb3Schristos	specially.
1102*1424dfb3Schristos
1103*1424dfb3Schristos2004-04-18  Danny Smith  <dannysmith@users.sourceforge.net>
1104*1424dfb3Schristos
1105*1424dfb3Schristos	* scriptempl/pe.sc:  Put numbered .ctors.* after .ctors
1106*1424dfb3Schristos	with default priority. Likewise for dtors.
1107*1424dfb3Schristos
1108*1424dfb3Schristos2004-04-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
1109*1424dfb3Schristos
1110*1424dfb3Schristos	* configure.host: Remove mips*-dec-bsd* target.
1111*1424dfb3Schristos	* configure.tgt: Likewise.
1112*1424dfb3Schristos
1113*1424dfb3Schristos2004-04-08  Richard Sandiford  <rsandifo@redhat.com>
1114*1424dfb3Schristos
1115*1424dfb3Schristos	* emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1116*1424dfb3Schristos	* emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1117*1424dfb3Schristos	* emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1118*1424dfb3Schristos	* emultempl/irix.em: New file.
1119*1424dfb3Schristos	* Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1120*1424dfb3Schristos	dependencies.
1121*1424dfb3Schristos	* Makefile.in: Regenerate.
1122*1424dfb3Schristos
1123*1424dfb3Schristos2004-04-01  Paul Brook  <paul@codesourcery.com>
1124*1424dfb3Schristos
1125*1424dfb3Schristos	* emultempl/armelf.em (byteswap_code): Add.
1126*1424dfb3Schristos	(arm_elf_before_allocation): Pass extra parameter.
1127*1424dfb3Schristos	(PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1128*1424dfb3Schristos	(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1129*1424dfb3Schristos	(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1130*1424dfb3Schristos	* emultempl/armelf_oabi.em: Pass extra parameter.
1131*1424dfb3Schristos	* ld.texinfo: Document --be8.
1132*1424dfb3Schristos
1133*1424dfb3Schristos2004-03-30  Stan Shebs  <shebs@apple.com>
1134*1424dfb3Schristos
1135*1424dfb3Schristos	Remove long-obsolete MPW support.
1136*1424dfb3Schristos	* mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1137*1424dfb3Schristos	* Makefile.am (mpw): Remove file-presynthesizing actions.
1138*1424dfb3Schristos	* Makefile.in: Likewise.
1139*1424dfb3Schristos	* ldfile.c (slash): Remove MPW case.
1140*1424dfb3Schristos	* ldlex.l [MPW]: Remove unused definition.
1141*1424dfb3Schristos
1142*1424dfb3Schristos2004-03-30  Galit Heller  <Galit.Heller@nsc.com>
1143*1424dfb3Schristos
1144*1424dfb3Schristos	* Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1145*1424dfb3Schristos	(eelf32cr16c.c): New target.
1146*1424dfb3Schristos	* Makefile.in: Regenerate.
1147*1424dfb3Schristos	* configure.tgt: Handle cr16c-*-elf*.
1148*1424dfb3Schristos	* emulparams/elf32cr16c.sh: New file.
1149*1424dfb3Schristos	* scripttempl/elfcr16c.sc: Likewise
1150*1424dfb3Schristos	* NEWS: Mention support for new target.
1151*1424dfb3Schristos
1152*1424dfb3Schristos2004-03-30  Nick Clifton  <nickc@redhat.com>
1153*1424dfb3Schristos
1154*1424dfb3Schristos	* po/sv.po: Updated Swedish translation.
1155*1424dfb3Schristos
1156*1424dfb3Schristos2004-03-27  Alan Modra  <amodra@bigpond.net.au>
1157*1424dfb3Schristos
1158*1424dfb3Schristos	* emultempl/elf32.em: Update new bfd_elf_discard_info name.
1159*1424dfb3Schristos	* emultempl/hppaelf.em: Likewise.
1160*1424dfb3Schristos	* emultempl/ppc64elf.em: Likewise.
1161*1424dfb3Schristos	* emultempl/sh64elf.em: Likewise.
1162*1424dfb3Schristos
1163*1424dfb3Schristos2004-03-25  Alan Modra  <amodra@bigpond.net.au>
1164*1424dfb3Schristos
1165*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1166*1424dfb3Schristos	size_dynamic_sections call.
1167*1424dfb3Schristos
1168*1424dfb3Schristos2004-03-23  Alan Modra  <amodra@bigpond.net.au>
1169*1424dfb3Schristos
1170*1424dfb3Schristos	PR 51.
1171*1424dfb3Schristos	* emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1172*1424dfb3Schristos	link_info.wrap_char.
1173*1424dfb3Schristos
1174*1424dfb3Schristos2004-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1175*1424dfb3Schristos
1176*1424dfb3Schristos	* lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1177*1424dfb3Schristos	or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1178*1424dfb3Schristos
1179*1424dfb3Schristos2004-03-20  Alexandre Oliva  <aoliva@redhat.com>
1180*1424dfb3Schristos
1181*1424dfb3Schristos	* emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1182*1424dfb3Schristos
1183*1424dfb3Schristos2004-03-19  Alan Modra  <amodra@bigpond.net.au>
1184*1424dfb3Schristos
1185*1424dfb3Schristos	* config.in: Regenerate.
1186*1424dfb3Schristos	* po/ld.pot: Regenerate.
1187*1424dfb3Schristos
1188*1424dfb3Schristos2004-03-18  Alan Modra  <amodra@bigpond.net.au>
1189*1424dfb3Schristos
1190*1424dfb3Schristos	* ld.texinfo: Add --as-needed doco.
1191*1424dfb3Schristos	* ldmain.c (as_needed): New global var.
1192*1424dfb3Schristos	* ldmain.h (as_needed): Declare.
1193*1424dfb3Schristos	* lexsup.c (option_values): Add OPTION_AS_NEEDED and
1194*1424dfb3Schristos	OPTION_NO_AS_NEEDED.
1195*1424dfb3Schristos	(ld_options): Likewise.
1196*1424dfb3Schristos	(parse_args): Handle them.
1197*1424dfb3Schristos	* ldlang.h (lang_input_statement_type): Add as_needed field.
1198*1424dfb3Schristos	* ldlang.c (new_afile): Set p->as_needed.
1199*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1200*1424dfb3Schristos	(gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1201*1424dfb3Schristos	(ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1202*1424dfb3Schristos
1203*1424dfb3Schristos	* ldlang.c (open_input_bfds): Remove useless cast.
1204*1424dfb3Schristos	(lang_do_assignments_1): Likewise.
1205*1424dfb3Schristos	(lang_for_each_input_section): Delete.
1206*1424dfb3Schristos
1207*1424dfb3Schristos2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1208*1424dfb3Schristos
1209*1424dfb3Schristos	* configure.tgt: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff*.
1210*1424dfb3Schristos
1211*1424dfb3Schristos2004-03-08  Danny Smith  <dannysmith@users.sourceforge.net>
1212*1424dfb3Schristos
1213*1424dfb3Schristos	* pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1214*1424dfb3Schristos	private when building implib.
1215*1424dfb3Schristos
1216*1424dfb3Schristos2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1217*1424dfb3Schristos
1218*1424dfb3Schristos	* ldlang.c (lang_add_section): Don't force SEC_LOAD on
1219*1424dfb3Schristos	SEC_THREAD_LOCAL.
1220*1424dfb3Schristos	(IGNORE_SECTION): Ignore .tbss sections too.
1221*1424dfb3Schristos	(lang_size_sections_1): .tbss sections do not advance dot.
1222*1424dfb3Schristos
1223*1424dfb3Schristos2004-03-01  Andreas Schwab  <schwab@suse.de>
1224*1424dfb3Schristos
1225*1424dfb3Schristos	* ld.texinfo (Options): Fix example for --wrap.
1226*1424dfb3Schristos
1227*1424dfb3Schristos2004-02-25  Danny Smith  <dannysmith@users.sourceforge.net>
1228*1424dfb3Schristos
1229*1424dfb3Schristos	* pe-dll.c (fill_edata): Check that exported_symbol_sections is
1230*1424dfb3Schristos	not NULL.
1231*1424dfb3Schristos
1232*1424dfb3Schristos2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
1233*1424dfb3Schristos
1234*1424dfb3Schristos	* ldlang.c (lang_check): Use %P, not %E, in error message.
1235*1424dfb3Schristos
1236*1424dfb3Schristos2004-02-23  Nathan Sidwell  <nathan@codesourcery.com>
1237*1424dfb3Schristos
1238*1424dfb3Schristos	* ldlang.h (struct lang_output_section_state): Change processed
1239*1424dfb3Schristos	field's type.
1240*1424dfb3Schristos	* ldexp.c (check, invalid): Remove.
1241*1424dfb3Schristos	(fold_name): Move valid_p assignments. Create undefined symbol
1242*1424dfb3Schristos	when needed. Directly exampine section's processd flag.
1243*1424dfb3Schristos	* ldlang.c (lang_output_section_statement_lookup): Adjust
1244*1424dfb3Schristos	processed field init.
1245*1424dfb3Schristos	(lang_size_sections_1): Allow LOADADDR when determining section's
1246*1424dfb3Schristos	VMA. Adjust error message. Fold data statement's expr.
1247*1424dfb3Schristos	(lang_size_sections): Correctly increment lang_statement_iteration.
1248*1424dfb3Schristos
1249*1424dfb3Schristos2004-02-23  Alan Modra <amodra@bigpond.net.au>
1250*1424dfb3Schristos
1251*1424dfb3Schristos	* ldexp.c (fold_tree): Follow indirect symbols.
1252*1424dfb3Schristos
1253*1424dfb3Schristos2004-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1254*1424dfb3Schristos
1255*1424dfb3Schristos	* ldgram.y (exp): Add two operand ALIGN.
1256*1424dfb3Schristos	* ldexp.c (fold_binary): Add ALIGN_K case.
1257*1424dfb3Schristos	* ld.texinfo (ALIGN): Document two operand version.
1258*1424dfb3Schristos
1259*1424dfb3Schristos2004-02-19  Nathan Sidwell  <nathan@codesourcery.com>
1260*1424dfb3Schristos
1261*1424dfb3Schristos	* ldlang.c (map_input_to_output_sections): Initialize sections
1262*1424dfb3Schristos	mentioned in a data statement expression.
1263*1424dfb3Schristos	(lang_do_assignments_1): Add data statement's expression's
1264*1424dfb3Schristos	section's vma.
1265*1424dfb3Schristos
1266*1424dfb3Schristos2004-02-18  Nathan Sidwell  <nathan@codesourcery.com>
1267*1424dfb3Schristos
1268*1424dfb3Schristos	* ldgram.y (statement_anywhere): Add assert rule.
1269*1424dfb3Schristos	* ldlang.c (exp_init_os): Add assert case.
1270*1424dfb3Schristos
1271*1424dfb3Schristos2004-02-14  Andrew Cagney  <cagney@redhat.com>
1272*1424dfb3Schristos
1273*1424dfb3Schristos	* ldmain.c (remove_output): Call bfd_cache_close.
1274*1424dfb3Schristos
1275*1424dfb3Schristos2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
1276*1424dfb3Schristos
1277*1424dfb3Schristos	* emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1278*1424dfb3Schristos	.MIPS.content* and .MIPS.events* sections.
1279*1424dfb3Schristos
1280*1424dfb3Schristos2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1281*1424dfb3Schristos
1282*1424dfb3Schristos	* emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1283*1424dfb3Schristos	.note.gnu.arm.ident to after allocated sections.  Mark its
1284*1424dfb3Schristos	address as 0.
1285*1424dfb3Schristos
1286*1424dfb3Schristos2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
1287*1424dfb3Schristos
1288*1424dfb3Schristos	* emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1289*1424dfb3Schristos	* emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1290*1424dfb3Schristos	* emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1291*1424dfb3Schristos	* emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1292*1424dfb3Schristos	* emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1293*1424dfb3Schristos
1294*1424dfb3Schristos2004-02-05  Nick Clifton  <nickc@redhat.com>
1295*1424dfb3Schristos
1296*1424dfb3Schristos	* emultempl/pe.em (_after_open): Fix typo in previous delta.
1297*1424dfb3Schristos
1298*1424dfb3Schristos2004-02-04  Danny Smith  <dannysmith@users.sourceforge.net>
1299*1424dfb3Schristos
1300*1424dfb3Schristos	* emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1301*1424dfb3Schristos
1302*1424dfb3Schristos2004-01-28  Alan Modra  <amodra@bigpond.net.au>
1303*1424dfb3Schristos
1304*1424dfb3Schristos	* genscripts.sh: Fix typo.
1305*1424dfb3Schristos
1306*1424dfb3Schristos	* genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1307*1424dfb3Schristos
1308*1424dfb3Schristos2004-01-24  Jakub Jelinek  <jakub@redhat.com>
1309*1424dfb3Schristos
1310*1424dfb3Schristos	* emulparams/elf64_ia64.sh: Put .rela.opd into
1311*1424dfb3Schristos	OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1312*1424dfb3Schristos
1313*1424dfb3Schristos2004-01-20  Danny Smith  <dannysmith@users.sourceforge.net>
1314*1424dfb3Schristos
1315*1424dfb3Schristos	* pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1316*1424dfb3Schristos	* ld.texinfo (--omagic): Note that writable text section
1317*1424dfb3Schristos	does not conform to published PE-COFF specs.
1318*1424dfb3Schristos	(--enable-auto-import): Likewise.
1319*1424dfb3Schristos
1320*1424dfb3Schristos2004-01-15  Alan Modra  <amodra@bigpond.net.au>
1321*1424dfb3Schristos
1322*1424dfb3Schristos	* emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1323*1424dfb3Schristos
1324*1424dfb3Schristos2004-01-13  Nick Clifton  <nickc@redhat.com>
1325*1424dfb3Schristos
1326*1424dfb3Schristos	* ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1327*1424dfb3Schristos	which if true will prevent the LMA region being used as a
1328*1424dfb3Schristos	replacement for a default VMA region.
1329*1424dfb3Schristos	(lang_leave_output_section_statement): Pass extra parameter.
1330*1424dfb3Schristos	(lang_leave_overlay): Likewise.
1331*1424dfb3Schristos	* ld.texinfo (Output Section LMA): Document that the LMA
1332*1424dfb3Schristos	region can be set to the VMA region if no VMA has been set.
1333*1424dfb3Schristos	* ldlang.h (struct lang_output_section_phdr_list): Create a
1334*1424dfb3Schristos	typedef for this type.  Minor formatting fixes.
1335*1424dfb3Schristos
1336*1424dfb3Schristos2004-01-13  Nick Clifton  <nickc@redhat.com>
1337*1424dfb3Schristos
1338*1424dfb3Schristos	* ldlang.c (lang_size_sections_1): If dot is advanced, then
1339*1424dfb3Schristos	assume that the section should be allocated.
1340*1424dfb3Schristos
1341*1424dfb3Schristos2004-01-13  Alan Modra  <amodra@bigpond.net.au>
1342*1424dfb3Schristos
1343*1424dfb3Schristos	* ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1344*1424dfb3Schristos	sections.  Do ignore SEC_NEVER_LOAD sections.
1345*1424dfb3Schristos	(lang_size_sections_1): Remove test made redundant with the above.
1346*1424dfb3Schristos
1347*1424dfb3Schristos2004-01-09  Alan Modra  <amodra@bigpond.net.au>
1348*1424dfb3Schristos
1349*1424dfb3Schristos	* emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1350*1424dfb3Schristos	program_header_size.
1351*1424dfb3Schristos
1352*1424dfb3Schristos2004-01-06  Alexandre Oliva  <aoliva@redhat.com>
1353*1424dfb3Schristos
1354*1424dfb3Schristos	2003-11-28  Alexandre Oliva  <aoliva@redhat.com>
1355*1424dfb3Schristos	* emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1356*1424dfb3Schristos	2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
1357*1424dfb3Schristos	* emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1358*1424dfb3Schristos	(MAXPAGESIZE): Set to 64Kb.
1359*1424dfb3Schristos	(OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1360*1424dfb3Schristos	__ROFIXUP_END__.  Don't map .rofixup.got any more.
1361*1424dfb3Schristos	* emulparams/elf32frv.sh (NOP): Set.
1362*1424dfb3Schristos	2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
1363*1424dfb3Schristos	* configure.tgt: Add frv-*-*linux*.
1364*1424dfb3Schristos	2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1365*1424dfb3Schristos	* Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1366*1424dfb3Schristos	(eelf32frvfd.c): New.
1367*1424dfb3Schristos	* configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1368*1424dfb3Schristos	* emulparams/elf32frv.sh: Reverted previous two patches.
1369*1424dfb3Schristos	* emulparams/elf32frvfd.sh: New.
1370*1424dfb3Schristos	* Makefile.in: Rebuilt.
1371*1424dfb3Schristos	2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
1372*1424dfb3Schristos	* emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1373*1424dfb3Schristos	.rofixup.got to .rofixup.
1374*1424dfb3Schristos	2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
1375*1424dfb3Schristos	* emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1376*1424dfb3Schristos	(TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1377*1424dfb3Schristos
1378*1424dfb3Schristos2004-01-05  Jakub Jelinek  <jakub@redhat.com>
1379*1424dfb3Schristos
1380*1424dfb3Schristos	* emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1381*1424dfb3Schristos	* emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1382*1424dfb3Schristos
1383*1424dfb3Schristos2004-01-03  Alan Modra  <amodra@bigpond.net.au>
1384*1424dfb3Schristos
1385*1424dfb3Schristos	* ldexp.c (align_n): Make static.
1386*1424dfb3Schristos	* ldexp.h (align_n): Delete declaration.
1387*1424dfb3Schristos	* ldlang.h (lang_enter_output_section_statement): Remove
1388*1424dfb3Schristos	block_value param.
1389*1424dfb3Schristos	* ldlang.c (lang_enter_output_section_statement): Likewise.
1390*1424dfb3Schristos	(TO_ADDR, TO_SIZE): Define.
1391*1424dfb3Schristos	(opb_shift): New var.
1392*1424dfb3Schristos	(init_opb): New function.
1393*1424dfb3Schristos	(print_input_section): Call init_opb and use TO_ADDR.
1394*1424dfb3Schristos	(print_data_statement, print_reloc_statement): Likewise.
1395*1424dfb3Schristos	(print_padding_statement): Likewise.
1396*1424dfb3Schristos	(size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1397*1424dfb3Schristos	(lang_check_section_addresses): Likewise.
1398*1424dfb3Schristos	(lang_size_sections_1): Likewise.
1399*1424dfb3Schristos	(lang_do_assignments_1): Likewise.
1400*1424dfb3Schristos	(lang_set_startof): Likewise.
1401*1424dfb3Schristos	(lang_one_common): Likewise.  Combine power_of_two and opb_shift align.
1402*1424dfb3Schristos	(lang_process): Call init_opb.
1403*1424dfb3Schristos	(lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1404*1424dfb3Schristos	(lang_enter_overlay_section): Adjust
1405*1424dfb3Schristos	lang_enter_output_section_statement call.
1406*1424dfb3Schristos	* ldgram.y: Likewise.
1407*1424dfb3Schristos	* mri.c (mri_draw_tree): Likewise.
1408*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1409*1424dfb3Schristos	* emultempl/mmo.em (mmo_place_orphan): Likewise.
1410*1424dfb3Schristos	* emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1411*1424dfb3Schristos
1412*1424dfb3Schristos	* ldfile.c (ldfile_set_output_arch): Add defarch param.
1413*1424dfb3Schristos	* ldfile.h (ldfile_set_output_arch): Ditto.
1414*1424dfb3Schristos	* emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1415*1424dfb3Schristos	ldfile_set_output_arch.
1416*1424dfb3Schristos	* emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1417*1424dfb3Schristos	* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1418*1424dfb3Schristos	* emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1419*1424dfb3Schristos	* emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1420*1424dfb3Schristos	* emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1421*1424dfb3Schristos	* emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1422*1424dfb3Schristos	* ldgram.y: Adjust ldfile_set_output_arch call.
1423*1424dfb3Schristos	* emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1424*1424dfb3Schristos	* emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1425*1424dfb3Schristos	* emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1426*1424dfb3Schristos	* emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1427*1424dfb3Schristos	* emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1428*1424dfb3Schristos	* emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1429*1424dfb3Schristos	* emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1430*1424dfb3Schristos
1431*1424dfb3Schristos2004-01-02  Bernardo Innocenti  <bernie@develer.com>
1432*1424dfb3Schristos
1433*1424dfb3Schristos	* configure.tgt: Add m68k-uClinux target.
1434*1424dfb3Schristos
1435*1424dfb3SchristosFor older changes see ChangeLog-0203
1436*1424dfb3Schristos
1437*1424dfb3SchristosCopyright (C) 2004 Free Software Foundation, Inc.
1438*1424dfb3Schristos
1439*1424dfb3SchristosCopying and distribution of this file, with or without modification,
1440*1424dfb3Schristosare permitted in any medium without royalty provided the copyright
1441*1424dfb3Schristosnotice and this notice are preserved.
1442*1424dfb3Schristos
1443*1424dfb3SchristosLocal Variables:
1444*1424dfb3Schristosmode: change-log
1445*1424dfb3Schristosleft-margin: 8
1446*1424dfb3Schristosfill-column: 74
1447*1424dfb3Schristosversion-control: never
1448*1424dfb3SchristosEnd:
1449