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