1*3d8817e4Smiod2005-12-28  Jie Zhang  <jie.zhang@analog.com>
2*3d8817e4Smiod
3*3d8817e4Smiod	* emulparams/bfin.sh: Define DATA_END_SYMBOLS and END_SYMBOLS.
4*3d8817e4Smiod	And add a prefix '_' to ENTRY.
5*3d8817e4Smiod	* scripttempl/elf.sc: Add END_SYMBOLS.
6*3d8817e4Smiod
7*3d8817e4Smiod2005-12-27  H.J. Lu  <hongjiu.lu@intel.com>
8*3d8817e4Smiod
9*3d8817e4Smiod	* emultempl/xtensaelf.em (elf_xtensa_place_orphan): Delete.
10*3d8817e4Smiod	(LDEMUL_PLACE_ORPHAN): Delete.
11*3d8817e4Smiod
12*3d8817e4Smiod2005-12-27  Leif Ekblad  <leif@rdos.net>
13*3d8817e4Smiod
14*3d8817e4Smiod	* configure.tgt: Add support for RDOS targets.
15*3d8817e4Smiod
16*3d8817e4Smiod2005-12-27  Nick Clifton  <nickc@redhat.com>
17*3d8817e4Smiod
18*3d8817e4Smiod	* po/vi.po: New Vietnamese translation.
19*3d8817e4Smiod	* configure.in (ALL_LINGUAS): Add vi.
20*3d8817e4Smiod	* configure: Regenerate.
21*3d8817e4Smiod
22*3d8817e4Smiod2005-12-27  Alan Modra  <amodra@bigpond.net.au>
23*3d8817e4Smiod
24*3d8817e4Smiod	* Makefile.am: Run "make dep-am".
25*3d8817e4Smiod	* Makefile.in: Regenerate.
26*3d8817e4Smiod
27*3d8817e4Smiod2005-12-24  Alan Modra  <amodra@bigpond.net.au>
28*3d8817e4Smiod
29*3d8817e4Smiod	* ldlang.h (lang_output_section_statement_type): Add prev.
30*3d8817e4Smiod	* ldlang.c (output_statement_newfunc): Set os.prev.
31*3d8817e4Smiod	(lang_insert_orphan): Likewise.
32*3d8817e4Smiod	(output_prev_sec_find): Use os.prev.
33*3d8817e4Smiod
34*3d8817e4Smiod2005-12-22  Santosh Raktawan <santoshr2@kpitcummins.com>
35*3d8817e4Smiod
36*3d8817e4Smiod	* ld/emulparms/h8300helf.sh (TINY_READONLY_SECTION,
37*3d8817e4Smiod	TINY_DATA_SECTION, TINY_BSS_SECTION): Define.
38*3d8817e4Smiod	* ld/emulparms/h8300self.sh: Likewise.
39*3d8817e4Smiod	* ld/emulparms/h8300sxelf.sh: Likewise.
40*3d8817e4Smiod	* ld/scripttempl/elf.sc: Add TINY_READONLY_SECTION,
41*3d8817e4Smiod	TINY_DATA_SECTION, TINY_BSS_SECTION.
42*3d8817e4Smiod
43*3d8817e4Smiod2005-12-19  H.J. Lu  <hongjiu.lu@intel.com>
44*3d8817e4Smiod
45*3d8817e4Smiod	PR ld/2065
46*3d8817e4Smiod	* ldlang.c (output_statement_newfunc): Revert the change made on
47*3d8817e4Smiod	2005-11-16.
48*3d8817e4Smiod	(output_prev_sec_find): Likewise.
49*3d8817e4Smiod	* ldlang.h (lang_statement_list_type): Likewise.
50*3d8817e4Smiod
51*3d8817e4Smiod2005-12-16  Nathan Sidwell  <nathan@codesourcery.com>
52*3d8817e4Smiod
53*3d8817e4Smiod	Second part of ms1 to mt renaming.
54*3d8817e4Smiod	* emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
55*3d8817e4Smiod
56*3d8817e4Smiod2005-12-14  Jakub Jelinek  <jakub@redhat.com>
57*3d8817e4Smiod
58*3d8817e4Smiod	* scripttempl/elf.sc: Put .gnu.linkonce.d.rel.ro.* sections into
59*3d8817e4Smiod	.data.rel.ro output section.  Fix a pasto for -z nocombreloc
60*3d8817e4Smiod	.rela.data.rel.ro section content.
61*3d8817e4Smiod
62*3d8817e4Smiod2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
63*3d8817e4Smiod
64*3d8817e4Smiod	* Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
65*3d8817e4Smiod	(eelf32mt.c): Update target name and dependencies.
66*3d8817e4Smiod	* Makefile.in: Rebuilt.
67*3d8817e4Smiod	* configure.tgt: Replace ms1 arch with mt arch.
68*3d8817e4Smiod	* emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
69*3d8817e4Smiod	comment.
70*3d8817e4Smiod
71*3d8817e4Smiod2005-12-11  Bernhard Fischer  <aldot@gcc.gnu.org>
72*3d8817e4Smiod
73*3d8817e4Smiod	* scripttempl/armbpabi.sc: Fix typo in comment for .ctors.
74*3d8817e4Smiod	* scripttempl/elf.sc: Ditto.
75*3d8817e4Smiod	* scripttempl/elf32sh-symbian.sc: Ditto.
76*3d8817e4Smiod	* scripttempl/elf_chaos.sc: Ditto.
77*3d8817e4Smiod	* scripttempl/elfd10v.sc: Ditto.
78*3d8817e4Smiod	* scripttempl/elfd30v.sc: Ditto.
79*3d8817e4Smiod	* scripttempl/elfxtensa.sc: Ditto.
80*3d8817e4Smiod	* scripttempl/iq2000.sc: Ditto.
81*3d8817e4Smiod	* scripttempl/xstormy16.sc: Ditto.
82*3d8817e4Smiod
83*3d8817e4Smiod2005-12-08  Alan Modra  <amodra@bigpond.net.au>
84*3d8817e4Smiod
85*3d8817e4Smiod	* emultempl/ppc32elf.em (emit_stub_syms): New var.
86*3d8817e4Smiod	(ppc_after_open): Pass it to ppc_elf_select_plt_layout.
87*3d8817e4Smiod	(PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
88*3d8817e4Smiod	(PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
89*3d8817e4Smiod	(PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
90*3d8817e4Smiod	(PARSE_AND_LIST_OPTIONS): Handle it.
91*3d8817e4Smiod
92*3d8817e4Smiod2005-12-08  Alan Modra  <amodra@bigpond.net.au>
93*3d8817e4Smiod
94*3d8817e4Smiod	* pe-dll.c (build_filler_bfd): Conform error message to standard.
95*3d8817e4Smiod	(pe_dll_generate_implib): Use %E in error message.
96*3d8817e4Smiod	(add_bfd_to_link): Likewise.
97*3d8817e4Smiod	(pe_implied_import_dll): Likewise.
98*3d8817e4Smiod
99*3d8817e4Smiod2005-12-07  Thiemo Seufer  <ths@networkno.de>
100*3d8817e4Smiod	    H.J. Lu  <hongjiu.lu@intel.com>
101*3d8817e4Smiod
102*3d8817e4Smiod	PR ld/1932
103*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
104*3d8817e4Smiod	Adjust bfd_elf_record_link_assignment call.
105*3d8817e4Smiod
106*3d8817e4Smiod	* ldexp.c (exp_fold_tree_1): Remove call to bfd_hide_symbol.
107*3d8817e4Smiod
108*3d8817e4Smiod2005-11-25  Jan Beulich  <jbeulich@novell.com>
109*3d8817e4Smiod
110*3d8817e4Smiod	* Makefile.am: Make configdoc.texi writeable before trying
111*3d8817e4Smiod	to write to it.
112*3d8817e4Smiod	* Makefile.in: Refresh.
113*3d8817e4Smiod
114*3d8817e4Smiod2005-11-24  Alan Modra  <amodra@bigpond.net.au>
115*3d8817e4Smiod
116*3d8817e4Smiod	* ldlang.c (lang_output_section_find_by_flags): Add match_type param.
117*3d8817e4Smiod	Run two passes, first using match_type, second without.
118*3d8817e4Smiod	* ldlang.h (lang_match_sec_type_func): New typedef.
119*3d8817e4Smiod	(lang_output_section_find_by_flags): Update prototype.
120*3d8817e4Smiod	bfd_match_sections_by_type and lang_output_section_find_by_flags.
121*3d8817e4Smiod	* emultempl/pe.em (place_orphan): Likewise.
122*3d8817e4Smiod
123*3d8817e4Smiod2005-11-24  Alan Modra  <amodra@bigpond.net.au>
124*3d8817e4Smiod
125*3d8817e4Smiod	* ldlang.c (lang_insert_orphan): Skip first assignment to dot
126*3d8817e4Smiod	in script when looking for place to insert orphan statements.
127*3d8817e4Smiod
128*3d8817e4Smiod2005-11-18  Alan Modra  <amodra@bigpond.net.au>
129*3d8817e4Smiod
130*3d8817e4Smiod	* emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
131*3d8817e4Smiod	(.got, .toc1, .opd): Likewise.
132*3d8817e4Smiod
133*3d8817e4Smiod2005-11-18  Alan Modra  <amodra@bigpond.net.au>
134*3d8817e4Smiod
135*3d8817e4Smiod	* ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
136*3d8817e4Smiod	changes to section alignment.
137*3d8817e4Smiod	* ldmisc.c (vfinfo): Handle %ld and %lu.
138*3d8817e4Smiod
139*3d8817e4Smiod2005-11-16  Mark Mitchell  <mark@codesourcery.com>
140*3d8817e4Smiod
141*3d8817e4Smiod	* Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
142*3d8817e4Smiod	* Makefile.in: Regenerated.
143*3d8817e4Smiod	* ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
144*3d8817e4Smiod	Add @file documentation.
145*3d8817e4Smiod
146*3d8817e4Smiod2005-11-17  Alan Modra  <amodra@bigpond.net.au>
147*3d8817e4Smiod
148*3d8817e4Smiod	* ldlang.h (lang_input_section_type): Remove "ifile" field.
149*3d8817e4Smiod	(lang_insert_orphan, lang_add_section): Update prototypes.
150*3d8817e4Smiod	* ldlang.c (lang_insert_orphan): Remove "file" param.
151*3d8817e4Smiod	(lang_add_section): Likewise.  Update all callers.
152*3d8817e4Smiod	(wild_sort): Get an input section's bfd via "section->owner".
153*3d8817e4Smiod	(size_input_section): Access just_syms_flag via bfd usrdata.
154*3d8817e4Smiod	(lang_place_orphans): Update ldemul_place_orphan call.
155*3d8817e4Smiod	* ldemul.h (ldemul_place_orphan): Remove input_statement param.
156*3d8817e4Smiod	(struct ld_emulation_xfer_struct <place_orphan>): Likewise.
157*3d8817e4Smiod	* ldemul.c (ldemul_place_orphan): Likewise.
158*3d8817e4Smiod	* ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
159*3d8817e4Smiod	* emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
160*3d8817e4Smiod	* emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
161*3d8817e4Smiod	(sort_sections): Likewise.
162*3d8817e4Smiod	(place_orphan): Remove "file" param.  Adjust lang_add_section call.
163*3d8817e4Smiod	* emultempl/elf32.em (place_orphan): Remove "file" param.  Adjust
164*3d8817e4Smiod	lang_add_section and lang_insert_orphan calls.
165*3d8817e4Smiod	* emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
166*3d8817e4Smiod	lang_add_section call.
167*3d8817e4Smiod	(build_section_lists): Access just_syms_flag via bfd usrdata.
168*3d8817e4Smiod	* emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
169*3d8817e4Smiod	lang_add_section call.
170*3d8817e4Smiod	* emultempl/mmo.em (mmo_place_orphan): Remove "file" param.  Adjust
171*3d8817e4Smiod	lang_add_section and lang_insert_orphan calls.
172*3d8817e4Smiod	* emultempl/pe.em (place_orphan): Likewise.  Access bfd via section
173*3d8817e4Smiod	owner.
174*3d8817e4Smiod	* emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
175*3d8817e4Smiod	lang_add_section call.
176*3d8817e4Smiod	(build_toc_list): Access just_syms_flag via bfd usrdata.
177*3d8817e4Smiod	(build_section_lists): Likewise.
178*3d8817e4Smiod	* emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
179*3d8817e4Smiod	param.  Adjust place_orphan call.
180*3d8817e4Smiod	(ld_build_required_section_dependence): Access bfd via section owner.
181*3d8817e4Smiod
182*3d8817e4Smiod2005-11-16  Alan Modra  <amodra@bigpond.net.au>
183*3d8817e4Smiod
184*3d8817e4Smiod	* ldlang.h (lang_output_section_statement_type): Add prev.
185*3d8817e4Smiod	* ldlang.c (new_afile): Always init header.type.
186*3d8817e4Smiod	(output_statement_newfunc): Set os.prev.
187*3d8817e4Smiod	(output_prev_sec_find): Use os.prev.
188*3d8817e4Smiod	(lang_enter_output_section_statement): Formatting.
189*3d8817e4Smiod	(lang_final, lang_add_target, lang_add_fill): Likewise.
190*3d8817e4Smiod	(lang_add_data, lang_add_reloc): Likewise.
191*3d8817e4Smiod	(lang_add_attribute): Only alloc the header.
192*3d8817e4Smiod
193*3d8817e4Smiod2005-11-16  Alan Modra  <amodra@bigpond.net.au>
194*3d8817e4Smiod
195*3d8817e4Smiod	* ld.texinfo (Forced Output Alignment): Specify that this is an
196*3d8817e4Smiod	alignment increase, not an override.
197*3d8817e4Smiod	* ldlang.c (init_os): Set output section alignment here..
198*3d8817e4Smiod	(lang_add_section): ..rather than here.
199*3d8817e4Smiod	(lang_size_sections_1): Consolidate alignment code.  Warn if section
200*3d8817e4Smiod	alignment affects start address when explicit address given.
201*3d8817e4Smiod
202*3d8817e4Smiod2005-11-07  Steve Ellcey  <sje@cup.hp.com>
203*3d8817e4Smiod
204*3d8817e4Smiod	* configure: Regenerate after modifying bfd/warning.m4.
205*3d8817e4Smiod
206*3d8817e4Smiod2005-11-07  Olaf Hering  <olh@suse.de>
207*3d8817e4Smiod
208*3d8817e4Smiod	* ldmain.c (main): Add \n to error message.
209*3d8817e4Smiod
210*3d8817e4Smiod2005-11-04  Alan Modra  <amodra@bigpond.net.au>
211*3d8817e4Smiod
212*3d8817e4Smiod	* ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
213*3d8817e4Smiod	(output_statement_newfunc): Rewrite.
214*3d8817e4Smiod	(lang_output_section_find_1): Merge into..
215*3d8817e4Smiod	(lang_output_section_find): ..here.
216*3d8817e4Smiod	(lang_output_section_statement_lookup_1): Rewrite to handle
217*3d8817e4Smiod	multiple sections with the same name.
218*3d8817e4Smiod	(output_statement_table_init): Commonise error message.
219*3d8817e4Smiod	(lang_init, open_output): Likewise.
220*3d8817e4Smiod
221*3d8817e4Smiod2005-11-03  Paul Brook  <paul@codesourcery.com>
222*3d8817e4Smiod
223*3d8817e4Smiod	* scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
224*3d8817e4Smiod	* scripttempl/armbpabi.sc: Make init/fini array consistent with
225*3d8817e4Smiod	elf.sc.
226*3d8817e4Smiod	* scripttempl/elf32sh-symbian.sc: Ditto.
227*3d8817e4Smiod	* scripttempl/elfxtensa.sc: Ditto.
228*3d8817e4Smiod
229*3d8817e4Smiod2005-11-03  Alan Modra  <amodra@bigpond.net.au>
230*3d8817e4Smiod
231*3d8817e4Smiod	* ldlang.h (lang_output_section_statement_type): Rearrange.  Remove
232*3d8817e4Smiod	memspec.  Make "processed" a bitfield.
233*3d8817e4Smiod	(lang_data_statement_type, lang_reloc_statement_type): Rename
234*3d8817e4Smiod	output_vma to output_offset.
235*3d8817e4Smiod	* ldlang.c (lang_output_section_statement_lookup_1): Init
236*3d8817e4Smiod	all_input_readonly.  Don't init memspec.
237*3d8817e4Smiod	(init_os): Remove incorrect comment.
238*3d8817e4Smiod	(print_data_statement, print_reloc_statement): Adjust for
239*3d8817e4Smiod	lang_data_statement_type and lang_reloc_statement_type change.
240*3d8817e4Smiod	(lang_size_sections_1, lang_add_reloc): Likewise.
241*3d8817e4Smiod	* ldwrite.c (build_link_order): Likewise.
242*3d8817e4Smiod
243*3d8817e4Smiod2005-10-30  Mark Mitchell  <mark@codesourcery.com>
244*3d8817e4Smiod
245*3d8817e4Smiod	* lexsup.c (help): Document "@FILE".
246*3d8817e4Smiod
247*3d8817e4Smiod2005-10-30  H.J. Lu  <hongjiu.lu@intel.com>
248*3d8817e4Smiod
249*3d8817e4Smiod	* Makefile.am: Run "make dep-am".
250*3d8817e4Smiod	* Makefile.in: Regenerated.
251*3d8817e4Smiod
252*3d8817e4Smiod	* dep-in.sed: Replace " ./" with " ".
253*3d8817e4Smiod
254*3d8817e4Smiod2005-10-25  Arnold Metselaar  <arnold.metselaar@planet.nl>
255*3d8817e4Smiod
256*3d8817e4Smiod	* Makefile.am: Add support for Z80
257*3d8817e4Smiod	* Makefile.in: Regenerated
258*3d8817e4Smiod	* configure.tgt: Add z80-*-coff
259*3d8817e4Smiod	* emulparams/z80.sh: New file.
260*3d8817e4Smiod	* emultempl/z80.em: New file.
261*3d8817e4Smiod	* scripttempl/z80.sc New file.
262*3d8817e4Smiod	* NEWS: Mention this new support.
263*3d8817e4Smiod
264*3d8817e4Smiod2005-10-25  Alan Modra  <amodra@bigpond.net.au>
265*3d8817e4Smiod
266*3d8817e4Smiod	* po/ld.pot: Regenerate.
267*3d8817e4Smiod
268*3d8817e4Smiod2005-10-25  Chris Metcalf <cdmetcalf@comcast.net>
269*3d8817e4Smiod
270*3d8817e4Smiod	* ld.texinfo (--reduce-memory-overheads): Fix typo.
271*3d8817e4Smiod
272*3d8817e4Smiod2005-10-23  H.J. Lu  <hongjiu.lu@intel.com>
273*3d8817e4Smiod
274*3d8817e4Smiod	PR ld/1487
275*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
276*3d8817e4Smiod	bfd_match_sections_by_type to match section types.
277*3d8817e4Smiod
278*3d8817e4Smiod	* ldlang.c (init_os): Take the input section. Call
279*3d8817e4Smiod	bfd_init_private_section_data if the input section isn't NULL.
280*3d8817e4Smiod	(exp_init_os): Pass NULL to init_os.
281*3d8817e4Smiod	(map_input_to_output_sections): Likewise.
282*3d8817e4Smiod	(lang_add_section): Pass the input section to init_os.
283*3d8817e4Smiod
284*3d8817e4Smiod2005-10-19  Paul Brook  <paul@codesourcery.com>
285*3d8817e4Smiod
286*3d8817e4Smiod	* emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
287*3d8817e4Smiod
288*3d8817e4Smiod2005-10-15  H.J. Lu  <hongjiu.lu@intel.com>
289*3d8817e4Smiod
290*3d8817e4Smiod	PR ld/1467
291*3d8817e4Smiod	* emultempl/elf32.em: Include "elf-bfd.h".
292*3d8817e4Smiod	(gld${EMULATION_NAME}_place_orphan): Check section type and
293*3d8817e4Smiod	don't use section name for ELF input sections.
294*3d8817e4Smiod
295*3d8817e4Smiod	* ld.texinfo: Document orphan section processing.
296*3d8817e4Smiod
297*3d8817e4Smiod	* ldlang.c (lang_output_section_find_by_flags): Match section
298*3d8817e4Smiod	types by calling bfd_match_sections_by_type.
299*3d8817e4Smiod
300*3d8817e4Smiod2005-10-13  Mark Mitchell  <mark@codesourcery.com>
301*3d8817e4Smiod
302*3d8817e4Smiod	* ld.texino: Describe double-quoted string syntax for version
303*3d8817e4Smiod	nodes.
304*3d8817e4Smiod	* ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
305*3d8817e4Smiod	* ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
306*3d8817e4Smiod	Adjust calls to lang_new_vers_pattern to pass literal_p argument.
307*3d8817e4Smiod	* ldlang.c (lang_vers_match): Fix indentation.  Do not glob-match
308*3d8817e4Smiod	version nodes without a pattern.
309*3d8817e4Smiod	(lang_new_vers_pattern): Add literal_p parameter.
310*3d8817e4Smiod	(lang_do_version_exports_section): Pass it.
311*3d8817e4Smiod
312*3d8817e4Smiod2005-10-12  Mark Mitchell  <mark@codesourcery.com>
313*3d8817e4Smiod
314*3d8817e4Smiod	* NEWS: Mention @file.
315*3d8817e4Smiod
316*3d8817e4Smiod2005-10-05  H.J. Lu  <hongjiu.lu@intel.com>
317*3d8817e4Smiod
318*3d8817e4Smiod	PR ld/1396
319*3d8817e4Smiod	* ldcref.c (check_refs): Accept bfd_boolean.
320*3d8817e4Smiod	(check_local_sym_xref): Pass FALSE to check_refs.
321*3d8817e4Smiod	(check_nocrossref): Pass TRUE to check_refs.
322*3d8817e4Smiod	(check_refs_info): Add bfd_boolean.
323*3d8817e4Smiod	(check_refs): Add bfd_boolean to check_refs_info.
324*3d8817e4Smiod	(check_reloc_refs): Match relocations with proper symbols.
325*3d8817e4Smiod
326*3d8817e4Smiod	* ldmisc.c (vfinfo): Don't add extra ":\n".
327*3d8817e4Smiod
328*3d8817e4Smiod2005-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
329*3d8817e4Smiod
330*3d8817e4Smiod	* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):	Set
331*3d8817e4Smiod	default entry symbol to ENTRY here.
332*3d8817e4Smiod	* scripttempl/pe.sc: Not here.
333*3d8817e4Smiod
334*3d8817e4Smiod2005-09-30  James E Wilson  <wilson@specifix.com>
335*3d8817e4Smiod
336*3d8817e4Smiod	* ldlang.c (lang_startup): Add missing ": " to einfo call.
337*3d8817e4Smiod
338*3d8817e4Smiod2005-09-30  H.J. Lu  <hongjiu.lu@intel.com>
339*3d8817e4Smiod
340*3d8817e4Smiod	* Makefile.am: Run "make dep-am".
341*3d8817e4Smiod	* Makefile.in: Regenerated.
342*3d8817e4Smiod	* aclocal.m4: Likewise.
343*3d8817e4Smiod
344*3d8817e4Smiod2005-09-30  H.J. Lu  <hongjiu.lu@intel.com>
345*3d8817e4Smiod
346*3d8817e4Smiod	* ldlang.c (output_statement_hash_entry): New type.
347*3d8817e4Smiod	(output_statement_table): New variable for hash table.
348*3d8817e4Smiod	(output_statement_newfunc): New function.
349*3d8817e4Smiod	(output_statement_table_init): Likewise.
350*3d8817e4Smiod	(output_statement_table_free): Likewise.
351*3d8817e4Smiod	(lang_init): Call output_statement_table_init.
352*3d8817e4Smiod	(lang_finish): Renamed to ...
353*3d8817e4Smiod	(lang_end): This.
354*3d8817e4Smiod	(lang_process): Updated.
355*3d8817e4Smiod	(lang_finish): New function.
356*3d8817e4Smiod	(lang_output_section_find_1): Use hash table.
357*3d8817e4Smiod	(lang_output_section_statement_lookup_1): Likewise.
358*3d8817e4Smiod
359*3d8817e4Smiod	* ldlang.h (lang_finish): New.
360*3d8817e4Smiod
361*3d8817e4Smiod	* ldmain.c (main): Call lang_finish.
362*3d8817e4Smiod
363*3d8817e4Smiod2005-09-30  Mark Mitchell  <mark@codesourcery.com>
364*3d8817e4Smiod
365*3d8817e4Smiod	* ldmain.c (main): Use expandargv.
366*3d8817e4Smiod
367*3d8817e4Smiod2005-09-30  Catherine Moore  <clm@cm00re.com>
368*3d8817e4Smiod
369*3d8817e4Smiod	* Makefile.am: Bfin support.
370*3d8817e4Smiod	* Makefile.in: Regenerated.
371*3d8817e4Smiod	* aclocal.m4: Regenerated.
372*3d8817e4Smiod	* configure.tgt: Bfin support.
373*3d8817e4Smiod	* emulparams/bfin.sh: New file.
374*3d8817e4Smiod	* emultempl/bfin.em: New file.
375*3d8817e4Smiod
376*3d8817e4Smiod2005-09-30  Matthias Kurz  <mk@baerlap.north.de>
377*3d8817e4Smiod
378*3d8817e4Smiod	* ld.h: Prevent the inclusion of <libintl.h> from the Solaris
379*3d8817e4Smiod	version of <locale.h> when ENABLE_NLS is not defined.
380*3d8817e4Smiod
381*3d8817e4Smiod2005-09-27  H.J. Lu  <hongjiu.lu@intel.com>
382*3d8817e4Smiod
383*3d8817e4Smiod	* ld.texinfo (ALIGN): Document it as forcing output section
384*3d8817e4Smiod	alignment.
385*3d8817e4Smiod
386*3d8817e4Smiod	* ldgram.y (ALIGN): Support it for forcing output section
387*3d8817e4Smiod	alignment.
388*3d8817e4Smiod
389*3d8817e4Smiod2005-09-20  Alan Modra  <amodra@bigpond.net.au>
390*3d8817e4Smiod
391*3d8817e4Smiod	* ldlang.h (lang_output_section_statement_struct): Change type of
392*3d8817e4Smiod	"processed" to bfd_boolean.
393*3d8817e4Smiod	* ldexp.c (fold_name): Update references to os->processed.
394*3d8817e4Smiod	* ldlang.c (lang_output_section_statement_lookup_1): Likewise.
395*3d8817e4Smiod	(lang_size_sections_1): Likewise.
396*3d8817e4Smiod	(lang_reset_memory_regions): Likewise.
397*3d8817e4Smiod
398*3d8817e4Smiod	PR ld/1353
399*3d8817e4Smiod	* ldlang.c (lang_size_sections_1): Process addr_tree earlier,
400*3d8817e4Smiod	so that unused output section statements affect dot.
401*3d8817e4Smiod
402*3d8817e4Smiod2005-09-08  Jakub Jelinek  <jakub@redhat.com>
403*3d8817e4Smiod
404*3d8817e4Smiod	* ld.texinfo: Document -z {no,}execstack, -z {no,}relro
405*3d8817e4Smiod	and --eh-frame-hdr options.
406*3d8817e4Smiod
407*3d8817e4Smiod2005-09-07  Alan Modra  <amodra@bigpond.net.au>
408*3d8817e4Smiod
409*3d8817e4Smiod	* ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
410*3d8817e4Smiod	(exp_fold_tree_1): Print assert message only in final stage of
411*3d8817e4Smiod	linking.  Trigger assertion failure if expression cannot be
412*3d8817e4Smiod	evaluated.
413*3d8817e4Smiod
414*3d8817e4Smiod2005-09-06  H.J. Lu  <hongjiu.lu@intel.com>
415*3d8817e4Smiod
416*3d8817e4Smiod	PR ld/1263
417*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
418*3d8817e4Smiod	--just-symbols on DSO.
419*3d8817e4Smiod
420*3d8817e4Smiod2005-08-18  Alan Modra  <amodra@bigpond.net.au>
421*3d8817e4Smiod
422*3d8817e4Smiod	* scripttempl/elf.sc: Remove commented out defines.
423*3d8817e4Smiod
424*3d8817e4Smiod2005-08-18  Alan Modra  <amodra@bigpond.net.au>
425*3d8817e4Smiod
426*3d8817e4Smiod	* emulparams/a29k.sh: Delete.
427*3d8817e4Smiod	* emulparams/ebmon29k.sh: Delete.
428*3d8817e4Smiod	* emulparams/sa29200.sh: Delete.
429*3d8817e4Smiod	* Makefile.am: Remove a29k support.
430*3d8817e4Smiod	* configure.tgt: Likewise.
431*3d8817e4Smiod	* ld.texinfo: Likewise.
432*3d8817e4Smiod	* Makefile.in: Regenerate.
433*3d8817e4Smiod
434*3d8817e4Smiod2005-08-17  Jakub Jelinek  <jakub@redhat.com>
435*3d8817e4Smiod
436*3d8817e4Smiod	* ldgram.y (vers_defns): Don't lose pattern list before
437*3d8817e4Smiod	extern NAME {}.  Handle global, local and extern symbol names.
438*3d8817e4Smiod
439*3d8817e4Smiod2005-08-17  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
440*3d8817e4Smiod
441*3d8817e4Smiod	* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
442*3d8817e4Smiod	Don't increment rel_count of .cranges here.  Set rawsize of .cranges.
443*3d8817e4Smiod
444*3d8817e4Smiod2005-08-10  Nick Clifton  <nickc@redhat.com>
445*3d8817e4Smiod
446*3d8817e4Smiod	* pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
447*3d8817e4Smiod	before lang_size_sections.
448*3d8817e4Smiod
449*3d8817e4Smiod2005-08-09  Alan Modra  <amodra@bigpond.net.au>
450*3d8817e4Smiod
451*3d8817e4Smiod	* emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
452*3d8817e4Smiod
453*3d8817e4Smiod2005-08-08  Eric Doenges <Eric.Doenges@betty-tv.com>
454*3d8817e4Smiod
455*3d8817e4Smiod	* Makefile.am (ALL_EMULATIONS): Add msp430x21xx	variants.
456*3d8817e4Smiod	Add rules to build these emulations.
457*3d8817e4Smiod	* Makefile.in: Regenerate.
458*3d8817e4Smiod	* configure.tgt (msp430): Add the new variants to the
459*3d8817e4Smiod	targ_extra_emuls list.
460*3d8817e4Smiod	* emulparams/msp430all.sh: Add entries for the msp430x21xx
461*3d8817e4Smiod	variants.
462*3d8817e4Smiod
463*3d8817e4Smiod2005-08-05  H.J. Lu  <hongjiu.lu@intel.com>
464*3d8817e4Smiod
465*3d8817e4Smiod	* ld.texinfo: Document PROVIDE_HIDDEN.
466*3d8817e4Smiod
467*3d8817e4Smiod	* ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
468*3d8817e4Smiod	(exp_provide): Add and set hidden.
469*3d8817e4Smiod
470*3d8817e4Smiod	* ldexp.h (etree_type): Add hidden to assign.
471*3d8817e4Smiod
472*3d8817e4Smiod	* ldgram.y (PROVIDE_HIDDEN): New.
473*3d8817e4Smiod	* ldlex.l (PROVIDE_HIDDEN): Likewise.
474*3d8817e4Smiod
475*3d8817e4Smiod	* scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
476*3d8817e4Smiod	symbols.
477*3d8817e4Smiod
478*3d8817e4Smiod2005-08-05  Alan Modra  <amodra@bigpond.net.au>
479*3d8817e4Smiod
480*3d8817e4Smiod	* emulparams/elf_x86_64.sh: Revert last change.
481*3d8817e4Smiod	* scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
482*3d8817e4Smiod
483*3d8817e4Smiod2005-08-05  Alan Modra  <amodra@bigpond.net.au>
484*3d8817e4Smiod
485*3d8817e4Smiod	* emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
486*3d8817e4Smiod	OTHER_END_SYMBOLS.
487*3d8817e4Smiod	* emulparams/armelf_linux.sh: Likewise.
488*3d8817e4Smiod	* emulparams/armnto.sh: Likewise.
489*3d8817e4Smiod	* emulparams/criself.sh: Likewise.
490*3d8817e4Smiod	* emulparams/elf32mcore.sh: Likewise.
491*3d8817e4Smiod	* emulparams/criself.sh (OTHER_SYMBOLS): Define.
492*3d8817e4Smiod	* emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
493*3d8817e4Smiod	(OTHER_END_SYMBOLS): Don't define.
494*3d8817e4Smiod	* emulparams/elf32fr30.sh: Likewise.
495*3d8817e4Smiod	* emulparams/elf64mmix.sh: Likewise.
496*3d8817e4Smiod	* emulparams/hppa64linux.sh: Likewise.
497*3d8817e4Smiod	* emulparams/m32relf.sh: Likewise.
498*3d8817e4Smiod	* emulparams/vxworks.sh: Likewise.
499*3d8817e4Smiod	* scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
500*3d8817e4Smiod	(OTHER_BSS_END_SYMBOLS): Add.
501*3d8817e4Smiod	(OTHER_END_SYMBOLS): Move before current end sym definitions.
502*3d8817e4Smiod	(OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
503*3d8817e4Smiod	* scripttempl/elf.sc: Likewise.
504*3d8817e4Smiod	* scripttempl/elf32sh-symbian.sc: Likewise.
505*3d8817e4Smiod	* scripttempl/elf_chaos.sc: Likewise.
506*3d8817e4Smiod	* scripttempl/elfxtensa.sc: Likewise.
507*3d8817e4Smiod	* scripttempl/iq2000.sc: Likewise.
508*3d8817e4Smiod	* scripttempl/xstormy16.sc: Likewise.
509*3d8817e4Smiod
510*3d8817e4Smiod	* scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
511*3d8817e4Smiod	(REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
512*3d8817e4Smiod	(REL_LARGE, LARGE_SECTIONS): Add.
513*3d8817e4Smiod	* emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
514*3d8817e4Smiod	(REL_LARGE): Define.
515*3d8817e4Smiod	* emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
516*3d8817e4Smiod	(LARGE_SECTIONS): Define.
517*3d8817e4Smiod	* emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
518*3d8817e4Smiod	(LARGE_SECTIONS): Define.
519*3d8817e4Smiod
520*3d8817e4Smiod2005-08-04  Alan Modra  <amodra@bigpond.net.au>
521*3d8817e4Smiod
522*3d8817e4Smiod	* ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
523*3d8817e4Smiod	* ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
524*3d8817e4Smiod	(struct ld_emulation_xfer_struct): Remove do_assignments field.
525*3d8817e4Smiod	* ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
526*3d8817e4Smiod	* emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
527*3d8817e4Smiod	(SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
528*3d8817e4Smiod	* emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
529*3d8817e4Smiod	* emultempl/armcoff.em: Likewise.
530*3d8817e4Smiod	* emultempl/beos.em: Likewise.
531*3d8817e4Smiod	* emultempl/generic.em: Likewise.
532*3d8817e4Smiod	* emultempl/gld960.em: Likewise.
533*3d8817e4Smiod	* emultempl/gld960c.em: Likewise.
534*3d8817e4Smiod	* emultempl/linux.em: Likewise.
535*3d8817e4Smiod	* emultempl/lnk960.em: Likewise.
536*3d8817e4Smiod	* emultempl/m68kcoff.em: Likewise.
537*3d8817e4Smiod	* emultempl/pe.em: Likewise.
538*3d8817e4Smiod	* emultempl/sunos.em: Likewise.
539*3d8817e4Smiod	* emultempl/ticoff.em: Likewise.
540*3d8817e4Smiod	* emultempl/vanilla.em: Likewise.
541*3d8817e4Smiod	* emultempl/elf32.em: Likewise.
542*3d8817e4Smiod	(gld*_provide_bound_symbols): Delete.
543*3d8817e4Smiod	(gld*_provide_init_fini_syms): Delete.
544*3d8817e4Smiod	(gld*_before_allocation): Don't call ldemul_do_assignments.
545*3d8817e4Smiod	* emultempl/ppc32elf.em (ppc_do_assignments): Delete.
546*3d8817e4Smiod	(LDEMUL_DO_ASSIGNMENTS): Delete.
547*3d8817e4Smiod	* scripttempl/elf.sc: Provide init/fini syms.  Add SBSS_START_SYMBOLS,
548*3d8817e4Smiod	SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
549*3d8817e4Smiod
550*3d8817e4Smiod2005-08-04  Alan Modra  <amodra@bigpond.net.au>
551*3d8817e4Smiod
552*3d8817e4Smiod	* Makefile.am (eelf32m32c.c): Fix dependencies.
553*3d8817e4Smiod	* Makefile.in: Regenerate.
554*3d8817e4Smiod
555*3d8817e4Smiod2005-08-04  Alan Modra  <amodra@bigpond.net.au>
556*3d8817e4Smiod
557*3d8817e4Smiod	* ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
558*3d8817e4Smiod	(finish_default): New function.
559*3d8817e4Smiod	* ldemul.h (finish_default): Declare.
560*3d8817e4Smiod	* emultempl/aix.em (gld*_before_allocation): Call
561*3d8817e4Smiod	before_allocation_default rather than strip_excluded_output_sections.
562*3d8817e4Smiod	(ld_*_emulation): Init finish field to finish_default.
563*3d8817e4Smiod	* emultempl/armcoff.em: Likewise.
564*3d8817e4Smiod	* emultempl/beos.em: Likewise.
565*3d8817e4Smiod	* emultempl/elf32.em: Likewise.
566*3d8817e4Smiod	* emultempl/generic.em: Likewise.
567*3d8817e4Smiod	* emultempl/gld960.em: Likewise.
568*3d8817e4Smiod	* emultempl/gld960c.em: Likewise.
569*3d8817e4Smiod	* emultempl/hppaelf.em: Likewise.
570*3d8817e4Smiod	* emultempl/linux.em: Likewise.
571*3d8817e4Smiod	* emultempl/lnk960.em: Likewise.
572*3d8817e4Smiod	* emultempl/m68kcoff.em: Likewise.
573*3d8817e4Smiod	* emultempl/mmo.em: Likewise.
574*3d8817e4Smiod	* emultempl/pe.em: Likewise.
575*3d8817e4Smiod	* emultempl/ppc64elf.em: Likewise.
576*3d8817e4Smiod	* emultempl/sunos.em: Likewise.
577*3d8817e4Smiod	* emultempl/ticoff.em: Likewise.
578*3d8817e4Smiod	* emultempl/vanilla.em: Likewise.
579*3d8817e4Smiod
580*3d8817e4Smiod2005-08-03  Alan Modra  <amodra@bigpond.net.au>
581*3d8817e4Smiod
582*3d8817e4Smiod	* ldlang.c (exp_init_os): Handle etree_provide.
583*3d8817e4Smiod	* emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
584*3d8817e4Smiod	(OTHER_BSS_END_SYMBOLS): ..this.
585*3d8817e4Smiod	* emulparams/armelf_linux.sh: Likewise.
586*3d8817e4Smiod	* emulparams/armnto.sh: Likewise.
587*3d8817e4Smiod	* emulparams/criself.sh: Likewise.
588*3d8817e4Smiod	* emulparams/crislinux.sh: Likewise.
589*3d8817e4Smiod	* emulparams/elf32frv.sh: Likewise.
590*3d8817e4Smiod	* emulparams/elf32mcore.sh: Likewise.
591*3d8817e4Smiod	* emulparams/elf32ppc.sh: Likewise.
592*3d8817e4Smiod	* emulparams/elf32ppclinux.sh: Likewise.
593*3d8817e4Smiod	* emulparams/hppa64linux.sh: Likewise.
594*3d8817e4Smiod	* scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
595*3d8817e4Smiod	$OTHER_BSS_END_SYMBOLS.
596*3d8817e4Smiod	* scripttempl/elf32sh-symbian.sc: Likewise.
597*3d8817e4Smiod	* scripttempl/elf_chaos.sc: Likewise.
598*3d8817e4Smiod	* scripttempl/iq2000.sc: Likewise.
599*3d8817e4Smiod	* scripttempl/xstormy16.sc: Likewise.
600*3d8817e4Smiod	* scripttempl/elf.sc: Likewise.  Delete __bss_start comment.
601*3d8817e4Smiod	* scripttempl/elfxtensa.sc: Likewise.
602*3d8817e4Smiod
603*3d8817e4Smiod2005-07-29  Nick Clifton  <nickc@redhat.com>
604*3d8817e4Smiod
605*3d8817e4Smiod	* ldmain.c (main): Allow -shared and -static to be used together.
606*3d8817e4Smiod	* ld.texinfo (-static): Mention that it is allowed with -shared.
607*3d8817e4Smiod
608*3d8817e4Smiod2005-07-28  DJ Delorie  <dj@redhat.com>
609*3d8817e4Smiod
610*3d8817e4Smiod	* ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
611*3d8817e4Smiod	unary & address operator, as that breaks GCC's strict aliasing
612*3d8817e4Smiod	rules.
613*3d8817e4Smiod
614*3d8817e4Smiod2005-07-25  Jan Hubicka  <jh@suse.cz>
615*3d8817e4Smiod	    H.J. Lu  <hongjiu.lu@intel.com>
616*3d8817e4Smiod
617*3d8817e4Smiod	* emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
618*3d8817e4Smiod
619*3d8817e4Smiod	* scripttempl/elf.sc: Updated for large section support.
620*3d8817e4Smiod
621*3d8817e4Smiod2005-07-21  Ralf Corsepius  <ralf.corsepius@rtems.org>
622*3d8817e4Smiod
623*3d8817e4Smiod	* configure.tgt: Remove i[3-7]86-*-rtemself*.
624*3d8817e4Smiod	Remove sparc-*-rtemself*.
625*3d8817e4Smiod
626*3d8817e4Smiod2005-07-21  Ben Elliston  <bje@gnu.org>
627*3d8817e4Smiod
628*3d8817e4Smiod	* ldgram.y (ldgram_want_filename): Remove unused static.
629*3d8817e4Smiod
630*3d8817e4Smiod2005-07-20  DJ Delorie  <dj@redhat.com>
631*3d8817e4Smiod
632*3d8817e4Smiod	* emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
633*3d8817e4Smiod	(EXTRA_EM_FILE): New.
634*3d8817e4Smiod
635*3d8817e4Smiod2005-07-19  H.J. Lu  <hongjiu.lu@intel.com>
636*3d8817e4Smiod
637*3d8817e4Smiod	* ldmain.c (main): Reindent.
638*3d8817e4Smiod
639*3d8817e4Smiod2005-07-19  Paul Brook  <paul@codesourcery.com>
640*3d8817e4Smiod
641*3d8817e4Smiod	* configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
642*3d8817e4Smiod	to determine dynamic linker name.
643*3d8817e4Smiod
644*3d8817e4Smiod2005-07-18  Nick Clifton  <nickc@redhat.com>
645*3d8817e4Smiod
646*3d8817e4Smiod	* configure.tgt: Restore alpha ordering to list of arches.
647*3d8817e4Smiod
648*3d8817e4Smiod2005-07-16  Alan Modra  <amodra@bigpond.net.au>
649*3d8817e4Smiod
650*3d8817e4Smiod	* emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
651*3d8817e4Smiod	(gld*_before_allocation): Call ldemul_do_assignments rather than
652*3d8817e4Smiod	gld*_provide_init_fini_syms directly.
653*3d8817e4Smiod	* emultempl/ppc32elf.em (gld*_after_allocation): Delete.
654*3d8817e4Smiod	(ppc_do_assignments): New function.
655*3d8817e4Smiod	(LDEMUL_AFTER_ALLOCATION): Don't define.
656*3d8817e4Smiod	(LDEMUL_DO_ASSIGNMENTS): Define.
657*3d8817e4Smiod
658*3d8817e4Smiod2005-07-16  Alan Modra  <amodra@bigpond.net.au>
659*3d8817e4Smiod
660*3d8817e4Smiod	* Makefile.am: Run "make dep-am".
661*3d8817e4Smiod	(emipsidt.c, emipsidtl.c): Depend on generic.em.
662*3d8817e4Smiod	* Makefile.in: Regenerate.
663*3d8817e4Smiod
664*3d8817e4Smiod2005-07-15  Alan Modra  <amodra@bigpond.net.au>
665*3d8817e4Smiod
666*3d8817e4Smiod	* ldemul.c (ldemul_do_assignments): New function.
667*3d8817e4Smiod	(do_assignments_default): New function.
668*3d8817e4Smiod	* ldemul.h (ldemul_do_assignments): Declare.
669*3d8817e4Smiod	(do_assignments_default): Declare.
670*3d8817e4Smiod	(struct ld_emulation_xfer_struct): Add do_assignments.
671*3d8817e4Smiod	* ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
672*3d8817e4Smiod	* emultempl/aix.em (ld_*_emulation): Init do_assignments field.
673*3d8817e4Smiod	* emultempl/armcoff.em: Likewise.
674*3d8817e4Smiod	* emultempl/beos.em: Likewise.
675*3d8817e4Smiod	* emultempl/generic.em: Likewise.
676*3d8817e4Smiod	* emultempl/gld960.em: Likewise.
677*3d8817e4Smiod	* emultempl/gld960c.em: Likewise.
678*3d8817e4Smiod	* emultempl/linux.em: Likewise.
679*3d8817e4Smiod	* emultempl/lnk960.em: Likewise.
680*3d8817e4Smiod	* emultempl/m68kcoff.em: Likewise.
681*3d8817e4Smiod	* emultempl/pe.em: Likewise.
682*3d8817e4Smiod	* emultempl/sunos.em: Likewise.
683*3d8817e4Smiod	* emultempl/ticoff.em: Likewise.
684*3d8817e4Smiod	* emultempl/vanilla.em: Likewise.
685*3d8817e4Smiod	* emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
686*3d8817e4Smiod	(gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
687*3d8817e4Smiod
688*3d8817e4Smiod2005-07-14  Jim Blandy  <jimb@redhat.com>
689*3d8817e4Smiod
690*3d8817e4Smiod	Add support for the Renesas M32C and M16C.
691*3d8817e4Smiod	* Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
692*3d8817e4Smiod	(eelf32m32c.c): New target.
693*3d8817e4Smiod	* Makefile.in: Regenerated.
694*3d8817e4Smiod	* configure.tgt: Add case for m32c-*-elf.
695*3d8817e4Smiod	* emulparams/elf32m32c.sh: New file.
696*3d8817e4Smiod
697*3d8817e4Smiod2005-07-14  Alan Modra  <amodra@bigpond.net.au>
698*3d8817e4Smiod
699*3d8817e4Smiod	* ldlang.c (strip_excluded_output_sections): Don't call
700*3d8817e4Smiod	bfd_gc_sections.
701*3d8817e4Smiod	* emultempl/elf32.em (gld*_provide_bound_symbols): Move.
702*3d8817e4Smiod	(gld*_provide_init_fini_syms): Move.
703*3d8817e4Smiod	(gld*_before_allocation): Call the above from here..
704*3d8817e4Smiod	(gld*_finish): ..not here.  Call _bfd_elf_fix_excluded_sec_syms.
705*3d8817e4Smiod	* emultempl/hppaelf.em (hppaelf_finish): Likewise.
706*3d8817e4Smiod	* emultempl/ppc64elf.em (ppc_finish): Likewise.
707*3d8817e4Smiod
708*3d8817e4Smiod2005-07-10  Ralf Corsepius <ralf.corsepius@rtems.org>
709*3d8817e4Smiod
710*3d8817e4Smiod	* configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
711*3d8817e4Smiod	i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
712*3d8817e4Smiod	powerpcle-*-rtems*.
713*3d8817e4Smiod
714*3d8817e4Smiod2005-07-09  Christopher Faylor  <cgf@timesys.com>
715*3d8817e4Smiod
716*3d8817e4Smiod	* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
717*3d8817e4Smiod	relocation by default.
718*3d8817e4Smiod	(compute_dll_image_base): Avoid linking into cygwin dll address space.
719*3d8817e4Smiod
720*3d8817e4Smiod2005-07-08  Alan Modra  <amodra@bigpond.net.au>
721*3d8817e4Smiod
722*3d8817e4Smiod	* ldlang.c (wild_sort): Formatting.
723*3d8817e4Smiod	(strip_excluded_output_sections): Strip zero size sections here.
724*3d8817e4Smiod	* emultempl/elf32.em (gld*_strip_empty_sections): Delete.
725*3d8817e4Smiod	(gld*_finish): Don't call the above.
726*3d8817e4Smiod	* emultempl/hppaelf.em (hppaelf_finish): Likewise.
727*3d8817e4Smiod	* emultempl/ppc64elf.em (ppc_finish): Likewise.
728*3d8817e4Smiod
729*3d8817e4Smiod2005-07-05  Paul Brook  <paul@codesourcery.com>
730*3d8817e4Smiod
731*3d8817e4Smiod	* Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
732*3d8817e4Smiod	(eelf32ppcvxworks.o): Add dependencies.
733*3d8817e4Smiod	* Makefile.in: Regenerate.
734*3d8817e4Smiod	* configure.tgt: Add entry for powerpc-vxworks.
735*3d8817e4Smiod	* emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
736*3d8817e4Smiod	* emulparams/elf32ppcvxworks.sh: New file.
737*3d8817e4Smiod	* emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
738*3d8817e4Smiod	(is_ppc_elf32_vec): New function.
739*3d8817e4Smiod	(ppc_after_open, ppc_before_allocation,
740*3d8817e4Smiod	gld${EMULATION_NAME}_after_allocation): Use it.
741*3d8817e4Smiod
742*3d8817e4Smiod2005-07-05  Peter S. Mazinger" <ps.m@gmx.net>
743*3d8817e4Smiod
744*3d8817e4Smiod	* emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
745*3d8817e4Smiod	* emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
746*3d8817e4Smiod
747*3d8817e4Smiod2005-07-04  Mike Frysinger <vapier@gentoo.org>
748*3d8817e4Smiod
749*3d8817e4Smiod	* emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
750*3d8817e4Smiod	name.
751*3d8817e4Smiod
752*3d8817e4Smiod2005-07-04  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
753*3d8817e4Smiod
754*3d8817e4Smiod	* emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
755*3d8817e4Smiod
756*3d8817e4Smiod2005-07-04  Aurelien Jarno  <aurel32@debian.org>
757*3d8817e4Smiod
758*3d8817e4Smiod	* emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
759*3d8817e4Smiod
760*3d8817e4Smiod2005-07-01  Alan Modra  <amodra@bigpond.net.au>
761*3d8817e4Smiod
762*3d8817e4Smiod	* scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
763*3d8817e4Smiod
764*3d8817e4Smiod2005-06-30  Ben Elliston  <bje@gnu.org>
765*3d8817e4Smiod
766*3d8817e4Smiod	* Makefile.am (check-DEJAGNU): Don't search for expect.
767*3d8817e4Smiod	* Makefile.in: Regenerate.
768*3d8817e4Smiod
769*3d8817e4Smiod2005-06-30  Ben Elliston  <bje@gnu.org>
770*3d8817e4Smiod
771*3d8817e4Smiod	* Makefile.am (EXPECT): Set to expect.
772*3d8817e4Smiod	(RUNTEST): Likewise, set to runtest.
773*3d8817e4Smiod	* Makefile.in: Regenerate.
774*3d8817e4Smiod
775*3d8817e4Smiod2005-06-16  Alexander Klimov  <alserkli@inbox.ru>
776*3d8817e4Smiod
777*3d8817e4Smiod	* emultempl/armelf.em: Add quotes to avoid a null test
778*3d8817e4Smiod	expression.
779*3d8817e4Smiod
780*3d8817e4Smiod2005-06-12  Daniel Jacobowitz  <dan@codesourcery.com>
781*3d8817e4Smiod
782*3d8817e4Smiod	* ld.texinfo (Command Line Options): Add @item for --hash-size.
783*3d8817e4Smiod
784*3d8817e4Smiod2005-06-10  Alan Modra  <amodra@bigpond.net.au>
785*3d8817e4Smiod
786*3d8817e4Smiod	* scripttempt/elf.sc (.bss): Align tail in a way that allows
787*3d8817e4Smiod	empty section pruning.
788*3d8817e4Smiod
789*3d8817e4Smiod2005-06-09  Steve Ellcey  <sje@cup.hp.com>
790*3d8817e4Smiod
791*3d8817e4Smiod	* configure.in (AM_BINUTILS_WARNINGS): Add.
792*3d8817e4Smiod	(BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
793*3d8817e4Smiod	* config.in: Regenerate.
794*3d8817e4Smiod	* configure: Regenerate.
795*3d8817e4Smiod	* sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
796*3d8817e4Smiod	* ldmain.c: Ditto.
797*3d8817e4Smiod
798*3d8817e4Smiod2005-06-09  Alan Modra  <amodra@bigpond.net.au>
799*3d8817e4Smiod
800*3d8817e4Smiod	* ldexp.c (fold_unary <ALIGN_K>): Revert last change.
801*3d8817e4Smiod
802*3d8817e4Smiod2005-06-09  Alan Modra  <amodra@bigpond.net.au>
803*3d8817e4Smiod
804*3d8817e4Smiod	* ld.h (lang_phase_type): Move to..
805*3d8817e4Smiod	* ldexp.h: ..here.  Add lang_mark_phase_enum.
806*3d8817e4Smiod	(node_type): Remove etree_undef and etree_unspec.
807*3d8817e4Smiod	(exp_data_seg): Delete.
808*3d8817e4Smiod	(struct ldexp_control, expld): New.
809*3d8817e4Smiod	(invalid, exp_mark_used_section): Delete.
810*3d8817e4Smiod	(exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
811*3d8817e4Smiod	exp_get_abs_int): Update prototypes.
812*3d8817e4Smiod	* ldexp.c (assigning_to_dot): Delete.
813*3d8817e4Smiod	(expld): Define.
814*3d8817e4Smiod	(make_abs): Operate directly on expld.result.  Update all callers.
815*3d8817e4Smiod	(new_abs): Likewise.  Return void.
816*3d8817e4Smiod	(new_rel_from_abs): Rename from new_rel_from_section.
817*3d8817e4Smiod	(new_rel, new_rel_from_abs): Operate on expld.result and return void.
818*3d8817e4Smiod	Update all callers.
819*3d8817e4Smiod	(fold_unary): Operate on expld.result and return void.  Remove
820*3d8817e4Smiod	"current_section", "allocation_done", "dot", "dotp" and "mark_used"
821*3d8817e4Smiod	params.  Update all callers.
822*3d8817e4Smiod	(fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
823*3d8817e4Smiod	(fold_unary <ALIGN_K>): Ensure alignment is absolute.
824*3d8817e4Smiod	(fold_unary <ABSOLUTE>): Use make_abs.
825*3d8817e4Smiod	(fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
826*3d8817e4Smiod	allocating_phase.
827*3d8817e4Smiod	(fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
828*3d8817e4Smiod	(fold_binary <'%','/'>): Don't error if marking.
829*3d8817e4Smiod	(fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
830*3d8817e4Smiod	marking.
831*3d8817e4Smiod	(fold_name <NAME>): Remove FIXME; -R is handled correctly.  Don't
832*3d8817e4Smiod	error when marking.
833*3d8817e4Smiod	(fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
834*3d8817e4Smiod	(exp_fold_tree_1): Don't error when marking.
835*3d8817e4Smiod	(exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
836*3d8817e4Smiod	(exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
837*3d8817e4Smiod	current section, instead check for NULL dotp.
838*3d8817e4Smiod	(exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
839*3d8817e4Smiod	source unless the symbol is referenced and undefined.
840*3d8817e4Smiod	(exp_fold_tree): Remove "allocation_done" and "dot" params.  Save
841*3d8817e4Smiod	params to expld.
842*3d8817e4Smiod	(exp_fold_tree_no_dot): Remove "current_section", "allocation_done
843*3d8817e4Smiod	and "mark_used" params.  Save params to expld.  Update all callers.
844*3d8817e4Smiod	(exp_assop): Do without temp var.
845*3d8817e4Smiod	(exp_print_tree <etree_undef>): Delete code.
846*3d8817e4Smiod	(exp_get_vma): Remove "allocation_done" param.  Correct error return.
847*3d8817e4Smiod	(exp_get_fill, exp_get_abs_int): Likewise.
848*3d8817e4Smiod	(exp_get_value_int): Remove "allocation_done" param.
849*3d8817e4Smiod	(exp_mark_used_section): Delete.
850*3d8817e4Smiod	* ldgram.y (fill_exp): Update exp_get_fill call.
851*3d8817e4Smiod	(origin_spec, length_spec): Update exp_get_vma call.
852*3d8817e4Smiod	* ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
853*3d8817e4Smiod	(lang_mark_used_section_1, lang_mark_used_section): Delete.
854*3d8817e4Smiod	(strip_excluded_output_sections): Call one_lang_size_sections_pass in
855*3d8817e4Smiod	marking mode.  Merge old lang_mark_used_section code.  Correct handling
856*3d8817e4Smiod	of output sections with excluded input sections and data statements.
857*3d8817e4Smiod	Don't drop non-zero sized sections.  Don't zap os->bfd_section.
858*3d8817e4Smiod	Do set SEC_EXCLUDE when appropriate.
859*3d8817e4Smiod	(print_output_section_statement): Update for changed ldexp.c
860*3d8817e4Smiod	interface.
861*3d8817e4Smiod	(print_assignment, lang_size_sections_1): Likewise.
862*3d8817e4Smiod	(lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
863*3d8817e4Smiod	(lang_new_phdr, lang_record_phdrs): Likewise.
864*3d8817e4Smiod	(lang_size_sections): Likewise.
865*3d8817e4Smiod	(insert_pad): Use following statement if it is a pad, rather than
866*3d8817e4Smiod	creating a new one.
867*3d8817e4Smiod	(lang_size_sections_1 <lang_output_section_statement_enum>): Do
868*3d8817e4Smiod	process ignored output section to set vma and lma, but don't
869*3d8817e4Smiod	update dot for these sections.  Don't error if marking.
870*3d8817e4Smiod	(lang_size_sections_1 <lang_assignment_statement_enum>): Don't
871*3d8817e4Smiod	update dot for ignored sections.
872*3d8817e4Smiod	(lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
873*3d8817e4Smiod	section with SEC_ALLOC.
874*3d8817e4Smiod	(one_lang_size_sections_pass): New function.
875*3d8817e4Smiod	(lang_size_sections): Remove first five params.  Set expld.phase on
876*3d8817e4Smiod	entry and exit.   Use one_lang_size_sections_pass.
877*3d8817e4Smiod	(lang_do_assignments): Remove all params.  Update all callers.
878*3d8817e4Smiod	(lang_reset_memory_regions): Clear os->processed for all output
879*3d8817e4Smiod	section statements.
880*3d8817e4Smiod	* ldlang.h (lang_do_assignments): Update prototype.
881*3d8817e4Smiod	(lang_size_sections): Likewise.
882*3d8817e4Smiod	(one_lang_size_sections_pass): Declare.
883*3d8817e4Smiod	* pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
884*3d8817e4Smiod	lang_size_sections and lang_do_assignments calls.
885*3d8817e4Smiod	* emultempl/elf32.em (layout_sections_again): Likewise.
886*3d8817e4Smiod	* emultempl/ppc64elf.em (ppc_before_allocation): Use
887*3d8817e4Smiod	one_lang_size_sections_pass.
888*3d8817e4Smiod
889*3d8817e4Smiod2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
890*3d8817e4Smiod
891*3d8817e4Smiod	* emulparams/elf32ms1.sh: New.
892*3d8817e4Smiod
893*3d8817e4Smiod2005-06-07  Eric Christopher  <echristo@redhat.com>
894*3d8817e4Smiod
895*3d8817e4Smiod	* Makefile.am (eelf32ms1.c): Use tab.
896*3d8817e4Smiod	* Makefile.in: Regenerate.
897*3d8817e4Smiod
898*3d8817e4Smiod2005-06-07  Aldy Hernandez  <aldyh@redhat.com>
899*3d8817e4Smiod	    Michael Snyder  <msnyder@redhat.com>
900*3d8817e4Smiod	    Stan Cox  <scox@redhat.com>
901*3d8817e4Smiod
902*3d8817e4Smiod	* configure.tgt: Same.
903*3d8817e4Smiod
904*3d8817e4Smiod	* Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
905*3d8817e4Smiod	(eelf32ms1.c): Add eelf32ms1.c rule.
906*3d8817e4Smiod
907*3d8817e4Smiod	* Makefile.in: Regenerate.
908*3d8817e4Smiod
909*3d8817e4Smiod2005-06-06  Alan Modra  <amodra@bigpond.net.au>
910*3d8817e4Smiod
911*3d8817e4Smiod	* emultempl/ppc64elf.em (ppc_before_allocation): Always run
912*3d8817e4Smiod	ppc64_elf_edit_opd.
913*3d8817e4Smiod
914*3d8817e4Smiod2005-06-05  H.J. Lu  <hongjiu.lu@intel.com>
915*3d8817e4Smiod
916*3d8817e4Smiod	* ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
917*3d8817e4Smiod	section only if the symbol will be defined.
918*3d8817e4Smiod
919*3d8817e4Smiod2005-06-04  H.J. Lu  <hongjiu.lu@intel.com>
920*3d8817e4Smiod
921*3d8817e4Smiod	PR 992
922*3d8817e4Smiod	* ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
923*3d8817e4Smiod	section for etree_assign, etree_provide and etree_provided.
924*3d8817e4Smiod	Call fold_binary on etree_binary.
925*3d8817e4Smiod
926*3d8817e4Smiod	* ldlang.c (lang_mark_used_section_1): Handle load base.
927*3d8817e4Smiod
928*3d8817e4Smiod2005-06-03  Alan Modra  <amodra@bigpond.net.au>
929*3d8817e4Smiod
930*3d8817e4Smiod	* ldmain.c (link_callbacks): Add einfo.
931*3d8817e4Smiod	(add_archive_element): Use passed info, not link_info.
932*3d8817e4Smiod	(constructor_callback): Likewise.
933*3d8817e4Smiod	(reloc_overflow): Don't handle null bfd specially.
934*3d8817e4Smiod	(reloc_dangerous, unattached_reloc): Likewise.
935*3d8817e4Smiod	* ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
936*3d8817e4Smiod	(vfinfo <C, D, G>): Handle null bfd.  Wrap comments.
937*3d8817e4Smiod
938*3d8817e4Smiod2005-06-02  Alan Modra  <amodra@bigpond.net.au>
939*3d8817e4Smiod
940*3d8817e4Smiod	* ldexp.h (etree_value_type): Use "asection *" in place of
941*3d8817e4Smiod	"struct lang_output_section_statement_struct *" for "section".
942*3d8817e4Smiod	(exp_fold_tree): Likewise.
943*3d8817e4Smiod	(exp_mark_used_section): Likewise.
944*3d8817e4Smiod	* ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
945*3d8817e4Smiod	fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
946*3d8817e4Smiod	exp_mark_used_section): Likewise for "current_section" param.
947*3d8817e4Smiod	(make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
948*3d8817e4Smiod	exp_get_abs_int): Adjust for above changes.
949*3d8817e4Smiod	* ldlang.c (lang_mark_used_section_1, print_assignment,
950*3d8817e4Smiod	lang_size_sections_1, lang_do_assignments_1): Likewise.
951*3d8817e4Smiod	* ldexp.c (fold_name): Init entire result struct.
952*3d8817e4Smiod
953*3d8817e4Smiod2005-06-01  Maciej W. Rozycki  <macro@linux-mips.org>
954*3d8817e4Smiod
955*3d8817e4Smiod	* emulparams/elf32btsmip.sh: Unset DATA_ADDR.
956*3d8817e4Smiod
957*3d8817e4Smiod2005-05-31  Zack Weinberg  <zack@codesourcery.com>
958*3d8817e4Smiod
959*3d8817e4Smiod	* ldlang.c (entry_symbol_default): New file-scope global.
960*3d8817e4Smiod	(lang_finish): Use it, not a hardwired "start".
961*3d8817e4Smiod	(lang_default_entry): Set it.
962*3d8817e4Smiod	* ldlang.h: Declare lang_default_entry.
963*3d8817e4Smiod	* emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
964*3d8817e4Smiod	not lang_add_entry, to override default entry point symbol.
965*3d8817e4Smiod
966*3d8817e4Smiod2005-05-29  Richard Henderson  <rth@redhat.com>
967*3d8817e4Smiod
968*3d8817e4Smiod	* emulparams/elf64alpha.sh (PLT): New.
969*3d8817e4Smiod	(TEXT_PLT): New.
970*3d8817e4Smiod	* emultempl/alphaelf.em (disable_relaxation): New.
971*3d8817e4Smiod	(limit_32bit): Rename from elf64alpha_32bit; update all users.
972*3d8817e4Smiod	(elf64_alpha_use_secureplt): Declare.
973*3d8817e4Smiod	(bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
974*3d8817e4Smiod	(alpha_after_open): New.
975*3d8817e4Smiod	(alpha_before_allocation): New.
976*3d8817e4Smiod	(OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
977*3d8817e4Smiod	(PARSE_AND_LIST_LONGOPTS): Include them.
978*3d8817e4Smiod	(PARSE_AND_LIST_OPTIONS): Likewise.
979*3d8817e4Smiod	(PARSE_AND_LIST_ARGS_CASES): Likewise.
980*3d8817e4Smiod	(LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
981*3d8817e4Smiod	* scripttempl/elf.sc (TEXT_PLT): New.
982*3d8817e4Smiod	(PLT): Use it.
983*3d8817e4Smiod
984*3d8817e4Smiod2005-05-27  Andreas Schwab  <schwab@suse.de>
985*3d8817e4Smiod
986*3d8817e4Smiod	* configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
987*3d8817e4Smiod
988*3d8817e4Smiod2005-05-24  Alan Modra  <amodra@bigpond.net.au>
989*3d8817e4Smiod
990*3d8817e4Smiod	* emultempl/ppc32elf.em (after_allocation): Don't call
991*3d8817e4Smiod	ppc_elf_set_sdata_syms when relocatable.
992*3d8817e4Smiod
993*3d8817e4Smiod2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
994*3d8817e4Smiod
995*3d8817e4Smiod	* Makefile.am (ld.1): Revert the last 2 changes.
996*3d8817e4Smiod	(info-recursive): Depend on ld.1.
997*3d8817e4Smiod	* Makefile.in: Regenerated.
998*3d8817e4Smiod
999*3d8817e4Smiod2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1000*3d8817e4Smiod
1001*3d8817e4Smiod	* Makefile.am (ld.1): Depend on "info" instead of
1002*3d8817e4Smiod	"configdoc.texi ldver.texi".
1003*3d8817e4Smiod	* Makefile.in: Regenerated.
1004*3d8817e4Smiod
1005*3d8817e4Smiod2005-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1006*3d8817e4Smiod
1007*3d8817e4Smiod	* Makefile.am (ld.1): Depend on "info".
1008*3d8817e4Smiod	* Makefile.in: Regenerated.
1009*3d8817e4Smiod
1010*3d8817e4Smiod2005-05-19  Zack Weinberg  <zack@codesourcery.com>
1011*3d8817e4Smiod
1012*3d8817e4Smiod	* Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
1013*3d8817e4Smiod	* Makefile.in: Regenerate.
1014*3d8817e4Smiod
1015*3d8817e4Smiod2005-05-17  Zack Weinberg  <zack@codesourcery.com>
1016*3d8817e4Smiod
1017*3d8817e4Smiod	* ld-arm/mixed-app.d: Adjust expected disassembly a little.
1018*3d8817e4Smiod
1019*3d8817e4Smiod2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
1020*3d8817e4Smiod
1021*3d8817e4Smiod	* Makefile.am (ldver.texi): Don't use $<.
1022*3d8817e4Smiod	* Makefile.in: Regenerated.
1023*3d8817e4Smiod
1024*3d8817e4Smiod2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
1025*3d8817e4Smiod
1026*3d8817e4Smiod	* Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
1027*3d8817e4Smiod	$(srcdir) before $(BFDDIR)/doc.
1028*3d8817e4Smiod	* Makefile.in: Regenerated.
1029*3d8817e4Smiod
1030*3d8817e4Smiod2005-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1031*3d8817e4Smiod
1032*3d8817e4Smiod	PR 797
1033*3d8817e4Smiod	* ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
1034*3d8817e4Smiod	take take a bfd_boolean, mark_used. Ignore assert failure if
1035*3d8817e4Smiod	mark_used is TRUE.
1036*3d8817e4Smiod	(exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
1037*3d8817e4Smiod	(exp_fold_tree_no_dot): Updated to take a bfd_boolean,
1038*3d8817e4Smiod	mark_used and pass down.
1039*3d8817e4Smiod	(fold_unary): Likewise.
1040*3d8817e4Smiod	(fold_binary): Likewise.
1041*3d8817e4Smiod	(fold_trinary): Likewise.
1042*3d8817e4Smiod	(exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
1043*3d8817e4Smiod	(exp_trinop): Likewise.
1044*3d8817e4Smiod	(exp_unop): Likewise.
1045*3d8817e4Smiod	(exp_nameop): Likewise.
1046*3d8817e4Smiod	(exp_get_vma): Likewise.
1047*3d8817e4Smiod	(exp_get_fill): Likewise.
1048*3d8817e4Smiod	(exp_get_abs_int): Likewise.
1049*3d8817e4Smiod	(fold_name): Likewise. Set SEC_KEEP in output section flags.
1050*3d8817e4Smiod	(exp_mark_used_section): New.
1051*3d8817e4Smiod
1052*3d8817e4Smiod	* ldexp.h (exp_mark_used_section): New.
1053*3d8817e4Smiod
1054*3d8817e4Smiod	* ldlang.c (lang_output_section_statement_lookup_1): Set the
1055*3d8817e4Smiod	ignored field to FALSE.
1056*3d8817e4Smiod	(lang_mark_used_section_1): New.
1057*3d8817e4Smiod	(lang_mark_used_section): Call lang_mark_used_section_1.
1058*3d8817e4Smiod	(strip_excluded_output_sections): Call lang_mark_used_section
1059*3d8817e4Smiod	and check for unused sections.
1060*3d8817e4Smiod	(lang_size_sections_1): Skip an output section if it should
1061*3d8817e4Smiod	be ignored.
1062*3d8817e4Smiod	(lang_do_assignments_1): Likewise.
1063*3d8817e4Smiod	(lang_process): Don't call lang_mark_used_section here.
1064*3d8817e4Smiod
1065*3d8817e4Smiod	* ldlang.h (lang_output_section_statement_type): Change
1066*3d8817e4Smiod	all_input_readonly to bitfield. Add ignored.
1067*3d8817e4Smiod
1068*3d8817e4Smiod2005-05-17  Lennert Buytenhek  <buytenh@wantstofly.org>
1069*3d8817e4Smiod	    Peter S. Mazinger" <ps.m@gmx.net>
1070*3d8817e4Smiod
1071*3d8817e4Smiod	* emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1072*3d8817e4Smiod	* emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1073*3d8817e4Smiod
1074*3d8817e4Smiod2005-05-17  Julian Brown <julian@codesourcery.com>
1075*3d8817e4Smiod
1076*3d8817e4Smiod	* ldlang.c (print_assignment): Do not rely upon a valid result
1077*3d8817e4Smiod	having a section associated with it.
1078*3d8817e4Smiod
1079*3d8817e4Smiod2005-05-17  Nick Clifton  <nickc@redhat.com>
1080*3d8817e4Smiod
1081*3d8817e4Smiod	* ldlang.c (Scan_for_self_assignment): Check an assignment tree to
1082*3d8817e4Smiod	see if the same value is being used on the rhs as on the lhs.
1083*3d8817e4Smiod	(print_assignment): Call scan_for_self_assignment and if it
1084*3d8817e4Smiod	returns true, do no display the result of the computation but
1085*3d8817e4Smiod	instead just the final value of the symbol on the lhs.
1086*3d8817e4Smiod	* ld.texinfo: Document this behaviour and provide an example of
1087*3d8817e4Smiod	when it will happen.
1088*3d8817e4Smiod
1089*3d8817e4Smiod2005-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
1090*3d8817e4Smiod
1091*3d8817e4Smiod	* Makefile.am (AM_MAKEINFOFLAGS): Define.
1092*3d8817e4Smiod	(TEXI2DVI): Define.
1093*3d8817e4Smiod	(ldver.texi): Depend on distributed files instead of built files.
1094*3d8817e4Smiod	(ld.info): Include $(srcdir) in the rule target.  Remove actions.
1095*3d8817e4Smiod	(ld.dvi): Remove actions.
1096*3d8817e4Smiod	(MAINTAINERCLEANFILES): Add configdoc.texi.
1097*3d8817e4Smiod	(CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
1098*3d8817e4Smiod	(install-data-local): Renamed from install.
1099*3d8817e4Smiod	(Makefile): Remove explicit dependency.
1100*3d8817e4Smiod	* acinclude.m4: Remove obsolete code.
1101*3d8817e4Smiod	* configure.in: Update AC_PREREQ.  Remove extra $CONFIG_SHELL.
1102*3d8817e4Smiod	* Makefile.in, aclocal.m4, config.in, configure: Regenerated.
1103*3d8817e4Smiod
1104*3d8817e4Smiod2005-05-11  Bob Wilson  <bob.wilson@acm.org>
1105*3d8817e4Smiod
1106*3d8817e4Smiod	* scripttempl/elfxtensa.sc: Sync up with elf.sc.
1107*3d8817e4Smiod	* emulparams/elf32xtensa.sh (PLT, GOT): Define.
1108*3d8817e4Smiod
1109*3d8817e4Smiod2005-05-11  Alan Modra  <amodra@bigpond.net.au>
1110*3d8817e4Smiod
1111*3d8817e4Smiod	* ldgram.y: Add SPECIAL token.
1112*3d8817e4Smiod	(sect_constraint): Handle SPECIAL.
1113*3d8817e4Smiod	* ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
1114*3d8817e4Smiod	(map_input_to_output_sections): Likewise.
1115*3d8817e4Smiod	* ldlex.l (SPECIAL): Define.
1116*3d8817e4Smiod	* emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
1117*3d8817e4Smiod	GOT, PLT, GOTPLT): Define.
1118*3d8817e4Smiod	* emultempl/ppc32elf.em (old_plt, old_got): New static vars.
1119*3d8817e4Smiod	(ppc_after_open): New function.
1120*3d8817e4Smiod	(PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
1121*3d8817e4Smiod	(PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
1122*3d8817e4Smiod	(PARSE_AND_LIST_OPTIONS): Document them.
1123*3d8817e4Smiod	(PARSE_AND_LIST_ARGS_CASES): Handle them.
1124*3d8817e4Smiod	(LDEMUL_AFTER_OPEN): Define.
1125*3d8817e4Smiod	* scripttempl/elf.sc (PLT): Don't override existing define.
1126*3d8817e4Smiod	(DATA_GOT, SDATA_GOT): Define and use to enable alternate got
1127*3d8817e4Smiod	placement rather than using NO_SMALL_DATA.  Emit GOTPLT for RELRO_NOW.
1128*3d8817e4Smiod
1129*3d8817e4Smiod2005-05-10  Alan Modra  <amodra@bigpond.net.au>
1130*3d8817e4Smiod
1131*3d8817e4Smiod	* scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
1132*3d8817e4Smiod	(DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
1133*3d8817e4Smiod	(GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END.  Place after
1134*3d8817e4Smiod	DATA_SEGMENT_RELRO_END in script.
1135*3d8817e4Smiod
1136*3d8817e4Smiod2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1137*3d8817e4Smiod
1138*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1139*3d8817e4Smiod	Don't use a removed section.
1140*3d8817e4Smiod
1141*3d8817e4Smiod2005-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1142*3d8817e4Smiod
1143*3d8817e4Smiod	* ldmain.c (reloc_overflow): Use output_bfd if the symbol
1144*3d8817e4Smiod	is defined in the ABS section.
1145*3d8817e4Smiod
1146*3d8817e4Smiod2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1147*3d8817e4Smiod
1148*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1149*3d8817e4Smiod	Put back !link_info.relocatable.
1150*3d8817e4Smiod
1151*3d8817e4Smiod2005-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1152*3d8817e4Smiod
1153*3d8817e4Smiod	PR 878
1154*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1155*3d8817e4Smiod	Just check link_info.executable.
1156*3d8817e4Smiod
1157*3d8817e4Smiod2005-05-06  Nick Clifton  <nickc@redhat.com>
1158*3d8817e4Smiod
1159*3d8817e4Smiod	* Update the address and phone number of the FSF organization in
1160*3d8817e4Smiod	the GPL notices in the following files:
1161*3d8817e4Smiod	aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1162*3d8817e4Smiod	ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1163*3d8817e4Smiod	ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1164*3d8817e4Smiod	ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1165*3d8817e4Smiod	ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1166*3d8817e4Smiod	sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1167*3d8817e4Smiod	emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1168*3d8817e4Smiod	emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1169*3d8817e4Smiod	emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1170*3d8817e4Smiod	emultempl/ia64elf.em, emultempl/irix.em,  emultempl/linux.em,
1171*3d8817e4Smiod	emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1172*3d8817e4Smiod	emultempl/m68kcoff.em, emultempl/m68kelf.em,
1173*3d8817e4Smiod	emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1174*3d8817e4Smiod	emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1175*3d8817e4Smiod	emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1176*3d8817e4Smiod	emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1177*3d8817e4Smiod	emultempl/vanilla.em, emultempl/xtensaelf.em
1178*3d8817e4Smiod
1179*3d8817e4Smiod2005-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1180*3d8817e4Smiod
1181*3d8817e4Smiod	* scripttempl/elf.sc: Document the usage of __bss_start.
1182*3d8817e4Smiod
1183*3d8817e4Smiod2005-05-05  Paul Brook  <paul@codesourcery.com>
1184*3d8817e4Smiod
1185*3d8817e4Smiod	* Makefile.am: Add eelf_i386_vxworks.
1186*3d8817e4Smiod	* Makefile.in: Regenerate.
1187*3d8817e4Smiod	* configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1188*3d8817e4Smiod	* emulparams/elf_i386_vxworks.sh: New file.
1189*3d8817e4Smiod	* emulparams/vxworks.sh: New file.
1190*3d8817e4Smiod	* scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1191*3d8817e4Smiod
1192*3d8817e4Smiod2005-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1193*3d8817e4Smiod
1194*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1195*3d8817e4Smiod	Call _bfd_elf_provide_section_bound_symbols.
1196*3d8817e4Smiod
1197*3d8817e4Smiod2005-05-04  Alan Modra  <amodra@bigpond.net.au>
1198*3d8817e4Smiod
1199*3d8817e4Smiod	* ldemul.c: Include bfdlink.h.
1200*3d8817e4Smiod	(ldemul_before_allocation): Assume before_allocation is non-zero.
1201*3d8817e4Smiod	(before_allocation_default): Call strip_excluded_output_sections.
1202*3d8817e4Smiod	* ldlang.c (stripped_excluded_sections): New variable.
1203*3d8817e4Smiod	(lang_add_section): Build input section list for each output
1204*3d8817e4Smiod	section, attached via map_head and map_tail pointers.
1205*3d8817e4Smiod	(strip_excluded_output_sections): Make global.  Traverse the
1206*3d8817e4Smiod	input section lists to find which output sections can go.  Clear
1207*3d8817e4Smiod	link_order pointers and set stripped_excluded_sections.
1208*3d8817e4Smiod	(lang_process): Call strip_excluded_output_sections.
1209*3d8817e4Smiod	* ldlang.h (strip_excluded_output_sections): Declare.
1210*3d8817e4Smiod	* ldwrite.c: Update throuhout for link_order_head -> map_head change.
1211*3d8817e4Smiod	* emultempl/aix.em (before_allocation): Call
1212*3d8817e4Smiod	strip_excluded_output_sections.
1213*3d8817e4Smiod	* emultempl/armcoff.em (before_allocation): Likewise.
1214*3d8817e4Smiod	* emultempl/beos.em (before_allocation): Likewise.
1215*3d8817e4Smiod	* emultempl/linux.em (before_allocation): Likewise.
1216*3d8817e4Smiod	* emultempl/pe.em (before_allocation): Likewise.
1217*3d8817e4Smiod	* emultempl/sunos.em (before_allocation): Likewise.
1218*3d8817e4Smiod	* emultempl/elf32.em (before_allocation): Likewise.  Call
1219*3d8817e4Smiod	bfd_elf_size_dynsym_hash_dynstr too.
1220*3d8817e4Smiod	* emultempl/lnk960.em (lnk960_before_allocation): Delete.
1221*3d8817e4Smiod	(ld_lnk960): Use before_allocation_default.
1222*3d8817e4Smiod
1223*3d8817e4Smiod2005-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1224*3d8817e4Smiod
1225*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1226*3d8817e4Smiod	Updated for bfd_section_list_remove change.
1227*3d8817e4Smiod	* ldlang.c (lang_insert_orphan): Likewise.
1228*3d8817e4Smiod	(strip_excluded_output_sections): Likewise.
1229*3d8817e4Smiod	(sort_sections_by_lma): New.
1230*3d8817e4Smiod	(lang_check_section_addresses): Sort the sections before
1231*3d8817e4Smiod	checking addresses.
1232*3d8817e4Smiod
1233*3d8817e4Smiod2005-04-29  Ralf Corsepius <ralf.corsepius@rtems.org>
1234*3d8817e4Smiod
1235*3d8817e4Smiod	* configure.tgt: Add h8300*-*-rtemscoff.
1236*3d8817e4Smiod	Switch h8300*-*-rtems* to elf.
1237*3d8817e4Smiod
1238*3d8817e4Smiod2005-04-29  Ben Elliston  <bje@au.ibm.com>
1239*3d8817e4Smiod
1240*3d8817e4Smiod	* ldgram.y (lang_memory_region_type): Make static.
1241*3d8817e4Smiod	(ldgram_want_filename): Likewise.
1242*3d8817e4Smiod	* ldemul.c (ld_emulation): Make static.
1243*3d8817e4Smiod	* ldfile.h (ldfile_find_command_file): Remove extern.
1244*3d8817e4Smiod	* ldfile.c (ldfile_find_command_file): Make static.
1245*3d8817e4Smiod	* ldlang.h (unique_section_list): Remove extern declaration.
1246*3d8817e4Smiod	* ldlang.c (unique_section_list): Make static.
1247*3d8817e4Smiod	* mri.h (symbol_truncate): Remove extern declaration.
1248*3d8817e4Smiod	* mri.c (symbol_truncate): Make static.
1249*3d8817e4Smiod	(order, only_load, address, alias): Likewise.
1250*3d8817e4Smiod	(alignment, subalignment): Likewise.
1251*3d8817e4Smiod
1252*3d8817e4Smiod2005-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1253*3d8817e4Smiod
1254*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1255*3d8817e4Smiod	Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1256*3d8817e4Smiod	last SEC_ALLOC section if such a section doesn't exist.
1257*3d8817e4Smiod
1258*3d8817e4Smiod2005-04-24  Mark Kettenis  <kettenis@gnu.org>
1259*3d8817e4Smiod
1260*3d8817e4Smiod	* configure.host: Add *-*-openbsd support.
1261*3d8817e4Smiod
1262*3d8817e4Smiod2005-04-15  Julian Brown  <julian@codesourcery.com>
1263*3d8817e4Smiod
1264*3d8817e4Smiod	* ld.texinfo: Document --use-blx.
1265*3d8817e4Smiod	* emultempl/armelf.em (use_blx): New variable.
1266*3d8817e4Smiod	(arm_elf_create_output_section_statements): Communicate value of
1267*3d8817e4Smiod	use_blx to bfd.
1268*3d8817e4Smiod	(PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1269*3d8817e4Smiod	(PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1270*3d8817e4Smiod	(PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1271*3d8817e4Smiod
1272*3d8817e4Smiod2005-04-14  Alan Modra  <amodra@bigpond.net.au>
1273*3d8817e4Smiod
1274*3d8817e4Smiod	* Makefile.am (NO_WERROR): Define.  Use instead of -Wno-error.
1275*3d8817e4Smiod	* configure.in: Include ../bfd/warning.m4 contents.
1276*3d8817e4Smiod	* Makefile.in: Regenerate.
1277*3d8817e4Smiod	* configure: Regenerate.
1278*3d8817e4Smiod
1279*3d8817e4Smiod2005-04-12  Alan Modra  <amodra@bigpond.net.au>
1280*3d8817e4Smiod
1281*3d8817e4Smiod	* Makefile.am: Run "make dep-am".
1282*3d8817e4Smiod	(ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1283*3d8817e4Smiod	* Makefile.in: Regenerate.
1284*3d8817e4Smiod	* config.in: Regenerate.
1285*3d8817e4Smiod
1286*3d8817e4Smiod2005-04-11  Alan Modra  <amodra@bigpond.net.au>
1287*3d8817e4Smiod
1288*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1289*3d8817e4Smiod	as_needed libs that were not needed.
1290*3d8817e4Smiod	(gld${EMULATION_NAME}_check_needed): Likewise.
1291*3d8817e4Smiod
1292*3d8817e4Smiod2005-04-07  Nick Clifton  <nickc@redhat.com>
1293*3d8817e4Smiod
1294*3d8817e4Smiod	* emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1295*3d8817e4Smiod	ldfile.h can use the lang_input_statement type.
1296*3d8817e4Smiod
1297*3d8817e4Smiod2005-04-06  Jakub Jelinek  <jakub@redhat.com>
1298*3d8817e4Smiod
1299*3d8817e4Smiod	* ldlang.c: Formatting.
1300*3d8817e4Smiod	(walk_wild_consider_section): Remember return value from wildcardp.
1301*3d8817e4Smiod	(is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1302*3d8817e4Smiod	(wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1303*3d8817e4Smiod
1304*3d8817e4Smiod2005-04-06  Robert O'Callahan  <rocallahan@novell.com>
1305*3d8817e4Smiod
1306*3d8817e4Smiod	* ld.h (lean_section_userdata_type): Remove.
1307*3d8817e4Smiod	(fat_section_userdata_type): Remove file field.
1308*3d8817e4Smiod	(SECTION_USERDATA_SIZE): Remove.
1309*3d8817e4Smiod	* ldlang.c (init_os): Eliminate initialization of unused
1310*3d8817e4Smiod	lean_section_userdata_type.
1311*3d8817e4Smiod
1312*3d8817e4Smiod	* ldlang.h (callback_t, walk_wild_section_handler_t): New
1313*3d8817e4Smiod	typedefs.
1314*3d8817e4Smiod	(struct lang_wild_statement_struct): Add walk_wild_section_handler
1315*3d8817e4Smiod	and handler_data fields.
1316*3d8817e4Smiod	* ldlang.c (callback_t): Removed.
1317*3d8817e4Smiod	(walk_wild_consider_section, walk_wild_section_general,
1318*3d8817e4Smiod	section_iterator_callback, find_section, is_simple_wild,
1319*3d8817e4Smiod	match_simple_wild, walk_wild_section_specs1_wild0,
1320*3d8817e4Smiod	walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1321*3d8817e4Smiod	walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1322*3d8817e4Smiod	wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1323*3d8817e4Smiod	functions.
1324*3d8817e4Smiod	(lang_add_wild): Call analyze_walk_wild_section_handler.
1325*3d8817e4Smiod	(walk_wild_section): Renamed to walk_wild_section_general and
1326*3d8817e4Smiod	created a wrapper function.
1327*3d8817e4Smiod	(section_iterator_callback_data): New typedef.
1328*3d8817e4Smiod
1329*3d8817e4Smiod2005-04-04  Nick Clifton  <nickc@redhat.com>
1330*3d8817e4Smiod
1331*3d8817e4Smiod	* configure.in: Add a check for <unistd.h> providing a prototype
1332*3d8817e4Smiod	for getopt() which is compatible with the one in
1333*3d8817e4Smiod	include/getopt.h.  If so then define HAVE_DECL_GETOPT.
1334*3d8817e4Smiod	* configure: Regenerate.
1335*3d8817e4Smiod	* config.in (HAVE_DECL_GETOPT): Add.
1336*3d8817e4Smiod	* ldemul.c: Include config.h
1337*3d8817e4Smiod	* lexsup.c: Likewise.
1338*3d8817e4Smiod	* emultempl/elf32.sc: Likewise.
1339*3d8817e4Smiod
1340*3d8817e4Smiod2005-03-29  Alan Modra  <amodra@bigpond.net.au>
1341*3d8817e4Smiod
1342*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1343*3d8817e4Smiod	New function, extracted from static void gld${EMULATION_NAME}_finish.
1344*3d8817e4Smiod	(gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1345*3d8817e4Smiod	(gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1346*3d8817e4Smiod	* emultempl/ppc64elf.em: Revert last change.
1347*3d8817e4Smiod	(ppc_layout_sections_again): Use
1348*3d8817e4Smiod	gld${EMULATION_NAME}_layout_sections_again.
1349*3d8817e4Smiod	(ppc_finish): Don't call gld${EMULATION_NAME}_finish.  Instead call
1350*3d8817e4Smiod	gld${EMULATION_NAME}_strip_empty_sections and
1351*3d8817e4Smiod	gld${EMULATION_NAME}_provide_init_fini_syms.
1352*3d8817e4Smiod	* emultempl/hppaelf.em: Similarly.
1353*3d8817e4Smiod
1354*3d8817e4Smiod2005-03-29  Alan Modra  <amodra@bigpond.net.au>
1355*3d8817e4Smiod
1356*3d8817e4Smiod	* emultempl/ppc64elf.em (need_laying_out): Delete.  Remove all refs.
1357*3d8817e4Smiod	(ppc_finish): Don't call bfd_elf_discard_info.
1358*3d8817e4Smiod	* emultempl/hppaelf.em: Similarly.
1359*3d8817e4Smiod
1360*3d8817e4Smiod2005-03-24  Nick Clifton  <nickc@redhat.com>
1361*3d8817e4Smiod
1362*3d8817e4Smiod	* po/fr.po: Updated French translation.
1363*3d8817e4Smiod
1364*3d8817e4Smiod2005-03-23  Mike Frysinger  <vapier@gentoo.org>
1365*3d8817e4Smiod	    Nick Clifton  <nickc@redhat.com>
1366*3d8817e4Smiod
1367*3d8817e4Smiod	* configure.host: Accept any C library to accompany a GNU Linux
1368*3d8817e4Smiod	implementation, not just the GNU C library.
1369*3d8817e4Smiod	* configure.tgt: Likewise.
1370*3d8817e4Smiod	* emultempl/elf32.em: Likewise.
1371*3d8817e4Smiod
1372*3d8817e4Smiod2005-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1373*3d8817e4Smiod
1374*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1375*3d8817e4Smiod	(gld${EMULATION_NAME}_finish): Call
1376*3d8817e4Smiod	gld${EMULATION_NAME}_provide_bound_symbols to provide
1377*3d8817e4Smiod	__preinit_array_start, __preinit_array_end, __init_array_start,
1378*3d8817e4Smiod	__init_array_end, __fini_array_start and __fini_array_end.
1379*3d8817e4Smiod
1380*3d8817e4Smiod	* scripttempl/elf.sc: Don't provide __preinit_array_start,
1381*3d8817e4Smiod	__preinit_array_end, __init_array_start, __init_array_end,
1382*3d8817e4Smiod	__fini_array_start nor __fini_array_end.
1383*3d8817e4Smiod
1384*3d8817e4Smiod2005-03-23  Alan Modra  <amodra@bigpond.net.au>
1385*3d8817e4Smiod
1386*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1387*3d8817e4Smiod	SEC_EXCLUDE on .gnu.warning sections.
1388*3d8817e4Smiod
1389*3d8817e4Smiod2005-03-22  Alan Modra  <amodra@bigpond.net.au>
1390*3d8817e4Smiod
1391*3d8817e4Smiod	* scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1392*3d8817e4Smiod
1393*3d8817e4Smiod2005-03-21  Alan Modra  <amodra@bigpond.net.au>
1394*3d8817e4Smiod
1395*3d8817e4Smiod	* emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1396*3d8817e4Smiod	function.
1397*3d8817e4Smiod	(LDEMUL_AFTER_ALLOCATION): Define.
1398*3d8817e4Smiod
1399*3d8817e4Smiod2005-03-21  Alan Modra  <amodra@bigpond.net.au>
1400*3d8817e4Smiod
1401*3d8817e4Smiod	* emultempl/ppc64elf.em (ppc_finish): Rename from
1402*3d8817e4Smiod	gld${EMULATION_NAME}_finish.  Call gld${EMULATION_NAME}_finish.
1403*3d8817e4Smiod	(LDEMUL_FINISH): Update.
1404*3d8817e4Smiod	* emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1405*3d8817e4Smiod	* emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1406*3d8817e4Smiod
1407*3d8817e4Smiod2005-03-18  Julian Brown  <julian@codesourcery.com>
1408*3d8817e4Smiod
1409*3d8817e4Smiod	* scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1410*3d8817e4Smiod	.rel.fini_array.
1411*3d8817e4Smiod	(.rela.dyn): Add .rela.init_array, .rela.fini_array.
1412*3d8817e4Smiod	(SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1413*3d8817e4Smiod
1414*3d8817e4Smiod2005-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1415*3d8817e4Smiod
1416*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1417*3d8817e4Smiod	bfd_section when removing unused empty output sections for
1418*3d8817e4Smiod	non-relocatable link.
1419*3d8817e4Smiod
1420*3d8817e4Smiod2005-03-19  Alan Modra  <amodra@bigpond.net.au>
1421*3d8817e4Smiod
1422*3d8817e4Smiod	* ldlang.c (lang_insert_orphan): Use old section_tail rather than
1423*3d8817e4Smiod	traversing the bfd section list to find pointer to new section.
1424*3d8817e4Smiod
1425*3d8817e4Smiod2005-03-18  Alan Modra  <amodra@bigpond.net.au>
1426*3d8817e4Smiod
1427*3d8817e4Smiod	* scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1428*3d8817e4Smiod	input sections into .sdata and .sbss output respectively.
1429*3d8817e4Smiod
1430*3d8817e4Smiod2005-03-16  David Heine  <dlheine@tensilica.com>
1431*3d8817e4Smiod	    Bob Wilson  <bob.wilson@acm.org>
1432*3d8817e4Smiod
1433*3d8817e4Smiod	* ldlang.c (IGNORE_SECTION): Remove check for zero size.
1434*3d8817e4Smiod	(lang_check_section_addresses): Ignore zero size sections here.
1435*3d8817e4Smiod
1436*3d8817e4Smiod2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1437*3d8817e4Smiod
1438*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1439*3d8817e4Smiod	unused empty output sections for non-relocatable link.
1440*3d8817e4Smiod
1441*3d8817e4Smiod	* ld.h (args_type): Remove gc_sections.
1442*3d8817e4Smiod
1443*3d8817e4Smiod	* ldlang.c (lang_mark_used_section): New.
1444*3d8817e4Smiod	(lang_gc_sections): Use link_info.gc_sections instead of
1445*3d8817e4Smiod	command_line.gc_sections.
1446*3d8817e4Smiod	* ldmain.c (main): Likewise.
1447*3d8817e4Smiod	* lexsup.c (parse_args): Likewise.
1448*3d8817e4Smiod	* ldlang.c (lang_process): Call lang_mark_used_section.
1449*3d8817e4Smiod
1450*3d8817e4Smiod	* ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1451*3d8817e4Smiod
1452*3d8817e4Smiod2005-03-16  Nick Clifton  <nickc@redhat.com>
1453*3d8817e4Smiod	    Ben Elliston  <bje@au.ibm.com>
1454*3d8817e4Smiod
1455*3d8817e4Smiod	* configure.in (werror): New switch: Add -Werror to the
1456*3d8817e4Smiod	compiler command line.  Enabled by default.  Disable via
1457*3d8817e4Smiod	--disable-werror.
1458*3d8817e4Smiod	* configure: Regenerate.
1459*3d8817e4Smiod
1460*3d8817e4Smiod2005-03-16  Alan Modra  <amodra@bigpond.net.au>
1461*3d8817e4Smiod
1462*3d8817e4Smiod	* emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1463*3d8817e4Smiod	(OTHER_RELRO_SECTIONS): Set this instead.
1464*3d8817e4Smiod
1465*3d8817e4Smiod2005-03-15  Nick Clifton  <nickc@redhat.com>
1466*3d8817e4Smiod
1467*3d8817e4Smiod	* NEWS: Add cutoff for changes in 2.16 release.
1468*3d8817e4Smiod
1469*3d8817e4Smiod2005-03-15  Mikkel Krautz  <krautz@gmail.com>
1470*3d8817e4Smiod
1471*3d8817e4Smiod	* configure.tgt (x86_64-elf): Add target.
1472*3d8817e4Smiod
1473*3d8817e4Smiod2005-03-15  Alan Modra  <amodra@bigpond.net.au>
1474*3d8817e4Smiod
1475*3d8817e4Smiod	* po/es.po: Commit new Spanish translation.
1476*3d8817e4Smiod
1477*3d8817e4Smiod2005-03-14  Alan Modra  <amodra@bigpond.net.au>
1478*3d8817e4Smiod
1479*3d8817e4Smiod	* ldexp.c (exp_fold_tree): Ensure return value is initialized.
1480*3d8817e4Smiod	Tidy etree_assert case.
1481*3d8817e4Smiod
1482*3d8817e4Smiod2005-03-14  Alan Modra  <amodra@bigpond.net.au>
1483*3d8817e4Smiod
1484*3d8817e4Smiod	* po/tr.po: Commit new Turkish translation.
1485*3d8817e4Smiod
1486*3d8817e4Smiod2005-03-11  Daniel Jacobowitz  <dan@codesourcery.com>
1487*3d8817e4Smiod
1488*3d8817e4Smiod	* Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1489*3d8817e4Smiod	* Makefile.in: Regenerated.
1490*3d8817e4Smiod	* emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1491*3d8817e4Smiod
1492*3d8817e4Smiod2005-03-07  Nick Clifton  <nickc@redhat.com>
1493*3d8817e4Smiod
1494*3d8817e4Smiod	* po/fr.po: Updated translation.
1495*3d8817e4Smiod
1496*3d8817e4Smiod2005-03-05  Alan Modra  <amodra@bigpond.net.au>
1497*3d8817e4Smiod
1498*3d8817e4Smiod	* po/ld.pot: Regenerate.
1499*3d8817e4Smiod
1500*3d8817e4Smiod2005-03-02  Jan Beulich  <jbeulich@novell.com>
1501*3d8817e4Smiod
1502*3d8817e4Smiod	* ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1503*3d8817e4Smiod	* pe-dll.c (pe_dll_generate_implib): Likewise.
1504*3d8817e4Smiod
1505*3d8817e4Smiod2005-02-24  Ben Elliston  <bje@au.ibm.com>
1506*3d8817e4Smiod
1507*3d8817e4Smiod	* ldfile.c: Remove GNU960 conditional code.
1508*3d8817e4Smiod	* emultempl/gld960.em: Likewise.
1509*3d8817e4Smiod	* emultempl/gld960c.em: Likewise.
1510*3d8817e4Smiod	* emultempl/lnk960.em: Likewise.
1511*3d8817e4Smiod
1512*3d8817e4Smiod2005-02-24  Nick Clifton  <nickc@redhat.com>
1513*3d8817e4Smiod
1514*3d8817e4Smiod	* emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1515*3d8817e4Smiod	empty string from calls to concat.
1516*3d8817e4Smiod
1517*3d8817e4Smiod2005-02-23  Nick Clifton  <nickc@redhat.com>
1518*3d8817e4Smiod
1519*3d8817e4Smiod	* emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1520*3d8817e4Smiod	arguments passed to concat() with a NULL.
1521*3d8817e4Smiod
1522*3d8817e4Smiod	* emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1523*3d8817e4Smiod	define types needed by ldfile.h
1524*3d8817e4Smiod
1525*3d8817e4Smiod2005-02-23  Alan Modra  <amodra@bigpond.net.au>
1526*3d8817e4Smiod
1527*3d8817e4Smiod	* pe-dll.c: Warning fixes.
1528*3d8817e4Smiod	* emultempl/sunos.em: Likewise.
1529*3d8817e4Smiod
1530*3d8817e4Smiod2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
1531*3d8817e4Smiod
1532*3d8817e4Smiod	* ldlang.c (section_already_linked): Don't call
1533*3d8817e4Smiod	bfd_section_already_linked for dynamic objects.
1534*3d8817e4Smiod
1535*3d8817e4Smiod2005-02-22  Alan Modra  <amodra@bigpond.net.au>
1536*3d8817e4Smiod
1537*3d8817e4Smiod	* ldexp.c: Warning fixes.
1538*3d8817e4Smiod	* ldwrite.c: Likewise.
1539*3d8817e4Smiod	* emultempl/elf32.em: Likewise.
1540*3d8817e4Smiod
1541*3d8817e4Smiod2005-02-21  H.J. Lu  <hongjiu.lu@intel.com>
1542*3d8817e4Smiod
1543*3d8817e4Smiod	* ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1544*3d8817e4Smiod	tic54x input only.
1545*3d8817e4Smiod	(lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1546*3d8817e4Smiod	and ECOFF output only.
1547*3d8817e4Smiod
1548*3d8817e4Smiod2005-02-21  Alan Modra  <amodra@bigpond.net.au>
1549*3d8817e4Smiod
1550*3d8817e4Smiod	* config.in: Regenerate.
1551*3d8817e4Smiod	* configure: Regenerate.
1552*3d8817e4Smiod
1553*3d8817e4Smiod2005-02-17  Zack Weinberg  <zack@codesourcery.com>
1554*3d8817e4Smiod
1555*3d8817e4Smiod	* ldexp.c (assigning_to_dot): New global flag.
1556*3d8817e4Smiod	(fold_name): If assigning_to_dot is true, object immediately to
1557*3d8817e4Smiod	an undefined symbol.
1558*3d8817e4Smiod	(exp_fold_tree): Set and clear assigning_to_dot around the
1559*3d8817e4Smiod	recursive call to exp_fold_tree to process the right-hand side
1560*3d8817e4Smiod	of an assignment to the location counter.
1561*3d8817e4Smiod
1562*3d8817e4Smiod2005-02-17  Paul Brook  <paul@codesourcery.com>
1563*3d8817e4Smiod
1564*3d8817e4Smiod	* scripttempl/armbpabi.sc: Add dummy name to version block.
1565*3d8817e4Smiod
1566*3d8817e4Smiod2005-02-17  Alan Modra  <amodra@bigpond.net.au>
1567*3d8817e4Smiod
1568*3d8817e4Smiod	* ldexp.c (new_abs): Init new.str.
1569*3d8817e4Smiod
1570*3d8817e4Smiod2005-02-15  Mark Mitchell  <mark@codesourcery.com>
1571*3d8817e4Smiod
1572*3d8817e4Smiod	* configure.in (AC_CHECK_FUNCS): Add glob.
1573*3d8817e4Smiod	* configure: Regenerated.
1574*3d8817e4Smiod	* emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1575*3d8817e4Smiod	not defined.
1576*3d8817e4Smiod	(gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1577*3d8817e4Smiod	if HAVE_GLOB is not defined.
1578*3d8817e4Smiod
1579*3d8817e4Smiod2005-02-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1580*3d8817e4Smiod
1581*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1582*3d8817e4Smiod	lib_path if NATIVE is yes.
1583*3d8817e4Smiod
1584*3d8817e4Smiod2005-02-16  Alan Modra  <amodra@bigpond.net.au>
1585*3d8817e4Smiod
1586*3d8817e4Smiod	* emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1587*3d8817e4Smiod	an error creating fake bfd fatal.
1588*3d8817e4Smiod	(ppc_before_allocation): Continue on after errors.
1589*3d8817e4Smiod	(gld${EMULATION_NAME}_finish): Likewise.
1590*3d8817e4Smiod
1591*3d8817e4Smiod2005-02-15  Nick Clifton  <nickc@redhat.com>
1592*3d8817e4Smiod
1593*3d8817e4Smiod	* ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1594*3d8817e4Smiod	not declared.  It is not used and its presence causes a compile
1595*3d8817e4Smiod	time warning.
1596*3d8817e4Smiod
1597*3d8817e4Smiod2005-02-11  Zack Weinberg  <zack@codesourcery.com>
1598*3d8817e4Smiod
1599*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1600*3d8817e4Smiod	If st.st_ino is zero, do not treat the library as a duplicate.
1601*3d8817e4Smiod
1602*3d8817e4Smiod2005-02-10  Jakub Jelinek  <jakub@redhat.com>
1603*3d8817e4Smiod
1604*3d8817e4Smiod	* emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1605*3d8817e4Smiod	Set BFD_LINKER_CREATED on the stubs bfd.
1606*3d8817e4Smiod	* emultempl/ppc64elf.em (ppc_create_output_section_statements):
1607*3d8817e4Smiod	Likewise.
1608*3d8817e4Smiod
1609*3d8817e4Smiod2005-02-08  Mark Mitchell  <mark@codesourcery.com>
1610*3d8817e4Smiod
1611*3d8817e4Smiod	* scripttempl/armbpabi.sc (VERSION): Make special section symbols
1612*3d8817e4Smiod	local.
1613*3d8817e4Smiod	(Image$$ER_RO$$Base): Define whenever RELOCATING.
1614*3d8817e4Smiod	(Image$$ER_RO$$Limit): Likewise.
1615*3d8817e4Smiod	(SHT$$INIT_ARRAY$$Base): Likewise.
1616*3d8817e4Smiod	(SHT$$INIT_ARRAY$$Limit): Likeise.
1617*3d8817e4Smiod
1618*3d8817e4Smiod2005-02-10  Ben Elliston  <bje@au.ibm.com>
1619*3d8817e4Smiod
1620*3d8817e4Smiod	* emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1621*3d8817e4Smiod
1622*3d8817e4Smiod2005-02-08  Richard Sandiford  <rsandifo@redhat.com>
1623*3d8817e4Smiod
1624*3d8817e4Smiod	* configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1625*3d8817e4Smiod	to include o32 and n64 emulations.
1626*3d8817e4Smiod	(mips64*-*-linux-gnu*): Likewise.
1627*3d8817e4Smiod
1628*3d8817e4Smiod2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
1629*3d8817e4Smiod
1630*3d8817e4Smiod	* ldmain.c (warning_callback, warning_find_reloc): Prepend
1631*3d8817e4Smiod	"warning: " to warning messages.
1632*3d8817e4Smiod
1633*3d8817e4Smiod2005-02-04  Alan Modra  <amodra@bigpond.net.au>
1634*3d8817e4Smiod
1635*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1636*3d8817e4Smiod	look up symbol for etree_provide here.
1637*3d8817e4Smiod
1638*3d8817e4Smiod2005-02-02  Daniel Jacobowitz  <dan@codesourcery.com>
1639*3d8817e4Smiod
1640*3d8817e4Smiod	* emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1641*3d8817e4Smiod
1642*3d8817e4Smiod2005-02-01  Edward Welbourne  <eddy@opera.com>
1643*3d8817e4Smiod	    Nick Clifton  <nickc@redhat.com>
1644*3d8817e4Smiod
1645*3d8817e4Smiod	* ld.texinfo (Source Code Reference): New node describing how to
1646*3d8817e4Smiod	access linker script defined variables from source code.
1647*3d8817e4Smiod
1648*3d8817e4Smiod2005-02-01  Alan Modra  <amodra@bigpond.net.au>
1649*3d8817e4Smiod
1650*3d8817e4Smiod	* ld.texinfo: Clarify --as-needed operation.
1651*3d8817e4Smiod
1652*3d8817e4Smiod2005-01-31  Andrew Cagney  <cagney@gnu.org>
1653*3d8817e4Smiod
1654*3d8817e4Smiod	* configure: Regenerate to track ../gettext.m4.
1655*3d8817e4Smiod
1656*3d8817e4Smiod2005-01-31  Nick Clifton  <nickc@redhat.com>
1657*3d8817e4Smiod
1658*3d8817e4Smiod	* ldver.c (ldversion): Bump reported copyright date to 2005.
1659*3d8817e4Smiod
1660*3d8817e4Smiod2005-01-31  Nick Clifton  <nickc@redhat.com>
1661*3d8817e4Smiod
1662*3d8817e4Smiod	* configure.tgt: Remove obsolete targets m68k-lynxos and
1663*3d8817e4Smiod	sparc-lynxos.
1664*3d8817e4Smiod
1665*3d8817e4Smiod2005-01-28  Julian Brown  <julian@codesourcery.com>
1666*3d8817e4Smiod
1667*3d8817e4Smiod	* emultempl/armelf.em (fix_v4bx): New variable.
1668*3d8817e4Smiod	(arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1669*3d8817e4Smiod	value to bfd.
1670*3d8817e4Smiod	(PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1671*3d8817e4Smiod	(PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1672*3d8817e4Smiod	(PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1673*3d8817e4Smiod	(PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1674*3d8817e4Smiod	* NEWS: Mention --fix-v4bx.
1675*3d8817e4Smiod	* ld.texinfo: Document --fix-v4bx.
1676*3d8817e4Smiod
1677*3d8817e4Smiod2005-01-25  Mark Mitchell  <mark@codesourcery.com>
1678*3d8817e4Smiod
1679*3d8817e4Smiod	* emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1680*3d8817e4Smiod	as to include .ARM.exidx$${Base,Limit}.
1681*3d8817e4Smiod	* ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1682*3d8817e4Smiod	Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1683*3d8817e4Smiod	Put .init_array, .fini_array, etc. into the read-only data
1684*3d8817e4Smiod	segment.
1685*3d8817e4Smiod
1686*3d8817e4Smiod2005-01-25  Alan Modra  <amodra@bigpond.net.au>
1687*3d8817e4Smiod
1688*3d8817e4Smiod	* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1689*3d8817e4Smiod	(gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1690*3d8817e4Smiod	only needed by an as-needed lib that didn't get linked.
1691*3d8817e4Smiod
1692*3d8817e4Smiod2005-01-23  Alan Modra  <amodra@bigpond.net.au>
1693*3d8817e4Smiod
1694*3d8817e4Smiod	* ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1695*3d8817e4Smiod	__DTOR_LIST__ description.
1696*3d8817e4Smiod
1697*3d8817e4Smiod2005-01-23  Alan Modra  <amodra@bigpond.net.au>
1698*3d8817e4Smiod
1699*3d8817e4Smiod	* ld.texinfo (Location Counter <dot outside sections>): Document
1700*3d8817e4Smiod	effects of orphan section placement, and ". = ." workaround.
1701*3d8817e4Smiod	* Makefile.in: Regenerate.
1702*3d8817e4Smiod
1703*3d8817e4Smiod2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
1704*3d8817e4Smiod
1705*3d8817e4Smiod	* emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1706*3d8817e4Smiod	* emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1707*3d8817e4Smiod
1708*3d8817e4Smiod2005-01-21  Jakub Jelinek  <jakub@redhat.com>
1709*3d8817e4Smiod
1710*3d8817e4Smiod	* ldgram.y (AS_NEEDED): New token.
1711*3d8817e4Smiod	(input_list): Handle AS_NEEDED ( input_list ).
1712*3d8817e4Smiod	* ldlex.l (AS_NEEDED): Add.
1713*3d8817e4Smiod	* ld.texinfo: Document AS_NEEDED ().
1714*3d8817e4Smiod	* NEWS: Mention AS_NEEDED ().
1715*3d8817e4Smiod
1716*3d8817e4Smiod2005-01-21  Ben Elliston  <bje@au.ibm.com>
1717*3d8817e4Smiod
1718*3d8817e4Smiod	* ldlang.c (lang_reasonable_defaults): Remove.
1719*3d8817e4Smiod	(lang_process): Don't call lang_reasonable_defaults.
1720*3d8817e4Smiod
1721*3d8817e4Smiod	* ldexp.c (exp_assop): Remove #if 0'd code.
1722*3d8817e4Smiod	(exp_print_tree): Likewise.
1723*3d8817e4Smiod	* ldlang.c (lang_memory_region_lookup): Likewise.
1724*3d8817e4Smiod	(open_output): Likewise.
1725*3d8817e4Smiod	(lang_do_assignments_1): Likewise.
1726*3d8817e4Smiod	(lang_place_orphans): Likewise.
1727*3d8817e4Smiod	(lang_enter_output_section_statement): Likewise.
1728*3d8817e4Smiod	(lang_reasonable_defaults): Likewise.
1729*3d8817e4Smiod	* ldlang.h (struct lang_input_statement_struct): Likewise.
1730*3d8817e4Smiod	* mri.c (mri_draw_tree): Likewise.
1731*3d8817e4Smiod	(mri_load): Likewise.
1732*3d8817e4Smiod	* pe-dll.c (generate_reloc): Likewise.
1733*3d8817e4Smiod	(make_import_fixup_entry): Likewise.
1734*3d8817e4Smiod	(pe_as16): Likewise.
1735*3d8817e4Smiod	* emultempl/beos.em (set_pe_subsystem): Likewise.
1736*3d8817e4Smiod	* emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1737*3d8817e4Smiod	* emultempl/pe.em: Likewise.
1738*3d8817e4Smiod	* emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1739*3d8817e4Smiod
1740*3d8817e4Smiod2005-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
1741*3d8817e4Smiod
1742*3d8817e4Smiod	* Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1743*3d8817e4Smiod	(earmelfb_linux_eabi.c): New target.
1744*3d8817e4Smiod	* Makefile.in: Regenerated.
1745*3d8817e4Smiod	* configure.tgt (arm*b-*-linux-gnueabi): New target.
1746*3d8817e4Smiod	* emulparams/armelfb_linux_eabi.sh: New file.
1747*3d8817e4Smiod
1748*3d8817e4Smiod2005-01-20  Nick Hudson  <skrll@netbsd.org>
1749*3d8817e4Smiod
1750*3d8817e4Smiod	PR ld/676
1751*3d8817e4Smiod	* emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1752*3d8817e4Smiod	Handle bfd_elf32_hppa_nbsd_vec.
1753*3d8817e4Smiod
1754*3d8817e4Smiod2005-01-19  Richard Sandiford  <rsandifo@redhat.com>
1755*3d8817e4Smiod
1756*3d8817e4Smiod	* ldmain.h (ld_sysroot): Change type to a constant string.
1757*3d8817e4Smiod	* ldmain.c (ld_sysroot): Likewise.
1758*3d8817e4Smiod	(get_relative_sysroot, get_sysroot): New functions, adding command-line
1759*3d8817e4Smiod	support for changing the sysroot.
1760*3d8817e4Smiod	(main): Call the new functions.
1761*3d8817e4Smiod	* lexsup.c (OPTION_SYSROOT): New.
1762*3d8817e4Smiod	(ld_options): Add --sysroot.
1763*3d8817e4Smiod	(parse_args): Add a dummy handler for it.
1764*3d8817e4Smiod	* ld.texinfo (--sysroot): Document.
1765*3d8817e4Smiod	* NEWS: Mention the new --sysroot option.
1766*3d8817e4Smiod
1767*3d8817e4Smiod2005-01-18  Alan Modra  <amodra@bigpond.net.au>
1768*3d8817e4Smiod
1769*3d8817e4Smiod	* ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1770*3d8817e4Smiod	(lang_place_orphans): Don't abort on just_syms_flag, instead call
1771*3d8817e4Smiod	bfd_link_just_syms.
1772*3d8817e4Smiod
1773*3d8817e4Smiod2005-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
1774*3d8817e4Smiod
1775*3d8817e4Smiod	* defilep.y (def_name, def_library): Combine into...
1776*3d8817e4Smiod	(def_image_name): New function.  Strip name to basename,
1777*3d8817e4Smiod	with warning.
1778*3d8817e4Smiod
1779*3d8817e4Smiod2005-01-12  Mark Kettenis  <kettenis@gnu.org>
1780*3d8817e4Smiod
1781*3d8817e4Smiod	* configure.in: Be sure to invoke config.sub using the shell.
1782*3d8817e4Smiod	* configure: Regenerate.
1783*3d8817e4Smiod
1784*3d8817e4Smiod2005-01-11  Alan Modra  <amodra@bigpond.net.au>
1785*3d8817e4Smiod
1786*3d8817e4Smiod	* configure.host: Correct sed patterns for last change.
1787*3d8817e4Smiod
1788*3d8817e4Smiod2005-01-10  Nick Clifton  <nickc@redhat.com>
1789*3d8817e4Smiod
1790*3d8817e4Smiod	PR binutils/609
1791*3d8817e4Smiod	* ldmisc.c (vfinfo): Add an extra argument: is_warning.  Use this
1792*3d8817e4Smiod	to determine whether config.make_executable should be set to FALSE in
1793*3d8817e4Smiod	conjunction with config.fatal_warnings.
1794*3d8817e4Smiod	(info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1795*3d8817e4Smiod	(einfo): Pass TRUE as the extra argument.
1796*3d8817e4Smiod
1797*3d8817e4Smiod2005-01-10  Greg Schaffer  <gschafer@zip.com.au>
1798*3d8817e4Smiod
1799*3d8817e4Smiod	* configure.host (linux targets): Use "${CC} -dumpspecs" instead
1800*3d8817e4Smiod	of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1801*3d8817e4Smiod	(ia64-*-aix): Delete - this target is obsolete, and would be
1802*3d8817e4Smiod	broken by this patch.
1803*3d8817e4Smiod
1804*3d8817e4Smiod2005-01-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1805*3d8817e4Smiod
1806*3d8817e4Smiod	* configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1807*3d8817e4Smiod	(sparc64-sun-solaris2*): New host.
1808*3d8817e4Smiod
1809*3d8817e4Smiod2005-01-06  Paul Brook  <paul@codesourcery.com>
1810*3d8817e4Smiod
1811*3d8817e4Smiod	* Makefie.am: Add earmelf_vxworks.
1812*3d8817e4Smiod	* Makefile.in: Regenerate.
1813*3d8817e4Smiod	* configure.tgt: Make arm-*-vxworks a separate case.
1814*3d8817e4Smiod	* emulparams/armelf_vxworks.sh: New function.
1815*3d8817e4Smiod
1816*3d8817e4Smiod2005-01-06  Alan Modra  <amodra@bigpond.net.au>
1817*3d8817e4Smiod
1818*3d8817e4Smiod	* emultempl/ppc64elf.em (no_multi_toc): New var.
1819*3d8817e4Smiod	(gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1820*3d8817e4Smiod	(OPTION_NO_MULTI_TOC): Define.
1821*3d8817e4Smiod	(PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1822*3d8817e4Smiod	(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1823*3d8817e4Smiod
1824*3d8817e4Smiod2005-01-05  Nick Clifton  <nickc@redhat.com>
1825*3d8817e4Smiod
1826*3d8817e4Smiod	PR binutils/614
1827*3d8817e4Smiod	* ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1828*3d8817e4Smiod	Standard's specification for parsable error messages.
1829*3d8817e4Smiod
1830*3d8817e4Smiod2005-01-04  Paul Brook  <paul@codesourcery.com>
1831*3d8817e4Smiod
1832*3d8817e4Smiod	* Makefile.am: Correct dependency for earmsymbian.c.
1833*3d8817e4Smiod	* Makefile.in: Regenerate.
1834*3d8817e4Smiod
1835*3d8817e4SmiodFor older changes see ChangeLog-2004
1836*3d8817e4Smiod
1837*3d8817e4SmiodLocal Variables:
1838*3d8817e4Smiodmode: change-log
1839*3d8817e4Smiodleft-margin: 8
1840*3d8817e4Smiodfill-column: 74
1841*3d8817e4Smiodversion-control: never
1842*3d8817e4SmiodEnd:
1843