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