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