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