* dwarf2-frame.c: (execute_cfa_program): Don't access past the
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
390fbbf1
AM
12005-11-24 Alan Modra <amodra@bigpond.net.au>
2
3 * ldlang.c (lang_output_section_find_by_flags): Add match_type param.
4 Run two passes, first using match_type, second without.
5 * ldlang.h (lang_match_sec_type_func): New typedef.
6 (lang_output_section_find_by_flags): Update prototype.
7 bfd_match_sections_by_type and lang_output_section_find_by_flags.
8 * emultempl/pe.em (place_orphan): Likewise.
9
be529132
AM
102005-11-24 Alan Modra <amodra@bigpond.net.au>
11
12 * ldlang.c (lang_insert_orphan): Skip first assignment to dot
13 in script when looking for place to insert orphan statements.
14
e87deb82
AM
152005-11-18 Alan Modra <amodra@bigpond.net.au>
16
17 * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
18 (.got, .toc1, .opd): Likewise.
19
94b50910
AM
202005-11-18 Alan Modra <amodra@bigpond.net.au>
21
22 * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
23 changes to section alignment.
24 * ldmisc.c (vfinfo): Handle %ld and %lu.
25
dff70155
MM
262005-11-16 Mark Mitchell <mark@codesourcery.com>
27
28 * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
29 * Makefile.in: Regenerated.
30 * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
31 Add @file documentation.
be529132 32
7b986e99
AM
332005-11-17 Alan Modra <amodra@bigpond.net.au>
34
35 * ldlang.h (lang_input_section_type): Remove "ifile" field.
36 (lang_insert_orphan, lang_add_section): Update prototypes.
37 * ldlang.c (lang_insert_orphan): Remove "file" param.
38 (lang_add_section): Likewise. Update all callers.
39 (wild_sort): Get an input section's bfd via "section->owner".
40 (size_input_section): Access just_syms_flag via bfd usrdata.
41 (lang_place_orphans): Update ldemul_place_orphan call.
42 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
43 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
44 * ldemul.c (ldemul_place_orphan): Likewise.
45 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
46 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
47 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
48 (sort_sections): Likewise.
49 (place_orphan): Remove "file" param. Adjust lang_add_section call.
50 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
51 lang_add_section and lang_insert_orphan calls.
52 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
53 lang_add_section call.
54 (build_section_lists): Access just_syms_flag via bfd usrdata.
55 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
56 lang_add_section call.
57 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
58 lang_add_section and lang_insert_orphan calls.
59 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
60 owner.
61 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
62 lang_add_section call.
63 (build_toc_list): Access just_syms_flag via bfd usrdata.
64 (build_section_lists): Likewise.
65 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
66 param. Adjust place_orphan call.
67 (ld_build_required_section_dependence): Access bfd via section owner.
68
bd4d42c1
AM
692005-11-16 Alan Modra <amodra@bigpond.net.au>
70
71 * ldlang.h (lang_output_section_statement_type): Add prev.
72 * ldlang.c (new_afile): Always init header.type.
73 (output_statement_newfunc): Set os.prev.
74 (output_prev_sec_find): Use os.prev.
75 (lang_enter_output_section_statement): Formatting.
76 (lang_final, lang_add_target, lang_add_fill): Likewise.
77 (lang_add_data, lang_add_reloc): Likewise.
78 (lang_add_attribute): Only alloc the header.
79
7270c5ed
AM
802005-11-16 Alan Modra <amodra@bigpond.net.au>
81
82 * ld.texinfo (Forced Output Alignment): Specify that this is an
83 alignment increase, not an override.
84 * ldlang.c (init_os): Set output section alignment here..
85 (lang_add_section): ..rather than here.
86 (lang_size_sections_1): Consolidate alignment code. Warn if section
87 alignment affects start address when explicit address given.
88
a541e3ce
SE
892005-11-07 Steve Ellcey <sje@cup.hp.com>
90
91 * configure: Regenerate after modifying bfd/warning.m4.
92
70487fb2
AM
932005-11-07 Olaf Hering <olh@suse.de>
94
95 * ldmain.c (main): Add \n to error message.
96
384a9dda
AM
972005-11-04 Alan Modra <amodra@bigpond.net.au>
98
99 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
100 (output_statement_newfunc): Rewrite.
101 (lang_output_section_find_1): Merge into..
102 (lang_output_section_find): ..here.
103 (lang_output_section_statement_lookup_1): Rewrite to handle
104 multiple sections with the same name.
105 (output_statement_table_init): Commonise error message.
106 (lang_init, open_output): Likewise.
107
6f2942ed
PB
1082005-11-03 Paul Brook <paul@codesourcery.com>
109
110 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
111 * scripttempl/armbpabi.sc: Make init/fini array consistent with
112 elf.sc.
113 * scripttempl/elf32sh-symbian.sc: Ditto.
114 * scripttempl/elfxtensa.sc: Ditto.
115
7fabd029
AM
1162005-11-03 Alan Modra <amodra@bigpond.net.au>
117
118 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
119 memspec. Make "processed" a bitfield.
120 (lang_data_statement_type, lang_reloc_statement_type): Rename
121 output_vma to output_offset.
122 * ldlang.c (lang_output_section_statement_lookup_1): Init
123 all_input_readonly. Don't init memspec.
124 (init_os): Remove incorrect comment.
125 (print_data_statement, print_reloc_statement): Adjust for
126 lang_data_statement_type and lang_reloc_statement_type change.
127 (lang_size_sections_1, lang_add_reloc): Likewise.
128 * ldwrite.c (build_link_order): Likewise.
129
a55ff675
MM
1302005-10-30 Mark Mitchell <mark@codesourcery.com>
131
132 * lexsup.c (help): Document "@FILE".
133
9e5169a8
L
1342005-10-30 H.J. Lu <hongjiu.lu@intel.com>
135
136 * Makefile.am: Run "make dep-am".
137 * Makefile.in: Regenerated.
138
139 * dep-in.sed: Replace " ./" with " ".
140
3c9b82ba
NC
1412005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
142
143 * Makefile.am: Add support for Z80
144 * Makefile.in: Regenerated
145 * configure.tgt: Add z80-*-coff
146 * emulparams/z80.sh: New file.
147 * emultempl/z80.em: New file.
148 * scripttempl/z80.sc New file.
149 * NEWS: Mention this new support.
150
3caac5b8
AM
1512005-10-25 Alan Modra <amodra@bigpond.net.au>
152
153 * po/ld.pot: Regenerate.
154
4f9c04f7
AM
1552005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
156
157 * ld.texinfo (--reduce-memory-overheads): Fix typo.
158
ccd2ec6a
L
1592005-10-23 H.J. Lu <hongjiu.lu@intel.com>
160
161 PR ld/1487
162 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
163 bfd_match_sections_by_type to match section types.
164
165 * ldlang.c (init_os): Take the input section. Call
166 bfd_init_private_section_data if the input section isn't NULL.
167 (exp_init_os): Pass NULL to init_os.
168 (map_input_to_output_sections): Likewise.
169 (lang_add_section): Pass the input section to init_os.
170
3242b11e
PB
1712005-10-19 Paul Brook <paul@codesourcery.com>
172
173 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
174
ecca9871
L
1752005-10-15 H.J. Lu <hongjiu.lu@intel.com>
176
177 PR ld/1467
178 * emultempl/elf32.em: Include "elf-bfd.h".
179 (gld${EMULATION_NAME}_place_orphan): Check section type and
180 don't use section name for ELF input sections.
181
182 * ld.texinfo: Document orphan section processing.
183
184 * ldlang.c (lang_output_section_find_by_flags): Match section
185 types by calling bfd_match_sections_by_type.
186
86043bbb
MM
1872005-10-13 Mark Mitchell <mark@codesourcery.com>
188
189 * ld.texino: Describe double-quoted string syntax for version
190 nodes.
191 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
192 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
193 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
194 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
195 version nodes without a pattern.
196 (lang_new_vers_pattern): Add literal_p parameter.
197 (lang_do_version_exports_section): Pass it.
198
3e8a519c
MM
1992005-10-12 Mark Mitchell <mark@codesourcery.com>
200
201 * NEWS: Mention @file.
202
f0e0fb23
L
2032005-10-05 H.J. Lu <hongjiu.lu@intel.com>
204
205 PR ld/1396
206 * ldcref.c (check_refs): Accept bfd_boolean.
207 (check_local_sym_xref): Pass FALSE to check_refs.
208 (check_nocrossref): Pass TRUE to check_refs.
209 (check_refs_info): Add bfd_boolean.
210 (check_refs): Add bfd_boolean to check_refs_info.
211 (check_reloc_refs): Match relocations with proper symbols.
212
213 * ldmisc.c (vfinfo): Don't add extra ":\n".
214
e60cc415
DS
2152005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
216
217 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
218 default entry symbol to ENTRY here.
219 * scripttempl/pe.sc: Not here.
220
4520f868
JW
2212005-09-30 James E Wilson <wilson@specifix.com>
222
223 * ldlang.c (lang_startup): Add missing ": " to einfo call.
224
b898a385
L
2252005-09-30 H.J. Lu <hongjiu.lu@intel.com>
226
227 * Makefile.am: Run "make dep-am".
228 * Makefile.in: Regenerated.
229 * aclocal.m4: Likewise.
230
750877ba
L
2312005-09-30 H.J. Lu <hongjiu.lu@intel.com>
232
233 * ldlang.c (output_statement_hash_entry): New type.
234 (output_statement_table): New variable for hash table.
235 (output_statement_newfunc): New function.
236 (output_statement_table_init): Likewise.
237 (output_statement_table_free): Likewise.
238 (lang_init): Call output_statement_table_init.
239 (lang_finish): Renamed to ...
240 (lang_end): This.
241 (lang_process): Updated.
242 (lang_finish): New function.
243 (lang_output_section_find_1): Use hash table.
244 (lang_output_section_statement_lookup_1): Likewise.
245
246 * ldlang.h (lang_finish): New.
247
248 * ldmain.c (main): Call lang_finish.
249
869b9d07
MM
2502005-09-30 Mark Mitchell <mark@codesourcery.com>
251
252 * ldmain.c (main): Use expandargv.
253
95f4309b 2542005-09-30 Catherine Moore <clm@cm00re.com>
384a9dda 255
95f4309b
CM
256 * Makefile.am: Bfin support.
257 * Makefile.in: Regenerated.
258 * aclocal.m4: Regenerated.
259 * configure.tgt: Bfin support.
260 * emulparams/bfin.sh: New file.
261 * emultempl/bfin.em: New file.
262
a70c2403
NC
2632005-09-30 Matthias Kurz <mk@baerlap.north.de>
264
265 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
266 version of <locale.h> when ENABLE_NLS is not defined.
267
bbf115d3
L
2682005-09-27 H.J. Lu <hongjiu.lu@intel.com>
269
270 * ld.texinfo (ALIGN): Document it as forcing output section
271 alignment.
272
273 * ldgram.y (ALIGN): Support it for forcing output section
274 alignment.
275
a5df8c84
AM
2762005-09-20 Alan Modra <amodra@bigpond.net.au>
277
f68d3f78
AM
278 * ldlang.h (lang_output_section_statement_struct): Change type of
279 "processed" to bfd_boolean.
280 * ldexp.c (fold_name): Update references to os->processed.
281 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
282 (lang_size_sections_1): Likewise.
283 (lang_reset_memory_regions): Likewise.
284
a5df8c84
AM
285 PR ld/1353
286 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
287 so that unused output section statements affect dot.
288
6aa29e7b
JJ
2892005-09-08 Jakub Jelinek <jakub@redhat.com>
290
291 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
292 and --eh-frame-hdr options.
293
5397b1fe
AM
2942005-09-07 Alan Modra <amodra@bigpond.net.au>
295
296 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
297 (exp_fold_tree_1): Print assert message only in final stage of
298 linking. Trigger assertion failure if expression cannot be
299 evaluated.
300
12b9ff6c
L
3012005-09-06 H.J. Lu <hongjiu.lu@intel.com>
302
303 PR ld/1263
304 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
305 --just-symbols on DSO.
306
2caf1300
AM
3072005-08-18 Alan Modra <amodra@bigpond.net.au>
308
309 * scripttempl/elf.sc: Remove commented out defines.
310
c17ae8a2
AM
3112005-08-18 Alan Modra <amodra@bigpond.net.au>
312
848cf006
AM
313 * emulparams/a29k.sh: Delete.
314 * emulparams/ebmon29k.sh: Delete.
315 * emulparams/sa29200.sh: Delete.
c17ae8a2
AM
316 * Makefile.am: Remove a29k support.
317 * configure.tgt: Likewise.
318 * ld.texinfo: Likewise.
319 * Makefile.in: Regenerate.
320
96f8ade5
JJ
3212005-08-17 Jakub Jelinek <jakub@redhat.com>
322
323 * ldgram.y (vers_defns): Don't lose pattern list before
324 extern NAME {}. Handle global, local and extern symbol names.
325
24dc748d
KK
3262005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
327
328 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
329 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
330
38975f9e
NC
3312005-08-10 Nick Clifton <nickc@redhat.com>
332
333 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
334 before lang_size_sections.
335
66bcaf1f
AM
3362005-08-09 Alan Modra <amodra@bigpond.net.au>
337
338 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
339
3402005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
44c86e8c
NC
341
342 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
343 Add rules to build these emulations.
344 * Makefile.in: Regenerate.
345 * configure.tgt (msp430): Add the new variants to the
346 targ_extra_emuls list.
347 * emulparams/msp430all.sh: Add entries for the msp430x21xx
348 variants.
349
7af8e998
L
3502005-08-05 H.J. Lu <hongjiu.lu@intel.com>
351
352 * ld.texinfo: Document PROVIDE_HIDDEN.
353
354 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
355 (exp_provide): Add and set hidden.
356
357 * ldexp.h (etree_type): Add hidden to assign.
358
359 * ldgram.y (PROVIDE_HIDDEN): New.
360 * ldlex.l (PROVIDE_HIDDEN): Likewise.
361
362 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
363 symbols.
364
9599dfb1
AM
3652005-08-05 Alan Modra <amodra@bigpond.net.au>
366
367 * emulparams/elf_x86_64.sh: Revert last change.
368 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
369
827a1c67
AM
3702005-08-05 Alan Modra <amodra@bigpond.net.au>
371
372 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
373 OTHER_END_SYMBOLS.
374 * emulparams/armelf_linux.sh: Likewise.
375 * emulparams/armnto.sh: Likewise.
376 * emulparams/criself.sh: Likewise.
377 * emulparams/elf32mcore.sh: Likewise.
378 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
379 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
380 (OTHER_END_SYMBOLS): Don't define.
381 * emulparams/elf32fr30.sh: Likewise.
382 * emulparams/elf64mmix.sh: Likewise.
383 * emulparams/hppa64linux.sh: Likewise.
384 * emulparams/m32relf.sh: Likewise.
385 * emulparams/vxworks.sh: Likewise.
386 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
387 (OTHER_BSS_END_SYMBOLS): Add.
388 (OTHER_END_SYMBOLS): Move before current end sym definitions.
389 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
390 * scripttempl/elf.sc: Likewise.
391 * scripttempl/elf32sh-symbian.sc: Likewise.
392 * scripttempl/elf_chaos.sc: Likewise.
393 * scripttempl/elfxtensa.sc: Likewise.
394 * scripttempl/iq2000.sc: Likewise.
395 * scripttempl/xstormy16.sc: Likewise.
396
397 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
398 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
399 (REL_LARGE, LARGE_SECTIONS): Add.
400 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
401 (REL_LARGE): Define.
402 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
403 (LARGE_SECTIONS): Define.
404 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
405 (LARGE_SECTIONS): Define.
406
046183de
AM
4072005-08-04 Alan Modra <amodra@bigpond.net.au>
408
409 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
410 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
411 (struct ld_emulation_xfer_struct): Remove do_assignments field.
412 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
413 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
414 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
415 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
416 * emultempl/armcoff.em: Likewise.
417 * emultempl/beos.em: Likewise.
418 * emultempl/generic.em: Likewise.
419 * emultempl/gld960.em: Likewise.
420 * emultempl/gld960c.em: Likewise.
421 * emultempl/linux.em: Likewise.
422 * emultempl/lnk960.em: Likewise.
423 * emultempl/m68kcoff.em: Likewise.
424 * emultempl/pe.em: Likewise.
425 * emultempl/sunos.em: Likewise.
426 * emultempl/ticoff.em: Likewise.
427 * emultempl/vanilla.em: Likewise.
428 * emultempl/elf32.em: Likewise.
429 (gld*_provide_bound_symbols): Delete.
430 (gld*_provide_init_fini_syms): Delete.
431 (gld*_before_allocation): Don't call ldemul_do_assignments.
432 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
433 (LDEMUL_DO_ASSIGNMENTS): Delete.
434 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
435 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
436
fa498e09
AM
4372005-08-04 Alan Modra <amodra@bigpond.net.au>
438
439 * Makefile.am (eelf32m32c.c): Fix dependencies.
440 * Makefile.in: Regenerate.
441
1e035701
AM
4422005-08-04 Alan Modra <amodra@bigpond.net.au>
443
444 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
445 (finish_default): New function.
446 * ldemul.h (finish_default): Declare.
447 * emultempl/aix.em (gld*_before_allocation): Call
448 before_allocation_default rather than strip_excluded_output_sections.
449 (ld_*_emulation): Init finish field to finish_default.
450 * emultempl/armcoff.em: Likewise.
451 * emultempl/beos.em: Likewise.
452 * emultempl/elf32.em: Likewise.
453 * emultempl/generic.em: Likewise.
454 * emultempl/gld960.em: Likewise.
455 * emultempl/gld960c.em: Likewise.
456 * emultempl/hppaelf.em: Likewise.
457 * emultempl/linux.em: Likewise.
458 * emultempl/lnk960.em: Likewise.
459 * emultempl/m68kcoff.em: Likewise.
460 * emultempl/mmo.em: Likewise.
461 * emultempl/pe.em: Likewise.
462 * emultempl/ppc64elf.em: Likewise.
463 * emultempl/sunos.em: Likewise.
464 * emultempl/ticoff.em: Likewise.
465 * emultempl/vanilla.em: Likewise.
466
9f4fb502
AM
4672005-08-03 Alan Modra <amodra@bigpond.net.au>
468
469 * ldlang.c (exp_init_os): Handle etree_provide.
470 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
471 (OTHER_BSS_END_SYMBOLS): ..this.
472 * emulparams/armelf_linux.sh: Likewise.
473 * emulparams/armnto.sh: Likewise.
474 * emulparams/criself.sh: Likewise.
475 * emulparams/crislinux.sh: Likewise.
476 * emulparams/elf32frv.sh: Likewise.
477 * emulparams/elf32mcore.sh: Likewise.
478 * emulparams/elf32ppc.sh: Likewise.
479 * emulparams/elf32ppclinux.sh: Likewise.
480 * emulparams/hppa64linux.sh: Likewise.
481 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
482 $OTHER_BSS_END_SYMBOLS.
483 * scripttempl/elf32sh-symbian.sc: Likewise.
484 * scripttempl/elf_chaos.sc: Likewise.
485 * scripttempl/iq2000.sc: Likewise.
486 * scripttempl/xstormy16.sc: Likewise.
487 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
488 * scripttempl/elfxtensa.sc: Likewise.
489
e9156f74
NC
4902005-07-29 Nick Clifton <nickc@redhat.com>
491
492 * ldmain.c (main): Allow -shared and -static to be used together.
493 * ld.texinfo (-static): Mention that it is allowed with -shared.
494
89806866
DD
4952005-07-28 DJ Delorie <dj@redhat.com>
496
497 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
498 unary & address operator, as that breaks GCC's strict aliasing
499 rules.
500
3b22753a
L
5012005-07-25 Jan Hubicka <jh@suse.cz>
502 H.J. Lu <hongjiu.lu@intel.com>
503
504 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
505
506 * scripttempl/elf.sc: Updated for large section support.
507
9f971fcb
NC
5082005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
509
510 * configure.tgt: Remove i[3-7]86-*-rtemself*.
511 Remove sparc-*-rtemself*.
512
71f51525
BE
5132005-07-21 Ben Elliston <bje@gnu.org>
514
515 * ldgram.y (ldgram_want_filename): Remove unused static.
516
fe773494
DD
5172005-07-20 DJ Delorie <dj@redhat.com>
518
519 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
520 (EXTRA_EM_FILE): New.
521
0e1b44ba
L
5222005-07-19 H.J. Lu <hongjiu.lu@intel.com>
523
524 * ldmain.c (main): Reindent.
525
a3540342
PB
5262005-07-19 Paul Brook <paul@codesourcery.com>
527
528 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
529 to determine dynamic linker name.
530
85da3a56
NC
5312005-07-18 Nick Clifton <nickc@redhat.com>
532
533 * configure.tgt: Restore alpha ordering to list of arches.
534
42fa7765
AM
5352005-07-16 Alan Modra <amodra@bigpond.net.au>
536
537 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
538 (gld*_before_allocation): Call ldemul_do_assignments rather than
539 gld*_provide_init_fini_syms directly.
540 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
541 (ppc_do_assignments): New function.
542 (LDEMUL_AFTER_ALLOCATION): Don't define.
543 (LDEMUL_DO_ASSIGNMENTS): Define.
544
0f82ff91
AM
5452005-07-16 Alan Modra <amodra@bigpond.net.au>
546
547 * Makefile.am: Run "make dep-am".
548 (emipsidt.c, emipsidtl.c): Depend on generic.em.
549 * Makefile.in: Regenerate.
550
5e797c2c
AM
5512005-07-15 Alan Modra <amodra@bigpond.net.au>
552
553 * ldemul.c (ldemul_do_assignments): New function.
554 (do_assignments_default): New function.
555 * ldemul.h (ldemul_do_assignments): Declare.
556 (do_assignments_default): Declare.
557 (struct ld_emulation_xfer_struct): Add do_assignments.
558 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
559 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
560 * emultempl/armcoff.em: Likewise.
561 * emultempl/beos.em: Likewise.
562 * emultempl/generic.em: Likewise.
563 * emultempl/gld960.em: Likewise.
564 * emultempl/gld960c.em: Likewise.
565 * emultempl/linux.em: Likewise.
566 * emultempl/lnk960.em: Likewise.
567 * emultempl/m68kcoff.em: Likewise.
568 * emultempl/pe.em: Likewise.
569 * emultempl/sunos.em: Likewise.
570 * emultempl/ticoff.em: Likewise.
571 * emultempl/vanilla.em: Likewise.
572 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
573 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
574
49f58d10
JB
5752005-07-14 Jim Blandy <jimb@redhat.com>
576
577 Add support for the Renesas M32C and M16C.
578 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
579 (eelf32m32c.c): New target.
580 * Makefile.in: Regenerated.
581 * configure.tgt: Add case for m32c-*-elf.
582 * emulparams/elf32m32c.sh: New file.
583
a3c2b96a
AM
5842005-07-14 Alan Modra <amodra@bigpond.net.au>
585
586 * ldlang.c (strip_excluded_output_sections): Don't call
587 bfd_gc_sections.
588 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
589 (gld*_provide_init_fini_syms): Move.
590 (gld*_before_allocation): Call the above from here..
591 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
592 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
593 * emultempl/ppc64elf.em (ppc_finish): Likewise.
594
438361cd
NC
5952005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
596
597 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
598 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
599 powerpcle-*-rtems*.
600
2c7fd14a
CF
6012005-07-09 Christopher Faylor <cgf@timesys.com>
602
603 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
604 relocation by default.
605 (compute_dll_image_base): Avoid linking into cygwin dll address space.
606
32124d5b
AM
6072005-07-08 Alan Modra <amodra@bigpond.net.au>
608
609 * ldlang.c (wild_sort): Formatting.
610 (strip_excluded_output_sections): Strip zero size sections here.
611 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
612 (gld*_finish): Don't call the above.
613 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
614 * emultempl/ppc64elf.em (ppc_finish): Likewise.
615
4cd5aacc 6162005-07-05 Paul Brook <paul@codesourcery.com>
9d8504b1
PB
617
618 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
619 (eelf32ppcvxworks.o): Add dependencies.
620 * Makefile.in: Regenerate.
621 * configure.tgt: Add entry for powerpc-vxworks.
622 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
623 * emulparams/elf32ppcvxworks.sh: New file.
624 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
625 (is_ppc_elf32_vec): New function.
626 (ppc_after_open, ppc_before_allocation,
627 gld${EMULATION_NAME}_after_allocation): Use it.
628
35eb9fb6
NC
6292005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
630
631 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
632 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
633
5b5a4ec7
NC
6342005-07-04 Mike Frysinger <vapier@gentoo.org>
635
636 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
637 name.
638
80447b21
NC
6392005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
640
641 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
642
711c0baa
AM
6432005-07-04 Aurelien Jarno <aurel32@debian.org>
644
645 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
646
c8c9c297
AM
6472005-07-01 Alan Modra <amodra@bigpond.net.au>
648
649 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
650
b753922c
BE
6512005-06-30 Ben Elliston <bje@gnu.org>
652
653 * Makefile.am (check-DEJAGNU): Don't search for expect.
654 * Makefile.in: Regenerate.
655
c3298874
BE
6562005-06-30 Ben Elliston <bje@gnu.org>
657
658 * Makefile.am (EXPECT): Set to expect.
659 (RUNTEST): Likewise, set to runtest.
660 * Makefile.in: Regenerate.
661
a82644e2
NC
6622005-06-16 Alexander Klimov <alserkli@inbox.ru>
663
664 * emultempl/armelf.em: Add quotes to avoid a null test
665 expression.
666
e185dd51
DJ
6672005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
668
669 * ld.texinfo (Command Line Options): Add @item for --hash-size.
670
9d12f64c
AM
6712005-06-10 Alan Modra <amodra@bigpond.net.au>
672
673 * scripttempt/elf.sc (.bss): Align tail in a way that allows
674 empty section pruning.
675
502bdb00
JW
6762005-06-09 Steve Ellcey <sje@cup.hp.com>
677
678 * configure.in (AM_BINUTILS_WARNINGS): Add.
679 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
680 * config.in: Regenerate.
681 * configure: Regenerate.
682 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
683 * ldmain.c: Ditto.
684
dea2f0a8
AM
6852005-06-09 Alan Modra <amodra@bigpond.net.au>
686
687 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
688
e9ee469a
AM
6892005-06-09 Alan Modra <amodra@bigpond.net.au>
690
691 * ld.h (lang_phase_type): Move to..
692 * ldexp.h: ..here. Add lang_mark_phase_enum.
693 (node_type): Remove etree_undef and etree_unspec.
694 (exp_data_seg): Delete.
695 (struct ldexp_control, expld): New.
696 (invalid, exp_mark_used_section): Delete.
697 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
698 exp_get_abs_int): Update prototypes.
699 * ldexp.c (assigning_to_dot): Delete.
700 (expld): Define.
701 (make_abs): Operate directly on expld.result. Update all callers.
702 (new_abs): Likewise. Return void.
703 (new_rel_from_abs): Rename from new_rel_from_section.
704 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
705 Update all callers.
706 (fold_unary): Operate on expld.result and return void. Remove
707 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
708 params. Update all callers.
709 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
710 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
711 (fold_unary <ABSOLUTE>): Use make_abs.
712 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
713 allocating_phase.
714 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
715 (fold_binary <'%','/'>): Don't error if marking.
716 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
717 marking.
718 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
719 error when marking.
720 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
721 (exp_fold_tree_1): Don't error when marking.
722 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
723 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
724 current section, instead check for NULL dotp.
725 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
726 source unless the symbol is referenced and undefined.
727 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
728 params to expld.
729 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
730 and "mark_used" params. Save params to expld. Update all callers.
731 (exp_assop): Do without temp var.
732 (exp_print_tree <etree_undef>): Delete code.
733 (exp_get_vma): Remove "allocation_done" param. Correct error return.
734 (exp_get_fill, exp_get_abs_int): Likewise.
735 (exp_get_value_int): Remove "allocation_done" param.
736 (exp_mark_used_section): Delete.
737 * ldgram.y (fill_exp): Update exp_get_fill call.
738 (origin_spec, length_spec): Update exp_get_vma call.
739 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
740 (lang_mark_used_section_1, lang_mark_used_section): Delete.
741 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
742 marking mode. Merge old lang_mark_used_section code. Correct handling
743 of output sections with excluded input sections and data statements.
744 Don't drop non-zero sized sections. Don't zap os->bfd_section.
745 Do set SEC_EXCLUDE when appropriate.
746 (print_output_section_statement): Update for changed ldexp.c
747 interface.
748 (print_assignment, lang_size_sections_1): Likewise.
749 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
750 (lang_new_phdr, lang_record_phdrs): Likewise.
751 (lang_size_sections): Likewise.
752 (insert_pad): Use following statement if it is a pad, rather than
753 creating a new one.
754 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
755 process ignored output section to set vma and lma, but don't
756 update dot for these sections. Don't error if marking.
757 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
758 update dot for ignored sections.
759 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
760 section with SEC_ALLOC.
761 (one_lang_size_sections_pass): New function.
762 (lang_size_sections): Remove first five params. Set expld.phase on
763 entry and exit. Use one_lang_size_sections_pass.
764 (lang_do_assignments): Remove all params. Update all callers.
765 (lang_reset_memory_regions): Clear os->processed for all output
766 section statements.
767 * ldlang.h (lang_do_assignments): Update prototype.
768 (lang_size_sections): Likewise.
769 (one_lang_size_sections_pass): Declare.
770 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
771 lang_size_sections and lang_do_assignments calls.
772 * emultempl/elf32.em (layout_sections_again): Likewise.
773 * emultempl/ppc64elf.em (ppc_before_allocation): Use
774 one_lang_size_sections_pass.
775
b2be2013
AH
7762005-06-08 Aldy Hernandez <aldyh@redhat.com>
777
778 * emulparams/elf32ms1.sh: New.
779
a34e3ecb
EC
7802005-06-07 Eric Christopher <echristo@redhat.com>
781
782 * Makefile.am (eelf32ms1.c): Use tab.
783 * Makefile.in: Regenerate.
784
9e1f170f
AH
7852005-06-07 Aldy Hernandez <aldyh@redhat.com>
786 Michael Snyder <msnyder@redhat.com>
787 Stan Cox <scox@redhat.com>
788
789 * configure.tgt: Same.
790
791 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
792 (eelf32ms1.c): Add eelf32ms1.c rule.
793
794 * Makefile.in: Regenerate.
795
b4f4e59f
AM
7962005-06-06 Alan Modra <amodra@bigpond.net.au>
797
798 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
799 ppc64_elf_edit_opd.
800
18b79829
L
8012005-06-05 H.J. Lu <hongjiu.lu@intel.com>
802
803 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
804 section only if the symbol will be defined.
805
079f985c
L
8062005-06-04 H.J. Lu <hongjiu.lu@intel.com>
807
808 PR 992
809 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
810 section for etree_assign, etree_provide and etree_provided.
811 Call fold_binary on etree_binary.
812
813 * ldlang.c (lang_mark_used_section_1): Handle load base.
814
e1fffbe6
AM
8152005-06-03 Alan Modra <amodra@bigpond.net.au>
816
817 * ldmain.c (link_callbacks): Add einfo.
818 (add_archive_element): Use passed info, not link_info.
819 (constructor_callback): Likewise.
820 (reloc_overflow): Don't handle null bfd specially.
821 (reloc_dangerous, unattached_reloc): Likewise.
822 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
823 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
824
408082ec
AM
8252005-06-02 Alan Modra <amodra@bigpond.net.au>
826
827 * ldexp.h (etree_value_type): Use "asection *" in place of
828 "struct lang_output_section_statement_struct *" for "section".
829 (exp_fold_tree): Likewise.
830 (exp_mark_used_section): Likewise.
831 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
832 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
833 exp_mark_used_section): Likewise for "current_section" param.
834 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
835 exp_get_abs_int): Adjust for above changes.
836 * ldlang.c (lang_mark_used_section_1, print_assignment,
837 lang_size_sections_1, lang_do_assignments_1): Likewise.
838 * ldexp.c (fold_name): Init entire result struct.
839
d0d3b2e8
MR
8402005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
841
842 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
843
a359509e
ZW
8442005-05-31 Zack Weinberg <zack@codesourcery.com>
845
846 * ldlang.c (entry_symbol_default): New file-scope global.
847 (lang_finish): Use it, not a hardwired "start".
848 (lang_default_entry): Set it.
849 * ldlang.h: Declare lang_default_entry.
850 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
851 not lang_add_entry, to override default entry point symbol.
852
8d6d53d4
RH
8532005-05-29 Richard Henderson <rth@redhat.com>
854
855 * emulparams/elf64alpha.sh (PLT): New.
856 (TEXT_PLT): New.
857 * emultempl/alphaelf.em (disable_relaxation): New.
858 (limit_32bit): Rename from elf64alpha_32bit; update all users.
859 (elf64_alpha_use_secureplt): Declare.
860 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
861 (alpha_after_open): New.
862 (alpha_before_allocation): New.
863 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
864 (PARSE_AND_LIST_LONGOPTS): Include them.
865 (PARSE_AND_LIST_OPTIONS): Likewise.
866 (PARSE_AND_LIST_ARGS_CASES): Likewise.
867 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
868 * scripttempl/elf.sc (TEXT_PLT): New.
869 (PLT): Use it.
870
f93e81d6
AS
8712005-05-27 Andreas Schwab <schwab@suse.de>
872
873 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
874
61f8ebf2
AM
8752005-05-24 Alan Modra <amodra@bigpond.net.au>
876
877 * emultempl/ppc32elf.em (after_allocation): Don't call
878 ppc_elf_set_sdata_syms when relocatable.
879
8b803601
L
8802005-05-21 H.J. Lu <hongjiu.lu@intel.com>
881
882 * Makefile.am (ld.1): Revert the last 2 changes.
883 (info-recursive): Depend on ld.1.
884 * Makefile.in: Regenerated.
885
e366efef
L
8862005-05-21 H.J. Lu <hongjiu.lu@intel.com>
887
888 * Makefile.am (ld.1): Depend on "info" instead of
889 "configdoc.texi ldver.texi".
890 * Makefile.in: Regenerated.
891
abf32a89
L
8922005-05-21 H.J. Lu <hongjiu.lu@intel.com>
893
894 * Makefile.am (ld.1): Depend on "info".
895 * Makefile.in: Regenerated.
896
e3e71e27
ZW
8972005-05-19 Zack Weinberg <zack@codesourcery.com>
898
899 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
900 * Makefile.in: Regenerate.
901
c19d1205
ZW
9022005-05-17 Zack Weinberg <zack@codesourcery.com>
903
904 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
905
970c3dbc
DJ
9062005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
907
908 * Makefile.am (ldver.texi): Don't use $<.
909 * Makefile.in: Regenerated.
910
6e1b59d2
DJ
9112005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
912
913 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
914 $(srcdir) before $(BFDDIR)/doc.
915 * Makefile.in: Regenerated.
916
75ff4589
L
9172005-05-17 H.J. Lu <hongjiu.lu@intel.com>
918
919 PR 797
920 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
921 take take a bfd_boolean, mark_used. Ignore assert failure if
922 mark_used is TRUE.
923 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
924 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
925 mark_used and pass down.
926 (fold_unary): Likewise.
927 (fold_binary): Likewise.
928 (fold_trinary): Likewise.
929 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
930 (exp_trinop): Likewise.
931 (exp_unop): Likewise.
932 (exp_nameop): Likewise.
933 (exp_get_vma): Likewise.
934 (exp_get_fill): Likewise.
935 (exp_get_abs_int): Likewise.
936 (fold_name): Likewise. Set SEC_KEEP in output section flags.
937 (exp_mark_used_section): New.
938
939 * ldexp.h (exp_mark_used_section): New.
940
941 * ldlang.c (lang_output_section_statement_lookup_1): Set the
942 ignored field to FALSE.
943 (lang_mark_used_section_1): New.
944 (lang_mark_used_section): Call lang_mark_used_section_1.
945 (strip_excluded_output_sections): Call lang_mark_used_section
946 and check for unused sections.
947 (lang_size_sections_1): Skip an output section if it should
948 be ignored.
949 (lang_do_assignments_1): Likewise.
950 (lang_process): Don't call lang_mark_used_section here.
951
952 * ldlang.h (lang_output_section_statement_type): Change
953 all_input_readonly to bitfield. Add ignored.
954
25ba8e7b
NC
9552005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
956 Peter S. Mazinger" <ps.m@gmx.net>
957
c19d1205
ZW
958 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
959 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
25ba8e7b 960
10dbd1f3
NC
9612005-05-17 Julian Brown <julian@codesourcery.com>
962
963 * ldlang.c (print_assignment): Do not rely upon a valid result
964 having a section associated with it.
965
3b83e13a
NC
9662005-05-17 Nick Clifton <nickc@redhat.com>
967
968 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
969 see if the same value is being used on the rhs as on the lhs.
970 (print_assignment): Call scan_for_self_assignment and if it
971 returns true, do no display the result of the computation but
972 instead just the final value of the symbol on the lhs.
973 * ld.texinfo: Document this behaviour and provide an example of
974 when it will happen.
975
42ecbf5e
DJ
9762005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
977
978 * Makefile.am (AM_MAKEINFOFLAGS): Define.
979 (TEXI2DVI): Define.
980 (ldver.texi): Depend on distributed files instead of built files.
981 (ld.info): Include $(srcdir) in the rule target. Remove actions.
982 (ld.dvi): Remove actions.
983 (MAINTAINERCLEANFILES): Add configdoc.texi.
984 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
985 (install-data-local): Renamed from install.
986 (Makefile): Remove explicit dependency.
987 * acinclude.m4: Remove obsolete code.
988 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
989 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
990
be2c2e39
BW
9912005-05-11 Bob Wilson <bob.wilson@acm.org>
992
993 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
994 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
995
0cf7d72c
AM
9962005-05-11 Alan Modra <amodra@bigpond.net.au>
997
998 * ldgram.y: Add SPECIAL token.
999 (sect_constraint): Handle SPECIAL.
1000 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
1001 (map_input_to_output_sections): Likewise.
1002 * ldlex.l (SPECIAL): Define.
1003 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
1004 GOT, PLT, GOTPLT): Define.
1005 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
1006 (ppc_after_open): New function.
1007 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
1008 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
1009 (PARSE_AND_LIST_OPTIONS): Document them.
1010 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1011 (LDEMUL_AFTER_OPEN): Define.
1012 * scripttempl/elf.sc (PLT): Don't override existing define.
1013 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
1014 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
1015
4ca02259
AM
10162005-05-10 Alan Modra <amodra@bigpond.net.au>
1017
1018 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
1019 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
1020 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
1021 DATA_SEGMENT_RELRO_END in script.
1022
baf6e97f
L
10232005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1024
1025 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1026 Don't use a removed section.
1027
a6e1b90f
L
10282005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1029
1030 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
1031 is defined in the ABS section.
1032
c18bae34
L
10332005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1034
1035 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1036 Put back !link_info.relocatable.
1037
4ef24a2e
L
10382005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1039
3f693ed5 1040 PR 878
4ef24a2e
L
1041 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1042 Just check link_info.executable.
1043
e06fb9c3
NC
10442005-05-06 Nick Clifton <nickc@redhat.com>
1045
1046 * Update the address and phone number of the FSF organization in
1047 the GPL notices in the following files:
1048 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1049 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1050 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1051 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1052 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1053 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1054 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1055 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1056 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1057 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1058 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1059 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1060 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1061 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1062 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1063 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1064 emultempl/vanilla.em, emultempl/xtensaelf.em
1065
01d9ad14
L
10662005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1067
1068 * scripttempl/elf.sc: Document the usage of __bss_start.
1069
eac338cf
PB
10702005-05-05 Paul Brook <paul@codesourcery.com>
1071
1072 * Makefile.am: Add eelf_i386_vxworks.
1073 * Makefile.in: Regenerate.
1074 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1075 * emulparams/elf_i386_vxworks.sh: New file.
1076 * emulparams/vxworks.sh: New file.
1077 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1078
f652615e
L
10792005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1080
1081 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1082 Call _bfd_elf_provide_section_bound_symbols.
1083
8423293d
AM
10842005-05-04 Alan Modra <amodra@bigpond.net.au>
1085
1086 * ldemul.c: Include bfdlink.h.
1087 (ldemul_before_allocation): Assume before_allocation is non-zero.
1088 (before_allocation_default): Call strip_excluded_output_sections.
1089 * ldlang.c (stripped_excluded_sections): New variable.
1090 (lang_add_section): Build input section list for each output
1091 section, attached via map_head and map_tail pointers.
1092 (strip_excluded_output_sections): Make global. Traverse the
1093 input section lists to find which output sections can go. Clear
1094 link_order pointers and set stripped_excluded_sections.
1095 (lang_process): Call strip_excluded_output_sections.
1096 * ldlang.h (strip_excluded_output_sections): Declare.
1097 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1098 * emultempl/aix.em (before_allocation): Call
1099 strip_excluded_output_sections.
1100 * emultempl/armcoff.em (before_allocation): Likewise.
1101 * emultempl/beos.em (before_allocation): Likewise.
1102 * emultempl/linux.em (before_allocation): Likewise.
1103 * emultempl/pe.em (before_allocation): Likewise.
1104 * emultempl/sunos.em (before_allocation): Likewise.
1105 * emultempl/elf32.em (before_allocation): Likewise. Call
1106 bfd_elf_size_dynsym_hash_dynstr too.
1107 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1108 (ld_lnk960): Use before_allocation_default.
1109
5daa8fe7
L
11102005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1111
1112 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1113 Updated for bfd_section_list_remove change.
1114 * ldlang.c (lang_insert_orphan): Likewise.
1115 (strip_excluded_output_sections): Likewise.
1116 (sort_sections_by_lma): New.
1117 (lang_check_section_addresses): Sort the sections before
1118 checking addresses.
1119
009b6a7a
DJ
11202005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1121
1122 * configure.tgt: Add h8300*-*-rtemscoff.
1123 Switch h8300*-*-rtems* to elf.
1124
279e75dc
BE
11252005-04-29 Ben Elliston <bje@au.ibm.com>
1126
1127 * ldgram.y (lang_memory_region_type): Make static.
1128 (ldgram_want_filename): Likewise.
1129 * ldemul.c (ld_emulation): Make static.
1130 * ldfile.h (ldfile_find_command_file): Remove extern.
1131 * ldfile.c (ldfile_find_command_file): Make static.
1132 * ldlang.h (unique_section_list): Remove extern declaration.
1133 * ldlang.c (unique_section_list): Make static.
1134 * mri.h (symbol_truncate): Remove extern declaration.
1135 * mri.c (symbol_truncate): Make static.
1136 (order, only_load, address, alias): Likewise.
1137 (alignment, subalignment): Likewise.
1138
4a2afbc1
L
11392005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1140
1141 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1142 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1143 last SEC_ALLOC section if such a section doesn't exist.
1144
fd9719b1
MK
11452005-04-24 Mark Kettenis <kettenis@gnu.org>
1146
1147 * configure.host: Add *-*-openbsd support.
1148
33bfe774
JB
11492005-04-15 Julian Brown <julian@codesourcery.com>
1150
1151 * ld.texinfo: Document --use-blx.
1152 * emultempl/armelf.em (use_blx): New variable.
1153 (arm_elf_create_output_section_statements): Communicate value of
1154 use_blx to bfd.
1155 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1156 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1157 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1158
9e9b66a9
AM
11592005-04-14 Alan Modra <amodra@bigpond.net.au>
1160
1161 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1162 * configure.in: Include ../bfd/warning.m4 contents.
1163 * Makefile.in: Regenerate.
1164 * configure: Regenerate.
1165
ceae3e33
AM
11662005-04-12 Alan Modra <amodra@bigpond.net.au>
1167
1168 * Makefile.am: Run "make dep-am".
1169 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1170 * Makefile.in: Regenerate.
1171 * config.in: Regenerate.
1172
7cedef86
AM
11732005-04-11 Alan Modra <amodra@bigpond.net.au>
1174
1175 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1176 as_needed libs that were not needed.
1177 (gld${EMULATION_NAME}_check_needed): Likewise.
1178
187ffe95
NC
11792005-04-07 Nick Clifton <nickc@redhat.com>
1180
1181 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
0cf7d72c 1182 ldfile.h can use the lang_input_statement type.
187ffe95 1183
72223188
JJ
11842005-04-06 Jakub Jelinek <jakub@redhat.com>
1185
1186 * ldlang.c: Formatting.
1187 (walk_wild_consider_section): Remember return value from wildcardp.
1188 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1189 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1190
11912005-04-06 Robert O'Callahan <rocallahan@novell.com>
1192
1193 * ld.h (lean_section_userdata_type): Remove.
1194 (fat_section_userdata_type): Remove file field.
1195 (SECTION_USERDATA_SIZE): Remove.
1196 * ldlang.c (init_os): Eliminate initialization of unused
1197 lean_section_userdata_type.
1198
1199 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1200 typedefs.
1201 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1202 and handler_data fields.
1203 * ldlang.c (callback_t): Removed.
1204 (walk_wild_consider_section, walk_wild_section_general,
1205 section_iterator_callback, find_section, is_simple_wild,
1206 match_simple_wild, walk_wild_section_specs1_wild0,
1207 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1208 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1209 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1210 functions.
1211 (lang_add_wild): Call analyze_walk_wild_section_handler.
1212 (walk_wild_section): Renamed to walk_wild_section_general and
1213 created a wrapper function.
1214 (section_iterator_callback_data): New typedef.
1215
34875e64
NC
12162005-04-04 Nick Clifton <nickc@redhat.com>
1217
1218 * configure.in: Add a check for <unistd.h> providing a prototype
1219 for getopt() which is compatible with the one in
1220 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1221 * configure: Regenerate.
1222 * config.in (HAVE_DECL_GETOPT): Add.
1223 * ldemul.c: Include config.h
1224 * lexsup.c: Likewise.
1225 * emultempl/elf32.sc: Likewise.
1226
deb04cdb
AM
12272005-03-29 Alan Modra <amodra@bigpond.net.au>
1228
1229 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1230 New function, extracted from static void gld${EMULATION_NAME}_finish.
1231 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1232 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1233 * emultempl/ppc64elf.em: Revert last change.
1234 (ppc_layout_sections_again): Use
1235 gld${EMULATION_NAME}_layout_sections_again.
1236 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1237 gld${EMULATION_NAME}_strip_empty_sections and
1238 gld${EMULATION_NAME}_provide_init_fini_syms.
1239 * emultempl/hppaelf.em: Similarly.
1240
8b4e5e28
AM
12412005-03-29 Alan Modra <amodra@bigpond.net.au>
1242
1243 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1244 (ppc_finish): Don't call bfd_elf_discard_info.
1245 * emultempl/hppaelf.em: Similarly.
1246
510a939b
NC
12472005-03-24 Nick Clifton <nickc@redhat.com>
1248
1249 * po/fr.po: Updated French translation.
1250
ed84e695
NC
12512005-03-23 Mike Frysinger <vapier@gentoo.org>
1252 Nick Clifton <nickc@redhat.com>
1253
1254 * configure.host: Accept any C library to accompany a GNU Linux
1255 implementation, not just the GNU C library.
1256 * configure.tgt: Likewise.
1257 * emultempl/elf32.em: Likewise.
deb04cdb 1258
81e1b023
L
12592005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1260
1261 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1262 (gld${EMULATION_NAME}_finish): Call
1263 gld${EMULATION_NAME}_provide_bound_symbols to provide
1264 __preinit_array_start, __preinit_array_end, __init_array_start,
1265 __init_array_end, __fini_array_start and __fini_array_end.
1266
1267 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1268 __preinit_array_end, __init_array_start, __init_array_end,
1269 __fini_array_start nor __fini_array_end.
1270
11d2f718
AM
12712005-03-23 Alan Modra <amodra@bigpond.net.au>
1272
1273 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1274 SEC_EXCLUDE on .gnu.warning sections.
1275
644285ef
AM
12762005-03-22 Alan Modra <amodra@bigpond.net.au>
1277
1278 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1279
c9a2f333
AM
12802005-03-21 Alan Modra <amodra@bigpond.net.au>
1281
1282 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1283 function.
1284 (LDEMUL_AFTER_ALLOCATION): Define.
1285
b1ab9777
AM
12862005-03-21 Alan Modra <amodra@bigpond.net.au>
1287
1288 * emultempl/ppc64elf.em (ppc_finish): Rename from
1289 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1290 (LDEMUL_FINISH): Update.
1291 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1292 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1293
2a2a7c94
JB
12942005-03-18 Julian Brown <julian@codesourcery.com>
1295
1296 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1297 .rel.fini_array.
1298 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1299 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1300
98720c64
L
13012005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1302
1303 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1304 bfd_section when removing unused empty output sections for
1305 non-relocatable link.
1306
41c7ba7c
AM
13072005-03-19 Alan Modra <amodra@bigpond.net.au>
1308
1309 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1310 traversing the bfd section list to find pointer to new section.
1311
0fb53118
AM
13122005-03-18 Alan Modra <amodra@bigpond.net.au>
1313
1314 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1315 input sections into .sdata and .sbss output respectively.
1316
de7f8cc8
BW
13172005-03-16 David Heine <dlheine@tensilica.com>
1318 Bob Wilson <bob.wilson@acm.org>
1319
1320 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1321 (lang_check_section_addresses): Ignore zero size sections here.
1322
57316bff
L
13232005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1324
1325 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1326 unused empty output sections for non-relocatable link.
1327
1328 * ld.h (args_type): Remove gc_sections.
1329
1330 * ldlang.c (lang_mark_used_section): New.
1331 (lang_gc_sections): Use link_info.gc_sections instead of
1332 command_line.gc_sections.
1333 * ldmain.c (main): Likewise.
1334 * lexsup.c (parse_args): Likewise.
1335 * ldlang.c (lang_process): Call lang_mark_used_section.
1336
1337 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1338
1ad12f97
NC
13392005-03-16 Nick Clifton <nickc@redhat.com>
1340 Ben Elliston <bje@au.ibm.com>
1341
569acd2c 1342 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 1343 compiler command line. Enabled by default. Disable via
569acd2c 1344 --disable-werror.
1ad12f97
NC
1345 * configure: Regenerate.
1346
cb2d1ef2
AM
13472005-03-16 Alan Modra <amodra@bigpond.net.au>
1348
1349 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1350 (OTHER_RELRO_SECTIONS): Set this instead.
1351
957d91c1
NC
13522005-03-15 Nick Clifton <nickc@redhat.com>
1353
1354 * NEWS: Add cutoff for changes in 2.16 release.
1355
34723071
NC
13562005-03-15 Mikkel Krautz <krautz@gmail.com>
1357
1358 * configure.tgt (x86_64-elf): Add target.
1359
729ae8d2
AM
13602005-03-15 Alan Modra <amodra@bigpond.net.au>
1361
1362 * po/es.po: Commit new Spanish translation.
1363
8b3d8fa8
AM
13642005-03-14 Alan Modra <amodra@bigpond.net.au>
1365
1366 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1367 Tidy etree_assert case.
1368
882cb63e
AM
13692005-03-14 Alan Modra <amodra@bigpond.net.au>
1370
1371 * po/tr.po: Commit new Turkish translation.
1372
61c84b48
DJ
13732005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1374
1375 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1376 * Makefile.in: Regenerated.
1377 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1378
41c9e29d
NC
13792005-03-07 Nick Clifton <nickc@redhat.com>
1380
1381 * po/fr.po: Updated translation.
1382
06647dfd
AM
13832005-03-05 Alan Modra <amodra@bigpond.net.au>
1384
1385 * po/ld.pot: Regenerate.
1386
bb14f524
JB
13872005-03-02 Jan Beulich <jbeulich@novell.com>
1388
1389 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1390 * pe-dll.c (pe_dll_generate_implib): Likewise.
1391
0ef622cb
BE
13922005-02-24 Ben Elliston <bje@au.ibm.com>
1393
1394 * ldfile.c: Remove GNU960 conditional code.
1395 * emultempl/gld960.em: Likewise.
1396 * emultempl/gld960c.em: Likewise.
1397 * emultempl/lnk960.em: Likewise.
1398
f3f4bcca
NC
13992005-02-24 Nick Clifton <nickc@redhat.com>
1400
1401 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1402 empty string from calls to concat.
1403
14042005-02-23 Nick Clifton <nickc@redhat.com>
1405
1406 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1407 arguments passed to concat() with a NULL.
1408
1409 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1410 define types needed by ldfile.h
1411
47639182
AM
14122005-02-23 Alan Modra <amodra@bigpond.net.au>
1413
1414 * pe-dll.c: Warning fixes.
1415 * emultempl/sunos.em: Likewise.
1416
ace66bb2
DJ
14172005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1418
1419 * ldlang.c (section_already_linked): Don't call
1420 bfd_section_already_linked for dynamic objects.
1421
5718918d
AM
14222005-02-22 Alan Modra <amodra@bigpond.net.au>
1423
1424 * ldexp.c: Warning fixes.
1425 * ldwrite.c: Likewise.
1426 * emultempl/elf32.em: Likewise.
1427
ebe372c1
L
14282005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1429
1430 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1431 tic54x input only.
1432 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1433 and ECOFF output only.
1434
0ca2f5d5
AM
14352005-02-21 Alan Modra <amodra@bigpond.net.au>
1436
1437 * config.in: Regenerate.
1438 * configure: Regenerate.
1439
fbbb9ac5
ZW
14402005-02-17 Zack Weinberg <zack@codesourcery.com>
1441
1442 * ldexp.c (assigning_to_dot): New global flag.
1443 (fold_name): If assigning_to_dot is true, object immediately to
1444 an undefined symbol.
1445 (exp_fold_tree): Set and clear assigning_to_dot around the
1446 recursive call to exp_fold_tree to process the right-hand side
1447 of an assignment to the location counter.
1448
c68dac40
PB
14492005-02-17 Paul Brook <paul@codesourcery.com>
1450
1451 * scripttempl/armbpabi.sc: Add dummy name to version block.
1452
20c2cbe3
AM
14532005-02-17 Alan Modra <amodra@bigpond.net.au>
1454
1455 * ldexp.c (new_abs): Init new.str.
1456
0b48acfe
MM
14572005-02-15 Mark Mitchell <mark@codesourcery.com>
1458
1459 * configure.in (AC_CHECK_FUNCS): Add glob.
1460 * configure: Regenerated.
1461 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1462 not defined.
1463 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1464 if HAVE_GLOB is not defined.
fbbb9ac5 1465
ff925e69
KK
14662005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1467
1468 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1469 lib_path if NATIVE is yes.
1470
92b7a70f
AM
14712005-02-16 Alan Modra <amodra@bigpond.net.au>
1472
1473 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1474 an error creating fake bfd fatal.
1475 (ppc_before_allocation): Continue on after errors.
1476 (gld${EMULATION_NAME}_finish): Likewise.
1477
297ba367
NC
14782005-02-15 Nick Clifton <nickc@redhat.com>
1479
1480 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1481 not declared. It is not used and its presence causes a compile
1482 time warning.
fbbb9ac5 1483
9eabd475
ZW
14842005-02-11 Zack Weinberg <zack@codesourcery.com>
1485
1486 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1487 If st.st_ino is zero, do not treat the library as a duplicate.
1488
d457dcf6
JJ
14892005-02-10 Jakub Jelinek <jakub@redhat.com>
1490
1491 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1492 Set BFD_LINKER_CREATED on the stubs bfd.
1493 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1494 Likewise.
1495
4e5db43b
MM
14962005-02-08 Mark Mitchell <mark@codesourcery.com>
1497
1498 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
9eabd475 1499 local.
4e5db43b
MM
1500 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1501 (Image$$ER_RO$$Limit): Likewise.
1502 (SHT$$INIT_ARRAY$$Base): Likewise.
1503 (SHT$$INIT_ARRAY$$Limit): Likeise.
1504
4297f9f1
BE
15052005-02-10 Ben Elliston <bje@au.ibm.com>
1506
1507 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1508
1c7c5e5b
RS
15092005-02-08 Richard Sandiford <rsandifo@redhat.com>
1510
1511 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1512 to include o32 and n64 emulations.
1513 (mips64*-*-linux-gnu*): Likewise.
1514
300475fe
HPN
15152005-02-08 Hans-Peter Nilsson <hp@axis.com>
1516
1517 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1518 "warning: " to warning messages.
1519
4ea42fb7
AM
15202005-02-04 Alan Modra <amodra@bigpond.net.au>
1521
1522 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1523 look up symbol for etree_provide here.
1524
161f49a3
DJ
15252005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1526
1527 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1528
73ae6183
NC
15292005-02-01 Edward Welbourne <eddy@opera.com>
1530 Nick Clifton <nickc@redhat.com>
1531
1532 * ld.texinfo (Source Code Reference): New node describing how to
1533 access linker script defined variables from source code.
1534
77cfaee6
AM
15352005-02-01 Alan Modra <amodra@bigpond.net.au>
1536
1537 * ld.texinfo: Clarify --as-needed operation.
1538
c46f8c51
AC
15392005-01-31 Andrew Cagney <cagney@gnu.org>
1540
1541 * configure: Regenerate to track ../gettext.m4.
1542
d342277e
NC
15432005-01-31 Nick Clifton <nickc@redhat.com>
1544
1545 * ldver.c (ldversion): Bump reported copyright date to 2005.
1546
d6486796
NC
15472005-01-31 Nick Clifton <nickc@redhat.com>
1548
1549 * configure.tgt: Remove obsolete targets m68k-lynxos and
1550 sparc-lynxos.
1551
319850b4
JB
15522005-01-28 Julian Brown <julian@codesourcery.com>
1553
1554 * emultempl/armelf.em (fix_v4bx): New variable.
1555 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1556 value to bfd.
1557 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1558 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1559 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
9eabd475 1560 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
319850b4
JB
1561 * NEWS: Mention --fix-v4bx.
1562 * ld.texinfo: Document --fix-v4bx.
1563
dc4c9c19
MM
15642005-01-25 Mark Mitchell <mark@codesourcery.com>
1565
1566 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1567 as to include .ARM.exidx$${Base,Limit}.
1568 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1569 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1570 Put .init_array, .fini_array, etc. into the read-only data
9eabd475
ZW
1571 segment.
1572
7e9f0867
AM
15732005-01-25 Alan Modra <amodra@bigpond.net.au>
1574
1575 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1576 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1577 only needed by an as-needed lib that didn't get linked.
1578
7e69709c
AM
15792005-01-23 Alan Modra <amodra@bigpond.net.au>
1580
1581 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1582 __DTOR_LIST__ description.
1583
b5666f2f
AM
15842005-01-23 Alan Modra <amodra@bigpond.net.au>
1585
1586 * ld.texinfo (Location Counter <dot outside sections>): Document
1587 effects of orphan section placement, and ". = ." workaround.
1588 * Makefile.in: Regenerate.
1589
4e25343c
RS
15902005-01-22 Richard Sandiford <rsandifo@redhat.com>
1591
1592 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1593 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1594
b717d30e
JJ
15952005-01-21 Jakub Jelinek <jakub@redhat.com>
1596
1597 * ldgram.y (AS_NEEDED): New token.
1598 (input_list): Handle AS_NEEDED ( input_list ).
1599 * ldlex.l (AS_NEEDED): Add.
1600 * ld.texinfo: Document AS_NEEDED ().
1601 * NEWS: Mention AS_NEEDED ().
1602
7a64f7b8
BE
16032005-01-21 Ben Elliston <bje@au.ibm.com>
1604
1605 * ldlang.c (lang_reasonable_defaults): Remove.
1606 (lang_process): Don't call lang_reasonable_defaults.
1607
1608 * ldexp.c (exp_assop): Remove #if 0'd code.
1609 (exp_print_tree): Likewise.
1610 * ldlang.c (lang_memory_region_lookup): Likewise.
1611 (open_output): Likewise.
1612 (lang_do_assignments_1): Likewise.
1613 (lang_place_orphans): Likewise.
1614 (lang_enter_output_section_statement): Likewise.
1615 (lang_reasonable_defaults): Likewise.
1616 * ldlang.h (struct lang_input_statement_struct): Likewise.
1617 * mri.c (mri_draw_tree): Likewise.
1618 (mri_load): Likewise.
1619 * pe-dll.c (generate_reloc): Likewise.
1620 (make_import_fixup_entry): Likewise.
1621 (pe_as16): Likewise.
1622 * emultempl/beos.em (set_pe_subsystem): Likewise.
1623 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1624 * emultempl/pe.em: Likewise.
1625 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1626
a154a8ad
MM
16272005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1628
1629 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1630 (earmelfb_linux_eabi.c): New target.
1631 * Makefile.in: Regenerated.
1632 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1633 * emulparams/armelfb_linux_eabi.sh: New file.
1634
9c183183
AM
16352005-01-20 Nick Hudson <skrll@netbsd.org>
1636
1637 PR ld/676
1638 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1639 Handle bfd_elf32_hppa_nbsd_vec.
1640
e2243057
RS
16412005-01-19 Richard Sandiford <rsandifo@redhat.com>
1642
1643 * ldmain.h (ld_sysroot): Change type to a constant string.
1644 * ldmain.c (ld_sysroot): Likewise.
1645 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1646 support for changing the sysroot.
1647 (main): Call the new functions.
1648 * lexsup.c (OPTION_SYSROOT): New.
1649 (ld_options): Add --sysroot.
1650 (parse_args): Add a dummy handler for it.
1651 * ld.texinfo (--sysroot): Document.
1652 * NEWS: Mention the new --sysroot option.
1653
1449d79b
AM
16542005-01-18 Alan Modra <amodra@bigpond.net.au>
1655
1656 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1657 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1658 bfd_link_just_syms.
1659
a880c748
DS
16602005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1661
1662 * defilep.y (def_name, def_library): Combine into...
1663 (def_image_name): New function. Strip name to basename,
1664 with warning.
1665
07baa8ee
MK
16662005-01-12 Mark Kettenis <kettenis@gnu.org>
1667
1668 * configure.in: Be sure to invoke config.sub using the shell.
1669 * configure: Regenerate.
1670
e9b181b8
AM
16712005-01-11 Alan Modra <amodra@bigpond.net.au>
1672
1673 * configure.host: Correct sed patterns for last change.
1674
59ef2528
NC
16752005-01-10 Nick Clifton <nickc@redhat.com>
1676
1677 PR binutils/609
1678 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1679 to determine whether config.make_executable should be set to FALSE in
1680 conjunction with config.fatal_warnings.
1681 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1682 (einfo): Pass TRUE as the extra argument.
1683
71a2d53a
NC
16842005-01-10 Greg Schaffer <gschafer@zip.com.au>
1685
1686 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1687 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1688 (ia64-*-aix): Delete - this target is obsolete, and would be
1689 broken by this patch.
1690
d6d0b336
EB
16912005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1692
1693 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1694 (sparc64-sun-solaris2*): New host.
1695
4e7fd91e
PB
16962005-01-06 Paul Brook <paul@codesourcery.com>
1697
1698 * Makefie.am: Add earmelf_vxworks.
1699 * Makefile.in: Regenerate.
1700 * configure.tgt: Make arm-*-vxworks a separate case.
1701 * emulparams/armelf_vxworks.sh: New function.
1702
4c52953f
AM
17032005-01-06 Alan Modra <amodra@bigpond.net.au>
1704
1705 * emultempl/ppc64elf.em (no_multi_toc): New var.
1706 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1707 (OPTION_NO_MULTI_TOC): Define.
1708 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1709 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1710
98d87ee7
NC
17112005-01-05 Nick Clifton <nickc@redhat.com>
1712
1713 PR binutils/614
1714 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 1715 Standard's specification for parsable error messages.
98d87ee7 1716
5f81b918
PB
17172005-01-04 Paul Brook <paul@codesourcery.com>
1718
1719 * Makefile.am: Correct dependency for earmsymbian.c.
1720 * Makefile.in: Regenerate.
1721
2af59bab
DS
17222004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1723
1724 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1725 lang_add_entry to FALSE.
1726
c38f024c
NC
17272004-12-23 Nick Clifton <nickc@redhat.com>
1728
1729 PR 600
1730 * emulparams/shelf.sh (.stack): Increase stack start address to
1731 0x300000.
1732
550bdea6
NC
17332004-12-20 Nick Clifton <nickc@redhat.com>
1734
1735 * ldmain.c (main): Issue an error message if -static and -shared
1736 are used together.
1737
e3070fef
JJ
17382004-12-17 Jakub Jelinek <jakub@redhat.com>
1739
1740 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1741 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1742 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1743 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1744 PT_GNU_RELRO segment end.
1745
2fbd2a87
NC
17462004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1747
1748 * configure.tgt: Add s390x-ibm-tpf support.
1749
f2763b01
NC
17502004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1751
1752 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1753 BFD.
1754
cb9faf63
BE
17552004-12-07 Ben Elliston <bje@gnu.org>
1756
1757 * ldemul.h: Forward declare struct option.
1758
02f80eef
DS
17592004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1760
1761 * scripttempl/pe.sc (.data): Add .jcr subsection.
1762
dea514f5
PB
17632004-11-30 Paul Brook <paul@codesourcery.com>
1764
1765 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1766
32118081
NC
17672004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1768
1769 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1770 * Makefile.in: Regenerate.
1771
33f362e1
NC
17722004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1773
1774 * emultempl/pe.em: Add --subsystem:xbox as well as
1775 --subsystem:%d.
1776 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1777 and numeric subsystems.
1778
3eda52aa
AM
17792004-11-24 Alan Modra <amodra@bigpond.net.au>
1780
1781 * ldexp.c (fold_name): Correct PR 338 fix.
1782
6b3221b4
MM
17832004-11-19 Mark Mitchell <mark@codesourcery.com>
1784
1785 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1786 (earmelf_linux_eabi.c): New target.
1787 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1788 * emulparams/armelf_linux_eabi.sh: New file.
1789 * Makefile.in: Regenerated.
1790
9cd6d51a
NC
17912004-11-19 Nick Clifton <nickc@redhat.com>
1792
1793 PR 518
1794 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1795 LENGTH fields in the MEMORY command, to explicitly state that
1796 symbols cannot be used in their expressions.
1797
3ec57632
NC
17982004-11-19 Jon Beniston <jon@beniston.com>
1799
1800 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1801 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 1802 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
1803 which return the length and origin of a memory.
1804 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1805 * NEWS: Mention support for ORIGIN and LENGTH operators.
1806
b7693d02
DJ
18072004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1808
1809 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1810 a dynamic object for stubs.
1811
fc0e6df6
PB
18122004-11-04 Paul Brook <paul@codesourcery.com>
1813
1814 * ld.texinfo: Document --default-imported-symver.
1815 * ldmain.c (main): Set link_info.default_imported_symver.
1816 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1817 (ld_options): Add --default-imported-symver.
1818 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1819
7499d566
NC
18202004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1821 Vineet Sharma <vineets@noida.hcltech.com>
1822
1823 * Makefile.am: Add entries for new maxq-coff target.
1824 * Makefile.in: Regenerate.
1825 * configure.tgt: Add support for maxq.
1826 * emulparams/maxqcoff.sh: New File.
1827 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1828 * NEWS: Mention the new target.
1829
7f266840
DJ
18302004-11-04 Daniel Jacobowitz <dan@debian.org>
1831
1832 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1833 (earmelf_oabi.c): Remove rule.
1834 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1835 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1836 * Makefile.in: Regenerated.
1837
a0055007
HPN
18382004-11-04 Hans-Peter Nilsson <hp@axis.com>
1839
1840 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1841 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1842 (FINI_START): Ditto.
1843 (INIT_END): Remove emitted "jump [sp+]".
1844 (FINI_END): Ditto.
1845
c5614fa4
AM
18462004-11-04 Alan Modra <amodra@bigpond.net.au>
1847
1848 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1849 (no_opd_opt, no_toc_opt): New static vars.
1850 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1851 ppc64_elf_edit_toc.
1852 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1853 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1854 (PARSE_AND_LIST_OPTIONS): Describe new options.
1855 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1856
7a5df8d0
NC
18572004-10-27 Nick Clifton <nickc@redhat.com>
1858
1859 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1860 parameter to invocation of lang_section_start.
1861 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 1862
7a5df8d0
NC
1863 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1864 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1865 * Makefile.in: Regenerate.
1866
6f372e19
MM
18672004-10-26 Mark Mitchell <mark@codesourcery.com>
1868
1869 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1870 __exidx_{start,end} when not relocating.
1871
ba916c8a
MM
18722004-10-25 Mark Mitchell <mark@codesourcery.com>
1873
1874 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1875 * ldexp.h (segment_type): New type.
1876 (segments): New variable.
1877 * ldexp.c (segments): New variable.
1878 (exp_print_token): Handle SEGMENT_START.
1879 (fold_binary): Likewise.
1880 * ldgram.y (SEGMENT_START): Declare it as a token.
1881 (exp): Handle SEGMENT_START.
1882 * ldlang.h (lang_address_statement_type): Add segment field.
1883 (lang_section_start): Change prototype.
1884 * ldlang.c (map_input_to_output_sections): Do not process section
1885 assignments if a corresponding SEGMENT_START has already been
1886 seen.
1887 (lang_section_start): Add segment parameter.
1888 * ldlex.l (SEGMENT_START): Add it.
1889 * lexsup.c (seg_segment_start): New function.
1890 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1891 * ld.texinfo (SEGMENT_START): Document it.
1892 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1893 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1894 base addresses. Do not map relocations.
1895 * NEWS: Mention SEGMENT_START.
1896
3e3b46e5
PB
18972004-10-26 Paul Brook <paul@codesourcery.com>
1898
1899 * ld.texinfo: Document --default-symver.
1900 * ldmain.c (main): Set link_info.create_default_symver.
1901 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1902 (ld_options): Add default-symver.
1903 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1904
7b0eaa22
DS
19052004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1906
1907 * pe-dll.c (process_def_file): Don't export all symbols by default if
1908 building a position-independent executable.
1909
dfeffb9f
L
19102004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1911
1912 PR 463
1913 * ldmain.c (reloc_overflow): Accept a pointer to struct
1914 bfd_link_hash_entry. Report symbol location for relocation
1915 overflow.
1916
dc4f76f8
L
19172004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1918
1919 * genscripts.sh (libpath.exp): Really generate for first
1920 emulation only.
1921
2a08daf3
DS
19222004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1923
1924 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1925 comparison and replacement of filenames.
1926
532345f2
L
19272004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1928
1929 PR 459
1930 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1931 option on linker script as the one for linker script.
1932
b58f81ae
DJ
19332004-10-16 Daniel Jacobowitz <dan@debian.org>
1934
1935 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1936 (check_excluded_libs): New.
1937 (load_symbols): Call check_excluded_libs.
1938 * ldlang.h (add_excluded_libs): New prototype.
1939 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1940 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1941 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1942 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1943 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1944
95c148b4
AM
19452004-10-15 Alan Modra <amodra@bigpond.net.au>
1946
c468c8bc
AM
1947 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1948 failing link script assert.
1949
95c148b4
AM
1950 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1951
951e9133
L
19522004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1953
1954 PR 445
1955 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1956 (SMALL_DATA_DTOR): Set.
1957 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1958 (SMALL_DATA_DTOR): Unset.
1959 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1960 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1961 .data.
1962
afd7a018
AM
19632004-10-14 Alan Modra <amodra@bigpond.net.au>
1964
1965 PR 63
1966 * ldlang.h (lang_output_section_statement_type): Make "next" a
1967 struct lang_output_section_statement_struct *.
1968 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1969 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1970 * ldlang.c (lang_output_section_find_1): Adjust for changed
1971 output_section_statement "next".
1972 (strip_excluded_output_sections): Likewise.
1973 (lang_record_phdrs): Likewise.
1974 (lang_output_section_find_by_flags): New function.
1975 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1976 (lang_insert_orphan): New function. Tail end of elf32.em's
1977 place_orphan merged with that from pe.em. Allow bfd_section to
1978 be placed first. New heuristic for placing new output section
1979 statement in existing script, and accompanying split of __start
1980 symbol alignment into a separate assignment to dot.
1981 (lang_add_section): Consistently use output->bfd_section rather than
1982 an alias, section->output_section.
1983 (map_input_to_output_sections): Rename overly long arg. Move
1984 initialization of data_statement output section to here..
1985 (lang_check_section_addresses): ..from here.
1986 (print_assignment): Correct printing of etree_assert.
1987 (print_all_symbols): Don't bomb if userdata is NULL.
1988 (IGNORE_SECTION): Rearrange.
1989 * emultempl/elf32.em (output_rel_find): Adjust interator.
1990 (output_prev_sec_find): Delete.
1991 (struct orphan_save): Delete.
1992 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1993 flags without creating a duplicate output section statement.
1994 Revise code holding history of various orphan section placements.
1995 Allow orphan sections to place before script specified output
1996 sections. Call lang_output_section_find_by_flags when placement
1997 by name fails. Use lang_insert_orphan.
1998 * emultempl/mmo.em (output_prev_sec_find): Delete.
1999 (struct orphan_save): Delete.
2000 (mmo_place_orphan): Revise code holding history of orphan placement.
2001 Allow orphans to place before existing output sections. Use
2002 lang_insert_orphan.
2003 * emultempl/pe.em (output_prev_sec_find): Delete.
2004 (struct orphan_save): Delete.
2005 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
2006 lang_insert_orphan.
2007
c0042f5d
MM
20082004-10-13 Mark Mitchell <mark@codesourcery.com>
2009
2010 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
2011 loadable segment.
2012
1af699f4
AM
20132004-10-13 Alan Modra <amodra@bigpond.net.au>
2014
2015 PR 44
09c112da
AM
2016 * ldcref.c (check_section_sym_xref): Delete.
2017 (check_local_sym_xref): New function.
2018 (check_nocrossrefs): Adjust call.
1af699f4
AM
2019 * emultempl/pe.em (struct orphan_save): Add os_tail.
2020 (place_orphan): Backport assorted fixes from elf32.em.
2021
7fa3d080
BW
20222004-10-12 Bob Wilson <bob.wilson@acm.org>
2023
2024 * emultempl/xtensaelf.em: Use ISO C90 formatting.
2025
d3989512
JJ
20262004-10-11 Jakub Jelinek <jakub@redhat.com>
2027
563f4125
JJ
2028 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
2029 getline for portability.
2030
d3989512
JJ
2031 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2032 (gld${EMULATION_NAME}_parse_ld_so_conf,
2033 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2034 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2035
6c0c5b1e
AM
20362004-10-11 Alan Modra <amodra@bigpond.net.au>
2037
2038 PR 423
2039 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2040 rejected when linking statically.
2041
d2b2c203
DJ
20422004-10-08 Daniel Jacobowitz <dan@debian.org>
2043
2044 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2045
43cd72b9
BW
20462004-10-07 Bob Wilson <bob.wilson@acm.org>
2047
2048 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2049 assembler-generated longcall sequences. Describe new --size-opt
2050 option.
2051 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2052 * emultempl/xtensaelf.em (remove_section,
2053 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2054 elf_xtensa_after_open): New.
2055 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2056 OPTION_NO_LITERAL_MOVEMENT): Define.
2057 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2058 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2059 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2060 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2061 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2062 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2063 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2064 * Makefile.am (eelf32xtensa.c): Update dependencies.
2065 * Makefile.in: Regenerate.
2066
8fdd7217 20672004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 2068
8fdd7217
NC
2069 * lexsup.c: Handle --warn-shared-textrel option.
2070 (ld_options): Restore alpha sorting of options.
2071 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2072 * ld.texinfo: Add documentation for --warn-shared-textrel.
2073 * NEWS: Added mention of --warn-shared-textrel option.
2074
339207f8 20752004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 2076
339207f8 2077 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 2078 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
2079 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2080 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2081 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2082
bcaa7b3e
L
20832004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2084
2085 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2086 --sort-section name|alignment.
2087
2088 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2089 --sort-section name|alignment.
2090
2091 * ld.h (sort_type): New enum.
2092 (wildcard_spec): Change the type of `sorted' to sort_type.
2093
2094 * ldgram.y (SORT): Removed.
2095 (SORT_BY_NAME): Added.
2096 (SORT_BY_ALIGNMENT): Added.
2097 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2098 SORT_BY_ALIGNMENT.
2099 (input_section_spec_no_keep): Updated `sorted'.
2100 (statement): Replace SORT with SORT_BY_NAME.
2101
2102 * ldlang.c (compare_section): New function to compare 2
2103 sections with different sorting schemes.
2104 (wild_sort): Updated. Use compare_section.
2105 (update_wild_statements): New function.
2106 (lang_process): Call update_wild_statements before
2107 map_input_to_output_sections.
2108
2109 * ldlex.l (SORT_BY_NAME): New.
2110 (SORT_BY_ALIGNMENT): New.
2111 (SORT): Return SORT_BY_NAME.
2112
2113 * ldmain.c (sort_section): New. Defined.
2114 (main): Initialize it to none.
2115
2116 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2117 (ld_options): Add an entry for OPTION_SORT_SECTION.
2118 (parse_args): Handle OPTION_SORT_SECTION.
2119
2120 * mri.c (mri_draw_tree): Updated `sorted'.
2121
a4f5ad88
JJ
21222004-10-04 Jakub Jelinek <jakub@redhat.com>
2123
2124 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2125 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2126 argument.
2127 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2128 and . as second argument.
2129 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2130 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2131 (fold_binary): Add it here. Insert padding to make relro_end
2132 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2133 exp_dataseg_relro_adjust phase just use previously computed
2134 exp_data_seg.base.
2135 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2136 relro_adjust here. Call lang_size_sections_1 once more if there
2137 was too big padding at DATA_SEGMENT_RELRO_END.
2138 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2139
40a18ebd
NC
21402004-10-01 Paul Brook <paul@codesourcery.com>
2141
2142 * emulparams/armelf.sh: Add unwinding table sections.
2143
db8acf26
NC
21442004-09-30 Filip Navara <navaraf@reactos.com>
2145
2146 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2147 correct base address for position independant executables.
2148 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2149 executables as DLLs.
2150
eeac373a
PB
21512004-09-30 Paul Brook <paul@codesourcery.com>
2152
2153 * ld.texinfo: Document --target2=abs.
2154 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2155
1ee7cf4c
NC
21562004-09-29 Nick Clifton <nickc@redhat.com>
2157
2158 * scripttempl/xstormy16.sc: Only perform the assignments to the
2159 ROM region when not performing a relocatable link. The ROM region
2160 does not start at address 0, but the sections will.
2161 * Makefile.am: Fix linker script dependency for the generation of
2162 eelf32xstormy16.c.
2163 * Makefile.in: Regenerate.
2164
03098a9a
CF
21652004-09-18 Filip Navara <navaraf@reactos.com>
2166
2167 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2168 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2169 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2170 TARGET_PAGE_SIZE.
2171 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2172 the alignment is lower than the target page size.
2173
f2d3750d
CF
21742004-09-27 Filip Navara <navaraf@reactos.com>
2175
2176 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2177 def_file_parse to handle pe_def_file if NULL and prevent crash with
2178 invalid .def files.
2179
a23d8409
AM
21802004-09-27 Alan Modra <amodra@bigpond.net.au>
2181
2182 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2183 --emit-stub-syms automatically when --emit-relocs.
2184
7b89fa29
PB
21852004-09-24 Paul Brook <paul@codeosurcery.com>
2186
2187 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2188 .fini_array sections.
2189
e2a68bcc
AS
21902004-09-19 Andreas Schwab <schwab@suse.de>
2191
2192 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2193 base so that relro end is suitably aligned.
2194
3674e28a
PB
21952004-09-17 Paul Brook <paul@codesourcery.com>
2196
2197 * ld.texinfo: Rename arm-specific section. Document --target*
2198 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2199 * emulparams/armelf_linux.sh: Ditto.
2200 * emulparams/armelf_nbsd.sh: Ditto.
2201 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2202 (target2_type): New variable.
2203 (arm_elf_before_allocation): Don't pass target1_type.
2204 (arm_elf_create_output_section_statements): New function.
2205 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2206 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2207 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2208 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2209 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2210 argument to bfd_elf32_arm_process_before_allocation.
2211
f6e332e6
AM
22122004-09-17 Alan Modra <amodra@bigpond.net.au>
2213
2214 * ldexp.c (fold_name): Update u.undef.next refs.
2215 * emultempl/pe.em: Likewise.
2216 * emultempl/sunos.em: Likewise.
2217
9c933e04
AM
22182004-09-17 Alan Modra <amodra@bigpond.net.au>
2219
2220 * Makefile.am: Run "make dep-am".
2221 * Makefile.in: Regenerate.
2222 * config.in: Regenerate.
2223 * configure: Regenerate.
2224 * aclocal.m4: Regenerate.
2225 * po/ld.pot: Regenerate.
2226
1fa32646
TL
22272004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2228
9c933e04
AM
2229 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2230 (.fini): Likewise.
2231 (.jcr): Likewise.
1fa32646 2232
b6ee372a
AM
22332004-09-16 Alan Modra <amodra@bigpond.net.au>
2234
2235 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2236 to bfd_elf32_arm_process_before_allocation call.
2237
9c504268
PB
22382004-09-13 Paul Brook <paul@codesourcery.com>
2239
2240 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2241 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2242
d15b04bd
L
22432004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2244
2245 * configure: Regenerated with autconfig 2.13.
2246
875c4330
AS
22472004-09-07 Andreas Schwab <schwab@suse.de>
2248
2249 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2250 alignment before adjusting DATA_SEGMENT_RELRO_END.
2251
229fcec5
MM
22522004-09-06 Mark Mitchell <mark@codesourcery.com>
2253
2254 * emulparams/armsymbian.sh: Use armbpabi script.
2255 * scripttempl/armbpabi.sc: New script.
2256
e5a52504
MM
22572004-09-02 Mark Mitchell <mark@codesourcery.com>
2258
2259 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2260 (earmsymbian.c): New target.
2261 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2262 * Makefile.in: Regenerated.
2263 * aclocal.m4: Likewise.
2264 * configure: Likewise.
2265 * emulparams/armsymbian.sh: New file.
2266
42851540
NC
22672004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2268
2269 * scripttempl/elf32crx.sc: Edit file with comments.
2270 (.init): Add new section.
2271 (.fini): Likewise.
2272 (.ctor): Control the linkage order.
2273 (.dtor): Likewise.
2274
c034e3e0
NC
22752004-08-27 Nick Clifton <nickc@redhat.com>
2276
2277 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 2278 an archive.
c034e3e0 2279
688c58f3
AM
22802004-08-26 Alan Modra <amodra@bigpond.net.au>
2281
2282 * ldlang.c (lang_init): Don't compare with TRUE.
2283
b18c562e
NC
22842004-08-25 Dmitry Diky <diwil@spec.ru>
2285
2286 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2287 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2288
61f5d054
L
22892004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2290
2291 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2292
e77d3d77
MM
22932004-08-19 Mark Mitchell <mark@codesourcery.com>
2294
2295 * configure.tgt (arm*-*-symbianelf*): New target.
2296 (arm*-*-eabi*): Likewise.
2297
3f764659
JJ
22982004-08-19 Jakub Jelinek <jakub@redhat.com>
2299
2300 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2301 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2302 (OPTION_NON_OVERLAPPING_OPD): Define.
2303 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2304 --non-overlapping-opd option.
2305
a010d60f
AM
23062004-08-18 Alan Modra <amodra@bigpond.net.au>
2307
2308 PR 338
2309 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2310 was already on the undefs list.
2311
c4e33880
AM
23122004-08-17 Alan Modra <amodra@bigpond.net.au>
2313
2314 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2315 prefix the symbol field too.
2316
d003868e
AM
23172004-08-13 Alan Modra <amodra@bigpond.net.au>
2318
2319 * ldmain.c (link_callbacks): Remove "error_handler".
2320 * ldmisc.c: Include elf-bfd.h.
2321 (vfinfo): Sort comment. Handle %A. Use %A instead of
2322 bfd_get_section_indent.
2323 (error_handler): Delete.
2324 * ldmisc.h (error_handler): Delete declaration.
2325
99877b66
AM
23262004-08-10 Alan Modra <amodra@bigpond.net.au>
2327
2328 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2329 ppc64_elf_restore_symbols.
2330
40e45c8b
AM
23312004-08-09 Alan Modra <amodra@bigpond.net.au>
2332
2333 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2334 .toc is too large on relocatable linking.
2335
ccfa59ea
AM
23362004-08-09 Alan Modra <amodra@bigpond.net.au>
2337
2338 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2339 (LDEMUL_AFTER_OPEN): Don't define.
2340
93fd0973
SC
23412004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2342
2343 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2344
f1b123db
SC
23452004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2346
2347 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2348 on power of 2.
2349
e7fbc2bf
JT
23502004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2351
2352 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2353
c05e9f04
NC
23542004-07-26 Dmitry Diky <diwil@spec.ru>
2355
2356 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2357 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2358 msp430xG439.
2359 * configure.tgt: Likewise.
2360 * emulparams/msp430all.sh: Likewise.
2361 * Makefile.in: Regenerate.
2362
9f61903d
NC
23632004-07-23 Nick Clifton <nickc@redhat.com>
2364
2365 * emultempl/elf32.em (_place_orphan): Use an already existing
2366 section name if that section does not have any flags set.
2367
082b7297
L
23682004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2369
2370 * ldlang.c (already_linked_hash_entry): Removed.
2371 (already_linked): Likewise.
2372 (already_linked_table): Likewise.
2373 (section_already_linked): Call bfd_section_already_linked.
2374 (lang_process): Replace already_linked_table_init with
2375 bfd_section_already_linked_table_init and check return. Replace
2376 already_linked_table_free with bfd_section_already_linked_table_free.
2377
76d7af2d
NC
23782004-07-21 Nick Clifton <nickc@redhat.com>
2379
2380 * ldlang.c (init_os): Make sure that the newly allocated userdata
2381 structure is zeroed out.
2382
14b3c463
L
23832004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2384
2385 * NEWS: Mention the new --add-needed/--no-add-needed and
2386 --as-needed/--no-as-needed options.
2387
e56f61be
L
23882004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2389
2390 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2391 check the add_needed field.
2392 (dt_needed): New struct.
2393 (gld${EMULATION_NAME}_try_needed): Change the first argument
2394 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2395 bit in the file where the DT_NEEDED entry comes from.
2396 (gld${EMULATION_NAME}_search_needed): Change the second
2397 argument to a pointer to struct dt_needed.
2398 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2399 (gld${EMULATION_NAME}_after_open): Likewise.
2400
2401 * ld.texinfo: Add --add-needed document.
2402 * ldlang.c (new_afile): Set p->add_needed.
2403 * ldlang.h (lang_input_statement_type): Add add_needed field.
2404 * ldmain.h (add_needed): Declare.
2405 * ldmain.c (add_needed): New global var.
2406 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2407 OPTION_NO_ADD_NEEDED.
2408 (ld_options): Likewise.
2409 (parse_args): Handle them.
2410
c99b8138
NC
24112004-07-13 Christof Petig <christof@petig-baender.de>
2412
2413 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2414 for endian-ness of extracted addend.
2415
13ed4151
NC
24162004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2417
2418 * pe-dll.c (auto_export): Filter on just the import prefix,
2419 "_imp_", not "_imp__".
2420
1a320fbb
NC
24212004-07-09 Nick Clifton <nickc@redhat.com>
2422
2423 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2424
1fe1f39c
NC
24252004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2426
2427 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2428 (eelf32crx.c): New target.
2429 * Makefile.in: Regenerate.
2430 * configure.tgt: Handle crx-*-elf*.
2431 * emulparams/elf32crx.sh: New file.
2432 * emultempl/crxelf.em: New file.
2433 * scripttempl/elf32crx.sc: New file.
2434 * NEWS: Mention new target.
2435
85fbca6a
NC
24362004-07-06 Nick Clifton <nickc@redhat.com>
2437
2438 * Makefile.am: Add eshlsymbian.c.
2439 * Makefile.in: Regenerate.
2440 * configure.tgt: Add sh*-symbian-elf target.
2441 * emulparams/shlsymbian.sh: New file. Configure the
2442 sh-symbian-elf linker scripts.
2443 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2444 template for the sh-symbian-elf target.
2445
b71a5181
DA
24462004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2447
2448 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2449 * emulparams/hppalinux.sh: Likewise.
2450 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2451 data segment and PLT_BEFORE_GOT is defined.
2452
c87db184
CF
24532004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2454
2455 * ld.texinfo (WIN32): Document PE weak symbols.
2456
f6a8ae81
KK
24572004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2458
2459 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2460
b602c853
L
24612004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2462
2463 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2464 the section.
2465
1a23a9e6
AM
24662004-06-29 Alan Modra <amodra@bigpond.net.au>
2467
2468 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2469 size in rawsize.
2470
eea6121a
AM
24712004-06-24 Alan Modra <amodra@bigpond.net.au>
2472
2473 * ldlang.c (print_output_section_statement): Don't print size before
2474 relaxation.
2475 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2476
2477 * ldexp.c (fold_name): .. See below.
2478 * ldlang.c (section_already_linked, print_output_section_statement,
2479 print_input_section, insert_pad, size_input_section,
2480 lang_check_section_addresses, lang_size_sections_1,
2481 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2482 lang_one_common, lang_reset_memory_regions, lang_process,
2483 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2484 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2485 * pe-dll.c (process_def_file, generate_reloc): ..
2486 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2487 gld${EMULATION_NAME}_before_allocation): ..
2488 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2489 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2490 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2491 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2492 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2493 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2494 "size" instead of "_raw_size" and "_cooked_size". Expand
2495 bfd_section_size macro invocations.
2496
552f8272
CF
24972004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2498
2499 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2500 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2501 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2502 ___crt_xt_end__.
2503 (.tls): Define ___tls_start__ and ___tls_end__.
2504
aee6f5b4
AO
25052004-06-21 Alexandre Oliva <aoliva@redhat.com>
2506
2507 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2508
eea6121a 25092004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 2510
eea6121a
AM
2511 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2512 * configure: Regenerate.
f234d5fe 2513
dfff4fbe
JJ
25142004-06-15 Jakub Jelinek <jakub@redhat.com>
2515
2516 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2517 .gcc_except_table output sections lost accidentally with
2518 -z relro patch.
2519
a9e0c0c6
AM
25202004-06-15 Alan Modra <amodra@bigpond.net.au>
2521
2522 * ldwrite.c (build_link_order): Use bfd_get_section_size
2523 instead of bfd_get_section_size_before_reloc or _raw_size.
2524 * pe-dll.c (process_def_file): Likewise.
2525
7115639b
AM
25262004-06-14 Alan Modra <amodra@bigpond.net.au>
2527
2528 From Richard Wirth <r.wirth@wirthware.de>
2529 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2530
9ca57817
AM
25312004-05-29 Alan Modra <amodra@bigpond.net.au>
2532
2533 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2534 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2535
164e712d
AM
25362004-05-28 Alan Modra <amodra@bigpond.net.au>
2537
6feb9908
AM
2538 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2539 throughout file.
2540 * lexsup.c: Formatting. Wrap long lines.
2541 * ldwrite.c: Update copyright date.
2542
164e712d
AM
2543 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2544 (output_section_callback): Nor SEC_KEEP here.
2545 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2546 (lang_gc_wild): Delete. Fold into..
2547 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2548 collecting.
2549 (lang_process): Always call lang_gc_sections.
2550 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2551 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2552 SEC_EXCLUDE code.
2553
b3096250
L
25542004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2555
2556 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2557 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2558 * ldlang.c (lang_add_section): Likewise.
2559
e49f5022
AM
25602004-05-26 Alan Modra <amodra@bigpond.net.au>
2561
2562 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2563 sections when doing a final link. Clear SEC_EXCLUDE when doing
2564 a relocable link, except for SEC_DEBUGGING sections.
2565 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2566 same condition here to drop SEC_EXCLUDE orphan sections.
2567
57ceae94
AM
25682004-05-25 Alan Modra <amodra@bigpond.net.au>
2569
2570 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2571 only when not a relocatable link.
2572 (print_input_section): Handle SEC_EXCLUDE sections.
2573 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2574 (lang_do_assignments_1): Likewise.
2575 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2576 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2577 * emultempl/hppaelf.em (build_section_lists): Likewise.
2578 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2579 (build_section_lists): Likewise.
2580
a85785bc
AS
25812004-05-23 Andreas Schwab <schwab@suse.de>
2582
2583 * ld.texinfo (Options): Fix typo in last change.
2584
2d643429
NC
25852004-05-21 Andy Chittenden <achittenden@bluearc.com>
2586
2587 * ld.h (ld_config_type): Add new field: hash_table_size.
2588 * ldmain.c: Initialise the new field to zero. If it is non-zero
2589 after parsing the linker's command line call
2590 bfd_hash_set_default_size.
2591 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2592 (ld_options): Add hash-size.
2593 (parse_args): Parse --hash-size option. Allow
2594 --reduce-memory-overheads to set the default hash table size as
2595 well.
2596 * ld.texinfo: Document the new switch. Also mention that
2597 --reduce-memory-overheads can affect the hash table size.
2598 * NEWS: Mention the new feature.
2599
35835446
JR
26002004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2601
2602 * NEWS: Mention new linker map file generation and the
2603 --reduce-memory-overheads option.
2604 * ld.texinfo: Document --reduce-memory-overheads option.
2605 * ld.h (map_symbol_def): New struct.
2606 (struct user_section_struct, section_userdata_type): Rename to:
2607 (struct lean_user_section_struct, lean_section_userdata_type).
2608 (struct fat_user_section_struct, fat_section_userdata_type): New.
2609 (SECTION_USERDATA_SIZE): Define.
2610 (args_type): New member reduce_memory_overheads.
2611 * ldlang.c (map_obstack): New static variable.
2612 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2613 (lang_map): Unless command_line.reduce_memory_overheads is set,
2614 initialize lists of defined symbols for each section.
2615 (print_input_section): Unless command_line.reduce_memory_overheads
2616 is set, use print_all_symbols.
2617 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2618 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2619 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2620 (ld_options): Add entry for --reduce-memory-overheads.
2621 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2622
0841712e
JJ
26232004-05-19 Jakub Jelinek <jakub@redhat.com>
2624
2625 * ldgram.y (sect_constraint): New.
2626 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2627 (section): Add sect_constraint. Pass additional argument
2628 to lang_enter_output_section_statement.
2629 * mri.c (mri_draw_tree): Pass additional argument to
2630 lang_enter_output_section_statement.
2631 * emultempl/pe.em (place_orphan): Likewise.
2632 (output_prev_sec_find): Disregard output section statements with
2633 constraint == -1.
2634 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2635 (mmo_place_orphan): Pass additional argument to
2636 lang_enter_output_section_statement.
2637 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2638 statements with constraint == -1.
2639 (place_orphan): Pass additional argument to
2640 lang_enter_output_section_statement.
2641 * ldlang.c (lang_enter_overlay_section): Likewise.
2642 (lang_output_section_find_1): New.
2643 (lang_output_section_find): Use it.
2644 (lang_output_section_statement_lookup_1): New.
2645 (lang_output_section_statement_lookup): Use it.
2646 (check_section_callback, check_input_sections): New.
2647 (map_input_to_output_sections): Check if all input sections
2648 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2649 (strip_excluded_output_sections): Disregard output section statements
2650 with constraint == -1.
2651 (lang_record_phdrs): Likewise.
2652 (lang_enter_output_section_statement): Add constraint argument.
2653 Use lang_output_section_statement_lookup_1.
2654 * ldlang.h (lang_output_section_statement_type): Add constraint
2655 and all_input_readonly fields.
2656 (lang_enter_output_section_statement): Adjust prototype.
2657 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2658 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2659 segment if all input sections are readonly.
2660
eea6121a 26612004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
2662
2663 * scripttempl/i386lynx.sc: Remove file.
2664
2a16d82a
BW
26652004-05-17 Bob Wilson <bob.wilson@acm.org>
2666
2667 * ld.texinfo (Output Section Address): Correct subsection name.
2668
eea6121a 26692004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
2670
2671 * configure.tgt (powerpc-*-lynxos* case): New case.
2672 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2673 * emulparams/ppclynx.sh: New file.
2674 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2675 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2676 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2677 (eppclynx.c): New rule.
2678 * Makefile.in: Regenerate.
2679
4b363073
NC
26802004-05-13 Joel Sherrill <joel@oarcorp.com>
2681
2682 * configure.tgt (or32-*-rtems*): Switch to elf and
2683 support versioned targets.
2684
9598fbe5
NC
26852004-05-13 Nick Clifton <nickc@redhat.com>
2686
2687 * po/fr.po: Updated French translation.
2688
8c37241b
JJ
26892004-05-11 Jakub Jelinek <jakub@redhat.com>
2690
2691 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2692 for binaries, -shared and -pie.
2693 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2694 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2695 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2696 (OTHER_RELRO_SECTIONS): ... this.
2697 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2698 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2699 -z relro and -z norelro.
2700 (gld${EMULATION_NAME}_list_options): Add it to usage.
2701 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2702 -z relro scripts when appropriate.
2703 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2704 Create separate .got.plt section if SEPARATE_GOTPLT.
2705 Move sections which are only written during relocation handling
2706 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2707 before .data. Add DATA_SEGMENT_RELRO_END directive.
2708 Include OTHER_RELRO_SECTIONS.
2709 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2710 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2711 (fold_unary): Likewise.
2712 (fold_binary): Handle -z relro.
2713 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2714 exp_dataseg_relro_adjust phases. Add relro_end field.
2715 * ldmain.c (main): Initialize link_info.relro to FALSE.
2716 * ldlang.c (lang_size_sections): Handle -z relro.
2717
e21059f2
MM
27182004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2719
2720 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2721
5f9b8920
JR
27222004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2723
2724 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2725 before printing it with %W.
2726
26d2d8a2 27272004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 2728 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
2729
2730 * emultempl/pe.em (real_flags): New static.
2731 (OPTION_LARGE_ADDRESS_AWARE): New define.
2732 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2733 (gld_${EMULATION_NAME}_list_options): Likewise.
2734 (gld${EMULATION_NAME}_handle_option): Likewise.
2735 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2736 * ld.texinfo: Document it.
2737 * NEWS: Mention it.
2738
1b169501
BF
27392004-05-07 Brian Ford <ford@vss.fsi.com>
2740
2741 * NEWS: Mention DWARF 2 support for i386pe.
2742
41cf0c62
AO
27432004-05-05 Alexandre Oliva <aoliva@redhat.com>
2744
2745 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2746 elf32-frvfdpic.
2747
d0d6a25b
AM
27482004-04-30 Alan Modra <amodra@bigpond.net.au>
2749
2750 * ldlang.c (unique_section_p): Pass section parm, return true on
2751 group sections.
2752 (output_section_callback): Adjust.
2753 * ldlang.h (unique_section_p): Update prototype.
2754 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2755
755306be
EB
27562004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2757
eea6121a 2758 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
2759 dynamic linking.
2760
8a7140c3
NC
27612004-04-29 Brian Ford <ford@vss.fsi.com>
2762
2763 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2764 for DWARF 2/3. Update stab section's syntax.
2765
2f9636ba
AM
27662004-04-29 Alan Modra <amodra@bigpond.net.au>
2767
2768 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2769 (fill_edata): Correct pointer arithmetic.
2770
23867d67
CD
27712004-04-21 Chris Demetriou <cgd@broadcom.com>
2772
2773 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2774 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2775 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2776 (EXTRA_EM_FILE): Use mipsecoff.em
2777 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2778 (EXTRA_EM_FILE): Use mipsecoff.em
2779 * emultempl/mipsecoff.em: Restructure to be included as an
2780 extra emulation file.
2781 (check_sections, gld${EMULATION_NAME}_after_open)
2782 (gld${EMULATION_NAME}_after_allocation)
2783 (gld${EMULATION_NAME}_get_script)
2784 (ld_${EMULATION_NAME}_emulation): Remove
2785 (gld${EMULATION_NAME}_before_parse): Rename to...
2786 (mipsecoff_before_parse): This.
2787 (LDEMUL_BEFORE_PARSE): Define.
2788 * emultempl/mipself.em: Remove file.
2789 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2790 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2791 these symbols.
2792 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2793 * Makefile.in: Regenerate.
2794
1502569c
NC
27952004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2796
2797 * ld.texinfo (synthesizing on H8/300): Information about linker
2798 relaxation support for bit manipulation instructions and system
2799 control instructions is added.
2800
c894ddfb
HPN
28012004-04-21 Hans-Peter Nilsson <hp@axis.com>
2802
2803 * NEWS: Mention change in DEFINED semantics.
2804
a85bf78e
EB
28052004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2806
2807 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2808 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2809 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2810
58434bc1
BE
28112004-04-21 Ben Elliston <bje@au.ibm.com>
2812
2813 * ld.texinfo (Simple Example): Add missing punctuation.
2814
7a7f4e42
CD
28152004-04-20 Chris Demetriou <cgd@broadcom.com>
2816
2817 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2818
3737f867
JJ
28192004-04-19 Jakub Jelinek <jakub@redhat.com>
2820
2821 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2822 specially.
2823
3c17e4f7
DS
28242004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2825
2826 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2827 with default priority. Likewise for dtors.
2828
279500de
TS
28292004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2830
2831 * configure.host: Remove mips*-dec-bsd* target.
2832 * configure.tgt: Likewise.
2833
52f89c0a
RS
28342004-04-08 Richard Sandiford <rsandifo@redhat.com>
2835
2836 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2837 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2838 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2839 * emultempl/irix.em: New file.
2840 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2841 dependencies.
2842 * Makefile.in: Regenerate.
2843
e489d0ae
PB
28442004-04-01 Paul Brook <paul@codesourcery.com>
2845
2846 * emultempl/armelf.em (byteswap_code): Add.
2847 (arm_elf_before_allocation): Pass extra parameter.
2848 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2849 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2850 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2851 * emultempl/armelf_oabi.em: Pass extra parameter.
2852 * ld.texinfo: Document --be8.
2853
7cc8057a
SS
28542004-03-30 Stan Shebs <shebs@apple.com>
2855
2856 Remove long-obsolete MPW support.
2857 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2858 * Makefile.am (mpw): Remove file-presynthesizing actions.
2859 * Makefile.in: Likewise.
2860 * ldfile.c (slash): Remove MPW case.
2861 * ldlex.l [MPW]: Remove unused definition.
2862
0949843d
NC
28632004-03-30 Galit Heller <Galit.Heller@nsc.com>
2864
2865 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2866 (eelf32cr16c.c): New target.
2867 * Makefile.in: Regenerate.
2868 * configure.tgt: Handle cr16c-*-elf*.
2869 * emulparams/elf32cr16c.sh: New file.
2870 * scripttempl/elfcr16c.sc: Likewise
2871 * NEWS: Mention support for new target.
2872
0a159ef8
NC
28732004-03-30 Nick Clifton <nickc@redhat.com>
2874
2875 * po/sv.po: Updated Swedish translation.
2876
7a945db6
AM
28772004-03-27 Alan Modra <amodra@bigpond.net.au>
2878
2879 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2880 * emultempl/hppaelf.em: Likewise.
2881 * emultempl/ppc64elf.em: Likewise.
2882 * emultempl/sh64elf.em: Likewise.
2883
5a580b3a
AM
28842004-03-25 Alan Modra <amodra@bigpond.net.au>
2885
2886 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2887 size_dynamic_sections call.
2888
b9cf773d
AM
28892004-03-23 Alan Modra <amodra@bigpond.net.au>
2890
2891 PR 51.
2892 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2893 link_info.wrap_char.
2894
59c2e50f
L
28952004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2896
2897 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2898 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2899
44349745
AO
29002004-03-20 Alexandre Oliva <aoliva@redhat.com>
2901
2902 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2903
81359a70
AM
29042004-03-19 Alan Modra <amodra@bigpond.net.au>
2905
2906 * config.in: Regenerate.
2907 * po/ld.pot: Regenerate.
2908
4a43e768
AM
29092004-03-18 Alan Modra <amodra@bigpond.net.au>
2910
2911 * ld.texinfo: Add --as-needed doco.
2912 * ldmain.c (as_needed): New global var.
2913 * ldmain.h (as_needed): Declare.
2914 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2915 OPTION_NO_AS_NEEDED.
2916 (ld_options): Likewise.
2917 (parse_args): Handle them.
2918 * ldlang.h (lang_input_statement_type): Add as_needed field.
2919 * ldlang.c (new_afile): Set p->as_needed.
2920 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2921 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2922 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2923
2924 * ldlang.c (open_input_bfds): Remove useless cast.
2925 (lang_do_assignments_1): Likewise.
2926 (lang_for_each_input_section): Delete.
2927
9183ed4b
AM
29282004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2929
2930 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2931
ee31fbd0
NC
29322004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2933
2934 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2935 private when building implib.
2936
e5caec89
NS
29372004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2938
2939 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2940 SEC_THREAD_LOCAL.
2941 (IGNORE_SECTION): Ignore .tbss sections too.
2942 (lang_size_sections_1): .tbss sections do not advance dot.
2943
cc2f008e
AS
29442004-03-01 Andreas Schwab <schwab@suse.de>
2945
2946 * ld.texinfo (Options): Fix example for --wrap.
2947
f5a95868
DS
29482004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2949
2950 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2951 not NULL.
2952
177b729b
ILT
29532004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2954
2955 * ldlang.c (lang_check): Use %P, not %E, in error message.
2956
1b493742
NS
29572004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2958
2959 * ldlang.h (struct lang_output_section_state): Change processed
2960 field's type.
2961 * ldexp.c (check, invalid): Remove.
2962 (fold_name): Move valid_p assignments. Create undefined symbol
2963 when needed. Directly exampine section's processd flag.
2964 * ldlang.c (lang_output_section_statement_lookup): Adjust
2965 processed field init.
2966 (lang_size_sections_1): Allow LOADADDR when determining section's
2967 VMA. Adjust error message. Fold data statement's expr.
2968 (lang_size_sections): Correctly increment lang_statement_iteration.
2969
29702004-02-23 Alan Modra <amodra@bigpond.net.au>
2971
2972 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 2973
876f4090
NS
29742004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2975
2976 * ldgram.y (exp): Add two operand ALIGN.
2977 * ldexp.c (fold_binary): Add ALIGN_K case.
2978 * ld.texinfo (ALIGN): Document two operand version.
2979
384d938f
NS
29802004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2981
2982 * ldlang.c (map_input_to_output_sections): Initialize sections
2983 mentioned in a data statement expression.
2984 (lang_do_assignments_1): Add data statement's expression's
2985 section's vma.
2986
b6ca8815
NS
29872004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2988
2989 * ldgram.y (statement_anywhere): Add assert rule.
2990 * ldlang.c (exp_init_os): Add assert case.
2991
c92c35e7
AC
29922004-02-14 Andrew Cagney <cagney@redhat.com>
2993
2994 * ldmain.c (remove_output): Call bfd_cache_close.
2995
9bf78c99
RS
29962004-02-14 Richard Sandiford <rsandifo@redhat.com>
2997
2998 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2999 .MIPS.content* and .MIPS.events* sections.
3000
f3806916
DJ
30012004-02-09 Daniel Jacobowitz <drow@mvista.com>
3002
3003 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
3004 .note.gnu.arm.ident to after allocated sections. Mark its
3005 address as 0.
3006
4c8e70d7
DJ
30072004-02-09 Daniel Jacobowitz <drow@mvista.com>
3008
3009 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
3010 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
3011 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
3012 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
3013 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
3014
ff71f4f7
NC
30152004-02-05 Nick Clifton <nickc@redhat.com>
3016
3017 * emultempl/pe.em (_after_open): Fix typo in previous delta.
3018
07a68a80
NC
30192004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
3020
3021 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
3022
1dd3bf68
AM
30232004-01-28 Alan Modra <amodra@bigpond.net.au>
3024
586196d5
AM
3025 * genscripts.sh: Fix typo.
3026
1dd3bf68
AM
3027 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
3028
13d9421f
JJ
30292004-01-24 Jakub Jelinek <jakub@redhat.com>
3030
3031 * emulparams/elf64_ia64.sh: Put .rela.opd into
3032 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3033
4d8907ac
DS
30342004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3035
3036 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3037 * ld.texinfo (--omagic): Note that writable text section
3038 does not conform to published PE-COFF specs.
3039 (--enable-auto-import): Likewise.
3040
e5c60db5
AM
30412004-01-15 Alan Modra <amodra@bigpond.net.au>
3042
3043 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3044
6bdafbeb
NC
30452004-01-13 Nick Clifton <nickc@redhat.com>
3046
3047 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3048 which if true will prevent the LMA region being used as a
3049 replacement for a default VMA region.
586196d5
AM
3050 (lang_leave_output_section_statement): Pass extra parameter.
3051 (lang_leave_overlay): Likewise.
3052 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
3053 region can be set to the VMA region if no VMA has been set.
3054 * ldlang.h (struct lang_output_section_phdr_list): Create a
3055 typedef for this type. Minor formatting fixes.
586196d5 3056
9dfc8ab2
NC
30572004-01-13 Nick Clifton <nickc@redhat.com>
3058
3059 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3060 assume that the section should be allocated.
3061
8325c4dd
AM
30622004-01-13 Alan Modra <amodra@bigpond.net.au>
3063
3064 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3065 sections. Do ignore SEC_NEVER_LOAD sections.
3066 (lang_size_sections_1): Remove test made redundant with the above.
3067
83490352
AM
30682004-01-09 Alan Modra <amodra@bigpond.net.au>
3069
3070 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3071 program_header_size.
3072
005e1118
AO
30732004-01-06 Alexandre Oliva <aoliva@redhat.com>
3074
3075 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3076 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3077 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3078 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3079 (MAXPAGESIZE): Set to 64Kb.
3080 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3081 __ROFIXUP_END__. Don't map .rofixup.got any more.
3082 * emulparams/elf32frv.sh (NOP): Set.
3083 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3084 * configure.tgt: Add frv-*-*linux*.
3085 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3086 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3087 (eelf32frvfd.c): New.
3088 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3089 * emulparams/elf32frv.sh: Reverted previous two patches.
3090 * emulparams/elf32frvfd.sh: New.
3091 * Makefile.in: Rebuilt.
3092 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3093 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3094 .rofixup.got to .rofixup.
3095 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3096 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3097 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3098
060feee5
JJ
30992004-01-05 Jakub Jelinek <jakub@redhat.com>
3100
3101 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3102 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3103
5e2f1575
AM
31042004-01-03 Alan Modra <amodra@bigpond.net.au>
3105
e5caa5e0
AM
3106 * ldexp.c (align_n): Make static.
3107 * ldexp.h (align_n): Delete declaration.
3108 * ldlang.h (lang_enter_output_section_statement): Remove
3109 block_value param.
3110 * ldlang.c (lang_enter_output_section_statement): Likewise.
3111 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 3112 (opb_shift): New var.
e5caa5e0
AM
3113 (init_opb): New function.
3114 (print_input_section): Call init_opb and use TO_ADDR.
3115 (print_data_statement, print_reloc_statement): Likewise.
3116 (print_padding_statement): Likewise.
c2df3ea5 3117 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
3118 (lang_check_section_addresses): Likewise.
3119 (lang_size_sections_1): Likewise.
3120 (lang_do_assignments_1): Likewise.
3121 (lang_set_startof): Likewise.
c2df3ea5 3122 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 3123 (lang_process): Call init_opb.
c2df3ea5 3124 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
3125 (lang_enter_overlay_section): Adjust
3126 lang_enter_output_section_statement call.
3127 * ldgram.y: Likewise.
3128 * mri.c (mri_draw_tree): Likewise.
3129 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3130 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3131 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3132
5e2f1575
AM
3133 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3134 * ldfile.h (ldfile_set_output_arch): Ditto.
3135 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3136 ldfile_set_output_arch.
3137 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3138 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3139 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3140 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3141 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3142 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3143 * ldgram.y: Adjust ldfile_set_output_arch call.
3144 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3145 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3146 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3147 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3148 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3149 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3150 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3151
b50c15dc
NC
31522004-01-02 Bernardo Innocenti <bernie@develer.com>
3153
3154 * configure.tgt: Add m68k-uClinux target.
6edf0760 3155
c9e214e5 3156For older changes see ChangeLog-0203
252b5132
RH
3157\f
3158Local Variables:
3159mode: change-log
3160left-margin: 8
3161fill-column: 74
3162version-control: never
3163End:
This page took 0.465308 seconds and 4 git commands to generate.