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