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