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