Add support for RDOS targets.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2005-12-27 Leif Ekblad <leif@rdos.net>
2
3 * configure.tgt: Add support for RDOS targets.
4
5 2005-12-27 Nick Clifton <nickc@redhat.com>
6
7 * po/vi.po: New Vietnamese translation.
8 * configure.in (ALL_LINGUAS): Add vi.
9 * configure: Regenerate.
10
11 2005-12-27 Alan Modra <amodra@bigpond.net.au>
12
13 * Makefile.am: Run "make dep-am".
14 * Makefile.in: Regenerate.
15
16 2005-12-24 Alan Modra <amodra@bigpond.net.au>
17
18 * ldlang.h (lang_output_section_statement_type): Add prev.
19 * ldlang.c (output_statement_newfunc): Set os.prev.
20 (lang_insert_orphan): Likewise.
21 (output_prev_sec_find): Use os.prev.
22
23 2005-12-22 Santosh Raktawan <santoshr2@kpitcummins.com>
24
25 * ld/emulparms/h8300helf.sh (TINY_READONLY_SECTION,
26 TINY_DATA_SECTION, TINY_BSS_SECTION): Define.
27 * ld/emulparms/h8300self.sh: Likewise.
28 * ld/emulparms/h8300sxelf.sh: Likewise.
29 * ld/scripttempl/elf.sc: Add TINY_READONLY_SECTION,
30 TINY_DATA_SECTION, TINY_BSS_SECTION.
31
32 2005-12-19 H.J. Lu <hongjiu.lu@intel.com>
33
34 PR ld/2065
35 * ldlang.c (output_statement_newfunc): Revert the change made on
36 2005-11-16.
37 (output_prev_sec_find): Likewise.
38 * ldlang.h (lang_statement_list_type): Likewise.
39
40 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
41
42 Second part of ms1 to mt renaming.
43 * emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
44
45 2005-12-14 Jakub Jelinek <jakub@redhat.com>
46
47 * scripttempl/elf.sc: Put .gnu.linkonce.d.rel.ro.* sections into
48 .data.rel.ro output section. Fix a pasto for -z nocombreloc
49 .rela.data.rel.ro section content.
50
51 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
52
53 * Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
54 (eelf32mt.c): Update target name and dependencies.
55 * Makefile.in: Rebuilt.
56 * configure.tgt: Replace ms1 arch with mt arch.
57 * emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
58 comment.
59
60 2005-12-11 Bernhard Fischer <aldot@gcc.gnu.org>
61
62 * scripttempl/armbpabi.sc: Fix typo in comment for .ctors.
63 * scripttempl/elf.sc: Ditto.
64 * scripttempl/elf32sh-symbian.sc: Ditto.
65 * scripttempl/elf_chaos.sc: Ditto.
66 * scripttempl/elfd10v.sc: Ditto.
67 * scripttempl/elfd30v.sc: Ditto.
68 * scripttempl/elfxtensa.sc: Ditto.
69 * scripttempl/iq2000.sc: Ditto.
70 * scripttempl/xstormy16.sc: Ditto.
71
72 2005-12-08 Alan Modra <amodra@bigpond.net.au>
73
74 * emultempl/ppc32elf.em (emit_stub_syms): New var.
75 (ppc_after_open): Pass it to ppc_elf_select_plt_layout.
76 (PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
77 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
78 (PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
79 (PARSE_AND_LIST_OPTIONS): Handle it.
80
81 2005-12-08 Alan Modra <amodra@bigpond.net.au>
82
83 * pe-dll.c (build_filler_bfd): Conform error message to standard.
84 (pe_dll_generate_implib): Use %E in error message.
85 (add_bfd_to_link): Likewise.
86 (pe_implied_import_dll): Likewise.
87
88 2005-12-07 Thiemo Seufer <ths@networkno.de>
89 H.J. Lu <hongjiu.lu@intel.com>
90
91 PR ld/1932
92 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
93 Adjust bfd_elf_record_link_assignment call.
94
95 * ldexp.c (exp_fold_tree_1): Remove call to bfd_hide_symbol.
96
97 2005-11-25 Jan Beulich <jbeulich@novell.com>
98
99 * Makefile.am: Make configdoc.texi writeable before trying
100 to write to it.
101 * Makefile.in: Refresh.
102
103 2005-11-24 Alan Modra <amodra@bigpond.net.au>
104
105 * ldlang.c (lang_output_section_find_by_flags): Add match_type param.
106 Run two passes, first using match_type, second without.
107 * ldlang.h (lang_match_sec_type_func): New typedef.
108 (lang_output_section_find_by_flags): Update prototype.
109 bfd_match_sections_by_type and lang_output_section_find_by_flags.
110 * emultempl/pe.em (place_orphan): Likewise.
111
112 2005-11-24 Alan Modra <amodra@bigpond.net.au>
113
114 * ldlang.c (lang_insert_orphan): Skip first assignment to dot
115 in script when looking for place to insert orphan statements.
116
117 2005-11-18 Alan Modra <amodra@bigpond.net.au>
118
119 * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
120 (.got, .toc1, .opd): Likewise.
121
122 2005-11-18 Alan Modra <amodra@bigpond.net.au>
123
124 * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
125 changes to section alignment.
126 * ldmisc.c (vfinfo): Handle %ld and %lu.
127
128 2005-11-16 Mark Mitchell <mark@codesourcery.com>
129
130 * Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
131 * Makefile.in: Regenerated.
132 * ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
133 Add @file documentation.
134
135 2005-11-17 Alan Modra <amodra@bigpond.net.au>
136
137 * ldlang.h (lang_input_section_type): Remove "ifile" field.
138 (lang_insert_orphan, lang_add_section): Update prototypes.
139 * ldlang.c (lang_insert_orphan): Remove "file" param.
140 (lang_add_section): Likewise. Update all callers.
141 (wild_sort): Get an input section's bfd via "section->owner".
142 (size_input_section): Access just_syms_flag via bfd usrdata.
143 (lang_place_orphans): Update ldemul_place_orphan call.
144 * ldemul.h (ldemul_place_orphan): Remove input_statement param.
145 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
146 * ldemul.c (ldemul_place_orphan): Likewise.
147 * ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
148 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
149 * emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
150 (sort_sections): Likewise.
151 (place_orphan): Remove "file" param. Adjust lang_add_section call.
152 * emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
153 lang_add_section and lang_insert_orphan calls.
154 * emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
155 lang_add_section call.
156 (build_section_lists): Access just_syms_flag via bfd usrdata.
157 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
158 lang_add_section call.
159 * emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
160 lang_add_section and lang_insert_orphan calls.
161 * emultempl/pe.em (place_orphan): Likewise. Access bfd via section
162 owner.
163 * emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
164 lang_add_section call.
165 (build_toc_list): Access just_syms_flag via bfd usrdata.
166 (build_section_lists): Likewise.
167 * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
168 param. Adjust place_orphan call.
169 (ld_build_required_section_dependence): Access bfd via section owner.
170
171 2005-11-16 Alan Modra <amodra@bigpond.net.au>
172
173 * ldlang.h (lang_output_section_statement_type): Add prev.
174 * ldlang.c (new_afile): Always init header.type.
175 (output_statement_newfunc): Set os.prev.
176 (output_prev_sec_find): Use os.prev.
177 (lang_enter_output_section_statement): Formatting.
178 (lang_final, lang_add_target, lang_add_fill): Likewise.
179 (lang_add_data, lang_add_reloc): Likewise.
180 (lang_add_attribute): Only alloc the header.
181
182 2005-11-16 Alan Modra <amodra@bigpond.net.au>
183
184 * ld.texinfo (Forced Output Alignment): Specify that this is an
185 alignment increase, not an override.
186 * ldlang.c (init_os): Set output section alignment here..
187 (lang_add_section): ..rather than here.
188 (lang_size_sections_1): Consolidate alignment code. Warn if section
189 alignment affects start address when explicit address given.
190
191 2005-11-07 Steve Ellcey <sje@cup.hp.com>
192
193 * configure: Regenerate after modifying bfd/warning.m4.
194
195 2005-11-07 Olaf Hering <olh@suse.de>
196
197 * ldmain.c (main): Add \n to error message.
198
199 2005-11-04 Alan Modra <amodra@bigpond.net.au>
200
201 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
202 (output_statement_newfunc): Rewrite.
203 (lang_output_section_find_1): Merge into..
204 (lang_output_section_find): ..here.
205 (lang_output_section_statement_lookup_1): Rewrite to handle
206 multiple sections with the same name.
207 (output_statement_table_init): Commonise error message.
208 (lang_init, open_output): Likewise.
209
210 2005-11-03 Paul Brook <paul@codesourcery.com>
211
212 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
213 * scripttempl/armbpabi.sc: Make init/fini array consistent with
214 elf.sc.
215 * scripttempl/elf32sh-symbian.sc: Ditto.
216 * scripttempl/elfxtensa.sc: Ditto.
217
218 2005-11-03 Alan Modra <amodra@bigpond.net.au>
219
220 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
221 memspec. Make "processed" a bitfield.
222 (lang_data_statement_type, lang_reloc_statement_type): Rename
223 output_vma to output_offset.
224 * ldlang.c (lang_output_section_statement_lookup_1): Init
225 all_input_readonly. Don't init memspec.
226 (init_os): Remove incorrect comment.
227 (print_data_statement, print_reloc_statement): Adjust for
228 lang_data_statement_type and lang_reloc_statement_type change.
229 (lang_size_sections_1, lang_add_reloc): Likewise.
230 * ldwrite.c (build_link_order): Likewise.
231
232 2005-10-30 Mark Mitchell <mark@codesourcery.com>
233
234 * lexsup.c (help): Document "@FILE".
235
236 2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
237
238 * Makefile.am: Run "make dep-am".
239 * Makefile.in: Regenerated.
240
241 * dep-in.sed: Replace " ./" with " ".
242
243 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
244
245 * Makefile.am: Add support for Z80
246 * Makefile.in: Regenerated
247 * configure.tgt: Add z80-*-coff
248 * emulparams/z80.sh: New file.
249 * emultempl/z80.em: New file.
250 * scripttempl/z80.sc New file.
251 * NEWS: Mention this new support.
252
253 2005-10-25 Alan Modra <amodra@bigpond.net.au>
254
255 * po/ld.pot: Regenerate.
256
257 2005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
258
259 * ld.texinfo (--reduce-memory-overheads): Fix typo.
260
261 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
262
263 PR ld/1487
264 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
265 bfd_match_sections_by_type to match section types.
266
267 * ldlang.c (init_os): Take the input section. Call
268 bfd_init_private_section_data if the input section isn't NULL.
269 (exp_init_os): Pass NULL to init_os.
270 (map_input_to_output_sections): Likewise.
271 (lang_add_section): Pass the input section to init_os.
272
273 2005-10-19 Paul Brook <paul@codesourcery.com>
274
275 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
276
277 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
278
279 PR ld/1467
280 * emultempl/elf32.em: Include "elf-bfd.h".
281 (gld${EMULATION_NAME}_place_orphan): Check section type and
282 don't use section name for ELF input sections.
283
284 * ld.texinfo: Document orphan section processing.
285
286 * ldlang.c (lang_output_section_find_by_flags): Match section
287 types by calling bfd_match_sections_by_type.
288
289 2005-10-13 Mark Mitchell <mark@codesourcery.com>
290
291 * ld.texino: Describe double-quoted string syntax for version
292 nodes.
293 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
294 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
295 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
296 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
297 version nodes without a pattern.
298 (lang_new_vers_pattern): Add literal_p parameter.
299 (lang_do_version_exports_section): Pass it.
300
301 2005-10-12 Mark Mitchell <mark@codesourcery.com>
302
303 * NEWS: Mention @file.
304
305 2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
306
307 PR ld/1396
308 * ldcref.c (check_refs): Accept bfd_boolean.
309 (check_local_sym_xref): Pass FALSE to check_refs.
310 (check_nocrossref): Pass TRUE to check_refs.
311 (check_refs_info): Add bfd_boolean.
312 (check_refs): Add bfd_boolean to check_refs_info.
313 (check_reloc_refs): Match relocations with proper symbols.
314
315 * ldmisc.c (vfinfo): Don't add extra ":\n".
316
317 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
318
319 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
320 default entry symbol to ENTRY here.
321 * scripttempl/pe.sc: Not here.
322
323 2005-09-30 James E Wilson <wilson@specifix.com>
324
325 * ldlang.c (lang_startup): Add missing ": " to einfo call.
326
327 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
328
329 * Makefile.am: Run "make dep-am".
330 * Makefile.in: Regenerated.
331 * aclocal.m4: Likewise.
332
333 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
334
335 * ldlang.c (output_statement_hash_entry): New type.
336 (output_statement_table): New variable for hash table.
337 (output_statement_newfunc): New function.
338 (output_statement_table_init): Likewise.
339 (output_statement_table_free): Likewise.
340 (lang_init): Call output_statement_table_init.
341 (lang_finish): Renamed to ...
342 (lang_end): This.
343 (lang_process): Updated.
344 (lang_finish): New function.
345 (lang_output_section_find_1): Use hash table.
346 (lang_output_section_statement_lookup_1): Likewise.
347
348 * ldlang.h (lang_finish): New.
349
350 * ldmain.c (main): Call lang_finish.
351
352 2005-09-30 Mark Mitchell <mark@codesourcery.com>
353
354 * ldmain.c (main): Use expandargv.
355
356 2005-09-30 Catherine Moore <clm@cm00re.com>
357
358 * Makefile.am: Bfin support.
359 * Makefile.in: Regenerated.
360 * aclocal.m4: Regenerated.
361 * configure.tgt: Bfin support.
362 * emulparams/bfin.sh: New file.
363 * emultempl/bfin.em: New file.
364
365 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
366
367 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
368 version of <locale.h> when ENABLE_NLS is not defined.
369
370 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
371
372 * ld.texinfo (ALIGN): Document it as forcing output section
373 alignment.
374
375 * ldgram.y (ALIGN): Support it for forcing output section
376 alignment.
377
378 2005-09-20 Alan Modra <amodra@bigpond.net.au>
379
380 * ldlang.h (lang_output_section_statement_struct): Change type of
381 "processed" to bfd_boolean.
382 * ldexp.c (fold_name): Update references to os->processed.
383 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
384 (lang_size_sections_1): Likewise.
385 (lang_reset_memory_regions): Likewise.
386
387 PR ld/1353
388 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
389 so that unused output section statements affect dot.
390
391 2005-09-08 Jakub Jelinek <jakub@redhat.com>
392
393 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
394 and --eh-frame-hdr options.
395
396 2005-09-07 Alan Modra <amodra@bigpond.net.au>
397
398 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
399 (exp_fold_tree_1): Print assert message only in final stage of
400 linking. Trigger assertion failure if expression cannot be
401 evaluated.
402
403 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
404
405 PR ld/1263
406 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
407 --just-symbols on DSO.
408
409 2005-08-18 Alan Modra <amodra@bigpond.net.au>
410
411 * scripttempl/elf.sc: Remove commented out defines.
412
413 2005-08-18 Alan Modra <amodra@bigpond.net.au>
414
415 * emulparams/a29k.sh: Delete.
416 * emulparams/ebmon29k.sh: Delete.
417 * emulparams/sa29200.sh: Delete.
418 * Makefile.am: Remove a29k support.
419 * configure.tgt: Likewise.
420 * ld.texinfo: Likewise.
421 * Makefile.in: Regenerate.
422
423 2005-08-17 Jakub Jelinek <jakub@redhat.com>
424
425 * ldgram.y (vers_defns): Don't lose pattern list before
426 extern NAME {}. Handle global, local and extern symbol names.
427
428 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
429
430 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
431 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
432
433 2005-08-10 Nick Clifton <nickc@redhat.com>
434
435 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
436 before lang_size_sections.
437
438 2005-08-09 Alan Modra <amodra@bigpond.net.au>
439
440 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
441
442 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
443
444 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
445 Add rules to build these emulations.
446 * Makefile.in: Regenerate.
447 * configure.tgt (msp430): Add the new variants to the
448 targ_extra_emuls list.
449 * emulparams/msp430all.sh: Add entries for the msp430x21xx
450 variants.
451
452 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
453
454 * ld.texinfo: Document PROVIDE_HIDDEN.
455
456 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
457 (exp_provide): Add and set hidden.
458
459 * ldexp.h (etree_type): Add hidden to assign.
460
461 * ldgram.y (PROVIDE_HIDDEN): New.
462 * ldlex.l (PROVIDE_HIDDEN): Likewise.
463
464 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
465 symbols.
466
467 2005-08-05 Alan Modra <amodra@bigpond.net.au>
468
469 * emulparams/elf_x86_64.sh: Revert last change.
470 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
471
472 2005-08-05 Alan Modra <amodra@bigpond.net.au>
473
474 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
475 OTHER_END_SYMBOLS.
476 * emulparams/armelf_linux.sh: Likewise.
477 * emulparams/armnto.sh: Likewise.
478 * emulparams/criself.sh: Likewise.
479 * emulparams/elf32mcore.sh: Likewise.
480 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
481 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
482 (OTHER_END_SYMBOLS): Don't define.
483 * emulparams/elf32fr30.sh: Likewise.
484 * emulparams/elf64mmix.sh: Likewise.
485 * emulparams/hppa64linux.sh: Likewise.
486 * emulparams/m32relf.sh: Likewise.
487 * emulparams/vxworks.sh: Likewise.
488 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
489 (OTHER_BSS_END_SYMBOLS): Add.
490 (OTHER_END_SYMBOLS): Move before current end sym definitions.
491 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
492 * scripttempl/elf.sc: Likewise.
493 * scripttempl/elf32sh-symbian.sc: Likewise.
494 * scripttempl/elf_chaos.sc: Likewise.
495 * scripttempl/elfxtensa.sc: Likewise.
496 * scripttempl/iq2000.sc: Likewise.
497 * scripttempl/xstormy16.sc: Likewise.
498
499 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
500 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
501 (REL_LARGE, LARGE_SECTIONS): Add.
502 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
503 (REL_LARGE): Define.
504 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
505 (LARGE_SECTIONS): Define.
506 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
507 (LARGE_SECTIONS): Define.
508
509 2005-08-04 Alan Modra <amodra@bigpond.net.au>
510
511 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
512 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
513 (struct ld_emulation_xfer_struct): Remove do_assignments field.
514 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
515 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
516 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
517 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
518 * emultempl/armcoff.em: Likewise.
519 * emultempl/beos.em: Likewise.
520 * emultempl/generic.em: Likewise.
521 * emultempl/gld960.em: Likewise.
522 * emultempl/gld960c.em: Likewise.
523 * emultempl/linux.em: Likewise.
524 * emultempl/lnk960.em: Likewise.
525 * emultempl/m68kcoff.em: Likewise.
526 * emultempl/pe.em: Likewise.
527 * emultempl/sunos.em: Likewise.
528 * emultempl/ticoff.em: Likewise.
529 * emultempl/vanilla.em: Likewise.
530 * emultempl/elf32.em: Likewise.
531 (gld*_provide_bound_symbols): Delete.
532 (gld*_provide_init_fini_syms): Delete.
533 (gld*_before_allocation): Don't call ldemul_do_assignments.
534 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
535 (LDEMUL_DO_ASSIGNMENTS): Delete.
536 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
537 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
538
539 2005-08-04 Alan Modra <amodra@bigpond.net.au>
540
541 * Makefile.am (eelf32m32c.c): Fix dependencies.
542 * Makefile.in: Regenerate.
543
544 2005-08-04 Alan Modra <amodra@bigpond.net.au>
545
546 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
547 (finish_default): New function.
548 * ldemul.h (finish_default): Declare.
549 * emultempl/aix.em (gld*_before_allocation): Call
550 before_allocation_default rather than strip_excluded_output_sections.
551 (ld_*_emulation): Init finish field to finish_default.
552 * emultempl/armcoff.em: Likewise.
553 * emultempl/beos.em: Likewise.
554 * emultempl/elf32.em: Likewise.
555 * emultempl/generic.em: Likewise.
556 * emultempl/gld960.em: Likewise.
557 * emultempl/gld960c.em: Likewise.
558 * emultempl/hppaelf.em: Likewise.
559 * emultempl/linux.em: Likewise.
560 * emultempl/lnk960.em: Likewise.
561 * emultempl/m68kcoff.em: Likewise.
562 * emultempl/mmo.em: Likewise.
563 * emultempl/pe.em: Likewise.
564 * emultempl/ppc64elf.em: Likewise.
565 * emultempl/sunos.em: Likewise.
566 * emultempl/ticoff.em: Likewise.
567 * emultempl/vanilla.em: Likewise.
568
569 2005-08-03 Alan Modra <amodra@bigpond.net.au>
570
571 * ldlang.c (exp_init_os): Handle etree_provide.
572 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
573 (OTHER_BSS_END_SYMBOLS): ..this.
574 * emulparams/armelf_linux.sh: Likewise.
575 * emulparams/armnto.sh: Likewise.
576 * emulparams/criself.sh: Likewise.
577 * emulparams/crislinux.sh: Likewise.
578 * emulparams/elf32frv.sh: Likewise.
579 * emulparams/elf32mcore.sh: Likewise.
580 * emulparams/elf32ppc.sh: Likewise.
581 * emulparams/elf32ppclinux.sh: Likewise.
582 * emulparams/hppa64linux.sh: Likewise.
583 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
584 $OTHER_BSS_END_SYMBOLS.
585 * scripttempl/elf32sh-symbian.sc: Likewise.
586 * scripttempl/elf_chaos.sc: Likewise.
587 * scripttempl/iq2000.sc: Likewise.
588 * scripttempl/xstormy16.sc: Likewise.
589 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
590 * scripttempl/elfxtensa.sc: Likewise.
591
592 2005-07-29 Nick Clifton <nickc@redhat.com>
593
594 * ldmain.c (main): Allow -shared and -static to be used together.
595 * ld.texinfo (-static): Mention that it is allowed with -shared.
596
597 2005-07-28 DJ Delorie <dj@redhat.com>
598
599 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
600 unary & address operator, as that breaks GCC's strict aliasing
601 rules.
602
603 2005-07-25 Jan Hubicka <jh@suse.cz>
604 H.J. Lu <hongjiu.lu@intel.com>
605
606 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
607
608 * scripttempl/elf.sc: Updated for large section support.
609
610 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
611
612 * configure.tgt: Remove i[3-7]86-*-rtemself*.
613 Remove sparc-*-rtemself*.
614
615 2005-07-21 Ben Elliston <bje@gnu.org>
616
617 * ldgram.y (ldgram_want_filename): Remove unused static.
618
619 2005-07-20 DJ Delorie <dj@redhat.com>
620
621 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
622 (EXTRA_EM_FILE): New.
623
624 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
625
626 * ldmain.c (main): Reindent.
627
628 2005-07-19 Paul Brook <paul@codesourcery.com>
629
630 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
631 to determine dynamic linker name.
632
633 2005-07-18 Nick Clifton <nickc@redhat.com>
634
635 * configure.tgt: Restore alpha ordering to list of arches.
636
637 2005-07-16 Alan Modra <amodra@bigpond.net.au>
638
639 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
640 (gld*_before_allocation): Call ldemul_do_assignments rather than
641 gld*_provide_init_fini_syms directly.
642 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
643 (ppc_do_assignments): New function.
644 (LDEMUL_AFTER_ALLOCATION): Don't define.
645 (LDEMUL_DO_ASSIGNMENTS): Define.
646
647 2005-07-16 Alan Modra <amodra@bigpond.net.au>
648
649 * Makefile.am: Run "make dep-am".
650 (emipsidt.c, emipsidtl.c): Depend on generic.em.
651 * Makefile.in: Regenerate.
652
653 2005-07-15 Alan Modra <amodra@bigpond.net.au>
654
655 * ldemul.c (ldemul_do_assignments): New function.
656 (do_assignments_default): New function.
657 * ldemul.h (ldemul_do_assignments): Declare.
658 (do_assignments_default): Declare.
659 (struct ld_emulation_xfer_struct): Add do_assignments.
660 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
661 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
662 * emultempl/armcoff.em: Likewise.
663 * emultempl/beos.em: Likewise.
664 * emultempl/generic.em: Likewise.
665 * emultempl/gld960.em: Likewise.
666 * emultempl/gld960c.em: Likewise.
667 * emultempl/linux.em: Likewise.
668 * emultempl/lnk960.em: Likewise.
669 * emultempl/m68kcoff.em: Likewise.
670 * emultempl/pe.em: Likewise.
671 * emultempl/sunos.em: Likewise.
672 * emultempl/ticoff.em: Likewise.
673 * emultempl/vanilla.em: Likewise.
674 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
675 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
676
677 2005-07-14 Jim Blandy <jimb@redhat.com>
678
679 Add support for the Renesas M32C and M16C.
680 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
681 (eelf32m32c.c): New target.
682 * Makefile.in: Regenerated.
683 * configure.tgt: Add case for m32c-*-elf.
684 * emulparams/elf32m32c.sh: New file.
685
686 2005-07-14 Alan Modra <amodra@bigpond.net.au>
687
688 * ldlang.c (strip_excluded_output_sections): Don't call
689 bfd_gc_sections.
690 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
691 (gld*_provide_init_fini_syms): Move.
692 (gld*_before_allocation): Call the above from here..
693 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
694 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
695 * emultempl/ppc64elf.em (ppc_finish): Likewise.
696
697 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
698
699 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
700 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
701 powerpcle-*-rtems*.
702
703 2005-07-09 Christopher Faylor <cgf@timesys.com>
704
705 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
706 relocation by default.
707 (compute_dll_image_base): Avoid linking into cygwin dll address space.
708
709 2005-07-08 Alan Modra <amodra@bigpond.net.au>
710
711 * ldlang.c (wild_sort): Formatting.
712 (strip_excluded_output_sections): Strip zero size sections here.
713 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
714 (gld*_finish): Don't call the above.
715 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
716 * emultempl/ppc64elf.em (ppc_finish): Likewise.
717
718 2005-07-05 Paul Brook <paul@codesourcery.com>
719
720 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
721 (eelf32ppcvxworks.o): Add dependencies.
722 * Makefile.in: Regenerate.
723 * configure.tgt: Add entry for powerpc-vxworks.
724 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
725 * emulparams/elf32ppcvxworks.sh: New file.
726 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
727 (is_ppc_elf32_vec): New function.
728 (ppc_after_open, ppc_before_allocation,
729 gld${EMULATION_NAME}_after_allocation): Use it.
730
731 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
732
733 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
734 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
735
736 2005-07-04 Mike Frysinger <vapier@gentoo.org>
737
738 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
739 name.
740
741 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
742
743 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
744
745 2005-07-04 Aurelien Jarno <aurel32@debian.org>
746
747 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
748
749 2005-07-01 Alan Modra <amodra@bigpond.net.au>
750
751 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
752
753 2005-06-30 Ben Elliston <bje@gnu.org>
754
755 * Makefile.am (check-DEJAGNU): Don't search for expect.
756 * Makefile.in: Regenerate.
757
758 2005-06-30 Ben Elliston <bje@gnu.org>
759
760 * Makefile.am (EXPECT): Set to expect.
761 (RUNTEST): Likewise, set to runtest.
762 * Makefile.in: Regenerate.
763
764 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
765
766 * emultempl/armelf.em: Add quotes to avoid a null test
767 expression.
768
769 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
770
771 * ld.texinfo (Command Line Options): Add @item for --hash-size.
772
773 2005-06-10 Alan Modra <amodra@bigpond.net.au>
774
775 * scripttempt/elf.sc (.bss): Align tail in a way that allows
776 empty section pruning.
777
778 2005-06-09 Steve Ellcey <sje@cup.hp.com>
779
780 * configure.in (AM_BINUTILS_WARNINGS): Add.
781 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
782 * config.in: Regenerate.
783 * configure: Regenerate.
784 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
785 * ldmain.c: Ditto.
786
787 2005-06-09 Alan Modra <amodra@bigpond.net.au>
788
789 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
790
791 2005-06-09 Alan Modra <amodra@bigpond.net.au>
792
793 * ld.h (lang_phase_type): Move to..
794 * ldexp.h: ..here. Add lang_mark_phase_enum.
795 (node_type): Remove etree_undef and etree_unspec.
796 (exp_data_seg): Delete.
797 (struct ldexp_control, expld): New.
798 (invalid, exp_mark_used_section): Delete.
799 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
800 exp_get_abs_int): Update prototypes.
801 * ldexp.c (assigning_to_dot): Delete.
802 (expld): Define.
803 (make_abs): Operate directly on expld.result. Update all callers.
804 (new_abs): Likewise. Return void.
805 (new_rel_from_abs): Rename from new_rel_from_section.
806 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
807 Update all callers.
808 (fold_unary): Operate on expld.result and return void. Remove
809 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
810 params. Update all callers.
811 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
812 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
813 (fold_unary <ABSOLUTE>): Use make_abs.
814 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
815 allocating_phase.
816 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
817 (fold_binary <'%','/'>): Don't error if marking.
818 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
819 marking.
820 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
821 error when marking.
822 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
823 (exp_fold_tree_1): Don't error when marking.
824 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
825 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
826 current section, instead check for NULL dotp.
827 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
828 source unless the symbol is referenced and undefined.
829 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
830 params to expld.
831 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
832 and "mark_used" params. Save params to expld. Update all callers.
833 (exp_assop): Do without temp var.
834 (exp_print_tree <etree_undef>): Delete code.
835 (exp_get_vma): Remove "allocation_done" param. Correct error return.
836 (exp_get_fill, exp_get_abs_int): Likewise.
837 (exp_get_value_int): Remove "allocation_done" param.
838 (exp_mark_used_section): Delete.
839 * ldgram.y (fill_exp): Update exp_get_fill call.
840 (origin_spec, length_spec): Update exp_get_vma call.
841 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
842 (lang_mark_used_section_1, lang_mark_used_section): Delete.
843 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
844 marking mode. Merge old lang_mark_used_section code. Correct handling
845 of output sections with excluded input sections and data statements.
846 Don't drop non-zero sized sections. Don't zap os->bfd_section.
847 Do set SEC_EXCLUDE when appropriate.
848 (print_output_section_statement): Update for changed ldexp.c
849 interface.
850 (print_assignment, lang_size_sections_1): Likewise.
851 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
852 (lang_new_phdr, lang_record_phdrs): Likewise.
853 (lang_size_sections): Likewise.
854 (insert_pad): Use following statement if it is a pad, rather than
855 creating a new one.
856 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
857 process ignored output section to set vma and lma, but don't
858 update dot for these sections. Don't error if marking.
859 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
860 update dot for ignored sections.
861 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
862 section with SEC_ALLOC.
863 (one_lang_size_sections_pass): New function.
864 (lang_size_sections): Remove first five params. Set expld.phase on
865 entry and exit. Use one_lang_size_sections_pass.
866 (lang_do_assignments): Remove all params. Update all callers.
867 (lang_reset_memory_regions): Clear os->processed for all output
868 section statements.
869 * ldlang.h (lang_do_assignments): Update prototype.
870 (lang_size_sections): Likewise.
871 (one_lang_size_sections_pass): Declare.
872 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
873 lang_size_sections and lang_do_assignments calls.
874 * emultempl/elf32.em (layout_sections_again): Likewise.
875 * emultempl/ppc64elf.em (ppc_before_allocation): Use
876 one_lang_size_sections_pass.
877
878 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
879
880 * emulparams/elf32ms1.sh: New.
881
882 2005-06-07 Eric Christopher <echristo@redhat.com>
883
884 * Makefile.am (eelf32ms1.c): Use tab.
885 * Makefile.in: Regenerate.
886
887 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
888 Michael Snyder <msnyder@redhat.com>
889 Stan Cox <scox@redhat.com>
890
891 * configure.tgt: Same.
892
893 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
894 (eelf32ms1.c): Add eelf32ms1.c rule.
895
896 * Makefile.in: Regenerate.
897
898 2005-06-06 Alan Modra <amodra@bigpond.net.au>
899
900 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
901 ppc64_elf_edit_opd.
902
903 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
904
905 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
906 section only if the symbol will be defined.
907
908 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
909
910 PR 992
911 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
912 section for etree_assign, etree_provide and etree_provided.
913 Call fold_binary on etree_binary.
914
915 * ldlang.c (lang_mark_used_section_1): Handle load base.
916
917 2005-06-03 Alan Modra <amodra@bigpond.net.au>
918
919 * ldmain.c (link_callbacks): Add einfo.
920 (add_archive_element): Use passed info, not link_info.
921 (constructor_callback): Likewise.
922 (reloc_overflow): Don't handle null bfd specially.
923 (reloc_dangerous, unattached_reloc): Likewise.
924 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
925 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
926
927 2005-06-02 Alan Modra <amodra@bigpond.net.au>
928
929 * ldexp.h (etree_value_type): Use "asection *" in place of
930 "struct lang_output_section_statement_struct *" for "section".
931 (exp_fold_tree): Likewise.
932 (exp_mark_used_section): Likewise.
933 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
934 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
935 exp_mark_used_section): Likewise for "current_section" param.
936 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
937 exp_get_abs_int): Adjust for above changes.
938 * ldlang.c (lang_mark_used_section_1, print_assignment,
939 lang_size_sections_1, lang_do_assignments_1): Likewise.
940 * ldexp.c (fold_name): Init entire result struct.
941
942 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
943
944 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
945
946 2005-05-31 Zack Weinberg <zack@codesourcery.com>
947
948 * ldlang.c (entry_symbol_default): New file-scope global.
949 (lang_finish): Use it, not a hardwired "start".
950 (lang_default_entry): Set it.
951 * ldlang.h: Declare lang_default_entry.
952 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
953 not lang_add_entry, to override default entry point symbol.
954
955 2005-05-29 Richard Henderson <rth@redhat.com>
956
957 * emulparams/elf64alpha.sh (PLT): New.
958 (TEXT_PLT): New.
959 * emultempl/alphaelf.em (disable_relaxation): New.
960 (limit_32bit): Rename from elf64alpha_32bit; update all users.
961 (elf64_alpha_use_secureplt): Declare.
962 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
963 (alpha_after_open): New.
964 (alpha_before_allocation): New.
965 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
966 (PARSE_AND_LIST_LONGOPTS): Include them.
967 (PARSE_AND_LIST_OPTIONS): Likewise.
968 (PARSE_AND_LIST_ARGS_CASES): Likewise.
969 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
970 * scripttempl/elf.sc (TEXT_PLT): New.
971 (PLT): Use it.
972
973 2005-05-27 Andreas Schwab <schwab@suse.de>
974
975 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
976
977 2005-05-24 Alan Modra <amodra@bigpond.net.au>
978
979 * emultempl/ppc32elf.em (after_allocation): Don't call
980 ppc_elf_set_sdata_syms when relocatable.
981
982 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
983
984 * Makefile.am (ld.1): Revert the last 2 changes.
985 (info-recursive): Depend on ld.1.
986 * Makefile.in: Regenerated.
987
988 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
989
990 * Makefile.am (ld.1): Depend on "info" instead of
991 "configdoc.texi ldver.texi".
992 * Makefile.in: Regenerated.
993
994 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
995
996 * Makefile.am (ld.1): Depend on "info".
997 * Makefile.in: Regenerated.
998
999 2005-05-19 Zack Weinberg <zack@codesourcery.com>
1000
1001 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
1002 * Makefile.in: Regenerate.
1003
1004 2005-05-17 Zack Weinberg <zack@codesourcery.com>
1005
1006 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
1007
1008 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1009
1010 * Makefile.am (ldver.texi): Don't use $<.
1011 * Makefile.in: Regenerated.
1012
1013 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1014
1015 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
1016 $(srcdir) before $(BFDDIR)/doc.
1017 * Makefile.in: Regenerated.
1018
1019 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1020
1021 PR 797
1022 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
1023 take take a bfd_boolean, mark_used. Ignore assert failure if
1024 mark_used is TRUE.
1025 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
1026 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
1027 mark_used and pass down.
1028 (fold_unary): Likewise.
1029 (fold_binary): Likewise.
1030 (fold_trinary): Likewise.
1031 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
1032 (exp_trinop): Likewise.
1033 (exp_unop): Likewise.
1034 (exp_nameop): Likewise.
1035 (exp_get_vma): Likewise.
1036 (exp_get_fill): Likewise.
1037 (exp_get_abs_int): Likewise.
1038 (fold_name): Likewise. Set SEC_KEEP in output section flags.
1039 (exp_mark_used_section): New.
1040
1041 * ldexp.h (exp_mark_used_section): New.
1042
1043 * ldlang.c (lang_output_section_statement_lookup_1): Set the
1044 ignored field to FALSE.
1045 (lang_mark_used_section_1): New.
1046 (lang_mark_used_section): Call lang_mark_used_section_1.
1047 (strip_excluded_output_sections): Call lang_mark_used_section
1048 and check for unused sections.
1049 (lang_size_sections_1): Skip an output section if it should
1050 be ignored.
1051 (lang_do_assignments_1): Likewise.
1052 (lang_process): Don't call lang_mark_used_section here.
1053
1054 * ldlang.h (lang_output_section_statement_type): Change
1055 all_input_readonly to bitfield. Add ignored.
1056
1057 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
1058 Peter S. Mazinger" <ps.m@gmx.net>
1059
1060 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1061 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
1062
1063 2005-05-17 Julian Brown <julian@codesourcery.com>
1064
1065 * ldlang.c (print_assignment): Do not rely upon a valid result
1066 having a section associated with it.
1067
1068 2005-05-17 Nick Clifton <nickc@redhat.com>
1069
1070 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
1071 see if the same value is being used on the rhs as on the lhs.
1072 (print_assignment): Call scan_for_self_assignment and if it
1073 returns true, do no display the result of the computation but
1074 instead just the final value of the symbol on the lhs.
1075 * ld.texinfo: Document this behaviour and provide an example of
1076 when it will happen.
1077
1078 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
1079
1080 * Makefile.am (AM_MAKEINFOFLAGS): Define.
1081 (TEXI2DVI): Define.
1082 (ldver.texi): Depend on distributed files instead of built files.
1083 (ld.info): Include $(srcdir) in the rule target. Remove actions.
1084 (ld.dvi): Remove actions.
1085 (MAINTAINERCLEANFILES): Add configdoc.texi.
1086 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
1087 (install-data-local): Renamed from install.
1088 (Makefile): Remove explicit dependency.
1089 * acinclude.m4: Remove obsolete code.
1090 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
1091 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
1092
1093 2005-05-11 Bob Wilson <bob.wilson@acm.org>
1094
1095 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
1096 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
1097
1098 2005-05-11 Alan Modra <amodra@bigpond.net.au>
1099
1100 * ldgram.y: Add SPECIAL token.
1101 (sect_constraint): Handle SPECIAL.
1102 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
1103 (map_input_to_output_sections): Likewise.
1104 * ldlex.l (SPECIAL): Define.
1105 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
1106 GOT, PLT, GOTPLT): Define.
1107 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
1108 (ppc_after_open): New function.
1109 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
1110 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
1111 (PARSE_AND_LIST_OPTIONS): Document them.
1112 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1113 (LDEMUL_AFTER_OPEN): Define.
1114 * scripttempl/elf.sc (PLT): Don't override existing define.
1115 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
1116 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
1117
1118 2005-05-10 Alan Modra <amodra@bigpond.net.au>
1119
1120 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
1121 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
1122 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
1123 DATA_SEGMENT_RELRO_END in script.
1124
1125 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1126
1127 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1128 Don't use a removed section.
1129
1130 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
1131
1132 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
1133 is defined in the ABS section.
1134
1135 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1136
1137 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1138 Put back !link_info.relocatable.
1139
1140 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
1141
1142 PR 878
1143 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
1144 Just check link_info.executable.
1145
1146 2005-05-06 Nick Clifton <nickc@redhat.com>
1147
1148 * Update the address and phone number of the FSF organization in
1149 the GPL notices in the following files:
1150 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
1151 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
1152 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
1153 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
1154 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
1155 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
1156 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
1157 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
1158 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
1159 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
1160 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
1161 emultempl/m68kcoff.em, emultempl/m68kelf.em,
1162 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
1163 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
1164 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
1165 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
1166 emultempl/vanilla.em, emultempl/xtensaelf.em
1167
1168 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1169
1170 * scripttempl/elf.sc: Document the usage of __bss_start.
1171
1172 2005-05-05 Paul Brook <paul@codesourcery.com>
1173
1174 * Makefile.am: Add eelf_i386_vxworks.
1175 * Makefile.in: Regenerate.
1176 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
1177 * emulparams/elf_i386_vxworks.sh: New file.
1178 * emulparams/vxworks.sh: New file.
1179 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1180
1181 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1182
1183 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1184 Call _bfd_elf_provide_section_bound_symbols.
1185
1186 2005-05-04 Alan Modra <amodra@bigpond.net.au>
1187
1188 * ldemul.c: Include bfdlink.h.
1189 (ldemul_before_allocation): Assume before_allocation is non-zero.
1190 (before_allocation_default): Call strip_excluded_output_sections.
1191 * ldlang.c (stripped_excluded_sections): New variable.
1192 (lang_add_section): Build input section list for each output
1193 section, attached via map_head and map_tail pointers.
1194 (strip_excluded_output_sections): Make global. Traverse the
1195 input section lists to find which output sections can go. Clear
1196 link_order pointers and set stripped_excluded_sections.
1197 (lang_process): Call strip_excluded_output_sections.
1198 * ldlang.h (strip_excluded_output_sections): Declare.
1199 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1200 * emultempl/aix.em (before_allocation): Call
1201 strip_excluded_output_sections.
1202 * emultempl/armcoff.em (before_allocation): Likewise.
1203 * emultempl/beos.em (before_allocation): Likewise.
1204 * emultempl/linux.em (before_allocation): Likewise.
1205 * emultempl/pe.em (before_allocation): Likewise.
1206 * emultempl/sunos.em (before_allocation): Likewise.
1207 * emultempl/elf32.em (before_allocation): Likewise. Call
1208 bfd_elf_size_dynsym_hash_dynstr too.
1209 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1210 (ld_lnk960): Use before_allocation_default.
1211
1212 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1213
1214 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1215 Updated for bfd_section_list_remove change.
1216 * ldlang.c (lang_insert_orphan): Likewise.
1217 (strip_excluded_output_sections): Likewise.
1218 (sort_sections_by_lma): New.
1219 (lang_check_section_addresses): Sort the sections before
1220 checking addresses.
1221
1222 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1223
1224 * configure.tgt: Add h8300*-*-rtemscoff.
1225 Switch h8300*-*-rtems* to elf.
1226
1227 2005-04-29 Ben Elliston <bje@au.ibm.com>
1228
1229 * ldgram.y (lang_memory_region_type): Make static.
1230 (ldgram_want_filename): Likewise.
1231 * ldemul.c (ld_emulation): Make static.
1232 * ldfile.h (ldfile_find_command_file): Remove extern.
1233 * ldfile.c (ldfile_find_command_file): Make static.
1234 * ldlang.h (unique_section_list): Remove extern declaration.
1235 * ldlang.c (unique_section_list): Make static.
1236 * mri.h (symbol_truncate): Remove extern declaration.
1237 * mri.c (symbol_truncate): Make static.
1238 (order, only_load, address, alias): Likewise.
1239 (alignment, subalignment): Likewise.
1240
1241 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1242
1243 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1244 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1245 last SEC_ALLOC section if such a section doesn't exist.
1246
1247 2005-04-24 Mark Kettenis <kettenis@gnu.org>
1248
1249 * configure.host: Add *-*-openbsd support.
1250
1251 2005-04-15 Julian Brown <julian@codesourcery.com>
1252
1253 * ld.texinfo: Document --use-blx.
1254 * emultempl/armelf.em (use_blx): New variable.
1255 (arm_elf_create_output_section_statements): Communicate value of
1256 use_blx to bfd.
1257 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1258 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1259 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1260
1261 2005-04-14 Alan Modra <amodra@bigpond.net.au>
1262
1263 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1264 * configure.in: Include ../bfd/warning.m4 contents.
1265 * Makefile.in: Regenerate.
1266 * configure: Regenerate.
1267
1268 2005-04-12 Alan Modra <amodra@bigpond.net.au>
1269
1270 * Makefile.am: Run "make dep-am".
1271 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1272 * Makefile.in: Regenerate.
1273 * config.in: Regenerate.
1274
1275 2005-04-11 Alan Modra <amodra@bigpond.net.au>
1276
1277 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1278 as_needed libs that were not needed.
1279 (gld${EMULATION_NAME}_check_needed): Likewise.
1280
1281 2005-04-07 Nick Clifton <nickc@redhat.com>
1282
1283 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1284 ldfile.h can use the lang_input_statement type.
1285
1286 2005-04-06 Jakub Jelinek <jakub@redhat.com>
1287
1288 * ldlang.c: Formatting.
1289 (walk_wild_consider_section): Remember return value from wildcardp.
1290 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1291 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1292
1293 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
1294
1295 * ld.h (lean_section_userdata_type): Remove.
1296 (fat_section_userdata_type): Remove file field.
1297 (SECTION_USERDATA_SIZE): Remove.
1298 * ldlang.c (init_os): Eliminate initialization of unused
1299 lean_section_userdata_type.
1300
1301 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1302 typedefs.
1303 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1304 and handler_data fields.
1305 * ldlang.c (callback_t): Removed.
1306 (walk_wild_consider_section, walk_wild_section_general,
1307 section_iterator_callback, find_section, is_simple_wild,
1308 match_simple_wild, walk_wild_section_specs1_wild0,
1309 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1310 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1311 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1312 functions.
1313 (lang_add_wild): Call analyze_walk_wild_section_handler.
1314 (walk_wild_section): Renamed to walk_wild_section_general and
1315 created a wrapper function.
1316 (section_iterator_callback_data): New typedef.
1317
1318 2005-04-04 Nick Clifton <nickc@redhat.com>
1319
1320 * configure.in: Add a check for <unistd.h> providing a prototype
1321 for getopt() which is compatible with the one in
1322 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1323 * configure: Regenerate.
1324 * config.in (HAVE_DECL_GETOPT): Add.
1325 * ldemul.c: Include config.h
1326 * lexsup.c: Likewise.
1327 * emultempl/elf32.sc: Likewise.
1328
1329 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1330
1331 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1332 New function, extracted from static void gld${EMULATION_NAME}_finish.
1333 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1334 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1335 * emultempl/ppc64elf.em: Revert last change.
1336 (ppc_layout_sections_again): Use
1337 gld${EMULATION_NAME}_layout_sections_again.
1338 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1339 gld${EMULATION_NAME}_strip_empty_sections and
1340 gld${EMULATION_NAME}_provide_init_fini_syms.
1341 * emultempl/hppaelf.em: Similarly.
1342
1343 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1344
1345 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1346 (ppc_finish): Don't call bfd_elf_discard_info.
1347 * emultempl/hppaelf.em: Similarly.
1348
1349 2005-03-24 Nick Clifton <nickc@redhat.com>
1350
1351 * po/fr.po: Updated French translation.
1352
1353 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1354 Nick Clifton <nickc@redhat.com>
1355
1356 * configure.host: Accept any C library to accompany a GNU Linux
1357 implementation, not just the GNU C library.
1358 * configure.tgt: Likewise.
1359 * emultempl/elf32.em: Likewise.
1360
1361 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1362
1363 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1364 (gld${EMULATION_NAME}_finish): Call
1365 gld${EMULATION_NAME}_provide_bound_symbols to provide
1366 __preinit_array_start, __preinit_array_end, __init_array_start,
1367 __init_array_end, __fini_array_start and __fini_array_end.
1368
1369 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1370 __preinit_array_end, __init_array_start, __init_array_end,
1371 __fini_array_start nor __fini_array_end.
1372
1373 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1374
1375 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1376 SEC_EXCLUDE on .gnu.warning sections.
1377
1378 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1379
1380 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1381
1382 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1383
1384 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1385 function.
1386 (LDEMUL_AFTER_ALLOCATION): Define.
1387
1388 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1389
1390 * emultempl/ppc64elf.em (ppc_finish): Rename from
1391 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1392 (LDEMUL_FINISH): Update.
1393 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1394 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1395
1396 2005-03-18 Julian Brown <julian@codesourcery.com>
1397
1398 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1399 .rel.fini_array.
1400 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1401 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1402
1403 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1404
1405 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1406 bfd_section when removing unused empty output sections for
1407 non-relocatable link.
1408
1409 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1410
1411 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1412 traversing the bfd section list to find pointer to new section.
1413
1414 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1415
1416 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1417 input sections into .sdata and .sbss output respectively.
1418
1419 2005-03-16 David Heine <dlheine@tensilica.com>
1420 Bob Wilson <bob.wilson@acm.org>
1421
1422 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1423 (lang_check_section_addresses): Ignore zero size sections here.
1424
1425 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1426
1427 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1428 unused empty output sections for non-relocatable link.
1429
1430 * ld.h (args_type): Remove gc_sections.
1431
1432 * ldlang.c (lang_mark_used_section): New.
1433 (lang_gc_sections): Use link_info.gc_sections instead of
1434 command_line.gc_sections.
1435 * ldmain.c (main): Likewise.
1436 * lexsup.c (parse_args): Likewise.
1437 * ldlang.c (lang_process): Call lang_mark_used_section.
1438
1439 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1440
1441 2005-03-16 Nick Clifton <nickc@redhat.com>
1442 Ben Elliston <bje@au.ibm.com>
1443
1444 * configure.in (werror): New switch: Add -Werror to the
1445 compiler command line. Enabled by default. Disable via
1446 --disable-werror.
1447 * configure: Regenerate.
1448
1449 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1450
1451 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1452 (OTHER_RELRO_SECTIONS): Set this instead.
1453
1454 2005-03-15 Nick Clifton <nickc@redhat.com>
1455
1456 * NEWS: Add cutoff for changes in 2.16 release.
1457
1458 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1459
1460 * configure.tgt (x86_64-elf): Add target.
1461
1462 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1463
1464 * po/es.po: Commit new Spanish translation.
1465
1466 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1467
1468 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1469 Tidy etree_assert case.
1470
1471 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1472
1473 * po/tr.po: Commit new Turkish translation.
1474
1475 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1476
1477 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1478 * Makefile.in: Regenerated.
1479 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1480
1481 2005-03-07 Nick Clifton <nickc@redhat.com>
1482
1483 * po/fr.po: Updated translation.
1484
1485 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1486
1487 * po/ld.pot: Regenerate.
1488
1489 2005-03-02 Jan Beulich <jbeulich@novell.com>
1490
1491 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1492 * pe-dll.c (pe_dll_generate_implib): Likewise.
1493
1494 2005-02-24 Ben Elliston <bje@au.ibm.com>
1495
1496 * ldfile.c: Remove GNU960 conditional code.
1497 * emultempl/gld960.em: Likewise.
1498 * emultempl/gld960c.em: Likewise.
1499 * emultempl/lnk960.em: Likewise.
1500
1501 2005-02-24 Nick Clifton <nickc@redhat.com>
1502
1503 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1504 empty string from calls to concat.
1505
1506 2005-02-23 Nick Clifton <nickc@redhat.com>
1507
1508 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1509 arguments passed to concat() with a NULL.
1510
1511 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1512 define types needed by ldfile.h
1513
1514 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1515
1516 * pe-dll.c: Warning fixes.
1517 * emultempl/sunos.em: Likewise.
1518
1519 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1520
1521 * ldlang.c (section_already_linked): Don't call
1522 bfd_section_already_linked for dynamic objects.
1523
1524 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1525
1526 * ldexp.c: Warning fixes.
1527 * ldwrite.c: Likewise.
1528 * emultempl/elf32.em: Likewise.
1529
1530 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1531
1532 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1533 tic54x input only.
1534 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1535 and ECOFF output only.
1536
1537 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1538
1539 * config.in: Regenerate.
1540 * configure: Regenerate.
1541
1542 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1543
1544 * ldexp.c (assigning_to_dot): New global flag.
1545 (fold_name): If assigning_to_dot is true, object immediately to
1546 an undefined symbol.
1547 (exp_fold_tree): Set and clear assigning_to_dot around the
1548 recursive call to exp_fold_tree to process the right-hand side
1549 of an assignment to the location counter.
1550
1551 2005-02-17 Paul Brook <paul@codesourcery.com>
1552
1553 * scripttempl/armbpabi.sc: Add dummy name to version block.
1554
1555 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1556
1557 * ldexp.c (new_abs): Init new.str.
1558
1559 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1560
1561 * configure.in (AC_CHECK_FUNCS): Add glob.
1562 * configure: Regenerated.
1563 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1564 not defined.
1565 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1566 if HAVE_GLOB is not defined.
1567
1568 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1569
1570 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1571 lib_path if NATIVE is yes.
1572
1573 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1574
1575 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1576 an error creating fake bfd fatal.
1577 (ppc_before_allocation): Continue on after errors.
1578 (gld${EMULATION_NAME}_finish): Likewise.
1579
1580 2005-02-15 Nick Clifton <nickc@redhat.com>
1581
1582 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1583 not declared. It is not used and its presence causes a compile
1584 time warning.
1585
1586 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1587
1588 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1589 If st.st_ino is zero, do not treat the library as a duplicate.
1590
1591 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1592
1593 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1594 Set BFD_LINKER_CREATED on the stubs bfd.
1595 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1596 Likewise.
1597
1598 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1599
1600 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1601 local.
1602 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1603 (Image$$ER_RO$$Limit): Likewise.
1604 (SHT$$INIT_ARRAY$$Base): Likewise.
1605 (SHT$$INIT_ARRAY$$Limit): Likeise.
1606
1607 2005-02-10 Ben Elliston <bje@au.ibm.com>
1608
1609 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1610
1611 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1612
1613 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1614 to include o32 and n64 emulations.
1615 (mips64*-*-linux-gnu*): Likewise.
1616
1617 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1618
1619 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1620 "warning: " to warning messages.
1621
1622 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1623
1624 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1625 look up symbol for etree_provide here.
1626
1627 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1628
1629 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1630
1631 2005-02-01 Edward Welbourne <eddy@opera.com>
1632 Nick Clifton <nickc@redhat.com>
1633
1634 * ld.texinfo (Source Code Reference): New node describing how to
1635 access linker script defined variables from source code.
1636
1637 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1638
1639 * ld.texinfo: Clarify --as-needed operation.
1640
1641 2005-01-31 Andrew Cagney <cagney@gnu.org>
1642
1643 * configure: Regenerate to track ../gettext.m4.
1644
1645 2005-01-31 Nick Clifton <nickc@redhat.com>
1646
1647 * ldver.c (ldversion): Bump reported copyright date to 2005.
1648
1649 2005-01-31 Nick Clifton <nickc@redhat.com>
1650
1651 * configure.tgt: Remove obsolete targets m68k-lynxos and
1652 sparc-lynxos.
1653
1654 2005-01-28 Julian Brown <julian@codesourcery.com>
1655
1656 * emultempl/armelf.em (fix_v4bx): New variable.
1657 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1658 value to bfd.
1659 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1660 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1661 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1662 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1663 * NEWS: Mention --fix-v4bx.
1664 * ld.texinfo: Document --fix-v4bx.
1665
1666 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1667
1668 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1669 as to include .ARM.exidx$${Base,Limit}.
1670 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1671 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1672 Put .init_array, .fini_array, etc. into the read-only data
1673 segment.
1674
1675 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1676
1677 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1678 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1679 only needed by an as-needed lib that didn't get linked.
1680
1681 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1682
1683 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1684 __DTOR_LIST__ description.
1685
1686 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1687
1688 * ld.texinfo (Location Counter <dot outside sections>): Document
1689 effects of orphan section placement, and ". = ." workaround.
1690 * Makefile.in: Regenerate.
1691
1692 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1693
1694 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1695 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1696
1697 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1698
1699 * ldgram.y (AS_NEEDED): New token.
1700 (input_list): Handle AS_NEEDED ( input_list ).
1701 * ldlex.l (AS_NEEDED): Add.
1702 * ld.texinfo: Document AS_NEEDED ().
1703 * NEWS: Mention AS_NEEDED ().
1704
1705 2005-01-21 Ben Elliston <bje@au.ibm.com>
1706
1707 * ldlang.c (lang_reasonable_defaults): Remove.
1708 (lang_process): Don't call lang_reasonable_defaults.
1709
1710 * ldexp.c (exp_assop): Remove #if 0'd code.
1711 (exp_print_tree): Likewise.
1712 * ldlang.c (lang_memory_region_lookup): Likewise.
1713 (open_output): Likewise.
1714 (lang_do_assignments_1): Likewise.
1715 (lang_place_orphans): Likewise.
1716 (lang_enter_output_section_statement): Likewise.
1717 (lang_reasonable_defaults): Likewise.
1718 * ldlang.h (struct lang_input_statement_struct): Likewise.
1719 * mri.c (mri_draw_tree): Likewise.
1720 (mri_load): Likewise.
1721 * pe-dll.c (generate_reloc): Likewise.
1722 (make_import_fixup_entry): Likewise.
1723 (pe_as16): Likewise.
1724 * emultempl/beos.em (set_pe_subsystem): Likewise.
1725 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1726 * emultempl/pe.em: Likewise.
1727 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1728
1729 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1730
1731 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1732 (earmelfb_linux_eabi.c): New target.
1733 * Makefile.in: Regenerated.
1734 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1735 * emulparams/armelfb_linux_eabi.sh: New file.
1736
1737 2005-01-20 Nick Hudson <skrll@netbsd.org>
1738
1739 PR ld/676
1740 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1741 Handle bfd_elf32_hppa_nbsd_vec.
1742
1743 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1744
1745 * ldmain.h (ld_sysroot): Change type to a constant string.
1746 * ldmain.c (ld_sysroot): Likewise.
1747 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1748 support for changing the sysroot.
1749 (main): Call the new functions.
1750 * lexsup.c (OPTION_SYSROOT): New.
1751 (ld_options): Add --sysroot.
1752 (parse_args): Add a dummy handler for it.
1753 * ld.texinfo (--sysroot): Document.
1754 * NEWS: Mention the new --sysroot option.
1755
1756 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1757
1758 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1759 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1760 bfd_link_just_syms.
1761
1762 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1763
1764 * defilep.y (def_name, def_library): Combine into...
1765 (def_image_name): New function. Strip name to basename,
1766 with warning.
1767
1768 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1769
1770 * configure.in: Be sure to invoke config.sub using the shell.
1771 * configure: Regenerate.
1772
1773 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1774
1775 * configure.host: Correct sed patterns for last change.
1776
1777 2005-01-10 Nick Clifton <nickc@redhat.com>
1778
1779 PR binutils/609
1780 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1781 to determine whether config.make_executable should be set to FALSE in
1782 conjunction with config.fatal_warnings.
1783 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1784 (einfo): Pass TRUE as the extra argument.
1785
1786 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1787
1788 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1789 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1790 (ia64-*-aix): Delete - this target is obsolete, and would be
1791 broken by this patch.
1792
1793 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1794
1795 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1796 (sparc64-sun-solaris2*): New host.
1797
1798 2005-01-06 Paul Brook <paul@codesourcery.com>
1799
1800 * Makefie.am: Add earmelf_vxworks.
1801 * Makefile.in: Regenerate.
1802 * configure.tgt: Make arm-*-vxworks a separate case.
1803 * emulparams/armelf_vxworks.sh: New function.
1804
1805 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1806
1807 * emultempl/ppc64elf.em (no_multi_toc): New var.
1808 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1809 (OPTION_NO_MULTI_TOC): Define.
1810 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1811 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1812
1813 2005-01-05 Nick Clifton <nickc@redhat.com>
1814
1815 PR binutils/614
1816 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1817 Standard's specification for parsable error messages.
1818
1819 2005-01-04 Paul Brook <paul@codesourcery.com>
1820
1821 * Makefile.am: Correct dependency for earmsymbian.c.
1822 * Makefile.in: Regenerate.
1823
1824 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1825
1826 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1827 lang_add_entry to FALSE.
1828
1829 2004-12-23 Nick Clifton <nickc@redhat.com>
1830
1831 PR 600
1832 * emulparams/shelf.sh (.stack): Increase stack start address to
1833 0x300000.
1834
1835 2004-12-20 Nick Clifton <nickc@redhat.com>
1836
1837 * ldmain.c (main): Issue an error message if -static and -shared
1838 are used together.
1839
1840 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1841
1842 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1843 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1844 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1845 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1846 PT_GNU_RELRO segment end.
1847
1848 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1849
1850 * configure.tgt: Add s390x-ibm-tpf support.
1851
1852 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1853
1854 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1855 BFD.
1856
1857 2004-12-07 Ben Elliston <bje@gnu.org>
1858
1859 * ldemul.h: Forward declare struct option.
1860
1861 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1862
1863 * scripttempl/pe.sc (.data): Add .jcr subsection.
1864
1865 2004-11-30 Paul Brook <paul@codesourcery.com>
1866
1867 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1868
1869 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1870
1871 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1872 * Makefile.in: Regenerate.
1873
1874 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1875
1876 * emultempl/pe.em: Add --subsystem:xbox as well as
1877 --subsystem:%d.
1878 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1879 and numeric subsystems.
1880
1881 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1882
1883 * ldexp.c (fold_name): Correct PR 338 fix.
1884
1885 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1886
1887 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1888 (earmelf_linux_eabi.c): New target.
1889 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1890 * emulparams/armelf_linux_eabi.sh: New file.
1891 * Makefile.in: Regenerated.
1892
1893 2004-11-19 Nick Clifton <nickc@redhat.com>
1894
1895 PR 518
1896 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1897 LENGTH fields in the MEMORY command, to explicitly state that
1898 symbols cannot be used in their expressions.
1899
1900 2004-11-19 Jon Beniston <jon@beniston.com>
1901
1902 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1903 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1904 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1905 which return the length and origin of a memory.
1906 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1907 * NEWS: Mention support for ORIGIN and LENGTH operators.
1908
1909 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1910
1911 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1912 a dynamic object for stubs.
1913
1914 2004-11-04 Paul Brook <paul@codesourcery.com>
1915
1916 * ld.texinfo: Document --default-imported-symver.
1917 * ldmain.c (main): Set link_info.default_imported_symver.
1918 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1919 (ld_options): Add --default-imported-symver.
1920 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1921
1922 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1923 Vineet Sharma <vineets@noida.hcltech.com>
1924
1925 * Makefile.am: Add entries for new maxq-coff target.
1926 * Makefile.in: Regenerate.
1927 * configure.tgt: Add support for maxq.
1928 * emulparams/maxqcoff.sh: New File.
1929 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1930 * NEWS: Mention the new target.
1931
1932 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1933
1934 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1935 (earmelf_oabi.c): Remove rule.
1936 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1937 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1938 * Makefile.in: Regenerated.
1939
1940 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1941
1942 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1943 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1944 (FINI_START): Ditto.
1945 (INIT_END): Remove emitted "jump [sp+]".
1946 (FINI_END): Ditto.
1947
1948 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1949
1950 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1951 (no_opd_opt, no_toc_opt): New static vars.
1952 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1953 ppc64_elf_edit_toc.
1954 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1955 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1956 (PARSE_AND_LIST_OPTIONS): Describe new options.
1957 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1958
1959 2004-10-27 Nick Clifton <nickc@redhat.com>
1960
1961 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1962 parameter to invocation of lang_section_start.
1963 * emultempl/aix.em (_handle_option): Likewise.
1964
1965 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1966 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1967 * Makefile.in: Regenerate.
1968
1969 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1970
1971 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1972 __exidx_{start,end} when not relocating.
1973
1974 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1975
1976 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1977 * ldexp.h (segment_type): New type.
1978 (segments): New variable.
1979 * ldexp.c (segments): New variable.
1980 (exp_print_token): Handle SEGMENT_START.
1981 (fold_binary): Likewise.
1982 * ldgram.y (SEGMENT_START): Declare it as a token.
1983 (exp): Handle SEGMENT_START.
1984 * ldlang.h (lang_address_statement_type): Add segment field.
1985 (lang_section_start): Change prototype.
1986 * ldlang.c (map_input_to_output_sections): Do not process section
1987 assignments if a corresponding SEGMENT_START has already been
1988 seen.
1989 (lang_section_start): Add segment parameter.
1990 * ldlex.l (SEGMENT_START): Add it.
1991 * lexsup.c (seg_segment_start): New function.
1992 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1993 * ld.texinfo (SEGMENT_START): Document it.
1994 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1995 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1996 base addresses. Do not map relocations.
1997 * NEWS: Mention SEGMENT_START.
1998
1999 2004-10-26 Paul Brook <paul@codesourcery.com>
2000
2001 * ld.texinfo: Document --default-symver.
2002 * ldmain.c (main): Set link_info.create_default_symver.
2003 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
2004 (ld_options): Add default-symver.
2005 (parse_args): Handle OPTION_DEFAULT_SYMVER.
2006
2007 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
2008
2009 * pe-dll.c (process_def_file): Don't export all symbols by default if
2010 building a position-independent executable.
2011
2012 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2013
2014 PR 463
2015 * ldmain.c (reloc_overflow): Accept a pointer to struct
2016 bfd_link_hash_entry. Report symbol location for relocation
2017 overflow.
2018
2019 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
2020
2021 * genscripts.sh (libpath.exp): Really generate for first
2022 emulation only.
2023
2024 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
2025
2026 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
2027 comparison and replacement of filenames.
2028
2029 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
2030
2031 PR 459
2032 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
2033 option on linker script as the one for linker script.
2034
2035 2004-10-16 Daniel Jacobowitz <dan@debian.org>
2036
2037 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
2038 (check_excluded_libs): New.
2039 (load_symbols): Call check_excluded_libs.
2040 * ldlang.h (add_excluded_libs): New prototype.
2041 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
2042 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
2043 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
2044 * ld.texinfo (Command Line Variables): Document --exclude-libs.
2045 (Options Specific to i386 PE Targets): Remove --exclude-libs.
2046
2047 2004-10-15 Alan Modra <amodra@bigpond.net.au>
2048
2049 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
2050 failing link script assert.
2051
2052 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
2053
2054 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
2055
2056 PR 445
2057 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
2058 (SMALL_DATA_DTOR): Set.
2059 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
2060 (SMALL_DATA_DTOR): Unset.
2061 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
2062 after .data. If SMALL_DATA_DTOR is set, move .dtors after
2063 .data.
2064
2065 2004-10-14 Alan Modra <amodra@bigpond.net.au>
2066
2067 PR 63
2068 * ldlang.h (lang_output_section_statement_type): Make "next" a
2069 struct lang_output_section_statement_struct *.
2070 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
2071 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
2072 * ldlang.c (lang_output_section_find_1): Adjust for changed
2073 output_section_statement "next".
2074 (strip_excluded_output_sections): Likewise.
2075 (lang_record_phdrs): Likewise.
2076 (lang_output_section_find_by_flags): New function.
2077 (output_prev_sec_find): Move from pe.em. Adjust iterator.
2078 (lang_insert_orphan): New function. Tail end of elf32.em's
2079 place_orphan merged with that from pe.em. Allow bfd_section to
2080 be placed first. New heuristic for placing new output section
2081 statement in existing script, and accompanying split of __start
2082 symbol alignment into a separate assignment to dot.
2083 (lang_add_section): Consistently use output->bfd_section rather than
2084 an alias, section->output_section.
2085 (map_input_to_output_sections): Rename overly long arg. Move
2086 initialization of data_statement output section to here..
2087 (lang_check_section_addresses): ..from here.
2088 (print_assignment): Correct printing of etree_assert.
2089 (print_all_symbols): Don't bomb if userdata is NULL.
2090 (IGNORE_SECTION): Rearrange.
2091 * emultempl/elf32.em (output_rel_find): Adjust interator.
2092 (output_prev_sec_find): Delete.
2093 (struct orphan_save): Delete.
2094 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
2095 flags without creating a duplicate output section statement.
2096 Revise code holding history of various orphan section placements.
2097 Allow orphan sections to place before script specified output
2098 sections. Call lang_output_section_find_by_flags when placement
2099 by name fails. Use lang_insert_orphan.
2100 * emultempl/mmo.em (output_prev_sec_find): Delete.
2101 (struct orphan_save): Delete.
2102 (mmo_place_orphan): Revise code holding history of orphan placement.
2103 Allow orphans to place before existing output sections. Use
2104 lang_insert_orphan.
2105 * emultempl/pe.em (output_prev_sec_find): Delete.
2106 (struct orphan_save): Delete.
2107 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
2108 lang_insert_orphan.
2109
2110 2004-10-13 Mark Mitchell <mark@codesourcery.com>
2111
2112 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
2113 loadable segment.
2114
2115 2004-10-13 Alan Modra <amodra@bigpond.net.au>
2116
2117 PR 44
2118 * ldcref.c (check_section_sym_xref): Delete.
2119 (check_local_sym_xref): New function.
2120 (check_nocrossrefs): Adjust call.
2121 * emultempl/pe.em (struct orphan_save): Add os_tail.
2122 (place_orphan): Backport assorted fixes from elf32.em.
2123
2124 2004-10-12 Bob Wilson <bob.wilson@acm.org>
2125
2126 * emultempl/xtensaelf.em: Use ISO C90 formatting.
2127
2128 2004-10-11 Jakub Jelinek <jakub@redhat.com>
2129
2130 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
2131 getline for portability.
2132
2133 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
2134 (gld${EMULATION_NAME}_parse_ld_so_conf,
2135 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
2136 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
2137
2138 2004-10-11 Alan Modra <amodra@bigpond.net.au>
2139
2140 PR 423
2141 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
2142 rejected when linking statically.
2143
2144 2004-10-08 Daniel Jacobowitz <dan@debian.org>
2145
2146 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
2147
2148 2004-10-07 Bob Wilson <bob.wilson@acm.org>
2149
2150 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
2151 assembler-generated longcall sequences. Describe new --size-opt
2152 option.
2153 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
2154 * emultempl/xtensaelf.em (remove_section,
2155 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
2156 elf_xtensa_after_open): New.
2157 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
2158 OPTION_NO_LITERAL_MOVEMENT): Define.
2159 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
2160 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
2161 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
2162 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
2163 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
2164 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
2165 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
2166 * Makefile.am (eelf32xtensa.c): Update dependencies.
2167 * Makefile.in: Regenerate.
2168
2169 2004-10-07 Jeff Baker <jbaker@qnx.com>
2170
2171 * lexsup.c: Handle --warn-shared-textrel option.
2172 (ld_options): Restore alpha sorting of options.
2173 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
2174 * ld.texinfo: Add documentation for --warn-shared-textrel.
2175 * NEWS: Added mention of --warn-shared-textrel option.
2176
2177 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
2178
2179 * emultempl/crxelf.em (disable_relaxation): Add.
2180 (crxelf_before_allocation): Enable --relax option by default.
2181 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2182 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2183 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2184
2185 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2186
2187 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2188 --sort-section name|alignment.
2189
2190 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2191 --sort-section name|alignment.
2192
2193 * ld.h (sort_type): New enum.
2194 (wildcard_spec): Change the type of `sorted' to sort_type.
2195
2196 * ldgram.y (SORT): Removed.
2197 (SORT_BY_NAME): Added.
2198 (SORT_BY_ALIGNMENT): Added.
2199 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2200 SORT_BY_ALIGNMENT.
2201 (input_section_spec_no_keep): Updated `sorted'.
2202 (statement): Replace SORT with SORT_BY_NAME.
2203
2204 * ldlang.c (compare_section): New function to compare 2
2205 sections with different sorting schemes.
2206 (wild_sort): Updated. Use compare_section.
2207 (update_wild_statements): New function.
2208 (lang_process): Call update_wild_statements before
2209 map_input_to_output_sections.
2210
2211 * ldlex.l (SORT_BY_NAME): New.
2212 (SORT_BY_ALIGNMENT): New.
2213 (SORT): Return SORT_BY_NAME.
2214
2215 * ldmain.c (sort_section): New. Defined.
2216 (main): Initialize it to none.
2217
2218 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2219 (ld_options): Add an entry for OPTION_SORT_SECTION.
2220 (parse_args): Handle OPTION_SORT_SECTION.
2221
2222 * mri.c (mri_draw_tree): Updated `sorted'.
2223
2224 2004-10-04 Jakub Jelinek <jakub@redhat.com>
2225
2226 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2227 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2228 argument.
2229 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2230 and . as second argument.
2231 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2232 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2233 (fold_binary): Add it here. Insert padding to make relro_end
2234 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2235 exp_dataseg_relro_adjust phase just use previously computed
2236 exp_data_seg.base.
2237 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2238 relro_adjust here. Call lang_size_sections_1 once more if there
2239 was too big padding at DATA_SEGMENT_RELRO_END.
2240 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2241
2242 2004-10-01 Paul Brook <paul@codesourcery.com>
2243
2244 * emulparams/armelf.sh: Add unwinding table sections.
2245
2246 2004-09-30 Filip Navara <navaraf@reactos.com>
2247
2248 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2249 correct base address for position independant executables.
2250 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2251 executables as DLLs.
2252
2253 2004-09-30 Paul Brook <paul@codesourcery.com>
2254
2255 * ld.texinfo: Document --target2=abs.
2256 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2257
2258 2004-09-29 Nick Clifton <nickc@redhat.com>
2259
2260 * scripttempl/xstormy16.sc: Only perform the assignments to the
2261 ROM region when not performing a relocatable link. The ROM region
2262 does not start at address 0, but the sections will.
2263 * Makefile.am: Fix linker script dependency for the generation of
2264 eelf32xstormy16.c.
2265 * Makefile.in: Regenerate.
2266
2267 2004-09-18 Filip Navara <navaraf@reactos.com>
2268
2269 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2270 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2271 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2272 TARGET_PAGE_SIZE.
2273 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2274 the alignment is lower than the target page size.
2275
2276 2004-09-27 Filip Navara <navaraf@reactos.com>
2277
2278 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2279 def_file_parse to handle pe_def_file if NULL and prevent crash with
2280 invalid .def files.
2281
2282 2004-09-27 Alan Modra <amodra@bigpond.net.au>
2283
2284 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2285 --emit-stub-syms automatically when --emit-relocs.
2286
2287 2004-09-24 Paul Brook <paul@codeosurcery.com>
2288
2289 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2290 .fini_array sections.
2291
2292 2004-09-19 Andreas Schwab <schwab@suse.de>
2293
2294 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2295 base so that relro end is suitably aligned.
2296
2297 2004-09-17 Paul Brook <paul@codesourcery.com>
2298
2299 * ld.texinfo: Rename arm-specific section. Document --target*
2300 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2301 * emulparams/armelf_linux.sh: Ditto.
2302 * emulparams/armelf_nbsd.sh: Ditto.
2303 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2304 (target2_type): New variable.
2305 (arm_elf_before_allocation): Don't pass target1_type.
2306 (arm_elf_create_output_section_statements): New function.
2307 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2308 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2309 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2310 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2311 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2312 argument to bfd_elf32_arm_process_before_allocation.
2313
2314 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2315
2316 * ldexp.c (fold_name): Update u.undef.next refs.
2317 * emultempl/pe.em: Likewise.
2318 * emultempl/sunos.em: Likewise.
2319
2320 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2321
2322 * Makefile.am: Run "make dep-am".
2323 * Makefile.in: Regenerate.
2324 * config.in: Regenerate.
2325 * configure: Regenerate.
2326 * aclocal.m4: Regenerate.
2327 * po/ld.pot: Regenerate.
2328
2329 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2330
2331 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2332 (.fini): Likewise.
2333 (.jcr): Likewise.
2334
2335 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2336
2337 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2338 to bfd_elf32_arm_process_before_allocation call.
2339
2340 2004-09-13 Paul Brook <paul@codesourcery.com>
2341
2342 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2343 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2344
2345 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2346
2347 * configure: Regenerated with autconfig 2.13.
2348
2349 2004-09-07 Andreas Schwab <schwab@suse.de>
2350
2351 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2352 alignment before adjusting DATA_SEGMENT_RELRO_END.
2353
2354 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2355
2356 * emulparams/armsymbian.sh: Use armbpabi script.
2357 * scripttempl/armbpabi.sc: New script.
2358
2359 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2360
2361 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2362 (earmsymbian.c): New target.
2363 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2364 * Makefile.in: Regenerated.
2365 * aclocal.m4: Likewise.
2366 * configure: Likewise.
2367 * emulparams/armsymbian.sh: New file.
2368
2369 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2370
2371 * scripttempl/elf32crx.sc: Edit file with comments.
2372 (.init): Add new section.
2373 (.fini): Likewise.
2374 (.ctor): Control the linkage order.
2375 (.dtor): Likewise.
2376
2377 2004-08-27 Nick Clifton <nickc@redhat.com>
2378
2379 * emultempl/pe.em (after_open): Do not assume that either bfd is
2380 an archive.
2381
2382 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2383
2384 * ldlang.c (lang_init): Don't compare with TRUE.
2385
2386 2004-08-25 Dmitry Diky <diwil@spec.ru>
2387
2388 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2389 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2390
2391 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2392
2393 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2394
2395 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2396
2397 * configure.tgt (arm*-*-symbianelf*): New target.
2398 (arm*-*-eabi*): Likewise.
2399
2400 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2401
2402 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2403 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2404 (OPTION_NON_OVERLAPPING_OPD): Define.
2405 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2406 --non-overlapping-opd option.
2407
2408 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2409
2410 PR 338
2411 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2412 was already on the undefs list.
2413
2414 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2415
2416 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2417 prefix the symbol field too.
2418
2419 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2420
2421 * ldmain.c (link_callbacks): Remove "error_handler".
2422 * ldmisc.c: Include elf-bfd.h.
2423 (vfinfo): Sort comment. Handle %A. Use %A instead of
2424 bfd_get_section_indent.
2425 (error_handler): Delete.
2426 * ldmisc.h (error_handler): Delete declaration.
2427
2428 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2429
2430 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2431 ppc64_elf_restore_symbols.
2432
2433 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2434
2435 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2436 .toc is too large on relocatable linking.
2437
2438 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2439
2440 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2441 (LDEMUL_AFTER_OPEN): Don't define.
2442
2443 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2444
2445 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2446
2447 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2448
2449 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2450 on power of 2.
2451
2452 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2453
2454 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2455
2456 2004-07-26 Dmitry Diky <diwil@spec.ru>
2457
2458 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2459 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2460 msp430xG439.
2461 * configure.tgt: Likewise.
2462 * emulparams/msp430all.sh: Likewise.
2463 * Makefile.in: Regenerate.
2464
2465 2004-07-23 Nick Clifton <nickc@redhat.com>
2466
2467 * emultempl/elf32.em (_place_orphan): Use an already existing
2468 section name if that section does not have any flags set.
2469
2470 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2471
2472 * ldlang.c (already_linked_hash_entry): Removed.
2473 (already_linked): Likewise.
2474 (already_linked_table): Likewise.
2475 (section_already_linked): Call bfd_section_already_linked.
2476 (lang_process): Replace already_linked_table_init with
2477 bfd_section_already_linked_table_init and check return. Replace
2478 already_linked_table_free with bfd_section_already_linked_table_free.
2479
2480 2004-07-21 Nick Clifton <nickc@redhat.com>
2481
2482 * ldlang.c (init_os): Make sure that the newly allocated userdata
2483 structure is zeroed out.
2484
2485 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2486
2487 * NEWS: Mention the new --add-needed/--no-add-needed and
2488 --as-needed/--no-as-needed options.
2489
2490 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2491
2492 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2493 check the add_needed field.
2494 (dt_needed): New struct.
2495 (gld${EMULATION_NAME}_try_needed): Change the first argument
2496 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2497 bit in the file where the DT_NEEDED entry comes from.
2498 (gld${EMULATION_NAME}_search_needed): Change the second
2499 argument to a pointer to struct dt_needed.
2500 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2501 (gld${EMULATION_NAME}_after_open): Likewise.
2502
2503 * ld.texinfo: Add --add-needed document.
2504 * ldlang.c (new_afile): Set p->add_needed.
2505 * ldlang.h (lang_input_statement_type): Add add_needed field.
2506 * ldmain.h (add_needed): Declare.
2507 * ldmain.c (add_needed): New global var.
2508 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2509 OPTION_NO_ADD_NEEDED.
2510 (ld_options): Likewise.
2511 (parse_args): Handle them.
2512
2513 2004-07-13 Christof Petig <christof@petig-baender.de>
2514
2515 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2516 for endian-ness of extracted addend.
2517
2518 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2519
2520 * pe-dll.c (auto_export): Filter on just the import prefix,
2521 "_imp_", not "_imp__".
2522
2523 2004-07-09 Nick Clifton <nickc@redhat.com>
2524
2525 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2526
2527 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2528
2529 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2530 (eelf32crx.c): New target.
2531 * Makefile.in: Regenerate.
2532 * configure.tgt: Handle crx-*-elf*.
2533 * emulparams/elf32crx.sh: New file.
2534 * emultempl/crxelf.em: New file.
2535 * scripttempl/elf32crx.sc: New file.
2536 * NEWS: Mention new target.
2537
2538 2004-07-06 Nick Clifton <nickc@redhat.com>
2539
2540 * Makefile.am: Add eshlsymbian.c.
2541 * Makefile.in: Regenerate.
2542 * configure.tgt: Add sh*-symbian-elf target.
2543 * emulparams/shlsymbian.sh: New file. Configure the
2544 sh-symbian-elf linker scripts.
2545 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2546 template for the sh-symbian-elf target.
2547
2548 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2549
2550 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2551 * emulparams/hppalinux.sh: Likewise.
2552 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2553 data segment and PLT_BEFORE_GOT is defined.
2554
2555 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2556
2557 * ld.texinfo (WIN32): Document PE weak symbols.
2558
2559 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2560
2561 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2562
2563 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2564
2565 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2566 the section.
2567
2568 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2569
2570 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2571 size in rawsize.
2572
2573 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2574
2575 * ldlang.c (print_output_section_statement): Don't print size before
2576 relaxation.
2577 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2578
2579 * ldexp.c (fold_name): .. See below.
2580 * ldlang.c (section_already_linked, print_output_section_statement,
2581 print_input_section, insert_pad, size_input_section,
2582 lang_check_section_addresses, lang_size_sections_1,
2583 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2584 lang_one_common, lang_reset_memory_regions, lang_process,
2585 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2586 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2587 * pe-dll.c (process_def_file, generate_reloc): ..
2588 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2589 gld${EMULATION_NAME}_before_allocation): ..
2590 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2591 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2592 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2593 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2594 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2595 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2596 "size" instead of "_raw_size" and "_cooked_size". Expand
2597 bfd_section_size macro invocations.
2598
2599 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2600
2601 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2602 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2603 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2604 ___crt_xt_end__.
2605 (.tls): Define ___tls_start__ and ___tls_end__.
2606
2607 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2608
2609 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2610
2611 2004-06-18 Adam Nemet <anemet@lnxw.com>
2612
2613 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2614 * configure: Regenerate.
2615
2616 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2617
2618 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2619 .gcc_except_table output sections lost accidentally with
2620 -z relro patch.
2621
2622 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2623
2624 * ldwrite.c (build_link_order): Use bfd_get_section_size
2625 instead of bfd_get_section_size_before_reloc or _raw_size.
2626 * pe-dll.c (process_def_file): Likewise.
2627
2628 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2629
2630 From Richard Wirth <r.wirth@wirthware.de>
2631 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2632
2633 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2634
2635 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2636 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2637
2638 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2639
2640 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2641 throughout file.
2642 * lexsup.c: Formatting. Wrap long lines.
2643 * ldwrite.c: Update copyright date.
2644
2645 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2646 (output_section_callback): Nor SEC_KEEP here.
2647 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2648 (lang_gc_wild): Delete. Fold into..
2649 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2650 collecting.
2651 (lang_process): Always call lang_gc_sections.
2652 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2653 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2654 SEC_EXCLUDE code.
2655
2656 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2657
2658 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2659 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2660 * ldlang.c (lang_add_section): Likewise.
2661
2662 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2663
2664 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2665 sections when doing a final link. Clear SEC_EXCLUDE when doing
2666 a relocable link, except for SEC_DEBUGGING sections.
2667 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2668 same condition here to drop SEC_EXCLUDE orphan sections.
2669
2670 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2671
2672 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2673 only when not a relocatable link.
2674 (print_input_section): Handle SEC_EXCLUDE sections.
2675 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2676 (lang_do_assignments_1): Likewise.
2677 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2678 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2679 * emultempl/hppaelf.em (build_section_lists): Likewise.
2680 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2681 (build_section_lists): Likewise.
2682
2683 2004-05-23 Andreas Schwab <schwab@suse.de>
2684
2685 * ld.texinfo (Options): Fix typo in last change.
2686
2687 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2688
2689 * ld.h (ld_config_type): Add new field: hash_table_size.
2690 * ldmain.c: Initialise the new field to zero. If it is non-zero
2691 after parsing the linker's command line call
2692 bfd_hash_set_default_size.
2693 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2694 (ld_options): Add hash-size.
2695 (parse_args): Parse --hash-size option. Allow
2696 --reduce-memory-overheads to set the default hash table size as
2697 well.
2698 * ld.texinfo: Document the new switch. Also mention that
2699 --reduce-memory-overheads can affect the hash table size.
2700 * NEWS: Mention the new feature.
2701
2702 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2703
2704 * NEWS: Mention new linker map file generation and the
2705 --reduce-memory-overheads option.
2706 * ld.texinfo: Document --reduce-memory-overheads option.
2707 * ld.h (map_symbol_def): New struct.
2708 (struct user_section_struct, section_userdata_type): Rename to:
2709 (struct lean_user_section_struct, lean_section_userdata_type).
2710 (struct fat_user_section_struct, fat_section_userdata_type): New.
2711 (SECTION_USERDATA_SIZE): Define.
2712 (args_type): New member reduce_memory_overheads.
2713 * ldlang.c (map_obstack): New static variable.
2714 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2715 (lang_map): Unless command_line.reduce_memory_overheads is set,
2716 initialize lists of defined symbols for each section.
2717 (print_input_section): Unless command_line.reduce_memory_overheads
2718 is set, use print_all_symbols.
2719 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2720 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2721 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2722 (ld_options): Add entry for --reduce-memory-overheads.
2723 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2724
2725 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2726
2727 * ldgram.y (sect_constraint): New.
2728 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2729 (section): Add sect_constraint. Pass additional argument
2730 to lang_enter_output_section_statement.
2731 * mri.c (mri_draw_tree): Pass additional argument to
2732 lang_enter_output_section_statement.
2733 * emultempl/pe.em (place_orphan): Likewise.
2734 (output_prev_sec_find): Disregard output section statements with
2735 constraint == -1.
2736 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2737 (mmo_place_orphan): Pass additional argument to
2738 lang_enter_output_section_statement.
2739 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2740 statements with constraint == -1.
2741 (place_orphan): Pass additional argument to
2742 lang_enter_output_section_statement.
2743 * ldlang.c (lang_enter_overlay_section): Likewise.
2744 (lang_output_section_find_1): New.
2745 (lang_output_section_find): Use it.
2746 (lang_output_section_statement_lookup_1): New.
2747 (lang_output_section_statement_lookup): Use it.
2748 (check_section_callback, check_input_sections): New.
2749 (map_input_to_output_sections): Check if all input sections
2750 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2751 (strip_excluded_output_sections): Disregard output section statements
2752 with constraint == -1.
2753 (lang_record_phdrs): Likewise.
2754 (lang_enter_output_section_statement): Add constraint argument.
2755 Use lang_output_section_statement_lookup_1.
2756 * ldlang.h (lang_output_section_statement_type): Add constraint
2757 and all_input_readonly fields.
2758 (lang_enter_output_section_statement): Adjust prototype.
2759 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2760 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2761 segment if all input sections are readonly.
2762
2763 2004-05-19 Adam Nemet <anemet@lnxw.com>
2764
2765 * scripttempl/i386lynx.sc: Remove file.
2766
2767 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2768
2769 * ld.texinfo (Output Section Address): Correct subsection name.
2770
2771 2004-05-17 Adam Nemet <anemet@lnxw.com>
2772
2773 * configure.tgt (powerpc-*-lynxos* case): New case.
2774 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2775 * emulparams/ppclynx.sh: New file.
2776 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2777 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2778 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2779 (eppclynx.c): New rule.
2780 * Makefile.in: Regenerate.
2781
2782 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2783
2784 * configure.tgt (or32-*-rtems*): Switch to elf and
2785 support versioned targets.
2786
2787 2004-05-13 Nick Clifton <nickc@redhat.com>
2788
2789 * po/fr.po: Updated French translation.
2790
2791 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2792
2793 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2794 for binaries, -shared and -pie.
2795 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2796 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2797 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2798 (OTHER_RELRO_SECTIONS): ... this.
2799 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2800 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2801 -z relro and -z norelro.
2802 (gld${EMULATION_NAME}_list_options): Add it to usage.
2803 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2804 -z relro scripts when appropriate.
2805 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2806 Create separate .got.plt section if SEPARATE_GOTPLT.
2807 Move sections which are only written during relocation handling
2808 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2809 before .data. Add DATA_SEGMENT_RELRO_END directive.
2810 Include OTHER_RELRO_SECTIONS.
2811 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2812 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2813 (fold_unary): Likewise.
2814 (fold_binary): Handle -z relro.
2815 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2816 exp_dataseg_relro_adjust phases. Add relro_end field.
2817 * ldmain.c (main): Initialize link_info.relro to FALSE.
2818 * ldlang.c (lang_size_sections): Handle -z relro.
2819
2820 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2821
2822 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2823
2824 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2825
2826 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2827 before printing it with %W.
2828
2829 2004-05-07 Brian Ford <ford@vss.fsi.com>
2830 DJ Delorie <dj@redhat.com>
2831
2832 * emultempl/pe.em (real_flags): New static.
2833 (OPTION_LARGE_ADDRESS_AWARE): New define.
2834 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2835 (gld_${EMULATION_NAME}_list_options): Likewise.
2836 (gld${EMULATION_NAME}_handle_option): Likewise.
2837 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2838 * ld.texinfo: Document it.
2839 * NEWS: Mention it.
2840
2841 2004-05-07 Brian Ford <ford@vss.fsi.com>
2842
2843 * NEWS: Mention DWARF 2 support for i386pe.
2844
2845 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2846
2847 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2848 elf32-frvfdpic.
2849
2850 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2851
2852 * ldlang.c (unique_section_p): Pass section parm, return true on
2853 group sections.
2854 (output_section_callback): Adjust.
2855 * ldlang.h (unique_section_p): Update prototype.
2856 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2857
2858 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2859
2860 * ld.texinfo (--gc-sections): Remove restriction for
2861 dynamic linking.
2862
2863 2004-04-29 Brian Ford <ford@vss.fsi.com>
2864
2865 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2866 for DWARF 2/3. Update stab section's syntax.
2867
2868 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2869
2870 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2871 (fill_edata): Correct pointer arithmetic.
2872
2873 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2874
2875 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2876 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2877 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2878 (EXTRA_EM_FILE): Use mipsecoff.em
2879 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2880 (EXTRA_EM_FILE): Use mipsecoff.em
2881 * emultempl/mipsecoff.em: Restructure to be included as an
2882 extra emulation file.
2883 (check_sections, gld${EMULATION_NAME}_after_open)
2884 (gld${EMULATION_NAME}_after_allocation)
2885 (gld${EMULATION_NAME}_get_script)
2886 (ld_${EMULATION_NAME}_emulation): Remove
2887 (gld${EMULATION_NAME}_before_parse): Rename to...
2888 (mipsecoff_before_parse): This.
2889 (LDEMUL_BEFORE_PARSE): Define.
2890 * emultempl/mipself.em: Remove file.
2891 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2892 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2893 these symbols.
2894 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2895 * Makefile.in: Regenerate.
2896
2897 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2898
2899 * ld.texinfo (synthesizing on H8/300): Information about linker
2900 relaxation support for bit manipulation instructions and system
2901 control instructions is added.
2902
2903 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2904
2905 * NEWS: Mention change in DEFINED semantics.
2906
2907 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2908
2909 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2910 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2911 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2912
2913 2004-04-21 Ben Elliston <bje@au.ibm.com>
2914
2915 * ld.texinfo (Simple Example): Add missing punctuation.
2916
2917 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2918
2919 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2920
2921 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2922
2923 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2924 specially.
2925
2926 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2927
2928 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2929 with default priority. Likewise for dtors.
2930
2931 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2932
2933 * configure.host: Remove mips*-dec-bsd* target.
2934 * configure.tgt: Likewise.
2935
2936 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2937
2938 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2939 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2940 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2941 * emultempl/irix.em: New file.
2942 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2943 dependencies.
2944 * Makefile.in: Regenerate.
2945
2946 2004-04-01 Paul Brook <paul@codesourcery.com>
2947
2948 * emultempl/armelf.em (byteswap_code): Add.
2949 (arm_elf_before_allocation): Pass extra parameter.
2950 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2951 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2952 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2953 * emultempl/armelf_oabi.em: Pass extra parameter.
2954 * ld.texinfo: Document --be8.
2955
2956 2004-03-30 Stan Shebs <shebs@apple.com>
2957
2958 Remove long-obsolete MPW support.
2959 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2960 * Makefile.am (mpw): Remove file-presynthesizing actions.
2961 * Makefile.in: Likewise.
2962 * ldfile.c (slash): Remove MPW case.
2963 * ldlex.l [MPW]: Remove unused definition.
2964
2965 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2966
2967 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2968 (eelf32cr16c.c): New target.
2969 * Makefile.in: Regenerate.
2970 * configure.tgt: Handle cr16c-*-elf*.
2971 * emulparams/elf32cr16c.sh: New file.
2972 * scripttempl/elfcr16c.sc: Likewise
2973 * NEWS: Mention support for new target.
2974
2975 2004-03-30 Nick Clifton <nickc@redhat.com>
2976
2977 * po/sv.po: Updated Swedish translation.
2978
2979 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2980
2981 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2982 * emultempl/hppaelf.em: Likewise.
2983 * emultempl/ppc64elf.em: Likewise.
2984 * emultempl/sh64elf.em: Likewise.
2985
2986 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2987
2988 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2989 size_dynamic_sections call.
2990
2991 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2992
2993 PR 51.
2994 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2995 link_info.wrap_char.
2996
2997 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2998
2999 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
3000 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
3001
3002 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
3003
3004 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
3005
3006 2004-03-19 Alan Modra <amodra@bigpond.net.au>
3007
3008 * config.in: Regenerate.
3009 * po/ld.pot: Regenerate.
3010
3011 2004-03-18 Alan Modra <amodra@bigpond.net.au>
3012
3013 * ld.texinfo: Add --as-needed doco.
3014 * ldmain.c (as_needed): New global var.
3015 * ldmain.h (as_needed): Declare.
3016 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
3017 OPTION_NO_AS_NEEDED.
3018 (ld_options): Likewise.
3019 (parse_args): Handle them.
3020 * ldlang.h (lang_input_statement_type): Add as_needed field.
3021 * ldlang.c (new_afile): Set p->as_needed.
3022 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
3023 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
3024 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
3025
3026 * ldlang.c (open_input_bfds): Remove useless cast.
3027 (lang_do_assignments_1): Likewise.
3028 (lang_for_each_input_section): Delete.
3029
3030 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3031
3032 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
3033
3034 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
3035
3036 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
3037 private when building implib.
3038
3039 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
3040
3041 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
3042 SEC_THREAD_LOCAL.
3043 (IGNORE_SECTION): Ignore .tbss sections too.
3044 (lang_size_sections_1): .tbss sections do not advance dot.
3045
3046 2004-03-01 Andreas Schwab <schwab@suse.de>
3047
3048 * ld.texinfo (Options): Fix example for --wrap.
3049
3050 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
3051
3052 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
3053 not NULL.
3054
3055 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
3056
3057 * ldlang.c (lang_check): Use %P, not %E, in error message.
3058
3059 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
3060
3061 * ldlang.h (struct lang_output_section_state): Change processed
3062 field's type.
3063 * ldexp.c (check, invalid): Remove.
3064 (fold_name): Move valid_p assignments. Create undefined symbol
3065 when needed. Directly exampine section's processd flag.
3066 * ldlang.c (lang_output_section_statement_lookup): Adjust
3067 processed field init.
3068 (lang_size_sections_1): Allow LOADADDR when determining section's
3069 VMA. Adjust error message. Fold data statement's expr.
3070 (lang_size_sections): Correctly increment lang_statement_iteration.
3071
3072 2004-02-23 Alan Modra <amodra@bigpond.net.au>
3073
3074 * ldexp.c (fold_tree): Follow indirect symbols.
3075
3076 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
3077
3078 * ldgram.y (exp): Add two operand ALIGN.
3079 * ldexp.c (fold_binary): Add ALIGN_K case.
3080 * ld.texinfo (ALIGN): Document two operand version.
3081
3082 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
3083
3084 * ldlang.c (map_input_to_output_sections): Initialize sections
3085 mentioned in a data statement expression.
3086 (lang_do_assignments_1): Add data statement's expression's
3087 section's vma.
3088
3089 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
3090
3091 * ldgram.y (statement_anywhere): Add assert rule.
3092 * ldlang.c (exp_init_os): Add assert case.
3093
3094 2004-02-14 Andrew Cagney <cagney@redhat.com>
3095
3096 * ldmain.c (remove_output): Call bfd_cache_close.
3097
3098 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
3099
3100 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
3101 .MIPS.content* and .MIPS.events* sections.
3102
3103 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
3104
3105 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
3106 .note.gnu.arm.ident to after allocated sections. Mark its
3107 address as 0.
3108
3109 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
3110
3111 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
3112 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
3113 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
3114 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
3115 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
3116
3117 2004-02-05 Nick Clifton <nickc@redhat.com>
3118
3119 * emultempl/pe.em (_after_open): Fix typo in previous delta.
3120
3121 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
3122
3123 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
3124
3125 2004-01-28 Alan Modra <amodra@bigpond.net.au>
3126
3127 * genscripts.sh: Fix typo.
3128
3129 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
3130
3131 2004-01-24 Jakub Jelinek <jakub@redhat.com>
3132
3133 * emulparams/elf64_ia64.sh: Put .rela.opd into
3134 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
3135
3136 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
3137
3138 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
3139 * ld.texinfo (--omagic): Note that writable text section
3140 does not conform to published PE-COFF specs.
3141 (--enable-auto-import): Likewise.
3142
3143 2004-01-15 Alan Modra <amodra@bigpond.net.au>
3144
3145 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
3146
3147 2004-01-13 Nick Clifton <nickc@redhat.com>
3148
3149 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
3150 which if true will prevent the LMA region being used as a
3151 replacement for a default VMA region.
3152 (lang_leave_output_section_statement): Pass extra parameter.
3153 (lang_leave_overlay): Likewise.
3154 * ld.texinfo (Output Section LMA): Document that the LMA
3155 region can be set to the VMA region if no VMA has been set.
3156 * ldlang.h (struct lang_output_section_phdr_list): Create a
3157 typedef for this type. Minor formatting fixes.
3158
3159 2004-01-13 Nick Clifton <nickc@redhat.com>
3160
3161 * ldlang.c (lang_size_sections_1): If dot is advanced, then
3162 assume that the section should be allocated.
3163
3164 2004-01-13 Alan Modra <amodra@bigpond.net.au>
3165
3166 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
3167 sections. Do ignore SEC_NEVER_LOAD sections.
3168 (lang_size_sections_1): Remove test made redundant with the above.
3169
3170 2004-01-09 Alan Modra <amodra@bigpond.net.au>
3171
3172 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
3173 program_header_size.
3174
3175 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
3176
3177 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
3178 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
3179 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
3180 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3181 (MAXPAGESIZE): Set to 64Kb.
3182 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3183 __ROFIXUP_END__. Don't map .rofixup.got any more.
3184 * emulparams/elf32frv.sh (NOP): Set.
3185 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3186 * configure.tgt: Add frv-*-*linux*.
3187 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3188 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3189 (eelf32frvfd.c): New.
3190 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3191 * emulparams/elf32frv.sh: Reverted previous two patches.
3192 * emulparams/elf32frvfd.sh: New.
3193 * Makefile.in: Rebuilt.
3194 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3195 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3196 .rofixup.got to .rofixup.
3197 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3198 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3199 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3200
3201 2004-01-05 Jakub Jelinek <jakub@redhat.com>
3202
3203 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3204 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3205
3206 2004-01-03 Alan Modra <amodra@bigpond.net.au>
3207
3208 * ldexp.c (align_n): Make static.
3209 * ldexp.h (align_n): Delete declaration.
3210 * ldlang.h (lang_enter_output_section_statement): Remove
3211 block_value param.
3212 * ldlang.c (lang_enter_output_section_statement): Likewise.
3213 (TO_ADDR, TO_SIZE): Define.
3214 (opb_shift): New var.
3215 (init_opb): New function.
3216 (print_input_section): Call init_opb and use TO_ADDR.
3217 (print_data_statement, print_reloc_statement): Likewise.
3218 (print_padding_statement): Likewise.
3219 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
3220 (lang_check_section_addresses): Likewise.
3221 (lang_size_sections_1): Likewise.
3222 (lang_do_assignments_1): Likewise.
3223 (lang_set_startof): Likewise.
3224 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
3225 (lang_process): Call init_opb.
3226 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
3227 (lang_enter_overlay_section): Adjust
3228 lang_enter_output_section_statement call.
3229 * ldgram.y: Likewise.
3230 * mri.c (mri_draw_tree): Likewise.
3231 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3232 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3233 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3234
3235 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3236 * ldfile.h (ldfile_set_output_arch): Ditto.
3237 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3238 ldfile_set_output_arch.
3239 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3240 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3241 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3242 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3243 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3244 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3245 * ldgram.y: Adjust ldfile_set_output_arch call.
3246 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3247 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3248 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3249 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3250 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3251 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3252 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3253
3254 2004-01-02 Bernardo Innocenti <bernie@develer.com>
3255
3256 * configure.tgt: Add m68k-uClinux target.
3257
3258 For older changes see ChangeLog-0203
3259 \f
3260 Local Variables:
3261 mode: change-log
3262 left-margin: 8
3263 fill-column: 74
3264 version-control: never
3265 End:
This page took 0.097284 seconds and 4 git commands to generate.