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