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