gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / ld / ChangeLog-2004
CommitLineData
e88d958a
AM
12004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
2
3 * emultempl/pe.em (set_pe_subsystem): Change second arg to
4 lang_add_entry to FALSE.
5
62004-12-23 Nick Clifton <nickc@redhat.com>
7
8 PR 600
9 * emulparams/shelf.sh (.stack): Increase stack start address to
10 0x300000.
11
122004-12-20 Nick Clifton <nickc@redhat.com>
13
14 * ldmain.c (main): Issue an error message if -static and -shared
15 are used together.
16
172004-12-17 Jakub Jelinek <jakub@redhat.com>
18
19 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
20 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
21 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
22 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
23 PT_GNU_RELRO segment end.
24
252004-12-14 P.J. Darcy <darcypj@us.ibm.com>
26
27 * configure.tgt: Add s390x-ibm-tpf support.
28
292004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
30
31 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
32 BFD.
33
342004-12-07 Ben Elliston <bje@gnu.org>
35
36 * ldemul.h: Forward declare struct option.
37
382004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
39
40 * scripttempl/pe.sc (.data): Add .jcr subsection.
41
422004-11-30 Paul Brook <paul@codesourcery.com>
43
44 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
45
462004-11-30 Tero Niemela <tero_niemela@yahoo.com>
47
48 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
49 * Makefile.in: Regenerate.
50
512004-11-26 Melissa Mears <asterisk@graces.dricas.com>
52
53 * emultempl/pe.em: Add --subsystem:xbox as well as
54 --subsystem:%d.
55 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
56 and numeric subsystems.
57
582004-11-24 Alan Modra <amodra@bigpond.net.au>
59
60 * ldexp.c (fold_name): Correct PR 338 fix.
61
622004-11-19 Mark Mitchell <mark@codesourcery.com>
63
64 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
65 (earmelf_linux_eabi.c): New target.
66 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
67 * emulparams/armelf_linux_eabi.sh: New file.
68 * Makefile.in: Regenerated.
69
702004-11-19 Nick Clifton <nickc@redhat.com>
71
72 PR 518
73 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
74 LENGTH fields in the MEMORY command, to explicitly state that
75 symbols cannot be used in their expressions.
76
772004-11-19 Jon Beniston <jon@beniston.com>
78
79 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
80 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
81 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
82 which return the length and origin of a memory.
83 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
84 * NEWS: Mention support for ORIGIN and LENGTH operators.
85
862004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
87
88 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
89 a dynamic object for stubs.
90
912004-11-04 Paul Brook <paul@codesourcery.com>
92
93 * ld.texinfo: Document --default-imported-symver.
94 * ldmain.c (main): Set link_info.default_imported_symver.
95 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
96 (ld_options): Add --default-imported-symver.
97 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
98
992004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
100 Vineet Sharma <vineets@noida.hcltech.com>
101
102 * Makefile.am: Add entries for new maxq-coff target.
103 * Makefile.in: Regenerate.
104 * configure.tgt: Add support for maxq.
105 * emulparams/maxqcoff.sh: New File.
106 * scripttempl/maxqcoff.sc: New linker script for target maxq.
107 * NEWS: Mention the new target.
108
1092004-11-04 Daniel Jacobowitz <dan@debian.org>
110
111 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
112 (earmelf_oabi.c): Remove rule.
113 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
114 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
115 * Makefile.in: Regenerated.
116
1172004-11-04 Hans-Peter Nilsson <hp@axis.com>
118
119 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
120 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
121 (FINI_START): Ditto.
122 (INIT_END): Remove emitted "jump [sp+]".
123 (FINI_END): Ditto.
124
1252004-11-04 Alan Modra <amodra@bigpond.net.au>
126
127 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
128 (no_opd_opt, no_toc_opt): New static vars.
129 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
130 ppc64_elf_edit_toc.
131 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
132 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
133 (PARSE_AND_LIST_OPTIONS): Describe new options.
134 (PARSE_AND_LIST_ARGS_CASES): Handle them.
135
1362004-10-27 Nick Clifton <nickc@redhat.com>
137
138 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
139 parameter to invocation of lang_section_start.
140 * emultempl/aix.em (_handle_option): Likewise.
141
142 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
143 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
144 * Makefile.in: Regenerate.
145
1462004-10-26 Mark Mitchell <mark@codesourcery.com>
147
148 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
149 __exidx_{start,end} when not relocating.
150
1512004-10-25 Mark Mitchell <mark@codesourcery.com>
152
153 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
154 * ldexp.h (segment_type): New type.
155 (segments): New variable.
156 * ldexp.c (segments): New variable.
157 (exp_print_token): Handle SEGMENT_START.
158 (fold_binary): Likewise.
159 * ldgram.y (SEGMENT_START): Declare it as a token.
160 (exp): Handle SEGMENT_START.
161 * ldlang.h (lang_address_statement_type): Add segment field.
162 (lang_section_start): Change prototype.
163 * ldlang.c (map_input_to_output_sections): Do not process section
164 assignments if a corresponding SEGMENT_START has already been
165 seen.
166 (lang_section_start): Add segment parameter.
167 * ldlex.l (SEGMENT_START): Add it.
b302c308 168 * lexsup.c (set_segment_start): New function.
e88d958a
AM
169 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
170 * ld.texinfo (SEGMENT_START): Document it.
171 * emulparams/armsymbian.sh (EMBEDDED): Set it.
172 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
173 base addresses. Do not map relocations.
174 * NEWS: Mention SEGMENT_START.
175
1762004-10-26 Paul Brook <paul@codesourcery.com>
177
178 * ld.texinfo: Document --default-symver.
179 * ldmain.c (main): Set link_info.create_default_symver.
180 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
181 (ld_options): Add default-symver.
182 (parse_args): Handle OPTION_DEFAULT_SYMVER.
183
1842004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
185
186 * pe-dll.c (process_def_file): Don't export all symbols by default if
187 building a position-independent executable.
188
1892004-10-21 H.J. Lu <hongjiu.lu@intel.com>
190
191 PR 463
192 * ldmain.c (reloc_overflow): Accept a pointer to struct
193 bfd_link_hash_entry. Report symbol location for relocation
194 overflow.
195
1962004-10-21 H.J. Lu <hongjiu.lu@intel.com>
197
198 * genscripts.sh (libpath.exp): Really generate for first
199 emulation only.
200
2012004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
202
203 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
204 comparison and replacement of filenames.
205
2062004-10-19 H.J. Lu <hongjiu.lu@intel.com>
207
208 PR 459
209 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
210 option on linker script as the one for linker script.
211
2122004-10-16 Daniel Jacobowitz <dan@debian.org>
213
214 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
215 (check_excluded_libs): New.
216 (load_symbols): Call check_excluded_libs.
217 * ldlang.h (add_excluded_libs): New prototype.
218 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
219 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
220 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
221 * ld.texinfo (Command Line Variables): Document --exclude-libs.
222 (Options Specific to i386 PE Targets): Remove --exclude-libs.
223
2242004-10-15 Alan Modra <amodra@bigpond.net.au>
225
226 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
227 failing link script assert.
228
229 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
230
2312004-10-14 H.J. Lu <hongjiu.lu@intel.com>
232
233 PR 445
234 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
235 (SMALL_DATA_DTOR): Set.
236 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
237 (SMALL_DATA_DTOR): Unset.
238 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
239 after .data. If SMALL_DATA_DTOR is set, move .dtors after
240 .data.
241
2422004-10-14 Alan Modra <amodra@bigpond.net.au>
243
244 PR 63
245 * ldlang.h (lang_output_section_statement_type): Make "next" a
246 struct lang_output_section_statement_struct *.
247 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
248 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
249 * ldlang.c (lang_output_section_find_1): Adjust for changed
250 output_section_statement "next".
251 (strip_excluded_output_sections): Likewise.
252 (lang_record_phdrs): Likewise.
253 (lang_output_section_find_by_flags): New function.
254 (output_prev_sec_find): Move from pe.em. Adjust iterator.
255 (lang_insert_orphan): New function. Tail end of elf32.em's
256 place_orphan merged with that from pe.em. Allow bfd_section to
257 be placed first. New heuristic for placing new output section
258 statement in existing script, and accompanying split of __start
259 symbol alignment into a separate assignment to dot.
260 (lang_add_section): Consistently use output->bfd_section rather than
261 an alias, section->output_section.
262 (map_input_to_output_sections): Rename overly long arg. Move
263 initialization of data_statement output section to here..
264 (lang_check_section_addresses): ..from here.
265 (print_assignment): Correct printing of etree_assert.
266 (print_all_symbols): Don't bomb if userdata is NULL.
267 (IGNORE_SECTION): Rearrange.
268 * emultempl/elf32.em (output_rel_find): Adjust interator.
269 (output_prev_sec_find): Delete.
270 (struct orphan_save): Delete.
271 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
272 flags without creating a duplicate output section statement.
273 Revise code holding history of various orphan section placements.
274 Allow orphan sections to place before script specified output
275 sections. Call lang_output_section_find_by_flags when placement
276 by name fails. Use lang_insert_orphan.
277 * emultempl/mmo.em (output_prev_sec_find): Delete.
278 (struct orphan_save): Delete.
279 (mmo_place_orphan): Revise code holding history of orphan placement.
280 Allow orphans to place before existing output sections. Use
281 lang_insert_orphan.
282 * emultempl/pe.em (output_prev_sec_find): Delete.
283 (struct orphan_save): Delete.
284 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
285 lang_insert_orphan.
286
2872004-10-13 Mark Mitchell <mark@codesourcery.com>
288
289 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
290 loadable segment.
291
2922004-10-13 Alan Modra <amodra@bigpond.net.au>
293
294 PR 44
295 * ldcref.c (check_section_sym_xref): Delete.
296 (check_local_sym_xref): New function.
297 (check_nocrossrefs): Adjust call.
298 * emultempl/pe.em (struct orphan_save): Add os_tail.
299 (place_orphan): Backport assorted fixes from elf32.em.
300
3012004-10-12 Bob Wilson <bob.wilson@acm.org>
302
303 * emultempl/xtensaelf.em: Use ISO C90 formatting.
304
3052004-10-11 Jakub Jelinek <jakub@redhat.com>
306
307 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
308 getline for portability.
309
310 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
311 (gld${EMULATION_NAME}_parse_ld_so_conf,
312 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
313 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
314
3152004-10-11 Alan Modra <amodra@bigpond.net.au>
316
317 PR 423
318 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
319 rejected when linking statically.
320
3212004-10-08 Daniel Jacobowitz <dan@debian.org>
322
323 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
324
3252004-10-07 Bob Wilson <bob.wilson@acm.org>
326
327 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
328 assembler-generated longcall sequences. Describe new --size-opt
329 option.
330 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
331 * emultempl/xtensaelf.em (remove_section,
332 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
333 elf_xtensa_after_open): New.
334 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
335 OPTION_NO_LITERAL_MOVEMENT): Define.
336 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
337 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
338 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
339 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
340 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
341 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
342 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
343 * Makefile.am (eelf32xtensa.c): Update dependencies.
344 * Makefile.in: Regenerate.
345
3462004-10-07 Jeff Baker <jbaker@qnx.com>
347
348 * lexsup.c: Handle --warn-shared-textrel option.
349 (ld_options): Restore alpha sorting of options.
350 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
351 * ld.texinfo: Add documentation for --warn-shared-textrel.
352 * NEWS: Added mention of --warn-shared-textrel option.
353
3542004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
355
356 * emultempl/crxelf.em (disable_relaxation): Add.
357 (crxelf_before_allocation): Enable --relax option by default.
358 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
359 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
360 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
361
3622004-10-04 H.J. Lu <hongjiu.lu@intel.com>
363
364 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
365 --sort-section name|alignment.
366
367 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
368 --sort-section name|alignment.
369
370 * ld.h (sort_type): New enum.
371 (wildcard_spec): Change the type of `sorted' to sort_type.
372
373 * ldgram.y (SORT): Removed.
374 (SORT_BY_NAME): Added.
375 (SORT_BY_ALIGNMENT): Added.
376 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
377 SORT_BY_ALIGNMENT.
378 (input_section_spec_no_keep): Updated `sorted'.
379 (statement): Replace SORT with SORT_BY_NAME.
380
381 * ldlang.c (compare_section): New function to compare 2
382 sections with different sorting schemes.
383 (wild_sort): Updated. Use compare_section.
384 (update_wild_statements): New function.
385 (lang_process): Call update_wild_statements before
386 map_input_to_output_sections.
387
388 * ldlex.l (SORT_BY_NAME): New.
389 (SORT_BY_ALIGNMENT): New.
390 (SORT): Return SORT_BY_NAME.
391
392 * ldmain.c (sort_section): New. Defined.
393 (main): Initialize it to none.
394
395 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
396 (ld_options): Add an entry for OPTION_SORT_SECTION.
397 (parse_args): Handle OPTION_SORT_SECTION.
398
399 * mri.c (mri_draw_tree): Updated `sorted'.
400
4012004-10-04 Jakub Jelinek <jakub@redhat.com>
402
403 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
404 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
405 argument.
406 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
407 and . as second argument.
408 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
409 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
410 (fold_binary): Add it here. Insert padding to make relro_end
411 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
412 exp_dataseg_relro_adjust phase just use previously computed
413 exp_data_seg.base.
414 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
415 relro_adjust here. Call lang_size_sections_1 once more if there
416 was too big padding at DATA_SEGMENT_RELRO_END.
417 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
418
4192004-10-01 Paul Brook <paul@codesourcery.com>
420
421 * emulparams/armelf.sh: Add unwinding table sections.
422
4232004-09-30 Filip Navara <navaraf@reactos.com>
424
425 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
426 correct base address for position independant executables.
427 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
428 executables as DLLs.
429
4302004-09-30 Paul Brook <paul@codesourcery.com>
431
432 * ld.texinfo: Document --target2=abs.
433 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
434
4352004-09-29 Nick Clifton <nickc@redhat.com>
436
437 * scripttempl/xstormy16.sc: Only perform the assignments to the
438 ROM region when not performing a relocatable link. The ROM region
439 does not start at address 0, but the sections will.
440 * Makefile.am: Fix linker script dependency for the generation of
441 eelf32xstormy16.c.
442 * Makefile.in: Regenerate.
443
4442004-09-18 Filip Navara <navaraf@reactos.com>
445
446 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
447 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
448 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
449 TARGET_PAGE_SIZE.
450 * scripttempl/pe.sc: Make the virtual address and file offset synced if
451 the alignment is lower than the target page size.
452
4532004-09-27 Filip Navara <navaraf@reactos.com>
454
455 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
456 def_file_parse to handle pe_def_file if NULL and prevent crash with
457 invalid .def files.
458
4592004-09-27 Alan Modra <amodra@bigpond.net.au>
460
461 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
462 --emit-stub-syms automatically when --emit-relocs.
463
4642004-09-24 Paul Brook <paul@codeosurcery.com>
465
466 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
467 .fini_array sections.
468
4692004-09-19 Andreas Schwab <schwab@suse.de>
470
471 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
472 base so that relro end is suitably aligned.
473
4742004-09-17 Paul Brook <paul@codesourcery.com>
475
476 * ld.texinfo: Rename arm-specific section. Document --target*
477 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
478 * emulparams/armelf_linux.sh: Ditto.
479 * emulparams/armelf_nbsd.sh: Ditto.
480 * emultempl/armelf.em: Set default for TARGET2_TYPE.
481 (target2_type): New variable.
482 (arm_elf_before_allocation): Don't pass target1_type.
483 (arm_elf_create_output_section_statements): New function.
484 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
485 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
486 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
487 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
488 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
489 argument to bfd_elf32_arm_process_before_allocation.
490
4912004-09-17 Alan Modra <amodra@bigpond.net.au>
492
493 * ldexp.c (fold_name): Update u.undef.next refs.
494 * emultempl/pe.em: Likewise.
495 * emultempl/sunos.em: Likewise.
496
4972004-09-17 Alan Modra <amodra@bigpond.net.au>
498
499 * Makefile.am: Run "make dep-am".
500 * Makefile.in: Regenerate.
501 * config.in: Regenerate.
502 * configure: Regenerate.
503 * aclocal.m4: Regenerate.
504 * po/ld.pot: Regenerate.
505
5062004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
507
508 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
509 (.fini): Likewise.
510 (.jcr): Likewise.
511
5122004-09-16 Alan Modra <amodra@bigpond.net.au>
513
514 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
515 to bfd_elf32_arm_process_before_allocation call.
516
5172004-09-13 Paul Brook <paul@codesourcery.com>
518
519 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
520 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
521
5222004-09-07 H.J. Lu <hongjiu.lu@intel.com>
523
524 * configure: Regenerated with autconfig 2.13.
525
5262004-09-07 Andreas Schwab <schwab@suse.de>
527
528 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
529 alignment before adjusting DATA_SEGMENT_RELRO_END.
530
5312004-09-06 Mark Mitchell <mark@codesourcery.com>
532
533 * emulparams/armsymbian.sh: Use armbpabi script.
534 * scripttempl/armbpabi.sc: New script.
535
5362004-09-02 Mark Mitchell <mark@codesourcery.com>
537
538 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
539 (earmsymbian.c): New target.
540 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
541 * Makefile.in: Regenerated.
542 * aclocal.m4: Likewise.
543 * configure: Likewise.
544 * emulparams/armsymbian.sh: New file.
545
5462004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
547
548 * scripttempl/elf32crx.sc: Edit file with comments.
549 (.init): Add new section.
550 (.fini): Likewise.
551 (.ctor): Control the linkage order.
552 (.dtor): Likewise.
553
5542004-08-27 Nick Clifton <nickc@redhat.com>
555
556 * emultempl/pe.em (after_open): Do not assume that either bfd is
557 an archive.
558
5592004-08-26 Alan Modra <amodra@bigpond.net.au>
560
561 * ldlang.c (lang_init): Don't compare with TRUE.
562
5632004-08-25 Dmitry Diky <diwil@spec.ru>
564
565 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
566 * scripttempl/elf32msp430.sc: Add .profiler section definition.
567
5682004-08-24 H.J. Lu <hongjiu.lu@intel.com>
569
570 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
571
5722004-08-19 Mark Mitchell <mark@codesourcery.com>
573
574 * configure.tgt (arm*-*-symbianelf*): New target.
575 (arm*-*-eabi*): Likewise.
576
5772004-08-19 Jakub Jelinek <jakub@redhat.com>
578
579 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
580 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
581 (OPTION_NON_OVERLAPPING_OPD): Define.
582 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
583 --non-overlapping-opd option.
584
5852004-08-18 Alan Modra <amodra@bigpond.net.au>
586
587 PR 338
588 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
589 was already on the undefs list.
590
5912004-08-17 Alan Modra <amodra@bigpond.net.au>
592
593 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
594 prefix the symbol field too.
595
5962004-08-13 Alan Modra <amodra@bigpond.net.au>
597
598 * ldmain.c (link_callbacks): Remove "error_handler".
599 * ldmisc.c: Include elf-bfd.h.
600 (vfinfo): Sort comment. Handle %A. Use %A instead of
601 bfd_get_section_indent.
602 (error_handler): Delete.
603 * ldmisc.h (error_handler): Delete declaration.
604
6052004-08-10 Alan Modra <amodra@bigpond.net.au>
606
607 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
608 ppc64_elf_restore_symbols.
609
6102004-08-09 Alan Modra <amodra@bigpond.net.au>
611
612 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
613 .toc is too large on relocatable linking.
614
6152004-08-09 Alan Modra <amodra@bigpond.net.au>
616
617 * emultempl/ppc64elf.em (ppc_after_open): Delete.
618 (LDEMUL_AFTER_OPEN): Don't define.
619
6202004-08-02 Stephane Carrez <stcarrez@nerim.fr>
621
622 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
623
6242004-08-01 Stephane Carrez <stcarrez@nerim.fr>
625
626 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
627 on power of 2.
628
6292004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
630
631 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
632
6332004-07-26 Dmitry Diky <diwil@spec.ru>
634
635 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
636 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
637 msp430xG439.
638 * configure.tgt: Likewise.
639 * emulparams/msp430all.sh: Likewise.
640 * Makefile.in: Regenerate.
641
6422004-07-23 Nick Clifton <nickc@redhat.com>
643
644 * emultempl/elf32.em (_place_orphan): Use an already existing
645 section name if that section does not have any flags set.
646
6472004-07-21 H.J. Lu <hongjiu.lu@intel.com>
648
649 * ldlang.c (already_linked_hash_entry): Removed.
650 (already_linked): Likewise.
651 (already_linked_table): Likewise.
652 (section_already_linked): Call bfd_section_already_linked.
653 (lang_process): Replace already_linked_table_init with
654 bfd_section_already_linked_table_init and check return. Replace
655 already_linked_table_free with bfd_section_already_linked_table_free.
656
6572004-07-21 Nick Clifton <nickc@redhat.com>
658
659 * ldlang.c (init_os): Make sure that the newly allocated userdata
660 structure is zeroed out.
661
6622004-07-19 H.J. Lu <hongjiu.lu@intel.com>
663
664 * NEWS: Mention the new --add-needed/--no-add-needed and
665 --as-needed/--no-as-needed options.
666
6672004-07-19 H.J. Lu <hongjiu.lu@intel.com>
668
669 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
670 check the add_needed field.
671 (dt_needed): New struct.
672 (gld${EMULATION_NAME}_try_needed): Change the first argument
673 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
674 bit in the file where the DT_NEEDED entry comes from.
675 (gld${EMULATION_NAME}_search_needed): Change the second
676 argument to a pointer to struct dt_needed.
677 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
678 (gld${EMULATION_NAME}_after_open): Likewise.
679
680 * ld.texinfo: Add --add-needed document.
681 * ldlang.c (new_afile): Set p->add_needed.
682 * ldlang.h (lang_input_statement_type): Add add_needed field.
683 * ldmain.h (add_needed): Declare.
684 * ldmain.c (add_needed): New global var.
685 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
686 OPTION_NO_ADD_NEEDED.
687 (ld_options): Likewise.
688 (parse_args): Handle them.
689
6902004-07-13 Christof Petig <christof@petig-baender.de>
691
692 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
693 for endian-ness of extracted addend.
694
6952004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
696
697 * pe-dll.c (auto_export): Filter on just the import prefix,
698 "_imp_", not "_imp__".
699
7002004-07-09 Nick Clifton <nickc@redhat.com>
701
702 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
703
7042004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
705
706 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
707 (eelf32crx.c): New target.
708 * Makefile.in: Regenerate.
709 * configure.tgt: Handle crx-*-elf*.
710 * emulparams/elf32crx.sh: New file.
711 * emultempl/crxelf.em: New file.
712 * scripttempl/elf32crx.sc: New file.
713 * NEWS: Mention new target.
714
7152004-07-06 Nick Clifton <nickc@redhat.com>
716
717 * Makefile.am: Add eshlsymbian.c.
718 * Makefile.in: Regenerate.
719 * configure.tgt: Add sh*-symbian-elf target.
720 * emulparams/shlsymbian.sh: New file. Configure the
721 sh-symbian-elf linker scripts.
722 * scripttemp/elf32sh-symbian.sc: New file. Linker script
723 template for the sh-symbian-elf target.
724
7252004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
726
727 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
728 * emulparams/hppalinux.sh: Likewise.
729 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
730 data segment and PLT_BEFORE_GOT is defined.
731
7322004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
733
734 * ld.texinfo (WIN32): Document PE weak symbols.
735
7362004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
737
738 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
739
7402004-07-01 H.J. Lu <hongjiu.lu@intel.com>
741
742 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
743 the section.
744
7452004-06-29 Alan Modra <amodra@bigpond.net.au>
746
747 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
748 size in rawsize.
749
7502004-06-24 Alan Modra <amodra@bigpond.net.au>
751
752 * ldlang.c (print_output_section_statement): Don't print size before
753 relaxation.
754 (IGNORE_SECTION): Remove bfd arg. Update all callers.
755
756 * ldexp.c (fold_name): .. See below.
757 * ldlang.c (section_already_linked, print_output_section_statement,
758 print_input_section, insert_pad, size_input_section,
759 lang_check_section_addresses, lang_size_sections_1,
760 lang_size_sections, lang_do_assignments_1, lang_set_startof,
761 lang_one_common, lang_reset_memory_regions, lang_process,
762 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
763 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
764 * pe-dll.c (process_def_file, generate_reloc): ..
765 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
766 gld${EMULATION_NAME}_before_allocation): ..
767 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
768 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
769 sh64_elf_${EMULATION_NAME}_after_allocation): ..
770 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
771 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
772 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
773 "size" instead of "_raw_size" and "_cooked_size". Expand
774 bfd_section_size macro invocations.
775
7762004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
777
778 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
779 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
780 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
781 ___crt_xt_end__.
782 (.tls): Define ___tls_start__ and ___tls_end__.
783
7842004-06-21 Alexandre Oliva <aoliva@redhat.com>
785
786 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
787
7882004-06-18 Adam Nemet <anemet@lnxw.com>
789
790 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
791 * configure: Regenerate.
792
7932004-06-15 Jakub Jelinek <jakub@redhat.com>
794
795 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
796 .gcc_except_table output sections lost accidentally with
797 -z relro patch.
798
7992004-06-15 Alan Modra <amodra@bigpond.net.au>
800
801 * ldwrite.c (build_link_order): Use bfd_get_section_size
802 instead of bfd_get_section_size_before_reloc or _raw_size.
803 * pe-dll.c (process_def_file): Likewise.
804
8052004-06-14 Alan Modra <amodra@bigpond.net.au>
806
807 From Richard Wirth <r.wirth@wirthware.de>
808 * ldlang.c (lang_finish): Don't free lang_definedness_table.
809
8102004-05-29 Alan Modra <amodra@bigpond.net.au>
811
812 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
813 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
814
8152004-05-28 Alan Modra <amodra@bigpond.net.au>
816
817 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
818 throughout file.
819 * lexsup.c: Formatting. Wrap long lines.
820 * ldwrite.c: Update copyright date.
821
822 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
823 (output_section_callback): Nor SEC_KEEP here.
824 (gc_section_callback): Twiddle SEC_EXCLUDE here.
825 (lang_gc_wild): Delete. Fold into..
826 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
827 collecting.
828 (lang_process): Always call lang_gc_sections.
829 (lang_place_orphans): Handle SEC_EXCLUDE sections.
830 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
831 SEC_EXCLUDE code.
832
8332004-05-26 H.J. Lu <hongjiu.lu@intel.com>
834
835 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
836 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
837 * ldlang.c (lang_add_section): Likewise.
838
8392004-05-26 Alan Modra <amodra@bigpond.net.au>
840
841 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
842 sections when doing a final link. Clear SEC_EXCLUDE when doing
843 a relocable link, except for SEC_DEBUGGING sections.
844 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
845 same condition here to drop SEC_EXCLUDE orphan sections.
846
8472004-05-25 Alan Modra <amodra@bigpond.net.au>
848
849 * ldlang.c (lang_process): Call bfd_merge_sections later, and
850 only when not a relocatable link.
851 (print_input_section): Handle SEC_EXCLUDE sections.
852 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
853 (lang_do_assignments_1): Likewise.
854 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
855 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
856 * emultempl/hppaelf.em (build_section_lists): Likewise.
857 * emultempl/ppc64elf.em (build_toc_list): Likewise.
858 (build_section_lists): Likewise.
859
8602004-05-23 Andreas Schwab <schwab@suse.de>
861
862 * ld.texinfo (Options): Fix typo in last change.
863
8642004-05-21 Andy Chittenden <achittenden@bluearc.com>
865
866 * ld.h (ld_config_type): Add new field: hash_table_size.
867 * ldmain.c: Initialise the new field to zero. If it is non-zero
868 after parsing the linker's command line call
869 bfd_hash_set_default_size.
870 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
871 (ld_options): Add hash-size.
872 (parse_args): Parse --hash-size option. Allow
873 --reduce-memory-overheads to set the default hash table size as
874 well.
875 * ld.texinfo: Document the new switch. Also mention that
876 --reduce-memory-overheads can affect the hash table size.
877 * NEWS: Mention the new feature.
878
8792004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
880
881 * NEWS: Mention new linker map file generation and the
882 --reduce-memory-overheads option.
883 * ld.texinfo: Document --reduce-memory-overheads option.
884 * ld.h (map_symbol_def): New struct.
885 (struct user_section_struct, section_userdata_type): Rename to:
886 (struct lean_user_section_struct, lean_section_userdata_type).
887 (struct fat_user_section_struct, fat_section_userdata_type): New.
888 (SECTION_USERDATA_SIZE): Define.
889 (args_type): New member reduce_memory_overheads.
890 * ldlang.c (map_obstack): New static variable.
891 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
892 (lang_map): Unless command_line.reduce_memory_overheads is set,
893 initialize lists of defined symbols for each section.
894 (print_input_section): Unless command_line.reduce_memory_overheads
895 is set, use print_all_symbols.
896 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
897 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
898 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
899 (ld_options): Add entry for --reduce-memory-overheads.
900 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
901
9022004-05-19 Jakub Jelinek <jakub@redhat.com>
903
904 * ldgram.y (sect_constraint): New.
905 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
906 (section): Add sect_constraint. Pass additional argument
907 to lang_enter_output_section_statement.
908 * mri.c (mri_draw_tree): Pass additional argument to
909 lang_enter_output_section_statement.
910 * emultempl/pe.em (place_orphan): Likewise.
911 (output_prev_sec_find): Disregard output section statements with
912 constraint == -1.
913 * emultempl/mmo.em (output_prev_sec_find): Likewise.
914 (mmo_place_orphan): Pass additional argument to
915 lang_enter_output_section_statement.
916 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
917 statements with constraint == -1.
918 (place_orphan): Pass additional argument to
919 lang_enter_output_section_statement.
920 * ldlang.c (lang_enter_overlay_section): Likewise.
921 (lang_output_section_find_1): New.
922 (lang_output_section_find): Use it.
923 (lang_output_section_statement_lookup_1): New.
924 (lang_output_section_statement_lookup): Use it.
925 (check_section_callback, check_input_sections): New.
926 (map_input_to_output_sections): Check if all input sections
927 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
928 (strip_excluded_output_sections): Disregard output section statements
929 with constraint == -1.
930 (lang_record_phdrs): Likewise.
931 (lang_enter_output_section_statement): Add constraint argument.
932 Use lang_output_section_statement_lookup_1.
933 * ldlang.h (lang_output_section_statement_type): Add constraint
934 and all_input_readonly fields.
935 (lang_enter_output_section_statement): Adjust prototype.
936 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
937 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
938 segment if all input sections are readonly.
939
9402004-05-19 Adam Nemet <anemet@lnxw.com>
941
942 * scripttempl/i386lynx.sc: Remove file.
943
9442004-05-17 Bob Wilson <bob.wilson@acm.org>
945
946 * ld.texinfo (Output Section Address): Correct subsection name.
947
9482004-05-17 Adam Nemet <anemet@lnxw.com>
949
950 * configure.tgt (powerpc-*-lynxos* case): New case.
951 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
952 * emulparams/ppclynx.sh: New file.
953 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
954 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
955 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
956 (eppclynx.c): New rule.
957 * Makefile.in: Regenerate.
958
9592004-05-13 Joel Sherrill <joel@oarcorp.com>
960
961 * configure.tgt (or32-*-rtems*): Switch to elf and
962 support versioned targets.
963
9642004-05-13 Nick Clifton <nickc@redhat.com>
965
966 * po/fr.po: Updated French translation.
967
9682004-05-11 Jakub Jelinek <jakub@redhat.com>
969
970 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
971 for binaries, -shared and -pie.
972 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
973 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
974 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
975 (OTHER_RELRO_SECTIONS): ... this.
976 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
977 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
978 -z relro and -z norelro.
979 (gld${EMULATION_NAME}_list_options): Add it to usage.
980 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
981 -z relro scripts when appropriate.
982 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
983 Create separate .got.plt section if SEPARATE_GOTPLT.
984 Move sections which are only written during relocation handling
985 to the beginning of RW segment. If NO_SMALL_DATA, move .got
986 before .data. Add DATA_SEGMENT_RELRO_END directive.
987 Include OTHER_RELRO_SECTIONS.
988 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
989 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
990 (fold_unary): Likewise.
991 (fold_binary): Handle -z relro.
992 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
993 exp_dataseg_relro_adjust phases. Add relro_end field.
994 * ldmain.c (main): Initialize link_info.relro to FALSE.
995 * ldlang.c (lang_size_sections): Handle -z relro.
996
9972004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
998
999 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1000
10012004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1002
1003 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1004 before printing it with %W.
1005
10062004-05-07 Brian Ford <ford@vss.fsi.com>
1007 DJ Delorie <dj@redhat.com>
1008
1009 * emultempl/pe.em (real_flags): New static.
1010 (OPTION_LARGE_ADDRESS_AWARE): New define.
1011 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1012 (gld_${EMULATION_NAME}_list_options): Likewise.
1013 (gld${EMULATION_NAME}_handle_option): Likewise.
1014 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1015 * ld.texinfo: Document it.
1016 * NEWS: Mention it.
1017
10182004-05-07 Brian Ford <ford@vss.fsi.com>
1019
1020 * NEWS: Mention DWARF 2 support for i386pe.
1021
10222004-05-05 Alexandre Oliva <aoliva@redhat.com>
1023
1024 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1025 elf32-frvfdpic.
1026
10272004-04-30 Alan Modra <amodra@bigpond.net.au>
1028
1029 * ldlang.c (unique_section_p): Pass section parm, return true on
1030 group sections.
1031 (output_section_callback): Adjust.
1032 * ldlang.h (unique_section_p): Update prototype.
1033 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1034
10352004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1036
1037 * ld.texinfo (--gc-sections): Remove restriction for
1038 dynamic linking.
1039
10402004-04-29 Brian Ford <ford@vss.fsi.com>
1041
1042 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1043 for DWARF 2/3. Update stab section's syntax.
1044
10452004-04-29 Alan Modra <amodra@bigpond.net.au>
1046
1047 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1048 (fill_edata): Correct pointer arithmetic.
1049
10502004-04-21 Chris Demetriou <cgd@broadcom.com>
1051
1052 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1053 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1054 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1055 (EXTRA_EM_FILE): Use mipsecoff.em
1056 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1057 (EXTRA_EM_FILE): Use mipsecoff.em
1058 * emultempl/mipsecoff.em: Restructure to be included as an
1059 extra emulation file.
1060 (check_sections, gld${EMULATION_NAME}_after_open)
1061 (gld${EMULATION_NAME}_after_allocation)
1062 (gld${EMULATION_NAME}_get_script)
1063 (ld_${EMULATION_NAME}_emulation): Remove
1064 (gld${EMULATION_NAME}_before_parse): Rename to...
1065 (mipsecoff_before_parse): This.
1066 (LDEMUL_BEFORE_PARSE): Define.
1067 * emultempl/mipself.em: Remove file.
1068 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1069 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1070 these symbols.
1071 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1072 * Makefile.in: Regenerate.
1073
10742004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1075
1076 * ld.texinfo (synthesizing on H8/300): Information about linker
1077 relaxation support for bit manipulation instructions and system
1078 control instructions is added.
1079
10802004-04-21 Hans-Peter Nilsson <hp@axis.com>
1081
1082 * NEWS: Mention change in DEFINED semantics.
1083
10842004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1085
1086 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1087 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1088 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1089
10902004-04-21 Ben Elliston <bje@au.ibm.com>
1091
1092 * ld.texinfo (Simple Example): Add missing punctuation.
1093
10942004-04-20 Chris Demetriou <cgd@broadcom.com>
1095
1096 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1097
10982004-04-19 Jakub Jelinek <jakub@redhat.com>
1099
1100 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1101 specially.
1102
11032004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1104
1105 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1106 with default priority. Likewise for dtors.
1107
11082004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1109
1110 * configure.host: Remove mips*-dec-bsd* target.
1111 * configure.tgt: Likewise.
1112
11132004-04-08 Richard Sandiford <rsandifo@redhat.com>
1114
1115 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1116 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1117 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1118 * emultempl/irix.em: New file.
1119 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1120 dependencies.
1121 * Makefile.in: Regenerate.
1122
11232004-04-01 Paul Brook <paul@codesourcery.com>
1124
1125 * emultempl/armelf.em (byteswap_code): Add.
1126 (arm_elf_before_allocation): Pass extra parameter.
1127 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1128 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1129 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1130 * emultempl/armelf_oabi.em: Pass extra parameter.
1131 * ld.texinfo: Document --be8.
1132
11332004-03-30 Stan Shebs <shebs@apple.com>
1134
1135 Remove long-obsolete MPW support.
1136 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1137 * Makefile.am (mpw): Remove file-presynthesizing actions.
1138 * Makefile.in: Likewise.
1139 * ldfile.c (slash): Remove MPW case.
1140 * ldlex.l [MPW]: Remove unused definition.
1141
11422004-03-30 Galit Heller <Galit.Heller@nsc.com>
1143
1144 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1145 (eelf32cr16c.c): New target.
1146 * Makefile.in: Regenerate.
1147 * configure.tgt: Handle cr16c-*-elf*.
1148 * emulparams/elf32cr16c.sh: New file.
1149 * scripttempl/elfcr16c.sc: Likewise
1150 * NEWS: Mention support for new target.
1151
11522004-03-30 Nick Clifton <nickc@redhat.com>
1153
1154 * po/sv.po: Updated Swedish translation.
1155
11562004-03-27 Alan Modra <amodra@bigpond.net.au>
1157
1158 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1159 * emultempl/hppaelf.em: Likewise.
1160 * emultempl/ppc64elf.em: Likewise.
1161 * emultempl/sh64elf.em: Likewise.
1162
11632004-03-25 Alan Modra <amodra@bigpond.net.au>
1164
1165 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1166 size_dynamic_sections call.
1167
11682004-03-23 Alan Modra <amodra@bigpond.net.au>
1169
1170 PR 51.
1171 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1172 link_info.wrap_char.
1173
11742004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1175
1176 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1177 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1178
11792004-03-20 Alexandre Oliva <aoliva@redhat.com>
1180
1181 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1182
11832004-03-19 Alan Modra <amodra@bigpond.net.au>
1184
1185 * config.in: Regenerate.
1186 * po/ld.pot: Regenerate.
1187
11882004-03-18 Alan Modra <amodra@bigpond.net.au>
1189
1190 * ld.texinfo: Add --as-needed doco.
1191 * ldmain.c (as_needed): New global var.
1192 * ldmain.h (as_needed): Declare.
1193 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1194 OPTION_NO_AS_NEEDED.
1195 (ld_options): Likewise.
1196 (parse_args): Handle them.
1197 * ldlang.h (lang_input_statement_type): Add as_needed field.
1198 * ldlang.c (new_afile): Set p->as_needed.
1199 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1200 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1201 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1202
1203 * ldlang.c (open_input_bfds): Remove useless cast.
1204 (lang_do_assignments_1): Likewise.
1205 (lang_for_each_input_section): Delete.
1206
12072004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1208
1209 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1210
12112004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1212
1213 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1214 private when building implib.
1215
12162004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1217
1218 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1219 SEC_THREAD_LOCAL.
1220 (IGNORE_SECTION): Ignore .tbss sections too.
1221 (lang_size_sections_1): .tbss sections do not advance dot.
1222
12232004-03-01 Andreas Schwab <schwab@suse.de>
1224
1225 * ld.texinfo (Options): Fix example for --wrap.
1226
12272004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1228
1229 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1230 not NULL.
1231
12322004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1233
1234 * ldlang.c (lang_check): Use %P, not %E, in error message.
1235
12362004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1237
1238 * ldlang.h (struct lang_output_section_state): Change processed
1239 field's type.
1240 * ldexp.c (check, invalid): Remove.
1241 (fold_name): Move valid_p assignments. Create undefined symbol
1242 when needed. Directly exampine section's processd flag.
1243 * ldlang.c (lang_output_section_statement_lookup): Adjust
1244 processed field init.
1245 (lang_size_sections_1): Allow LOADADDR when determining section's
1246 VMA. Adjust error message. Fold data statement's expr.
1247 (lang_size_sections): Correctly increment lang_statement_iteration.
1248
12492004-02-23 Alan Modra <amodra@bigpond.net.au>
1250
1251 * ldexp.c (fold_tree): Follow indirect symbols.
1252
12532004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1254
1255 * ldgram.y (exp): Add two operand ALIGN.
1256 * ldexp.c (fold_binary): Add ALIGN_K case.
1257 * ld.texinfo (ALIGN): Document two operand version.
1258
12592004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1260
1261 * ldlang.c (map_input_to_output_sections): Initialize sections
1262 mentioned in a data statement expression.
1263 (lang_do_assignments_1): Add data statement's expression's
1264 section's vma.
1265
12662004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1267
1268 * ldgram.y (statement_anywhere): Add assert rule.
1269 * ldlang.c (exp_init_os): Add assert case.
1270
12712004-02-14 Andrew Cagney <cagney@redhat.com>
1272
1273 * ldmain.c (remove_output): Call bfd_cache_close.
1274
12752004-02-14 Richard Sandiford <rsandifo@redhat.com>
1276
1277 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1278 .MIPS.content* and .MIPS.events* sections.
1279
12802004-02-09 Daniel Jacobowitz <drow@mvista.com>
1281
1282 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1283 .note.gnu.arm.ident to after allocated sections. Mark its
1284 address as 0.
1285
12862004-02-09 Daniel Jacobowitz <drow@mvista.com>
1287
1288 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1289 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1290 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1291 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1292 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1293
12942004-02-05 Nick Clifton <nickc@redhat.com>
1295
1296 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1297
12982004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1299
1300 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1301
13022004-01-28 Alan Modra <amodra@bigpond.net.au>
1303
1304 * genscripts.sh: Fix typo.
1305
1306 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1307
13082004-01-24 Jakub Jelinek <jakub@redhat.com>
1309
1310 * emulparams/elf64_ia64.sh: Put .rela.opd into
1311 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1312
13132004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1314
1315 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1316 * ld.texinfo (--omagic): Note that writable text section
1317 does not conform to published PE-COFF specs.
1318 (--enable-auto-import): Likewise.
1319
13202004-01-15 Alan Modra <amodra@bigpond.net.au>
1321
1322 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1323
13242004-01-13 Nick Clifton <nickc@redhat.com>
1325
1326 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1327 which if true will prevent the LMA region being used as a
1328 replacement for a default VMA region.
1329 (lang_leave_output_section_statement): Pass extra parameter.
1330 (lang_leave_overlay): Likewise.
1331 * ld.texinfo (Output Section LMA): Document that the LMA
1332 region can be set to the VMA region if no VMA has been set.
1333 * ldlang.h (struct lang_output_section_phdr_list): Create a
1334 typedef for this type. Minor formatting fixes.
1335
13362004-01-13 Nick Clifton <nickc@redhat.com>
1337
1338 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1339 assume that the section should be allocated.
1340
13412004-01-13 Alan Modra <amodra@bigpond.net.au>
1342
1343 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1344 sections. Do ignore SEC_NEVER_LOAD sections.
1345 (lang_size_sections_1): Remove test made redundant with the above.
1346
13472004-01-09 Alan Modra <amodra@bigpond.net.au>
1348
1349 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1350 program_header_size.
1351
13522004-01-06 Alexandre Oliva <aoliva@redhat.com>
1353
1354 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1355 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1356 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1357 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1358 (MAXPAGESIZE): Set to 64Kb.
1359 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1360 __ROFIXUP_END__. Don't map .rofixup.got any more.
1361 * emulparams/elf32frv.sh (NOP): Set.
1362 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1363 * configure.tgt: Add frv-*-*linux*.
1364 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1365 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1366 (eelf32frvfd.c): New.
1367 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1368 * emulparams/elf32frv.sh: Reverted previous two patches.
1369 * emulparams/elf32frvfd.sh: New.
1370 * Makefile.in: Rebuilt.
1371 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1372 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1373 .rofixup.got to .rofixup.
1374 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1375 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1376 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1377
13782004-01-05 Jakub Jelinek <jakub@redhat.com>
1379
1380 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1381 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1382
13832004-01-03 Alan Modra <amodra@bigpond.net.au>
1384
1385 * ldexp.c (align_n): Make static.
1386 * ldexp.h (align_n): Delete declaration.
1387 * ldlang.h (lang_enter_output_section_statement): Remove
1388 block_value param.
1389 * ldlang.c (lang_enter_output_section_statement): Likewise.
1390 (TO_ADDR, TO_SIZE): Define.
1391 (opb_shift): New var.
1392 (init_opb): New function.
1393 (print_input_section): Call init_opb and use TO_ADDR.
1394 (print_data_statement, print_reloc_statement): Likewise.
1395 (print_padding_statement): Likewise.
1396 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1397 (lang_check_section_addresses): Likewise.
1398 (lang_size_sections_1): Likewise.
1399 (lang_do_assignments_1): Likewise.
1400 (lang_set_startof): Likewise.
1401 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1402 (lang_process): Call init_opb.
1403 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1404 (lang_enter_overlay_section): Adjust
1405 lang_enter_output_section_statement call.
1406 * ldgram.y: Likewise.
1407 * mri.c (mri_draw_tree): Likewise.
1408 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1409 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1410 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1411
1412 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1413 * ldfile.h (ldfile_set_output_arch): Ditto.
1414 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1415 ldfile_set_output_arch.
1416 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1417 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1418 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1419 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1420 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1421 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1422 * ldgram.y: Adjust ldfile_set_output_arch call.
1423 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1424 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1425 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1426 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1427 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1428 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1429 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1430
14312004-01-02 Bernardo Innocenti <bernie@develer.com>
1432
1433 * configure.tgt: Add m68k-uClinux target.
1434
1435For older changes see ChangeLog-0203
1436\f
752937aa
NC
1437Copyright (C) 2004 Free Software Foundation, Inc.
1438
1439Copying and distribution of this file, with or without modification,
1440are permitted in any medium without royalty provided the copyright
1441notice and this notice are preserved.
1442
e88d958a
AM
1443Local Variables:
1444mode: change-log
1445left-margin: 8
1446fill-column: 74
1447version-control: never
1448End:
This page took 0.660438 seconds and 4 git commands to generate.