* aout-encap.c: Remove unused file.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
a154a8ad
MM
12005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
4 (earmelfb_linux_eabi.c): New target.
5 * Makefile.in: Regenerated.
6 * configure.tgt (arm*b-*-linux-gnueabi): New target.
7 * emulparams/armelfb_linux_eabi.sh: New file.
8
9c183183
AM
92005-01-20 Nick Hudson <skrll@netbsd.org>
10
11 PR ld/676
12 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
13 Handle bfd_elf32_hppa_nbsd_vec.
14
e2243057
RS
152005-01-19 Richard Sandiford <rsandifo@redhat.com>
16
17 * ldmain.h (ld_sysroot): Change type to a constant string.
18 * ldmain.c (ld_sysroot): Likewise.
19 (get_relative_sysroot, get_sysroot): New functions, adding command-line
20 support for changing the sysroot.
21 (main): Call the new functions.
22 * lexsup.c (OPTION_SYSROOT): New.
23 (ld_options): Add --sysroot.
24 (parse_args): Add a dummy handler for it.
25 * ld.texinfo (--sysroot): Document.
26 * NEWS: Mention the new --sysroot option.
27
1449d79b
AM
282005-01-18 Alan Modra <amodra@bigpond.net.au>
29
30 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
31 (lang_place_orphans): Don't abort on just_syms_flag, instead call
32 bfd_link_just_syms.
33
a880c748
DS
342005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
35
36 * defilep.y (def_name, def_library): Combine into...
37 (def_image_name): New function. Strip name to basename,
38 with warning.
39
07baa8ee
MK
402005-01-12 Mark Kettenis <kettenis@gnu.org>
41
42 * configure.in: Be sure to invoke config.sub using the shell.
43 * configure: Regenerate.
44
e9b181b8
AM
452005-01-11 Alan Modra <amodra@bigpond.net.au>
46
47 * configure.host: Correct sed patterns for last change.
48
59ef2528
NC
492005-01-10 Nick Clifton <nickc@redhat.com>
50
51 PR binutils/609
52 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
53 to determine whether config.make_executable should be set to FALSE in
54 conjunction with config.fatal_warnings.
55 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
56 (einfo): Pass TRUE as the extra argument.
57
71a2d53a
NC
582005-01-10 Greg Schaffer <gschafer@zip.com.au>
59
60 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
61 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
62 (ia64-*-aix): Delete - this target is obsolete, and would be
63 broken by this patch.
64
d6d0b336
EB
652005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
66
67 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
68 (sparc64-sun-solaris2*): New host.
69
4e7fd91e
PB
702005-01-06 Paul Brook <paul@codesourcery.com>
71
72 * Makefie.am: Add earmelf_vxworks.
73 * Makefile.in: Regenerate.
74 * configure.tgt: Make arm-*-vxworks a separate case.
75 * emulparams/armelf_vxworks.sh: New function.
76
4c52953f
AM
772005-01-06 Alan Modra <amodra@bigpond.net.au>
78
79 * emultempl/ppc64elf.em (no_multi_toc): New var.
80 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
81 (OPTION_NO_MULTI_TOC): Define.
82 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
83 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
84
98d87ee7
NC
852005-01-05 Nick Clifton <nickc@redhat.com>
86
87 PR binutils/614
88 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
4c52953f 89 Standard's specification for parsable error messages.
98d87ee7 90
5f81b918
PB
912005-01-04 Paul Brook <paul@codesourcery.com>
92
93 * Makefile.am: Correct dependency for earmsymbian.c.
94 * Makefile.in: Regenerate.
95
2af59bab
DS
962004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
97
98 * emultempl/pe.em (set_pe_subsystem): Change second arg to
99 lang_add_entry to FALSE.
100
c38f024c
NC
1012004-12-23 Nick Clifton <nickc@redhat.com>
102
103 PR 600
104 * emulparams/shelf.sh (.stack): Increase stack start address to
105 0x300000.
106
550bdea6
NC
1072004-12-20 Nick Clifton <nickc@redhat.com>
108
109 * ldmain.c (main): Issue an error message if -static and -shared
110 are used together.
111
e3070fef
JJ
1122004-12-17 Jakub Jelinek <jakub@redhat.com>
113
114 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
115 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
116 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
117 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
118 PT_GNU_RELRO segment end.
119
2fbd2a87
NC
1202004-12-14 P.J. Darcy <darcypj@us.ibm.com>
121
122 * configure.tgt: Add s390x-ibm-tpf support.
123
f2763b01
NC
1242004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
125
126 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
127 BFD.
128
cb9faf63
BE
1292004-12-07 Ben Elliston <bje@gnu.org>
130
131 * ldemul.h: Forward declare struct option.
132
02f80eef
DS
1332004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
134
135 * scripttempl/pe.sc (.data): Add .jcr subsection.
136
dea514f5
PB
1372004-11-30 Paul Brook <paul@codesourcery.com>
138
139 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
140
32118081
NC
1412004-11-30 Tero Niemela <tero_niemela@yahoo.com>
142
143 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
144 * Makefile.in: Regenerate.
145
33f362e1
NC
1462004-11-26 Melissa Mears <asterisk@graces.dricas.com>
147
148 * emultempl/pe.em: Add --subsystem:xbox as well as
149 --subsystem:%d.
150 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
151 and numeric subsystems.
152
3eda52aa
AM
1532004-11-24 Alan Modra <amodra@bigpond.net.au>
154
155 * ldexp.c (fold_name): Correct PR 338 fix.
156
6b3221b4
MM
1572004-11-19 Mark Mitchell <mark@codesourcery.com>
158
159 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
160 (earmelf_linux_eabi.c): New target.
161 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
162 * emulparams/armelf_linux_eabi.sh: New file.
163 * Makefile.in: Regenerated.
164
9cd6d51a
NC
1652004-11-19 Nick Clifton <nickc@redhat.com>
166
167 PR 518
168 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
169 LENGTH fields in the MEMORY command, to explicitly state that
170 symbols cannot be used in their expressions.
171
3ec57632
NC
1722004-11-19 Jon Beniston <jon@beniston.com>
173
174 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
175 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
4c52953f 176 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
3ec57632
NC
177 which return the length and origin of a memory.
178 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
179 * NEWS: Mention support for ORIGIN and LENGTH operators.
180
b7693d02
DJ
1812004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
182
183 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
184 a dynamic object for stubs.
185
fc0e6df6
PB
1862004-11-04 Paul Brook <paul@codesourcery.com>
187
188 * ld.texinfo: Document --default-imported-symver.
189 * ldmain.c (main): Set link_info.default_imported_symver.
190 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
191 (ld_options): Add --default-imported-symver.
192 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
193
7499d566
NC
1942004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
195 Vineet Sharma <vineets@noida.hcltech.com>
196
197 * Makefile.am: Add entries for new maxq-coff target.
198 * Makefile.in: Regenerate.
199 * configure.tgt: Add support for maxq.
200 * emulparams/maxqcoff.sh: New File.
201 * scripttempl/maxqcoff.sc: New linker script for target maxq.
202 * NEWS: Mention the new target.
203
977cdf5a
NC
2042004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
205
206 * testsuite/ld-scripts/weak.exp: Enable test on PE,
207 XFAIL non-i386 PE.
208 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
209 XFAIL non-i386 PE.
210 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
211
7f266840
DJ
2122004-11-04 Daniel Jacobowitz <dan@debian.org>
213
214 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
215 (earmelf_oabi.c): Remove rule.
216 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
217 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
218 * Makefile.in: Regenerated.
219
a0055007
HPN
2202004-11-04 Hans-Peter Nilsson <hp@axis.com>
221
222 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
223 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
224 (FINI_START): Ditto.
225 (INIT_END): Remove emitted "jump [sp+]".
226 (FINI_END): Ditto.
227
c5614fa4
AM
2282004-11-04 Alan Modra <amodra@bigpond.net.au>
229
230 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
231 (no_opd_opt, no_toc_opt): New static vars.
232 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
233 ppc64_elf_edit_toc.
234 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
235 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
236 (PARSE_AND_LIST_OPTIONS): Describe new options.
237 (PARSE_AND_LIST_ARGS_CASES): Handle them.
238
7a5df8d0
NC
2392004-10-27 Nick Clifton <nickc@redhat.com>
240
241 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
242 parameter to invocation of lang_section_start.
243 * emultempl/aix.em (_handle_option): Likewise.
c5614fa4 244
7a5df8d0
NC
245 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
246 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
247 * Makefile.in: Regenerate.
248
6f372e19
MM
2492004-10-26 Mark Mitchell <mark@codesourcery.com>
250
251 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
252 __exidx_{start,end} when not relocating.
253
ba916c8a
MM
2542004-10-25 Mark Mitchell <mark@codesourcery.com>
255
256 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
257 * ldexp.h (segment_type): New type.
258 (segments): New variable.
259 * ldexp.c (segments): New variable.
260 (exp_print_token): Handle SEGMENT_START.
261 (fold_binary): Likewise.
262 * ldgram.y (SEGMENT_START): Declare it as a token.
263 (exp): Handle SEGMENT_START.
264 * ldlang.h (lang_address_statement_type): Add segment field.
265 (lang_section_start): Change prototype.
266 * ldlang.c (map_input_to_output_sections): Do not process section
267 assignments if a corresponding SEGMENT_START has already been
268 seen.
269 (lang_section_start): Add segment parameter.
270 * ldlex.l (SEGMENT_START): Add it.
271 * lexsup.c (seg_segment_start): New function.
272 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
273 * ld.texinfo (SEGMENT_START): Document it.
274 * emulparams/armsymbian.sh (EMBEDDED): Set it.
275 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
276 base addresses. Do not map relocations.
277 * NEWS: Mention SEGMENT_START.
278
3e3b46e5
PB
2792004-10-26 Paul Brook <paul@codesourcery.com>
280
281 * ld.texinfo: Document --default-symver.
282 * ldmain.c (main): Set link_info.create_default_symver.
283 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
284 (ld_options): Add default-symver.
285 (parse_args): Handle OPTION_DEFAULT_SYMVER.
286
7b0eaa22
DS
2872004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
288
289 * pe-dll.c (process_def_file): Don't export all symbols by default if
290 building a position-independent executable.
291
dfeffb9f
L
2922004-10-21 H.J. Lu <hongjiu.lu@intel.com>
293
294 PR 463
295 * ldmain.c (reloc_overflow): Accept a pointer to struct
296 bfd_link_hash_entry. Report symbol location for relocation
297 overflow.
298
dc4f76f8
L
2992004-10-21 H.J. Lu <hongjiu.lu@intel.com>
300
301 * genscripts.sh (libpath.exp): Really generate for first
302 emulation only.
303
2a08daf3
DS
3042004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
305
306 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
307 comparison and replacement of filenames.
308
532345f2
L
3092004-10-19 H.J. Lu <hongjiu.lu@intel.com>
310
311 PR 459
312 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
313 option on linker script as the one for linker script.
314
b58f81ae
DJ
3152004-10-16 Daniel Jacobowitz <dan@debian.org>
316
317 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
318 (check_excluded_libs): New.
319 (load_symbols): Call check_excluded_libs.
320 * ldlang.h (add_excluded_libs): New prototype.
321 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
322 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
323 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
324 * ld.texinfo (Command Line Variables): Document --exclude-libs.
325 (Options Specific to i386 PE Targets): Remove --exclude-libs.
326
95c148b4
AM
3272004-10-15 Alan Modra <amodra@bigpond.net.au>
328
c468c8bc
AM
329 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
330 failing link script assert.
331
95c148b4
AM
332 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
333
951e9133
L
3342004-10-14 H.J. Lu <hongjiu.lu@intel.com>
335
336 PR 445
337 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
338 (SMALL_DATA_DTOR): Set.
339 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
340 (SMALL_DATA_DTOR): Unset.
341 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
342 after .data. If SMALL_DATA_DTOR is set, move .dtors after
343 .data.
344
afd7a018
AM
3452004-10-14 Alan Modra <amodra@bigpond.net.au>
346
347 PR 63
348 * ldlang.h (lang_output_section_statement_type): Make "next" a
349 struct lang_output_section_statement_struct *.
350 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
351 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
352 * ldlang.c (lang_output_section_find_1): Adjust for changed
353 output_section_statement "next".
354 (strip_excluded_output_sections): Likewise.
355 (lang_record_phdrs): Likewise.
356 (lang_output_section_find_by_flags): New function.
357 (output_prev_sec_find): Move from pe.em. Adjust iterator.
358 (lang_insert_orphan): New function. Tail end of elf32.em's
359 place_orphan merged with that from pe.em. Allow bfd_section to
360 be placed first. New heuristic for placing new output section
361 statement in existing script, and accompanying split of __start
362 symbol alignment into a separate assignment to dot.
363 (lang_add_section): Consistently use output->bfd_section rather than
364 an alias, section->output_section.
365 (map_input_to_output_sections): Rename overly long arg. Move
366 initialization of data_statement output section to here..
367 (lang_check_section_addresses): ..from here.
368 (print_assignment): Correct printing of etree_assert.
369 (print_all_symbols): Don't bomb if userdata is NULL.
370 (IGNORE_SECTION): Rearrange.
371 * emultempl/elf32.em (output_rel_find): Adjust interator.
372 (output_prev_sec_find): Delete.
373 (struct orphan_save): Delete.
374 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
375 flags without creating a duplicate output section statement.
376 Revise code holding history of various orphan section placements.
377 Allow orphan sections to place before script specified output
378 sections. Call lang_output_section_find_by_flags when placement
379 by name fails. Use lang_insert_orphan.
380 * emultempl/mmo.em (output_prev_sec_find): Delete.
381 (struct orphan_save): Delete.
382 (mmo_place_orphan): Revise code holding history of orphan placement.
383 Allow orphans to place before existing output sections. Use
384 lang_insert_orphan.
385 * emultempl/pe.em (output_prev_sec_find): Delete.
386 (struct orphan_save): Delete.
387 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
388 lang_insert_orphan.
389
c0042f5d
MM
3902004-10-13 Mark Mitchell <mark@codesourcery.com>
391
392 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
393 loadable segment.
394
1af699f4
AM
3952004-10-13 Alan Modra <amodra@bigpond.net.au>
396
397 PR 44
09c112da
AM
398 * ldcref.c (check_section_sym_xref): Delete.
399 (check_local_sym_xref): New function.
400 (check_nocrossrefs): Adjust call.
1af699f4
AM
401 * emultempl/pe.em (struct orphan_save): Add os_tail.
402 (place_orphan): Backport assorted fixes from elf32.em.
403
7fa3d080
BW
4042004-10-12 Bob Wilson <bob.wilson@acm.org>
405
406 * emultempl/xtensaelf.em: Use ISO C90 formatting.
407
d3989512
JJ
4082004-10-11 Jakub Jelinek <jakub@redhat.com>
409
563f4125
JJ
410 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
411 getline for portability.
412
d3989512
JJ
413 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
414 (gld${EMULATION_NAME}_parse_ld_so_conf,
415 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
416 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
417
6c0c5b1e
AM
4182004-10-11 Alan Modra <amodra@bigpond.net.au>
419
420 PR 423
421 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
422 rejected when linking statically.
423
d2b2c203
DJ
4242004-10-08 Daniel Jacobowitz <dan@debian.org>
425
426 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
427
43cd72b9
BW
4282004-10-07 Bob Wilson <bob.wilson@acm.org>
429
430 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
431 assembler-generated longcall sequences. Describe new --size-opt
432 option.
433 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
434 * emultempl/xtensaelf.em (remove_section,
435 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
436 elf_xtensa_after_open): New.
437 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
438 OPTION_NO_LITERAL_MOVEMENT): Define.
439 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
440 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
441 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
442 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
443 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
444 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
445 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
446 * Makefile.am (eelf32xtensa.c): Update dependencies.
447 * Makefile.in: Regenerate.
448
8fdd7217 4492004-10-07 Jeff Baker <jbaker@qnx.com>
6c0c5b1e 450
8fdd7217
NC
451 * lexsup.c: Handle --warn-shared-textrel option.
452 (ld_options): Restore alpha sorting of options.
453 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
454 * ld.texinfo: Add documentation for --warn-shared-textrel.
455 * NEWS: Added mention of --warn-shared-textrel option.
456
339207f8 4572004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
6c0c5b1e 458
339207f8 459 * emultempl/crxelf.em (disable_relaxation): Add.
6c0c5b1e 460 (crxelf_before_allocation): Enable --relax option by default.
339207f8
TL
461 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
462 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
463 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
464
bcaa7b3e
L
4652004-10-04 H.J. Lu <hongjiu.lu@intel.com>
466
467 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
468 --sort-section name|alignment.
469
470 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
471 --sort-section name|alignment.
472
473 * ld.h (sort_type): New enum.
474 (wildcard_spec): Change the type of `sorted' to sort_type.
475
476 * ldgram.y (SORT): Removed.
477 (SORT_BY_NAME): Added.
478 (SORT_BY_ALIGNMENT): Added.
479 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
480 SORT_BY_ALIGNMENT.
481 (input_section_spec_no_keep): Updated `sorted'.
482 (statement): Replace SORT with SORT_BY_NAME.
483
484 * ldlang.c (compare_section): New function to compare 2
485 sections with different sorting schemes.
486 (wild_sort): Updated. Use compare_section.
487 (update_wild_statements): New function.
488 (lang_process): Call update_wild_statements before
489 map_input_to_output_sections.
490
491 * ldlex.l (SORT_BY_NAME): New.
492 (SORT_BY_ALIGNMENT): New.
493 (SORT): Return SORT_BY_NAME.
494
495 * ldmain.c (sort_section): New. Defined.
496 (main): Initialize it to none.
497
498 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
499 (ld_options): Add an entry for OPTION_SORT_SECTION.
500 (parse_args): Handle OPTION_SORT_SECTION.
501
502 * mri.c (mri_draw_tree): Updated `sorted'.
503
a4f5ad88
JJ
5042004-10-04 Jakub Jelinek <jakub@redhat.com>
505
506 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
507 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
508 argument.
509 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
510 and . as second argument.
511 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
512 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
513 (fold_binary): Add it here. Insert padding to make relro_end
514 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
515 exp_dataseg_relro_adjust phase just use previously computed
516 exp_data_seg.base.
517 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
518 relro_adjust here. Call lang_size_sections_1 once more if there
519 was too big padding at DATA_SEGMENT_RELRO_END.
520 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
521
40a18ebd
NC
5222004-10-01 Paul Brook <paul@codesourcery.com>
523
524 * emulparams/armelf.sh: Add unwinding table sections.
525
db8acf26
NC
5262004-09-30 Filip Navara <navaraf@reactos.com>
527
528 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
529 correct base address for position independant executables.
530 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
531 executables as DLLs.
532
eeac373a
PB
5332004-09-30 Paul Brook <paul@codesourcery.com>
534
535 * ld.texinfo: Document --target2=abs.
536 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
537
1ee7cf4c
NC
5382004-09-29 Nick Clifton <nickc@redhat.com>
539
540 * scripttempl/xstormy16.sc: Only perform the assignments to the
541 ROM region when not performing a relocatable link. The ROM region
542 does not start at address 0, but the sections will.
543 * Makefile.am: Fix linker script dependency for the generation of
544 eelf32xstormy16.c.
545 * Makefile.in: Regenerate.
546
03098a9a
CF
5472004-09-18 Filip Navara <navaraf@reactos.com>
548
549 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
550 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
551 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
552 TARGET_PAGE_SIZE.
553 * scripttempl/pe.sc: Make the virtual address and file offset synced if
554 the alignment is lower than the target page size.
555
f2d3750d
CF
5562004-09-27 Filip Navara <navaraf@reactos.com>
557
558 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
559 def_file_parse to handle pe_def_file if NULL and prevent crash with
560 invalid .def files.
561
a23d8409
AM
5622004-09-27 Alan Modra <amodra@bigpond.net.au>
563
564 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
565 --emit-stub-syms automatically when --emit-relocs.
566
7b89fa29
PB
5672004-09-24 Paul Brook <paul@codeosurcery.com>
568
569 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
570 .fini_array sections.
571
e2a68bcc
AS
5722004-09-19 Andreas Schwab <schwab@suse.de>
573
574 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
575 base so that relro end is suitably aligned.
576
3674e28a
PB
5772004-09-17 Paul Brook <paul@codesourcery.com>
578
579 * ld.texinfo: Rename arm-specific section. Document --target*
580 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
581 * emulparams/armelf_linux.sh: Ditto.
582 * emulparams/armelf_nbsd.sh: Ditto.
583 * emultempl/armelf.em: Set default for TARGET2_TYPE.
584 (target2_type): New variable.
585 (arm_elf_before_allocation): Don't pass target1_type.
586 (arm_elf_create_output_section_statements): New function.
587 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
588 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
589 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
590 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
591 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
592 argument to bfd_elf32_arm_process_before_allocation.
593
f6e332e6
AM
5942004-09-17 Alan Modra <amodra@bigpond.net.au>
595
596 * ldexp.c (fold_name): Update u.undef.next refs.
597 * emultempl/pe.em: Likewise.
598 * emultempl/sunos.em: Likewise.
599
9c933e04
AM
6002004-09-17 Alan Modra <amodra@bigpond.net.au>
601
602 * Makefile.am: Run "make dep-am".
603 * Makefile.in: Regenerate.
604 * config.in: Regenerate.
605 * configure: Regenerate.
606 * aclocal.m4: Regenerate.
607 * po/ld.pot: Regenerate.
608
1fa32646
TL
6092004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
610
9c933e04
AM
611 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
612 (.fini): Likewise.
613 (.jcr): Likewise.
1fa32646 614
b6ee372a
AM
6152004-09-16 Alan Modra <amodra@bigpond.net.au>
616
617 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
618 to bfd_elf32_arm_process_before_allocation call.
619
9c504268
PB
6202004-09-13 Paul Brook <paul@codesourcery.com>
621
622 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
623 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
624
d15b04bd
L
6252004-09-07 H.J. Lu <hongjiu.lu@intel.com>
626
627 * configure: Regenerated with autconfig 2.13.
628
875c4330
AS
6292004-09-07 Andreas Schwab <schwab@suse.de>
630
631 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
632 alignment before adjusting DATA_SEGMENT_RELRO_END.
633
229fcec5
MM
6342004-09-06 Mark Mitchell <mark@codesourcery.com>
635
636 * emulparams/armsymbian.sh: Use armbpabi script.
637 * scripttempl/armbpabi.sc: New script.
638
e5a52504
MM
6392004-09-02 Mark Mitchell <mark@codesourcery.com>
640
641 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
642 (earmsymbian.c): New target.
643 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
644 * Makefile.in: Regenerated.
645 * aclocal.m4: Likewise.
646 * configure: Likewise.
647 * emulparams/armsymbian.sh: New file.
648
42851540
NC
6492004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
650
651 * scripttempl/elf32crx.sc: Edit file with comments.
652 (.init): Add new section.
653 (.fini): Likewise.
654 (.ctor): Control the linkage order.
655 (.dtor): Likewise.
656
c034e3e0
NC
6572004-08-27 Nick Clifton <nickc@redhat.com>
658
659 * emultempl/pe.em (after_open): Do not assume that either bfd is
9c933e04 660 an archive.
c034e3e0 661
688c58f3
AM
6622004-08-26 Alan Modra <amodra@bigpond.net.au>
663
664 * ldlang.c (lang_init): Don't compare with TRUE.
665
b18c562e
NC
6662004-08-25 Dmitry Diky <diwil@spec.ru>
667
668 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
669 * scripttempl/elf32msp430.sc: Add .profiler section definition.
670
61f5d054
L
6712004-08-24 H.J. Lu <hongjiu.lu@intel.com>
672
673 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
674
e77d3d77
MM
6752004-08-19 Mark Mitchell <mark@codesourcery.com>
676
677 * configure.tgt (arm*-*-symbianelf*): New target.
678 (arm*-*-eabi*): Likewise.
679
3f764659
JJ
6802004-08-19 Jakub Jelinek <jakub@redhat.com>
681
682 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
683 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
684 (OPTION_NON_OVERLAPPING_OPD): Define.
685 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
686 --non-overlapping-opd option.
687
a010d60f
AM
6882004-08-18 Alan Modra <amodra@bigpond.net.au>
689
690 PR 338
691 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
692 was already on the undefs list.
693
c4e33880
AM
6942004-08-17 Alan Modra <amodra@bigpond.net.au>
695
696 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
697 prefix the symbol field too.
698
d003868e
AM
6992004-08-13 Alan Modra <amodra@bigpond.net.au>
700
701 * ldmain.c (link_callbacks): Remove "error_handler".
702 * ldmisc.c: Include elf-bfd.h.
703 (vfinfo): Sort comment. Handle %A. Use %A instead of
704 bfd_get_section_indent.
705 (error_handler): Delete.
706 * ldmisc.h (error_handler): Delete declaration.
707
99877b66
AM
7082004-08-10 Alan Modra <amodra@bigpond.net.au>
709
710 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
711 ppc64_elf_restore_symbols.
712
40e45c8b
AM
7132004-08-09 Alan Modra <amodra@bigpond.net.au>
714
715 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
716 .toc is too large on relocatable linking.
717
ccfa59ea
AM
7182004-08-09 Alan Modra <amodra@bigpond.net.au>
719
720 * emultempl/ppc64elf.em (ppc_after_open): Delete.
721 (LDEMUL_AFTER_OPEN): Don't define.
722
93fd0973
SC
7232004-08-02 Stephane Carrez <stcarrez@nerim.fr>
724
725 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
726
f1b123db
SC
7272004-08-01 Stephane Carrez <stcarrez@nerim.fr>
728
729 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
730 on power of 2.
731
e7fbc2bf
JT
7322004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
733
734 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
735
c05e9f04
NC
7362004-07-26 Dmitry Diky <diwil@spec.ru>
737
738 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
739 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
740 msp430xG439.
741 * configure.tgt: Likewise.
742 * emulparams/msp430all.sh: Likewise.
743 * Makefile.in: Regenerate.
744
9f61903d
NC
7452004-07-23 Nick Clifton <nickc@redhat.com>
746
747 * emultempl/elf32.em (_place_orphan): Use an already existing
748 section name if that section does not have any flags set.
749
082b7297
L
7502004-07-21 H.J. Lu <hongjiu.lu@intel.com>
751
752 * ldlang.c (already_linked_hash_entry): Removed.
753 (already_linked): Likewise.
754 (already_linked_table): Likewise.
755 (section_already_linked): Call bfd_section_already_linked.
756 (lang_process): Replace already_linked_table_init with
757 bfd_section_already_linked_table_init and check return. Replace
758 already_linked_table_free with bfd_section_already_linked_table_free.
759
76d7af2d
NC
7602004-07-21 Nick Clifton <nickc@redhat.com>
761
762 * ldlang.c (init_os): Make sure that the newly allocated userdata
763 structure is zeroed out.
764
14b3c463
L
7652004-07-19 H.J. Lu <hongjiu.lu@intel.com>
766
767 * NEWS: Mention the new --add-needed/--no-add-needed and
768 --as-needed/--no-as-needed options.
769
e56f61be
L
7702004-07-19 H.J. Lu <hongjiu.lu@intel.com>
771
772 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
773 check the add_needed field.
774 (dt_needed): New struct.
775 (gld${EMULATION_NAME}_try_needed): Change the first argument
776 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
777 bit in the file where the DT_NEEDED entry comes from.
778 (gld${EMULATION_NAME}_search_needed): Change the second
779 argument to a pointer to struct dt_needed.
780 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
781 (gld${EMULATION_NAME}_after_open): Likewise.
782
783 * ld.texinfo: Add --add-needed document.
784 * ldlang.c (new_afile): Set p->add_needed.
785 * ldlang.h (lang_input_statement_type): Add add_needed field.
786 * ldmain.h (add_needed): Declare.
787 * ldmain.c (add_needed): New global var.
788 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
789 OPTION_NO_ADD_NEEDED.
790 (ld_options): Likewise.
791 (parse_args): Handle them.
792
c99b8138
NC
7932004-07-13 Christof Petig <christof@petig-baender.de>
794
795 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
796 for endian-ness of extracted addend.
797
13ed4151
NC
7982004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
799
800 * pe-dll.c (auto_export): Filter on just the import prefix,
801 "_imp_", not "_imp__".
802
1a320fbb
NC
8032004-07-09 Nick Clifton <nickc@redhat.com>
804
805 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
806
1fe1f39c
NC
8072004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
808
809 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
810 (eelf32crx.c): New target.
811 * Makefile.in: Regenerate.
812 * configure.tgt: Handle crx-*-elf*.
813 * emulparams/elf32crx.sh: New file.
814 * emultempl/crxelf.em: New file.
815 * scripttempl/elf32crx.sc: New file.
816 * NEWS: Mention new target.
817
85fbca6a
NC
8182004-07-06 Nick Clifton <nickc@redhat.com>
819
820 * Makefile.am: Add eshlsymbian.c.
821 * Makefile.in: Regenerate.
822 * configure.tgt: Add sh*-symbian-elf target.
823 * emulparams/shlsymbian.sh: New file. Configure the
824 sh-symbian-elf linker scripts.
825 * scripttemp/elf32sh-symbian.sc: New file. Linker script
826 template for the sh-symbian-elf target.
827
b71a5181
DA
8282004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
829
830 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
831 * emulparams/hppalinux.sh: Likewise.
832 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
833 data segment and PLT_BEFORE_GOT is defined.
834
c87db184
CF
8352004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
836
837 * ld.texinfo (WIN32): Document PE weak symbols.
838
f6a8ae81
KK
8392004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
840
841 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
842
b602c853
L
8432004-07-01 H.J. Lu <hongjiu.lu@intel.com>
844
845 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
846 the section.
847
1a23a9e6
AM
8482004-06-29 Alan Modra <amodra@bigpond.net.au>
849
850 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
851 size in rawsize.
852
eea6121a
AM
8532004-06-24 Alan Modra <amodra@bigpond.net.au>
854
855 * ldlang.c (print_output_section_statement): Don't print size before
856 relaxation.
857 (IGNORE_SECTION): Remove bfd arg. Update all callers.
858
859 * ldexp.c (fold_name): .. See below.
860 * ldlang.c (section_already_linked, print_output_section_statement,
861 print_input_section, insert_pad, size_input_section,
862 lang_check_section_addresses, lang_size_sections_1,
863 lang_size_sections, lang_do_assignments_1, lang_set_startof,
864 lang_one_common, lang_reset_memory_regions, lang_process,
865 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
866 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
867 * pe-dll.c (process_def_file, generate_reloc): ..
868 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
869 gld${EMULATION_NAME}_before_allocation): ..
870 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
871 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
872 sh64_elf_${EMULATION_NAME}_after_allocation): ..
873 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
874 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
875 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
876 "size" instead of "_raw_size" and "_cooked_size". Expand
877 bfd_section_size macro invocations.
878
552f8272
CF
8792004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
880
881 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
882 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
883 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
884 ___crt_xt_end__.
885 (.tls): Define ___tls_start__ and ___tls_end__.
886
aee6f5b4
AO
8872004-06-21 Alexandre Oliva <aoliva@redhat.com>
888
889 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
890
eea6121a 8912004-06-18 Adam Nemet <anemet@lnxw.com>
f234d5fe 892
eea6121a
AM
893 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
894 * configure: Regenerate.
f234d5fe 895
dfff4fbe
JJ
8962004-06-15 Jakub Jelinek <jakub@redhat.com>
897
898 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
899 .gcc_except_table output sections lost accidentally with
900 -z relro patch.
901
a9e0c0c6
AM
9022004-06-15 Alan Modra <amodra@bigpond.net.au>
903
904 * ldwrite.c (build_link_order): Use bfd_get_section_size
905 instead of bfd_get_section_size_before_reloc or _raw_size.
906 * pe-dll.c (process_def_file): Likewise.
907
7115639b
AM
9082004-06-14 Alan Modra <amodra@bigpond.net.au>
909
910 From Richard Wirth <r.wirth@wirthware.de>
911 * ldlang.c (lang_finish): Don't free lang_definedness_table.
912
9ca57817
AM
9132004-05-29 Alan Modra <amodra@bigpond.net.au>
914
915 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
916 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
917
f6f9408f
JR
9182004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
919
920 * testsuite/ld-sh/arch/arch.exp: New test script.
921 * testsuite/ld-sh/arch/arch_expected.txt: New file.
922 * testsuite/ld-sh/arch/sh.s: New file.
923 * testsuite/ld-sh/arch/sh2.s: New file.
924 * testsuite/ld-sh/arch/sh-dsp.s: New file.
925 * testsuite/ld-sh/arch/sh2e.s: New file.
926 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
927 * testsuite/ld-sh/arch/sh3.s: New file.
928 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
929 * testsuite/ld-sh/arch/sh3e.s: New file.
930 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
931 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
932 * testsuite/ld-sh/arch/sh4.s: New file.
933 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
934 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
935 * testsuite/ld-sh/arch/sh4a.s: New file.
936
164e712d
AM
9372004-05-28 Alan Modra <amodra@bigpond.net.au>
938
6feb9908
AM
939 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
940 throughout file.
941 * lexsup.c: Formatting. Wrap long lines.
942 * ldwrite.c: Update copyright date.
943
164e712d
AM
944 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
945 (output_section_callback): Nor SEC_KEEP here.
946 (gc_section_callback): Twiddle SEC_EXCLUDE here.
947 (lang_gc_wild): Delete. Fold into..
948 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
949 collecting.
950 (lang_process): Always call lang_gc_sections.
951 (lang_place_orphans): Handle SEC_EXCLUDE sections.
952 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
953 SEC_EXCLUDE code.
954
b3096250
L
9552004-05-26 H.J. Lu <hongjiu.lu@intel.com>
956
957 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
958 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
959 * ldlang.c (lang_add_section): Likewise.
960
e49f5022
AM
9612004-05-26 Alan Modra <amodra@bigpond.net.au>
962
963 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
964 sections when doing a final link. Clear SEC_EXCLUDE when doing
965 a relocable link, except for SEC_DEBUGGING sections.
966 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
967 same condition here to drop SEC_EXCLUDE orphan sections.
968
57ceae94
AM
9692004-05-25 Alan Modra <amodra@bigpond.net.au>
970
971 * ldlang.c (lang_process): Call bfd_merge_sections later, and
972 only when not a relocatable link.
973 (print_input_section): Handle SEC_EXCLUDE sections.
974 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
975 (lang_do_assignments_1): Likewise.
976 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
977 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
978 * emultempl/hppaelf.em (build_section_lists): Likewise.
979 * emultempl/ppc64elf.em (build_toc_list): Likewise.
980 (build_section_lists): Likewise.
981
a85785bc
AS
9822004-05-23 Andreas Schwab <schwab@suse.de>
983
984 * ld.texinfo (Options): Fix typo in last change.
985
2d643429
NC
9862004-05-21 Andy Chittenden <achittenden@bluearc.com>
987
988 * ld.h (ld_config_type): Add new field: hash_table_size.
989 * ldmain.c: Initialise the new field to zero. If it is non-zero
990 after parsing the linker's command line call
991 bfd_hash_set_default_size.
992 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
993 (ld_options): Add hash-size.
994 (parse_args): Parse --hash-size option. Allow
995 --reduce-memory-overheads to set the default hash table size as
996 well.
997 * ld.texinfo: Document the new switch. Also mention that
998 --reduce-memory-overheads can affect the hash table size.
999 * NEWS: Mention the new feature.
1000
35835446
JR
10012004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1002
1003 * NEWS: Mention new linker map file generation and the
1004 --reduce-memory-overheads option.
1005 * ld.texinfo: Document --reduce-memory-overheads option.
1006 * ld.h (map_symbol_def): New struct.
1007 (struct user_section_struct, section_userdata_type): Rename to:
1008 (struct lean_user_section_struct, lean_section_userdata_type).
1009 (struct fat_user_section_struct, fat_section_userdata_type): New.
1010 (SECTION_USERDATA_SIZE): Define.
1011 (args_type): New member reduce_memory_overheads.
1012 * ldlang.c (map_obstack): New static variable.
1013 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1014 (lang_map): Unless command_line.reduce_memory_overheads is set,
1015 initialize lists of defined symbols for each section.
1016 (print_input_section): Unless command_line.reduce_memory_overheads
1017 is set, use print_all_symbols.
1018 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1019 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1020 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1021 (ld_options): Add entry for --reduce-memory-overheads.
1022 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1023
0841712e
JJ
10242004-05-19 Jakub Jelinek <jakub@redhat.com>
1025
1026 * ldgram.y (sect_constraint): New.
1027 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1028 (section): Add sect_constraint. Pass additional argument
1029 to lang_enter_output_section_statement.
1030 * mri.c (mri_draw_tree): Pass additional argument to
1031 lang_enter_output_section_statement.
1032 * emultempl/pe.em (place_orphan): Likewise.
1033 (output_prev_sec_find): Disregard output section statements with
1034 constraint == -1.
1035 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1036 (mmo_place_orphan): Pass additional argument to
1037 lang_enter_output_section_statement.
1038 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1039 statements with constraint == -1.
1040 (place_orphan): Pass additional argument to
1041 lang_enter_output_section_statement.
1042 * ldlang.c (lang_enter_overlay_section): Likewise.
1043 (lang_output_section_find_1): New.
1044 (lang_output_section_find): Use it.
1045 (lang_output_section_statement_lookup_1): New.
1046 (lang_output_section_statement_lookup): Use it.
1047 (check_section_callback, check_input_sections): New.
1048 (map_input_to_output_sections): Check if all input sections
1049 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1050 (strip_excluded_output_sections): Disregard output section statements
1051 with constraint == -1.
1052 (lang_record_phdrs): Likewise.
1053 (lang_enter_output_section_statement): Add constraint argument.
1054 Use lang_output_section_statement_lookup_1.
1055 * ldlang.h (lang_output_section_statement_type): Add constraint
1056 and all_input_readonly fields.
1057 (lang_enter_output_section_statement): Adjust prototype.
1058 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1059 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1060 segment if all input sections are readonly.
1061
eea6121a 10622004-05-19 Adam Nemet <anemet@lnxw.com>
f2c50328
NC
1063
1064 * scripttempl/i386lynx.sc: Remove file.
1065
2a16d82a
BW
10662004-05-17 Bob Wilson <bob.wilson@acm.org>
1067
1068 * ld.texinfo (Output Section Address): Correct subsection name.
1069
eea6121a 10702004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
1071
1072 * configure.tgt (powerpc-*-lynxos* case): New case.
1073 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1074 * emulparams/ppclynx.sh: New file.
1075 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1076 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1077 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1078 (eppclynx.c): New rule.
1079 * Makefile.in: Regenerate.
1080
4b363073
NC
10812004-05-13 Joel Sherrill <joel@oarcorp.com>
1082
1083 * configure.tgt (or32-*-rtems*): Switch to elf and
1084 support versioned targets.
1085
9598fbe5
NC
10862004-05-13 Nick Clifton <nickc@redhat.com>
1087
1088 * po/fr.po: Updated French translation.
1089
8c37241b
JJ
10902004-05-11 Jakub Jelinek <jakub@redhat.com>
1091
1092 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1093 for binaries, -shared and -pie.
1094 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1095 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1096 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1097 (OTHER_RELRO_SECTIONS): ... this.
1098 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1099 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1100 -z relro and -z norelro.
1101 (gld${EMULATION_NAME}_list_options): Add it to usage.
1102 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1103 -z relro scripts when appropriate.
1104 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1105 Create separate .got.plt section if SEPARATE_GOTPLT.
1106 Move sections which are only written during relocation handling
1107 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1108 before .data. Add DATA_SEGMENT_RELRO_END directive.
1109 Include OTHER_RELRO_SECTIONS.
1110 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1111 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1112 (fold_unary): Likewise.
1113 (fold_binary): Handle -z relro.
1114 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1115 exp_dataseg_relro_adjust phases. Add relro_end field.
1116 * ldmain.c (main): Initialize link_info.relro to FALSE.
1117 * ldlang.c (lang_size_sections): Handle -z relro.
1118
e21059f2
MM
11192004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1120
1121 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1122
5f9b8920
JR
11232004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1124
1125 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1126 before printing it with %W.
1127
26d2d8a2 11282004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 1129 DJ Delorie <dj@redhat.com>
26d2d8a2
BF
1130
1131 * emultempl/pe.em (real_flags): New static.
1132 (OPTION_LARGE_ADDRESS_AWARE): New define.
1133 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1134 (gld_${EMULATION_NAME}_list_options): Likewise.
1135 (gld${EMULATION_NAME}_handle_option): Likewise.
1136 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1137 * ld.texinfo: Document it.
1138 * NEWS: Mention it.
1139
1b169501
BF
11402004-05-07 Brian Ford <ford@vss.fsi.com>
1141
1142 * NEWS: Mention DWARF 2 support for i386pe.
1143
41cf0c62
AO
11442004-05-05 Alexandre Oliva <aoliva@redhat.com>
1145
1146 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1147 elf32-frvfdpic.
1148
d0d6a25b
AM
11492004-04-30 Alan Modra <amodra@bigpond.net.au>
1150
1151 * ldlang.c (unique_section_p): Pass section parm, return true on
1152 group sections.
1153 (output_section_callback): Adjust.
1154 * ldlang.h (unique_section_p): Update prototype.
1155 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1156
755306be
EB
11572004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1158
eea6121a 1159 * ld.texinfo (--gc-sections): Remove restriction for
755306be
EB
1160 dynamic linking.
1161
8a7140c3
NC
11622004-04-29 Brian Ford <ford@vss.fsi.com>
1163
1164 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1165 for DWARF 2/3. Update stab section's syntax.
1166
2f9636ba
AM
11672004-04-29 Alan Modra <amodra@bigpond.net.au>
1168
1169 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1170 (fill_edata): Correct pointer arithmetic.
1171
23867d67
CD
11722004-04-21 Chris Demetriou <cgd@broadcom.com>
1173
1174 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1175 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1176 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1177 (EXTRA_EM_FILE): Use mipsecoff.em
1178 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1179 (EXTRA_EM_FILE): Use mipsecoff.em
1180 * emultempl/mipsecoff.em: Restructure to be included as an
1181 extra emulation file.
1182 (check_sections, gld${EMULATION_NAME}_after_open)
1183 (gld${EMULATION_NAME}_after_allocation)
1184 (gld${EMULATION_NAME}_get_script)
1185 (ld_${EMULATION_NAME}_emulation): Remove
1186 (gld${EMULATION_NAME}_before_parse): Rename to...
1187 (mipsecoff_before_parse): This.
1188 (LDEMUL_BEFORE_PARSE): Define.
1189 * emultempl/mipself.em: Remove file.
1190 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1191 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1192 these symbols.
1193 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1194 * Makefile.in: Regenerate.
1195
1502569c
NC
11962004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1197
1198 * ld.texinfo (synthesizing on H8/300): Information about linker
1199 relaxation support for bit manipulation instructions and system
1200 control instructions is added.
1201
c894ddfb
HPN
12022004-04-21 Hans-Peter Nilsson <hp@axis.com>
1203
1204 * NEWS: Mention change in DEFINED semantics.
1205
a85bf78e
EB
12062004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1207
1208 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1209 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1210 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1211
58434bc1
BE
12122004-04-21 Ben Elliston <bje@au.ibm.com>
1213
1214 * ld.texinfo (Simple Example): Add missing punctuation.
1215
7a7f4e42
CD
12162004-04-20 Chris Demetriou <cgd@broadcom.com>
1217
1218 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1219
3737f867
JJ
12202004-04-19 Jakub Jelinek <jakub@redhat.com>
1221
1222 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1223 specially.
1224
3c17e4f7
DS
12252004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1226
1227 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1228 with default priority. Likewise for dtors.
1229
279500de
TS
12302004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1231
1232 * configure.host: Remove mips*-dec-bsd* target.
1233 * configure.tgt: Likewise.
1234
52f89c0a
RS
12352004-04-08 Richard Sandiford <rsandifo@redhat.com>
1236
1237 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1238 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1239 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1240 * emultempl/irix.em: New file.
1241 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1242 dependencies.
1243 * Makefile.in: Regenerate.
1244
e489d0ae
PB
12452004-04-01 Paul Brook <paul@codesourcery.com>
1246
1247 * emultempl/armelf.em (byteswap_code): Add.
1248 (arm_elf_before_allocation): Pass extra parameter.
1249 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1250 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1251 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1252 * emultempl/armelf_oabi.em: Pass extra parameter.
1253 * ld.texinfo: Document --be8.
1254
7cc8057a
SS
12552004-03-30 Stan Shebs <shebs@apple.com>
1256
1257 Remove long-obsolete MPW support.
1258 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1259 * Makefile.am (mpw): Remove file-presynthesizing actions.
1260 * Makefile.in: Likewise.
1261 * ldfile.c (slash): Remove MPW case.
1262 * ldlex.l [MPW]: Remove unused definition.
1263
0949843d
NC
12642004-03-30 Galit Heller <Galit.Heller@nsc.com>
1265
1266 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1267 (eelf32cr16c.c): New target.
1268 * Makefile.in: Regenerate.
1269 * configure.tgt: Handle cr16c-*-elf*.
1270 * emulparams/elf32cr16c.sh: New file.
1271 * scripttempl/elfcr16c.sc: Likewise
1272 * NEWS: Mention support for new target.
1273
0a159ef8
NC
12742004-03-30 Nick Clifton <nickc@redhat.com>
1275
1276 * po/sv.po: Updated Swedish translation.
1277
7a945db6
AM
12782004-03-27 Alan Modra <amodra@bigpond.net.au>
1279
1280 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1281 * emultempl/hppaelf.em: Likewise.
1282 * emultempl/ppc64elf.em: Likewise.
1283 * emultempl/sh64elf.em: Likewise.
1284
5a580b3a
AM
12852004-03-25 Alan Modra <amodra@bigpond.net.au>
1286
1287 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1288 size_dynamic_sections call.
1289
b9cf773d
AM
12902004-03-23 Alan Modra <amodra@bigpond.net.au>
1291
1292 PR 51.
1293 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1294 link_info.wrap_char.
1295
59c2e50f
L
12962004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1297
1298 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1299 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1300
44349745
AO
13012004-03-20 Alexandre Oliva <aoliva@redhat.com>
1302
1303 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1304
81359a70
AM
13052004-03-19 Alan Modra <amodra@bigpond.net.au>
1306
1307 * config.in: Regenerate.
1308 * po/ld.pot: Regenerate.
1309
4a43e768
AM
13102004-03-18 Alan Modra <amodra@bigpond.net.au>
1311
1312 * ld.texinfo: Add --as-needed doco.
1313 * ldmain.c (as_needed): New global var.
1314 * ldmain.h (as_needed): Declare.
1315 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1316 OPTION_NO_AS_NEEDED.
1317 (ld_options): Likewise.
1318 (parse_args): Handle them.
1319 * ldlang.h (lang_input_statement_type): Add as_needed field.
1320 * ldlang.c (new_afile): Set p->as_needed.
1321 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1322 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1323 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1324
1325 * ldlang.c (open_input_bfds): Remove useless cast.
1326 (lang_do_assignments_1): Likewise.
1327 (lang_for_each_input_section): Delete.
1328
9183ed4b
AM
13292004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1330
1331 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1332
ee31fbd0
NC
13332004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1334
1335 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1336 private when building implib.
1337
e5caec89
NS
13382004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1339
1340 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1341 SEC_THREAD_LOCAL.
1342 (IGNORE_SECTION): Ignore .tbss sections too.
1343 (lang_size_sections_1): .tbss sections do not advance dot.
1344
cc2f008e
AS
13452004-03-01 Andreas Schwab <schwab@suse.de>
1346
1347 * ld.texinfo (Options): Fix example for --wrap.
1348
f5a95868
DS
13492004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1350
1351 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1352 not NULL.
1353
177b729b
ILT
13542004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1355
1356 * ldlang.c (lang_check): Use %P, not %E, in error message.
1357
1b493742
NS
13582004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1359
1360 * ldlang.h (struct lang_output_section_state): Change processed
1361 field's type.
1362 * ldexp.c (check, invalid): Remove.
1363 (fold_name): Move valid_p assignments. Create undefined symbol
1364 when needed. Directly exampine section's processd flag.
1365 * ldlang.c (lang_output_section_statement_lookup): Adjust
1366 processed field init.
1367 (lang_size_sections_1): Allow LOADADDR when determining section's
1368 VMA. Adjust error message. Fold data statement's expr.
1369 (lang_size_sections): Correctly increment lang_statement_iteration.
1370
13712004-02-23 Alan Modra <amodra@bigpond.net.au>
1372
1373 * ldexp.c (fold_tree): Follow indirect symbols.
b9cf773d 1374
876f4090
NS
13752004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1376
1377 * ldgram.y (exp): Add two operand ALIGN.
1378 * ldexp.c (fold_binary): Add ALIGN_K case.
1379 * ld.texinfo (ALIGN): Document two operand version.
1380
384d938f
NS
13812004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1382
1383 * ldlang.c (map_input_to_output_sections): Initialize sections
1384 mentioned in a data statement expression.
1385 (lang_do_assignments_1): Add data statement's expression's
1386 section's vma.
1387
b6ca8815
NS
13882004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1389
1390 * ldgram.y (statement_anywhere): Add assert rule.
1391 * ldlang.c (exp_init_os): Add assert case.
1392
c92c35e7
AC
13932004-02-14 Andrew Cagney <cagney@redhat.com>
1394
1395 * ldmain.c (remove_output): Call bfd_cache_close.
1396
9bf78c99
RS
13972004-02-14 Richard Sandiford <rsandifo@redhat.com>
1398
1399 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1400 .MIPS.content* and .MIPS.events* sections.
1401
f3806916
DJ
14022004-02-09 Daniel Jacobowitz <drow@mvista.com>
1403
1404 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1405 .note.gnu.arm.ident to after allocated sections. Mark its
1406 address as 0.
1407
4c8e70d7
DJ
14082004-02-09 Daniel Jacobowitz <drow@mvista.com>
1409
1410 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1411 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1412 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1413 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1414 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1415
ff71f4f7
NC
14162004-02-05 Nick Clifton <nickc@redhat.com>
1417
1418 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1419
07a68a80
NC
14202004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1421
1422 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1423
1dd3bf68
AM
14242004-01-28 Alan Modra <amodra@bigpond.net.au>
1425
586196d5
AM
1426 * genscripts.sh: Fix typo.
1427
1dd3bf68
AM
1428 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1429
13d9421f
JJ
14302004-01-24 Jakub Jelinek <jakub@redhat.com>
1431
1432 * emulparams/elf64_ia64.sh: Put .rela.opd into
1433 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1434
4d8907ac
DS
14352004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1436
1437 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1438 * ld.texinfo (--omagic): Note that writable text section
1439 does not conform to published PE-COFF specs.
1440 (--enable-auto-import): Likewise.
1441
e5c60db5
AM
14422004-01-15 Alan Modra <amodra@bigpond.net.au>
1443
1444 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1445
6bdafbeb
NC
14462004-01-13 Nick Clifton <nickc@redhat.com>
1447
1448 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1449 which if true will prevent the LMA region being used as a
1450 replacement for a default VMA region.
586196d5
AM
1451 (lang_leave_output_section_statement): Pass extra parameter.
1452 (lang_leave_overlay): Likewise.
1453 * ld.texinfo (Output Section LMA): Document that the LMA
6bdafbeb
NC
1454 region can be set to the VMA region if no VMA has been set.
1455 * ldlang.h (struct lang_output_section_phdr_list): Create a
1456 typedef for this type. Minor formatting fixes.
586196d5 1457
9dfc8ab2
NC
14582004-01-13 Nick Clifton <nickc@redhat.com>
1459
1460 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1461 assume that the section should be allocated.
1462
8325c4dd
AM
14632004-01-13 Alan Modra <amodra@bigpond.net.au>
1464
1465 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1466 sections. Do ignore SEC_NEVER_LOAD sections.
1467 (lang_size_sections_1): Remove test made redundant with the above.
1468
83490352
AM
14692004-01-09 Alan Modra <amodra@bigpond.net.au>
1470
1471 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1472 program_header_size.
1473
005e1118
AO
14742004-01-06 Alexandre Oliva <aoliva@redhat.com>
1475
1476 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1477 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1478 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1479 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1480 (MAXPAGESIZE): Set to 64Kb.
1481 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1482 __ROFIXUP_END__. Don't map .rofixup.got any more.
1483 * emulparams/elf32frv.sh (NOP): Set.
1484 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1485 * configure.tgt: Add frv-*-*linux*.
1486 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1487 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1488 (eelf32frvfd.c): New.
1489 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1490 * emulparams/elf32frv.sh: Reverted previous two patches.
1491 * emulparams/elf32frvfd.sh: New.
1492 * Makefile.in: Rebuilt.
1493 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1494 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1495 .rofixup.got to .rofixup.
1496 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1497 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1498 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1499
060feee5
JJ
15002004-01-05 Jakub Jelinek <jakub@redhat.com>
1501
1502 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1503 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1504
5e2f1575
AM
15052004-01-03 Alan Modra <amodra@bigpond.net.au>
1506
e5caa5e0
AM
1507 * ldexp.c (align_n): Make static.
1508 * ldexp.h (align_n): Delete declaration.
1509 * ldlang.h (lang_enter_output_section_statement): Remove
1510 block_value param.
1511 * ldlang.c (lang_enter_output_section_statement): Likewise.
1512 (TO_ADDR, TO_SIZE): Define.
c2df3ea5 1513 (opb_shift): New var.
e5caa5e0
AM
1514 (init_opb): New function.
1515 (print_input_section): Call init_opb and use TO_ADDR.
1516 (print_data_statement, print_reloc_statement): Likewise.
1517 (print_padding_statement): Likewise.
c2df3ea5 1518 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
e5caa5e0
AM
1519 (lang_check_section_addresses): Likewise.
1520 (lang_size_sections_1): Likewise.
1521 (lang_do_assignments_1): Likewise.
1522 (lang_set_startof): Likewise.
c2df3ea5 1523 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
e5caa5e0 1524 (lang_process): Call init_opb.
c2df3ea5 1525 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
e5caa5e0
AM
1526 (lang_enter_overlay_section): Adjust
1527 lang_enter_output_section_statement call.
1528 * ldgram.y: Likewise.
1529 * mri.c (mri_draw_tree): Likewise.
1530 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1531 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1532 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1533
5e2f1575
AM
1534 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1535 * ldfile.h (ldfile_set_output_arch): Ditto.
1536 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1537 ldfile_set_output_arch.
1538 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1539 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1540 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1541 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1542 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1543 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1544 * ldgram.y: Adjust ldfile_set_output_arch call.
1545 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1546 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1547 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1548 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1549 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1550 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1551 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1552
b50c15dc
NC
15532004-01-02 Bernardo Innocenti <bernie@develer.com>
1554
1555 * configure.tgt: Add m68k-uClinux target.
6edf0760 1556
c9e214e5 1557For older changes see ChangeLog-0203
252b5132
RH
1558\f
1559Local Variables:
1560mode: change-log
1561left-margin: 8
1562fill-column: 74
1563version-control: never
1564End:
This page took 0.387671 seconds and 4 git commands to generate.