Honour DESTDIR
[deliverable/binutils-gdb.git] / ld / ChangeLog
... / ...
CommitLineData
12002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2
3 * Makefile.am: Honour DESTDIR.
4 * Makefile.in: Regenerate.
5
62002-05-07 Richard Sandiford <rsandifo@redhat.com>
7
8 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
9 (lang_enter_overlay): Remove the last two parameters.
10 (lang_leave_overlay): Take them here instead.
11 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
12 (section): Pass LMA and crossref flag to lang_leave_overlay rather
13 than lang_enter_overlay.
14 * ldlang.c (lang_memory_region_lookup): Return null for null names.
15 (lang_output_section_statement_lookup): Initialize update_dot_tree.
16 (lang_size_sections_1): Evaluate it.
17 (lang_leave_output_section_statement): Rework LMA lookup.
18 (overlay_lma, overlay_nocrossrefs): Remove.
19 (lang_enter_overlay): Remove LMA and corssref arguments.
20 (lang_enter_overlay_section): Don't set the LMA here.
21 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
22 assignment to the last section's update_dot_tree. Unconditionally
23 use the load and run-time regions specified in the OVERLAY statement.
24 Likewise the first section's LMA. Only set the other sections' LMAs
25 when no load region is given.
26
272002-05-06 Nick Clifton <nickc@redhat.com>
28
29 * po/sv.po: New translation.
30
312002-05-04 Alan Modra <amodra@bigpond.net.au>
32
33 * emultempl/hppaelf.em (build_section_lists): New function.
34 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
35 and build_section_lists.
36
372002-05-03 Kazu Hirata <kazu@cs.umass.edu>
38
39 * ld.h: Fix formatting.
40 * ldexp.c: Likewise.
41 * ldfile.c: Likewise.
42 * ldlang.c: Likewise.
43 * ldmain.c: Likewise.
44 * lexsup.c: Likewise.
45 * pe-dll.c: Likewise.
46
472002-05-02 Alan Modra <amodra@bigpond.net.au>
48
49 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
50 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
51 (build_section_lists): Do output_section tests here.
52
532002-04-30 Tom Rix <trix@redhat.com>
54
55 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
56
572002-05-01 Alan Modra <amodra@bigpond.net.au>
58
59 Long branch stubs, multiple stub sections.
60 * emultempl/ppc64elf.em: Include ldctor.h.
61 (stub_file): New var.
62 (group_size): New var.
63 (ppc_create_output_section_statements): New function.
64 (struct hook_stub_info): New.
65 (hook_in_stub): New function.
66 (ppc_add_stub_section): New function.
67 (ppc_layout_sections_again): New function.
68 (build_section_lists): New function.
69 (gld${EMULATION_NAME}_finish): Rewrite.
70 (real_func): New var.
71 (ppc_for_each_input_file_wrapper): New function.
72 (ppc_lang_for_each_input_file): New function.
73 (lang_for_each_input_file): Define.
74 (PARSE_AND_LIST_PROLOGUE): Define.
75 (PARSE_AND_LIST_LONGOPTS): Define.
76 (PARSE_AND_LIST_OPTIONS): Define.
77 (PARSE_AND_LIST_ARGS_CASES): Define.
78 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
79
802002-04-30 Tom Rix <trix@redhat.com>
81
82 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
83 -blibpath, -bnolibpath support.
84
852002-04-30 Mark Mitchell <mark@codesourcery.com>
86
87 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
88 (eelf32ppcwindiss.c): New target.
89 * Makefile.in: Regenerated.
90 * configure.tgt: Add support for powerpc-*-windiss.
91 * emulparams/elf32ppcwindiss.sh: New file.
92
932002-04-30 Richard Sandiford <rsandifo@redhat.com>
94
95 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
96 * ldexp.c (exp_print_token): Add "infix_p" argument.
97 (exp_print_tree): Update accordingly.
98
992002-04-28 Alan Modra <amodra@bigpond.net.au>
100
101 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
102 * Makefile.in: Regenerate.
103 * mpw-elfmips.c: Delete.
104 * mpw-eppcmac.c: Delete.
105 * mpw-esh.c: Delete.
106 * mpw-idtmips.c: Delete.
107
108Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
109
110 * emulparams/shelf32.sh (MACHINE): Now sh5.
111
1122002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
113
114 * ldgram.y: Fix syntax warning.
115
1162002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
117
118 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
119 to prevent "-n" from being taken as an abbreviation for
120 "--no-pipeline-knowledge".
121
1222002-04-08 Alan Modra <amodra@bigpond.net.au>
123
124 * ldlang.c (lang_size_sections_1): Don't complain about
125 SEC_NEVER_LOAD sections having no memory region specified.
126
127 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
128
1292002-04-07 matthew green <mrg@redhat.com>
130
131 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
132
1332002-04-04 Alan Modra <amodra@bigpond.net.au>
134
135 * dep-in.sed: Cope with absolute paths.
136 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
137 Run "make dep-am".
138 * Makefile.in: Regenerate.
139
1402002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
141
142 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
143
1442002-04-03 Jakub Jelinek <jakub@redhat.com>
145
146 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
147 is smaller than maximum, round dot up to common page boundary.
148
1492002-03-28 Alan Modra <amodra@bigpond.net.au>
150
151 * configure.host: Set up for generic hosts first, then tweak as
152 necessary in more specific targets.
153 (HOSTING_LIBS): Include libgcc_eh.a if found.
154
1552002-03-23 Andreas Jaeger <aj@suse.de>
156
157 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
158
1592002-03-21 Alan Modra <amodra@bigpond.net.au>
160
161 * Makefile.am: Run "make dep-am".
162 * Makefile.in: Regenerate.
163
1642002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
165
166 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
167
1682002-03-20 Alan Modra <amodra@bigpond.net.au>
169
170 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
171 add the symbol to the linker hash table immediately.
172 (lang_place_undefineds): Split symbol creation out..
173 (insert_undefined): ..to here.
174
1752002-03-18 David O'Brien <obrien@FreeBSD.org>
176
177 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
178 the contents of the buffer returned from basename function will are
179 getting overwritten while still being used.
180
181Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
182 Andreas Jaeger <aj@suse.de>
183 Andreas Schwab <schwab@suse.de>
184
185 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
186 * elf_x86_64.sh (ARCH): Set to i386:x86-64
187 set libraries to default to lib64 paths.
188
1892002-03-18 Tom Rix <trix@redhat.com>
190
191 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
192 * configure.tgt : Same.
193 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
194 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
195 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
196 emulation parameters for better -b32, -b64 support.
197 * emulparms/aixrs6.sh : Same.
198 * emulparms/ppcmacos.sh : Same.
199 * emultempl/aix.em (choose_target) : Use new emulation parameters
200 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
201 * Makefile.in : Regenerate.
202
2032002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
204
205 * po/fr.po: Updated version.
206
2072002-03-18 Alan Modra <amodra@bigpond.net.au>
208
209 * ldmain.c (main): Move .text readonly flag fudges from here..
210 * ldlang.c (lang_process): ..to here.
211
2122002-03-14 Alan Modra <amodra@bigpond.net.au>
213
214 * ldlang.c (lang_check): Remove the word size check added in last
215 change. Treat emitrelocations case as for relocatable links.
216
2172002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
218
219 * po/fr.po: Updated version.
220
2212002-03-13 Alan Modra <amodra@bigpond.net.au>
222
223 * ldlang.c (lang_check): Do relocatable link checks first, so that
224 warn_mismatch can't override. Check compatible and word size too.
225
2262002-03-07 Daniel Jacobowitz <drow@mvista.com>
227
228 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
229
2302002-03-05 Jakub Jelinek <jakub@redhat.com>
231
232 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
233 DATA_SEGMENT_ALIGN.
234
2352002-03-04 H.J. Lu <hjl@gnu.org>
236
237 * scripttempl/elf.sc: Put .preinit_array, .init_array and
238 .fini_array in the data segment.
239
2402002-03-04 Alan Modra <amodra@bigpond.net.au>
241
242 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
243
2442002-03-01 David Mosberger <davidm@hpl.hp.com>
245
246 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
247 .init_array, and .fini_array.
248
2492002-02-20 Andreas Schwab <schwab@suse.de>
250
251 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
252 .IA64_unwind* in a relocatable link.
253
2542002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
255
256 * NEWS: Mark 2.12 branch.
257
2582002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
259
260 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
261 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
262
2632002-02-18 Tom Rix <trix@redhat.com>
264
265 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
266 (gld*_before_allocation): Same.
267 (gld*_create_output_section_statements): Generate
268 __rtinit if run time linking. Add librtl.a to the link.
269 (gld*_read_file): Clean.
270
2712002-02-18 Alan Modra <amodra@bigpond.net.au>
272
273 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
274
2752002-02-18 David O'Brien <obrien@FreeBSD.org>
276
277 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
278 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
279 and eelf64alpha_fbsd.
280 * Makefile.in: Regenerate.
281 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
282 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
283 use a FreeBSD-specific emulation rather than the psABI one.
284 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
285 for all FreeBSD ELF systems.
286 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
287 emulation.
288 * emulparams/elf32ppc_fbsd.sh: Likewise.
289 * emulparams/elf64_ia64_fbsd.sh: Likewise.
290 * emulparams/elf64_sparc_fbsd.sh: Likewise.
291 * emulparams/elf64alpha_fbsd.sh: Likewise.
292 * emulparams/elf_i386_fbsd.sh: Likewise.
293 * emulparams/elf_x86_64_fbsd.sh: Likewise.
294
2952002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
296
297 * po/tr.po: Updated version.
298
2992002-02-18 Alan Modra <amodra@bigpond.net.au>
300
301 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
302 (FILL): Likewise.
303
3042002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
305
306 * emultempl/mmo.em (mmo_after_open): Don't call
307 _bfd_mmix_check_all_relocs when producing ELF output.
308
3092002-02-15 Richard Henderson <rth@redhat.com>
310
311 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
312 definition. Emit a unop+nop pair.
313
3142002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
315
316 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
317 for presence of .MMIX.reg_contents.linker_allocated before early
318 exit.
319
320 * NEWS: Mention support for MMIX.
321
3222002-02-15 Alan Modra <amodra@bigpond.net.au>
323
324 Support arbitrary length fill patterns.
325 * ld.texinfo (Output Section Fill): Describe fill expressions.
326 (FILL): Refer to the above.
327 * ldexp.h (etree_value_type): Add "str" field.
328 (union etree_union): Add "str" to "value" struct.
329 (exp_bigintop): Declare.
330 (exp_get_fill): Declare.
331 * ldexp.c: Include "safe-ctype.h".
332 (exp_intop): Set value.str to NULL.
333 (exp_bigintop): New function.
334 (new_rel): Pass in "str", and set new.str from it.
335 (new_rel_from_section): Set new.str to NULL.
336 (fold_name): Adjust calls to new_rel.
337 (exp_fold_tree): Likewise.
338 (exp_get_fill): New function.
339 * ldgram.y (struct big_int bigint, fill_type *fill): New.
340 (INT): Returns a "bigint". Adjust all code handling INTs.
341 (fill_opt): Returns a "fill".
342 (fill_exp): Split out of fill_opt, use for FILL.
343 * ldlang.h (struct _fill_type): New.
344 (fill_type): Move typedef to ldexp.h.
345 (lang_output_section_statement_type): "fill" is now a pointer.
346 (lang_fill_statement_type): Likewise.
347 (lang_padding_statement_type): Likewise.
348 (lang_add_fill): Now takes a "fill_type *" param.
349 (lang_leave_output_section_statement): Likewise.
350 (lang_do_assignments): Likewise.
351 (lang_size_sections): Likewise.
352 (lang_leave_overlay_section): Likewise.
353 (lang_leave_overlay): Likewise.
354 * ldlang.c: Include ldgram.h after ldexp.h.
355 (lang_output_section_statement_lookup): Adjust for fill_type change.
356 (print_fill_statement): Likewise.
357 (print_padding_statement): Likewise.
358 (insert_pad): Now takes a "fill_type *" arg.
359 (size_input_section): Likewise.
360 (lang_size_sections_1): Likewise.
361 (lang_size_sections): Likewise.
362 (lang_do_assignments): Likewise.
363 (lang_add_fill): Likewise.
364 (lang_leave_output_section_statement): Likewise.
365 (lang_leave_overlay_section): Likewise.
366 (lang_leave_overlay): Likewise.
367 Adjust all callers of the above function.
368 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
369 starting with "0X" as well as "0x". Return bigint.str for hex
370 numbers starting with "0x" or "0X", zero bigint.str otherwise.
371 Always use base 16 for numbers starting with "$".
372 * ldmain.c: Include ldgram.h after ldexp.h.
373 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
374 of bfd_fill_link_order.
375 * pe-dll.c: Adjust lang_do_assignments calls.
376 * emultempl/elf32.em: Likewise.
377 * emultempl/hppaelf.em: Likewise.
378 * emultempl/ppc64elf.em: Likewise.
379 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
380 lang_add_assignment call.
381 * emultempl/pe.em: Likewise.
382
3832002-02-14 Phil Edwards <pme@gcc.gnu.org>
384
385 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
386 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
387 the pattern in question is not a regexp.
388 * ldlang.c: Likewise.
389 * ldlang.h: Likewise.
390 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
391
3922002-02-12 Jakub Jelinek <jakub@redhat.com>
393
394 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
395 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
396 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
397 * ldexp.c (exp_data_seg): New variable.
398 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
399 (fold_binary): Handle DATA_SEGMENT_ALIGN.
400 (exp_fold_tree): Handle DATA_SEGMENT_END.
401 Pass allocation_done when recursing instead of hardcoding
402 lang_allocating_phase_enum.
403 * ldexp.h (exp_data_seg): New.
404 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
405 (lang_size_sections): New.
406 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
407 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
408 if COMMONPAGESIZE is defined.
409 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
410 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
411 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
412 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
413 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
414 libraries only.
415
4162002-02-11 Alan Modra <amodra@bigpond.net.au>
417
418 * Makefile.in: Regenerate.
419
4202002-02-10 Daniel Jacobowitz <drow@mvista.com>
421
422 * lexsup.c: Remove strtoul declaration.
423
4242002-02-10 Daniel Jacobowitz <drow@mvista.com>
425
426 * ldmain.c: Add prototype for main ().
427 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
428 * emultempl/lnk960.em (lnk960_choose_target): Function should
429 take two arguments.
430
4312002-02-10 Alan Modra <amodra@bigpond.net.au>
432
433 * ldlang.c (entry_section): New initialised variable.
434 (lang_finish): Use it.
435 * ldlang.h (entry_section): Declare.
436 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
437 entry_section to ".opd".
438
4392002-02-09 Chris Demetriou <cgd@broadcom.com>
440
441 * ld.texinfo (Options): Add back in -nostdlib documentation,
442 which had been inadvertently removed.
443
4442002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
445
446 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
447 register section vma to a sane value after emitting error. Make
448 fatal conditions cause program exit when emitting message.
449
4502002-02-08 Ivan Guzvinec <ivang@opencores.org>
451
452 * configure.tgt: Add or32-*-rtems target.
453
4542002-02-08 Alexandre Oliva <aoliva@redhat.com>
455
456 Contribute sh64-elf.
457 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
458 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
459 in OTHER_RELOCATABLE_SECTIONS.
460 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
461 * emulparams/shelf32.sh (STACK_ADDR): Define.
462 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
463 (OTHER_SECTIONS): this. Removed stack settings.
464 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
465 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
466 2001-03-12 DJ Delorie <dj@redhat.com>
467 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
468 relaxing if any shmedia or mixed sections are found.
469 2001-03-07 DJ Delorie <dj@redhat.com>
470 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
471 einfo. Gracefully decline to output to non-elf formats.
472 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
473 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
474 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
475 * emulparams/shelf32.sh: Ditto.
476 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
477 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
478 comment.
479 2001-01-10 Ben Elliston <bje@redhat.com>
480 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
481 non-portable shell constructs. From Hans-Peter Nilsson.
482 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
483 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
484 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
485 dependencies to the shell script include chain.
486 * Makefile.in: Regenerate.
487 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
488 * emultempl/sh64elf.em: Update and tweak comments.
489 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
490 make a .cranges section SEC_IN_MEMORY.
491 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
492 * emultempl/sh64elf.em
493 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
494 .cranges section found to be necessary; continue and set stored
495 section contents flags for sections with non-mixed contents.
496 Use a struct sh64_section_data container and sh64_elf_section_data
497 to store contents-type flags.
498 Remove unused update of "isec".
499 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
500 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
501 access contents-type flags. Assert that the associated container
502 is initialized. Use that container, not elf_gp_size, to hold size
503 of linker-generated cranges contents.
504 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
505 * emultempl/sh64elf.em
506 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
507 there's already a .cranges section. When section flag difference
508 is found, don't NULL-check cranges a second time. Tweak comments.
509 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
510 merging, not max size, as size of ld-generated .cranges contents.
511 Don't set ELF section flags in output section. When checking for
512 needed .cranges descriptors, don't use a variable; compare
513 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
514 comments.
515 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
516 * emultempl/sh64elf.em: New file.
517 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
518 * Makefile.in: Regenerate.
519 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
520 (OTHER_RELOCATING_SECTIONS): Ditto.
521 (EXTRA_EM_FILE): New, set to sh64elf if not set.
522 * emulparams/shlelf32.sh: Stub out all settings except
523 OUTPUT_FORMAT. Source shelf32.sh.
524 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
525 OTHER_RELOCATING_SECTIONS.
526 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
527 * emulparams/shlelf64.sh: Stub out all settings except
528 OUTPUT_FORMAT. Source shelf64.sh.
529 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
530 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
531 .cranges section.
532 (DATA_START_SYMBOLS): Define, provide ___data.
533 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
534 for consecutive .data section.
535 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
536 section after .data section.
537 * emulparams/shlelf64.sh: Ditto.
538 * emulparams/shelf32.sh: Ditto.
539 (ALIGNMENT): Define to 8.
540 * emulparams/shelf32.sh: Ditto.
541 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
542 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
543 built-in linker scripts.
544 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
545 * emulparams/shlelf64.sh: New.
546 * emulparams/shelf64.sh: New.
547 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
548 targ_extra_emuls.
549 * Makefile.am: Add support for shlelf64 and shelf64.
550 * Makefile.in: Regenerate.
551 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
552 * configure.tgt (sh64-*-elf*): Add shelf as default.
553 Add shlelf to targ_extra_emuls.
554 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
555 * emulparams/shelf32.sh: New file.
556 * emulparams/shlelf32.sh: New file.
557 * Makefile.am: Add support for shlelf32 and shelf32.
558 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
559 * Makefile.in: Regenerate.
560
5612002-02-05 Hans-Peter Nilsson <hp@axis.com>
562
563 * ldlang.c (lang_reset_memory_regions): Rename from
564 reset_memory_regions. Change all callers. Make public.
565 * ldlang.h (lang_reset_memory_regions): Prototype.
566 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
567 lang_reset_memory_regions before lang_size_sections.
568 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
569 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
570
5712002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
572
573 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
574 arithmetic when checking for too many global registers.
575
5762002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
577
578 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
579 (ehppanbsd.c): New rule.
580 * Makefile.in: Regenerate.
581 * configure.tgt (hppa*-*-netbsd*): New target.
582 * emulparams/hppalinux.sh: Add comment to check other files
583 that source this file it is modified, and list which
584 files that do.
585 * emulparams/hppanbsd.sh: New file.
586
5872002-02-01 Geoffrey Keating <geoffk@redhat.com>
588
589 * scripttempl/xstormy16.sc: Don't allocate extra space for the
590 stack.
591
5922002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
593
594 Support on-demand global register allocation from
595 R_MMIX_BASE_PLUS_OFFSET relocs.
596 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
597 mmix_set_reg_section_vma. Call
598 _bfd_mmix_finalize_linker_allocated_gregs.
599 (mmix_before_allocation): New function.
600 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
601 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
602 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
603 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
604 before .MMIX.reg_contents.
605 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
606 (mmo_after_open): New function.
607 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
608 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
609 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
610
6112002-01-31 Ivan Guzvinec <ivang@opencores.org>
612
613 * emulparams/or32.sh: New file.
614 * emulparams/or32elf.sh: New file.
615 * scripttempl/or32.sc: New file.
616 * configure.tgt : Add support for or32.
617 * configure: Regenerate
618 * Makefile.am: Add support for or32.
619 * Makefile.in: Regenerate.
620 * NEWS: Mention support for or32.
621 * po/ld.pot: Regenerate.
622
6232002-01-29 Chris Demetriou <cgd@broadcom.com>
624 Mitch Lichtenberg <mpl@broadcom.com>
625
626 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
627 * emultempl/mipself.em: New file to handle MIPS ELF embedded
628 reloc creation (ld --embedded-relocs).
629
6302002-01-27 Daniel Jacobowitz <drow@mvista.com>
631
632 * configure: Regenerated.
633
6342002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
635
636 * Makefile.am (install): Depend on install-info.
637 * Makefile.in: Regenerate.
638
6392002-01-26 Christian Rose <menthos@menthos.com>
640
641 * ldmain.c (main): Use full sentences to ease translation.
642
6432002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
644
645 * po/fr.po: Updated version.
646
6472002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
648
649 * po/es.po: Updated version.
650
6512002-01-25 Andreas Jaeger <aj@suse.de>
652
653 * ldlex.l (yy_input): Correct error check.
654
6552002-01-25 Alan Modra <amodra@bigpond.net.au>
656
657 * ldmisc.c (demangle): Put back dots when string not demangled.
658
6592002-01-22 Richard Henderson <rth@redhat.com>
660
661 * emulparams/elf64alpha.sh (NOP): Use unop.
662
6632002-01-21 Andreas Jaeger <aj@suse.de>
664
665 * ldlex.l: Use fread instead of read.
666
6672002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
668
669 * configure.tgt (ia64-*-netbsd*): New target.
670
6712002-01-21 H.J. Lu <hjl@gnu.org>
672
673 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
674 0.
675 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
676
6772002-01-18 Andreas Jaeger <aj@suse.de>
678
679 * ldver.c (ldversion): Update year.
680
6812002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
682
683 * po/ld.pot: Regenerate.
684
6852002-01-16 Alan Modra <amodra@bigpond.net.au>
686
687 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
688 * Makefile.in: Regenerate.
689 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
690 * emultempl/ppc64elf.em: New file.
691
6922002-01-15 DJ Delorie <dj@redhat.com>
693
694 * scripttempl/pe.sc: Add support for constructor priorities.
695
6962002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
697
698 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
699 * emulparams/avr23xx.sh: Likewise.
700 * emulparams/avr4433.sh: Likewise.
701 * emulparams/avr44x4.sh: Likewise.
702 * emulparams/avr85xx.sh: Likewise.
703 * emulparams/avrmega103.sh: Likewise.
704 * emulparams/avrmega161.sh: Likewise.
705 * emulparams/avrmega603.sh: Likewise.
706 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
707
7082002-01-08 Alexandre Oliva <aoliva@redhat.com>
709
710 * ldlang.c (walk_wild_section): Exclude object file if enclosing
711 archive is excluded.
712
7132002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
714
715 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
716 (eshelf_nbsd.c): New rule.
717 (eshlelf_nbsd.c): New rule.
718 * Makefile.in: Regenerate.
719 * configure.tgt (sh*le-*-netbsdelf*): New target.
720 (sh*-*-netbsdelf*): New target.
721 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
722 * ld/emulparams/shelf_nbsd.sh: New emulation.
723 * ld/emulparams/shlelf_nbsd.sh: New emulation.
724
7252002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
726
727 * po/es.po: New file: Spanish translation.
728 * configure.in (ALL_LINGUAS): Add es.
729 * configure: Regenerate.
730
7312002-01-06 John Marshall <jmarshall@acm.org>
732
733 * ld.texinfo: Note that --emit-relocs is currently only
734 implemented for ELF.
735
7362002-01-05 Alan Modra <amodra@bigpond.net.au>
737
738 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
739 of bfd_section_list_remove and bfd_section_list_insert macros.
740 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
741 * emultempl/mmo.em (mmo_place_orphan): Likewise.
742
7432002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
744
745 * configure.tgt (x86_64-*-netbsd*): New target.
746
7472001-12-21 Tom Rix <trix@redhat.com>
748
749 (gld*_create_output_section_statements): New function.
750 For -binitfini support.
751 * emultempl/aix.em (gld*_before_parse): Fix comment.
752 * emultempl/aix.em (gld*_parse_args): Fix comment.
753
7542001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
755
756 * configure.tgt (mips*-dec-netbsd*): Delete alias for
757 mips*el-*-netbsd*.
758 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
759
760 * configure.tgt (arm-*-netbsdelf*): Add target.
761 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
762 * emulparams/armelf_nbsd.sh: Added.
763 * Makefile.am: Add rules for earmelf_nbsd.
764 * Makefile.in: Regenerate.
765
7662001-12-19 Andreas Jaeger <aj@suse.de>,
767 Susanne Oberhauser <froh@suse.de>
768
769 * configure.host: Add rules for x86_64-*linux-gnu. Change
770 s390x-linux entry to use gcc to report configuration, replace gcc
771 with $CC in s390-linux
772
7732001-12-19 Andreas Jaeger <aj@suse.de>
774
775 * ld.texinfo (VERSION): Fix markup.
776
7772001-12-18 matthew green <mrg@eterna.com.au>
778
779 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
780 (m68kelfnbsd.c): New rule.
781 * Makefile.in: Regenerate.
782 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
783 (m68*-*-netbsd*4k*): .. this.
784 (m68*-*-netbsdelf*): New target.
785 (m68*-*-netbsd*): Also include ELF support.
786 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
787 * emulparams/m68kelfnbsd.sh: New emulation.
788
7892001-12-18 Jakub Jelinek <jakub@redhat.com>
790
791 * ldgram.y (vers_node): Support anonymous version tags.
792 * ldlang.c (lang_register_vers_node): Ensure anonymous version
793 tag is not defined together with non-anonymous versions.
794 * ld.texinfo: Document it.
795
7962001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
797
798 * po/tr.po: New file: Turkish translation.
799 * configure.in (ALL_LINGUAS): Add tr.
800 * configure: Regenerate.
801
8022001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
803
804 * Makefile.am: Add rules for eelf64alpha_nbsd.
805 * Makefile.in: Regenerate.
806 * configure.tgt (alpha*-*-netbsd*): Set
807 targ_emul to elf64alpha_nbsd.
808 * emulparams/elf64alpha_nbsd.sh: Added.
809
8102001-12-17 Alan Modra <amodra@bigpond.net.au>
811
812 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
813 section_tail when fiddling with section list.
814 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
815 broken into separate strings to make translation easier.
816 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
817 fiddling with section list.
818 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
819
8202001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
821
822 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
823
8242001-12-15 Alan Modra <amodra@bigpond.net.au>
825
826 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
827
8282001-12-13 Jakub Jelinek <jakub@redhat.com>
829
830 * emultempl/elf32.em (finish): Supply output_bfd
831 to bfd_elf*_discard_info.
832 (OPTION_EH_FRAME_HDR): Define.
833 (longopts): Add --eh-frame-hdr.
834 (parse_args): Handle it.
835 (list_options): Add --eh-frame-hdr to help.
836 * emultempl/hppaelf.em (finish): Supply output_bfd
837 to bfd_elf*_discard_info.
838 * scripttempl/elf.sc (.eh_frame_hdr): Add.
839
8402001-12-13 Alan Modra <amodra@bigpond.net.au>
841
842 * lexsup.c (parse_args): Don't pass shortopts to second call to
843 getopt functions. Restore optind rather than decrementing before
844 second call. Remove errind as it now duplicates last_optind.
845
8462001-12-11 Christopher Faylor <cgf@redhat.com>
847
848 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
849
8502001-12-07 Geoffrey Keating <geoffk@redhat.com>
851 Richard Henderson <rth@redhat.com>
852
853 * Makefile.am: Add support for xstormy16.
854 * configure.tgt: Add support for xstormy16.
855 * Makefile.in: Regenerate.
856 * emulparams/elf32xstormy16.sh: New file.
857 * scripttempl/xstormy16.sc: New file.
858
8592001-10-01 Christopher Faylor <cgf@cygnus.com>
860
861 * Makefile.in (LIB_PATH): Make configurable.
862 (GENSCRIPTS): Set LIB_PATH in environment.
863 * configure.in: Substitute LIB_PATH.
864 * configure: Regenerate.
865 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
866 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
867
8682001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
869
870 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
871 describing the -N option so that it is easier to translate into
872 foreign languages.
873
8742001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
875
876 * emultempl/pe.em (..._list_options): Replace multiple fprintf
877 statements describing a single option with a single, newline
878 escaped fprintf. This allows better translation into other
879 languages.
880
881 * ldmain.c (add_archive_element): Combine multiple strings
882 into a single string to permit better translation into other
883 languages.
884
8852001-12-05 Tom Rix <trix@redhat.com>
886
887 * Makefile.am: Remove eaixppc64.
888 * Makefile.in: Regenerate.
889
8902001-12-04 Tom Rix <trix@redhat.com>
891
892 * emultempl/aix.em (choose_target): Change default target to
893 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
894 warning.
895 (gld*_read_file): Fix typo.
896 (change_symbol_mode): Add prototype.
897 (is_syscall): Same.
898
899 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
900 * emulparams/aixrs6.sh : Same.
901 * emulparams/ppcmacos.sh : Same.
902 * emulparams/aixppc64.sh : Delete file.
903 * emultempl/aix.em : Formatting changes.
904
9052001-12-04 Hans-Peter Nilsson <hp@axis.com>
906
907 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
908 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
909 __Sbss.
910 (OTHER_END_SYMBOLS): Fix formatting.
911 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
912 (OTHER_END_SYMBOLS): Fix formatting.
913
9142001-12-04 Alan Modra <amodra@bigpond.net.au>
915
916 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
917
9182001-12-02 Tom Rix <trix@redhat.com>
919
920 * configure.tgt : Remove eaixppc64 emulations.
921 * Makefile.in : Remove eaixppc64.c
922 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
923 (ldemul_default_target): Same.
924 * emultempl/gld960.em (gld960_choose_target): Same.
925 * emultempl/gld960c.em (gld960_choose_target): Same.
926 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
927 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
928 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
929 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
930 * emultempl/aix.em (choose_target): New function. Handle emulation of
931 -b32 and -b64.
932
9332001-11-27 H.J. Lu <hjl@gnu.org>
934
935 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
936 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
937 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
938 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
939 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
940 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
941 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
942 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
943
944 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
945 is not empty.
946 (SDATA): Likewise.
947 (REL_SDATA): Likewise.
948 (REL_SBSS): Likewise.
949 (REL_SDATA2): Likewise.
950 (REL_SBSS2): Likewise.
951 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
952 (SDATA2): Likewise.
953
9542001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
955
956 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
957 destructor in rom.
958 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
959
9602001-11-22 H.J. Lu <hjl@gnu.org>
961
962 * Makefile.in: Regenerated with automake based on automake
963 1.4-8 in RedHat 7.1.
964
9652001-11-22 Alan Modra <amodra@bigpond.net.au>
966
967 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
968 (config.status): Delete rule.
969 Add extra dependencies to cover sourced emulparams files.
970 * Makefile.in: Regenerate.
971
972 * scripttempl/elf.sc: Order <section>, <section>.* and
973 corresponding linkonce sections as seen in input files.
974 Formatting fixes. Zero vma of all sections if not relocating.
975 (STACK): Define and insert if STACK_ADDR defined.
976 (OTHER_RELOCATING_SECTIONS): Delete.
977 (OTHER_END_SYMBOLS): Define.
978 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
979 (OTHER_READWRITE_SECTIONS): Likewise.
980 (OTHER_GOT_SECTIONS): Likewise.
981 (OTHER_SDATA_SECTIONS): Likewise.
982 (OTHER_BSS_SECTIONS): Likewise.
983 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
984 (OTHER_READWRITE_SECTIONS): Likewise.
985 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
986 (OTHER_READWRITE_SECTIONS): Likewise
987
988 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
989 (STACK_ADDR): Define.
990 * emulparams/armelf_oabi.sh: As for armelf.sh.
991 * emulparams/elf32mcore.sh: As for armelf.sh.
992 * emulparams/h8300elf.sh: As for armelf.sh.
993 * emulparams/mn10200.sh: As for armelf.sh.
994 * emulparams/shelf.sh: As for armelf.sh.
995
996 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
997 (OTHER_END_SYMBOLS): Define.
998 * emulparams/m32relf.sh: As for elf32fr30.sh.
999 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1000 * emulparams/h8300self.sh: As for elf32fr30.sh.
1001
1002 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1003 defines with RELOCATING test.
1004 (OTHER_SDATA_SECTIONS): Likewise.
1005 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1006 (OTHER_END_SYMBOLS): ..this.
1007 * emulparams/crislinux.sh: As for criself.sh.
1008
1009 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1010 if not relocating.
1011 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1012 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1013 normal and linkonce sections as seen in input files.
1014 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1015 (TEXT_DYNAMIC): Likewise.
1016 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1017 (OTHER_SDATA_SECTIONS): Likewise.
1018 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1019 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1020 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1021 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1022 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1023 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1024 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1025 sections as seen in input files.
1026 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1027 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1028 if not relocating.
1029 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1030 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1031 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1032 (OTHER_SECTIONS): Instead, use this..
1033 (OTHER_END_SYMBOLS): ..and this.
1034
1035 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1036 * emulparams/elf32bsmip.sh: Likewise.
1037 * emulparams/elf32btsmip.sh: Likewise.
1038 * emulparams/elf32ebmip.sh: Likewise.
1039 * emulparams/elf32lmip.sh: Likewise.
1040 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1041 * emulparams/elf32lsmip.sh: Likewise.
1042 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1043 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1044 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1045 * emulparams/elf64btsmip.sh: Likewise.
1046 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1047 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1048 * emulparams/elf32ppclinux.sh: Likewise.
1049 * emulparams/elf32ppcsim.sh: Likewise.
1050 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1051 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1052 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1053 * emulparams/h8300self.sh: Likewise.
1054 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1055 * emulparams/sh.sh: Comment.
1056 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1057 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1058 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1059
10602001-11-21 David Heine <dlheine@tensilica.com>
1061 Alan Modra <amodra@bigpond.net.au>
1062
1063 * ldlang.c (map_input_to_output_sections): Replace "break"
1064 accidentally removed with 2001-08-03 change.
1065 (lang_gc_sections_1): Likewise.
1066
10672001-11-21 Alan Modra <amodra@bigpond.net.au>
1068
1069 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1070
10712001-11-20 Angela Marie Thomas <angela@redhat.com>
1072
1073 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1074 of false when calling lang_size_sections.
1075 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1076
10772001-11-15 Alan Modra <amodra@bigpond.net.au>
1078
1079 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1080 function when LDEMUL_FINISH isn't set to the same name. Don't
1081 call ${LDEMUL_FINISH}.
1082 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1083 * emultempl/armelf.em (arm_elf_finish): Call
1084 gld${EMULATION_NAME}_finish.
1085 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1086 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1087 hppaelf_layout_sections_again if necessary.
1088 (need_laying_out): New var.
1089 (hppaelf_layaout_sections_again): Rename to
1090 hppaelf_layout_sections_again. Clear need_laying_out.
1091 (PARSE_AND_LIST_OPTIONS): Format text.
1092
10932001-11-14 H.J. Lu <hjl@gnu.org>
1094
1095 * emultempl/armelf.em (arm_elf_finish): Renamed from
1096 gld${EMULATION_NAME}_finish.
1097 (LDEMUL_FINISH): Set to arm_elf_finish.
1098
10992001-11-14 Daniel Jacobowitz <drow@mvista.com>
1100
1101 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1102 (struct ld_emulation_xfer_struct): Use it.
1103
11042001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1105
1106 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1107 additional symbols referenced by newer crt0.o files from HP.
1108
11092001-11-12 Anthony Green <green@redhat.com>
1110
1111 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1112
11132001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1114
1115 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1116 * Makefile.in: Regenerate.
1117
11182001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1119
1120 * ld.texinfo: Use @command for commands, @option for options.
1121 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1122 the page man title.
1123 * Makefile.in: Rebuild.
1124
11252001-11-04 Chris Demetriou <cgd@broadcom.com>
1126
1127 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1128 Add support for targets.
1129
11302001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1131
1132 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1133 * configure: Regernate.
1134 * po/fr.po: New file.
1135 * po/sv.po: New file.
1136
11372001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1138
1139 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1140 as little endian default and to support big endian.
1141
11422001-11-01 Chris Demetriou <cgd@broadcom.com>
1143
1144 * ld.texinfo (Options): Document new option, -nostdlib.
1145 * lexsup.c (OPTION_NOSTDLIB): New definition.
1146 (ld_options): Add entry for "nostdlib".
1147 (parse_args): Handle OPTIONS_NOSTDLIB.
1148 * ldfile.c (ldfile_add_library_path): Don't add directories
1149 to the search path if they weren't specified on the command line
1150 and -nostdlib was specified.
1151 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1152
11532001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1154
1155 * lexsup.c (parse_args): Prevent infinite parsing loop when
1156 "-rpath.a" is specified on the command line.
1157 Replace calls to fprintf with calls to einfo.
1158
11592001-10-31 John Marshall <jmarshall@acm.org>
1160
1161 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1162 appear only once across all the linker scripts involved in a link
1163 invocation no longer applies. Make the documentation reflect
1164 that.
1165
11662001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1167
1168 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1169 targets.
1170 (sh-*-linux*): Added targ_extra_libpath.
1171
11722001-10-31 David Heine <dlheine@tensilica.com>
1173
1174 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1175 for padding statements.
1176
11772001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1178
1179 * configure.tgt (mmix-*-*): New target.
1180 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1181 Add dependencies to match.
1182 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1183 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1184 scripttempl/mmo.sc: New files.
1185 * gen-doc.texi: @set MMIX.
1186 * ld.texinfo: Ditto.
1187 [MMIX] Add MMIX node.
1188 * Makefile.in: Regenerate.
1189
11902001-10-29 Kazu Hirata <kazu@hxi.com>
1191
1192 * ldlang.c: Fix a comment typo.
1193
11942001-10-23 Alan Modra <amodra@bigpond.net.au>
1195
1196 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1197 entries, and match *-*-linux*.
1198
11992001-10-20 Alan Modra <amodra@bigpond.net.au>
1200
1201 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1202 with ldlex_script, ldlex_popstate.
1203 (ifile_p1): Likewise.
1204 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1205 correct slot.
1206 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1207 to 1. Don't BEGIN(SCRIPT).
1208 (lex_redirect): Similarly.
1209 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1210
12112001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1212
1213 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1214 __EH_FRAME_END__ and accept eh frames into data section.
1215 Add ctor and dtor sections.
1216
12172001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1218
1219 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1220 (auto-export): Fix indentation.
1221
12222001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1223
1224 * pe-dll.c (autofilter_objectlist): Add startup objects
1225 for profiling.
1226 (auto-export): Constify char * p.
1227 Extract file basename and use strcmp rather than ststr
1228 for object lookup.
1229
12302001-10-18 Chris Demetriou <cgd@broadcom.com>
1231
1232 * ldmain.c (get_emulation): Improve comment about the handling
1233 of -mipsN options.
1234
12352001-10-17 Alan Modra <amodra@bigpond.net.au>
1236
1237 * po/POTFILES.in: Regenerate.
1238
12392001-10-16 Vassili Karpov <malc@pulsesoft.com>
1240
1241 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1242 -z nocopyreloc and -z nocombreloc usage strings.
1243
12442001-10-12 Vassili Karpov <malc@pulsesoft.com>
1245
1246 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1247 in usage.
1248
12492001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1250
1251 * scripttempl/armaout.sc: Place .bss section after end of aligned
1252 data section to match behaviour of aout code in constructrion of
1253 header.
1254
12552001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1256
1257 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1258 startup files for mingw32 dlls to list.
1259
12602001-10-10 Chris Demetriou <cgd@broadcom.com>
1261
1262 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1263
12642001-10-08 Aldy Hernandez <aldyh@redhat.com>
1265
1266 * configure.tgt (targ): Add arm9e-*-elf.
1267
12682001-10-05 H.J. Lu <hjl@gnu.org>
1269
1270 * genscripts.sh: Fix a typo in the last change.
1271
12722001-10-05 Jakub Jelinek <jakub@redhat.com>
1273
1274 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1275 -z nocombreloc in usage.
1276
12772001-10-03 Jim Blandy <jimb@redhat.com>
1278
1279 * genscripts.sh: Include a comment at the top of each generated
1280 script, explaining its purpose.
1281
12822001-10-03 Vassili Karpov <malc@pulsesoft.com>
1283
1284 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1285 * NEWS: Mention -z nocopyreloc.
1286 * ld.texinfo (Options): Describe nocopyreloc.
1287
12882001-10-03 Alan Modra <amodra@bigpond.net.au>
1289
1290 * configure: Regenerate.
1291
12922001-10-02 Alan Modra <amodra@bigpond.net.au>
1293
1294 * ldver.h (ld_program_version): Remove declaration.
1295 * lexsup.c (parse_args): Move printing of copyright message..
1296 * ldver.c (ldversion): .. to here.
1297 Use BFD_VERSION_STRING in place of BFD_VERSION.
1298 (ld_program_version): Remove.
1299 * Makefile.am (Makefile): Depend on bfd/configure.in.
1300 Run "make dep-am".
1301 * Makefile.in: Regenerate.
1302
13032001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1304
1305 * Makefile.am: Update dependencies with "make dep-am".
1306 * Makefile.in: Regenerate.
1307
13082001-09-29 John Reiser <jreiser@BitWagon.com>
1309
1310 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1311 * lexsup.c: Add --no-define-common commandline option.
1312 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1313 * ldlex.l: Likewise.
1314 * ld.h: Add command_line.inhibit_common_definition.
1315 * ldmain.c (main): Initialize.
1316 * ld.texinfo: Document.
1317
13182001-09-26 Alan Modra <amodra@bigpond.net.au>
1319
1320 * ldmisc.c (USE_STDARG): Remove.
1321 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1322 (einfo): Likewise.
1323 (minfo): Likewise.
1324 (lfinfo): Likewise.
1325
1326 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1327 declarations. Update copyright.
1328
13292001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1330
1331 * pe-dll.c: Remove obsoleted declaration of
1332 pe_get_data_import_dll_name.
1333 (pe_create_import_fixup): Fix thinko.
1334
1335 * ld.texinfo(enable-auto-import): Clarify the explanation.
1336
13372001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1338
1339 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1340 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1341 DLL_SUPPORT controlled code.
1342
13432001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1344
1345 * emultempl/pe.em(pe_data_import_dll): Make static.
1346 (pe_get_data_import_dll_name): New accessor function.
1347 * pe-dll.c(pe_create_import_fixup): call
1348 pe_get_data_import_dll_name() from pe.em, instead of
1349 directly accessing pe_data_import_dll variable from pe.em.
1350
13512001-09-18 Bruno Haible <haible@clisp.cons.org>
1352
1353 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1354 (def_file_add_directive): Use ISSPACE instead of isspace.
1355 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1356 isdigit/isxdigit/isalpha/isalnum.
1357 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1358 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1359 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1360 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1361 isalnum.
1362 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1363 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1364 isupper/tolower.
1365 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1366 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1367 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1368 (ctor_prio): Use ISDIGIT instead of isdigit.
1369 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1370 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1371 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1372 isupper/tolower.
1373 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1374 (stricpy): Use TOLOWER instead of isupper/tolower.
1375 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1376 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1377 (lex_warn_invalid): Use ISPRINT instead of isprint.
1378 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1379 (main): For gettext, also set the LC_CTYPE locate facet.
1380 (add_keepsyms_file): Use ISSPACE instead of isspace.
1381 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1382 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1383 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1384 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1385 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1386 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1387 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1388 (quoteput): Use ISSPACE instead of isspace.
1389 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1390 instead of isalnum.
1391
13922001-09-18 Alan Modra <amodra@bigpond.net.au>
1393
1394 * deffilep.y (def_stash_module): Constify "name" param.
1395
1396 * pe-dll.c: Replace CONST with const throughout.
1397 (quick_symbol): Constify "n1", "n2", "n3" params.
1398 (make_singleton_name_thunk): Constify "import" param. Make
1399 "buffer_len" a size_t.
1400 (make_import_fixup_entry): Constify "name", "fixup_name",
1401 "dll_symname" params.
1402 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1403 (pe_get32): Likewise.
1404 (pe_implied_import_dll): Likewise.
1405
1406 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1407 (sort_by_section_name): Likewise.
1408
1409 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1410 (make_import_fixup): Cast printf arg, rel->address to long rather
1411 than int.
1412 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1413
14142001-09-15 Alan Modra <amodra@bigpond.net.au>
1415
1416 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1417 defines BufferSize. Increase buffer size by one.
1418
14192001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1420
1421 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1422
14232001-09-14 Kevin Lo <kevlo@openbsd.org>
1424
1425 * configure.tgt: Add arm-openbsd target.
1426
14272001-09-12 H.J. Lu <hjl@gnu.org>
1428
1429 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1430 eelf64lppc.o to ...
1431 (ALL_64_EMULATIONS): Here.
1432 * Makefile.in: Regenerated.
1433
14342001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1435
1436 * emultempl/pe.em(make_import_fixup): change signature to
1437 take asection as well as arelec; we need this for proper
1438 error reporting. Only call pe_create_import_fixup() if
1439 there is no attempt to add a constant addend to the reloc;
1440 otherwise, report error condition.
1441 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1442 since final argument is a pointer to make_import_fixup().
1443 Change call to cb() to match make_import_fixup() signature.
1444 (make_import_fixup_mark): make buffer_len unsigned.
1445 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1446
14472001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1448
1449 * ld.texinfo: add verbose documentation for auto-import
1450 direct-addressing workaround, to compliment the terse
1451 error message.
1452
14532001-09-12 Andrew MacLeod <amacleod@redhat.com>
1454
1455 * scripttempl/v850.sc: Add gcc_except_table sections.
1456
14572001-09-11 Jeffrey A Law (law@cygnus.com)
1458
1459 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1460 * emulparams/h8300self.sh: Similarly.
1461
14622001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1463
1464 * ld.texinfo (Options, --stack): Correct default value for stack
1465 reserve.
1466
14672001-09-05 Tom Rix <trix@redhat.com>
1468
1469 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1470
14712001-09-03 Andreas Jaeger <aj@suse.de>
1472
1473 * emultempl/beos.em: Declare prototypes for comparions functions,
1474 adjust definitions.
1475
14762001-09-02 Andreas Jaeger <aj@suse.de>
1477
1478 * emultempl/aix.em: Add missing prototype.
1479 * emultempl/lnk960.em: Likewise.
1480 * emultempl/vanilla.em: Likewise.
1481 * emultempl/armcoff.em: Likewise.
1482 * emultempl/armelf_oabi.em: Likewise.
1483 * emultempl/beos.em: Likewise.
1484 * emultempl/gld960c.em: Likewise.
1485 * emultempl/gld960.em: Likewise.
1486
1487 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1488 for prototype declaration.
1489
14902001-08-31 Eric Christopher <echristo@redhat.com>
1491 Jason Eckhardt <jle@redhat.com>
1492
1493 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1494
14952001-08-31 Andreas Jaeger <aj@suse.de>
1496
1497 * emultempl/pe.em: Add missing prototypes.
1498 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1499 pe_find_data_imports.
1500 (pr_sym): Add unused attribute.
1501
15022001-08-29 Joel Sherrill <joel@OARcorp.com>
1503
1504 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1505 default from coff to elf.
1506
15072001-08-29 Jeff Law <law@redhat.com>
1508
1509 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1510 ARCH specification.
1511 * emulparams/h8300self.sh: Similarly.
1512
15132001-08-28 J"orn Rennecke <amylaar@redhat.com>
1514
1515 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1516 eh8300self.o .
1517 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1518 * configure.tgt (h8300-*-elf*): New case.
1519 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1520 * emulparams/h8300self.sh: New file.
1521 * Makefile.in: Regenerated.
1522
15232001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1524
1525 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1526 with macro name.
1527
15282001-08-27 Linus Nordberg <linus@swox.com>
1529 Alan Modra <amodra@bigpond.net.au>
1530
1531 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1532 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1533 Run "make dep-am"
1534 * Makefile.in: Regenerate.
1535 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1536 entries to correct alphabetical position.
1537 * emulparams/elf64ppc.sh: New.
1538 * emulparams/elf64lppc.sh: New.
1539
15402001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1541
1542 * ldmain.c (main): Declare BSIZE as static.
1543
15442001-08-23 Jakub Jelinek <jakub@redhat.com>
1545
1546 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1547 into .rel.dyn resp. .rela.dyn if combreloc.
1548 (get_script): If .x linker script is equal to .xn, only put it
1549 once into the binary.
1550 Add .xc and .xsc scripts.
1551 (parse_args): Handle -z combreloc and -z nocombreloc.
1552 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1553 For .xc and .xsc scripts put all .rel* or .rela* input sections
1554 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1555 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1556 is elf.
1557 Strip trailing whitespace from script.
1558 Generate .xc and .xsc scripts if requested.
1559 * ldmain.c (main): Initialize link_info.combreloc and
1560 link_info.spare_dynamic_tags.
1561 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1562 (ld_options): Add --spare-dynamic-tags option.
1563 (parse_args): Likewise.
1564 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1565 * ldint.texinfo: Document .xc and .xsc linker scripts.
1566 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1567
15682001-08-22 H.J. Lu <hjl@gnu.org>
1569
1570 * emulparams/elf32fr30.sh: Add a newline.
1571
15722001-08-21 Andreas Jaeger <aj@suse.de>
1573
1574 * deffilep.y: Add missing prototypes.
1575 * pe-dll.c: Likewise.
1576
15772001-08-20 Alan Modra <amodra@bigpond.net.au>
1578
1579 * ldlang.c (insert_pad): Fix typos in last patch.
1580
1581 * ldlang.c: When traversing lang_statement_union_type lists,
1582 consistently use "header.next" rather than "next".
1583 * mpw-eppcmac.c: Likewise.
1584 * emultempl/beos.em: Likewise.
1585 * emultempl/hppaelf.em: Likewise.
1586 * emultempl/pe.em: Likewise.
1587 * ldlang.h (union lang_statement_union): Remove "next" field.
1588
1589 * ldlang.c (insert_pad): Use offsetof macro.
1590 (lang_size_sections): Always neuter padding statements.
1591 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1592
1593 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1594 passed to lang_size_sections.
1595 (pe_exe_fill_sections): Likewise.
1596 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1597 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1598
15992001-08-18 Alan Modra <amodra@bigpond.net.au>
1600
1601 * emultempl/aix.em: Formatting fixes.
1602
16032001-08-18 Alan Modra <amodra@bigpond.net.au>
1604
1605 * ldlang.c (insert_pad): Make use of an existing pad statement if
1606 available. Move code calculating alignment, adjusting section
1607 alignment power, and adjusting dot to ..
1608 (size_input_section): .. here. Remove unused relax param.
1609 (lang_size_sections): Change boolean `relax' param to boolean *.
1610 Adjust call to size_input_section. Make use of insert_pad to
1611 place pad after the assignment statement. If relaxing, zap
1612 padding statements.
1613 (reset_memory_regions): Reset output_bfd section sizes too.
1614 (relax_again): Move to..
1615 (lang_process): ..here. Adjust call to lang_size_sections, and
1616 remove duplicated code.
1617 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1618
16192001-08-17 Alan Modra <amodra@bigpond.net.au>
1620
1621 * ld.texinfo: Document that fill values now use the four least
1622 significant bytes.
1623 * emulparams/elf32fr30.sh (NOP): Update.
1624 * emulparams/elf32mcore.sh: Likewise.
1625 * emulparams/elf64_s390.sh: Likewise.
1626 * emulparams/elf_i386.sh: Likewise.
1627 * emulparams/elf_i386_be.sh: Likewise.
1628 * emulparams/elf_i386_chaos.sh: Likewise.
1629 * emulparams/elf_i386_ldso.sh: Likewise.
1630 * emulparams/elf_s390.sh: Likewise.
1631 * emulparams/elf_x86_64.sh: Likewise.
1632 * emulparams/i386moss.sh: Likewise.
1633 * emulparams/i386nw.sh: Likewise.
1634 * emulparams/m68kelf.sh: Likewise.
1635 * scripttempl/elf.sc: Update NOP comment.
1636 * scripttempl/elfi370.sc: Likewise.
1637 * scripttempl/elfm68hc11.sc: Likewise.
1638 * scripttempl/elfm68hc12.sc: Likewise.
1639 * scripttempl/nw.sc: Likewise.
1640
16412001-08-15 Tom Rix <trix@redhat.com>
1642
1643 * ldgram.y (saved_script_handle): Initialize to NULL.
1644 * ldmain.c (main): Change check on saved_script_handle.
1645
16462001-08-14 Alan Modra <amodra@bigpond.net.au>
1647
1648 * emultempl/elf32.em: Formatting fixes.
1649 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1650 looking at sec->owner.
1651 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1652 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1653 unused code, and reorganize orphan section placement code.
1654
1655 * ldlang.c (wild_doit): Rename to lang_add_section.
1656 * ldlang.h: Here too.
1657 * mpw-elfmips.c: And here.
1658 * emultempl/beos.em: And here.
1659 * emultempl/elf32.em: And here.
1660 * emultempl/hppaelf.em: And here.
1661 * emultempl/pe.em: And here.
1662
16632001-08-13 Richard Henderson <rth@redhat.com>
1664
1665 * emultempl/needrelax.em: New file.
1666 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1667 * Makefile.am (eelf64_ia64.c): Depend on it.
1668 * Makefile.in: Rebuild.
1669
16702001-08-13 Alan Modra <amodra@bigpond.net.au>
1671
1672 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1673 output_section is set non-NULL.
1674
1675 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1676 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1677 needlessly create an output_section_statement. Treat a correctly
1678 named output_section_statement with NULL bfd_section as compatible.
1679
16802001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1681
1682 * emultempl/generic.em: Support EXTRA_EM_FILE.
1683 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1684 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1685 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1686 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1687 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1688 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1689 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1690 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1691 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1692 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1693
16942001-08-12 Richard Henderson <rth@redhat.com>
1695
1696 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1697 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1698 scripttempl/v850.sc: Keep .jcr data.
1699
17002001-08-12 H.J. Lu <hjl@gnu.org>
1701 Andrew Haley <aph@cambridge.redhat.com>
1702 Nick Clifton <nickc@redhat.com>
1703
1704 * ldgram.y (had_script): Change name to saved_script_handle.
1705 Change type to file handle.
1706 * ld.h (had_script): Rename and retype.
1707 * ldfile.c (ldfile_open_command_file): Save the file handle
1708 used in saved_script_handle.
1709 * lexsup.c (parse_args): Do not allow -c option to alter
1710 saved_script_handle.
1711 * ldmain.c (main): Print out the linker script used if
1712 --verbose is given. Check saved_script_handle to obtain the
1713 external linker script used, or if NULL, dump the builtin
1714 script.
1715 * ld.texinfo: Document that --verbose now dumps the linker
1716 script used, regardless of whether it was an internal or an
1717 external script.
1718
17192001-08-10 Andreas Jaeger <aj@suse.de>
1720
1721 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1722 to build warnings.
1723 * configure: Regenerate.
1724
17252001-08-09 Alan Modra <amodra@bigpond.net.au>
1726
1727 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1728
1729 * scripttempl/elf.sc: Move non-text .dynamic section before
1730 .plt/.got/.sdata* group.
1731 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1732 (OTHER_SDATA_SECTIONS): Add.
1733 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1734 OTHER_GOT_SECTIONS.
1735 * emulparams/crislinux.sh: Likewise.
1736 * emulparams/elf32b4300.sh: Likewise.
1737 * emulparams/elf32bmip.sh: Likewise.
1738 * emulparams/elf32bmipn32.sh: Likewise.
1739 * emulparams/elf32bsmip.sh: Likewise.
1740 * emulparams/elf32btsmip.sh: Likewise.
1741 * emulparams/elf32ebmip.sh: Likewise.
1742 * emulparams/elf32elmip.sh: Likewise.
1743 * emulparams/elf32l4300.sh: Likewise.
1744 * emulparams/elf32lmip.sh: Likewise.
1745 * emulparams/elf32lsmip.sh: Likewise.
1746 * emulparams/elf32ltsmip.sh: Likewise.
1747 * emulparams/elf64bmip.sh: Likewise.
1748 * emulparams/elf64btsmip.sh: Likewise.
1749 * emulparams/elf64ltsmip.sh: Likewise.
1750
17512001-08-08 Alan Modra <amodra@bigpond.net.au>
1752
1753 * genscripts.sh: Source the emulparams script before each output
1754 script is generated so that variables like `RELOCATING' may affect
1755 variables defined in the emulparams script.
1756
17572001-08-04 Alan Modra <amodra@bigpond.net.au>
1758
1759 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1760 order.
1761
1762 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1763 ie. iterate over wild_statement.section_list.
1764 (gld${EMULATION_NAME}_place_orphan): Likewise.
1765
17662001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1767
1768 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1769 .fini[0-4] sections used by _exit
1770 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1771 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1772 * scripttempl/elfm68hc11.sc: Likewise.
1773
17742001-08-03 H.J. Lu <hjl@gnu.org>
1775
1776 * emultempl/beos.em (init): Add the missing initialization.
1777
17782001-08-03 Alan Modra <amodra@bigpond.net.au>
1779
1780 * ld.texinfo (Input Section Basics): Clarify ordering of output
1781 sections.
1782 * ldlang.c (callback_t): Add wildcard_list param.
1783 (walk_wild_section): Remove "section" param. Rewrite for
1784 lang_wild_statement_type change. Remove unique_section_p test.
1785 (walk_wild_file): Remove "section" param.
1786 (walk_wild): Remove "section" and "file" params.
1787 (lang_gc_wild): Likewise.
1788 (wild): Likewise. Modify for lang_wild_statement_type change.
1789 (wild_sort): Likewise. Add "sec" param.
1790 (gc_section_callback): Likewise.
1791 (output_section_callback): Likewise. Do unique_section_p test.
1792 (map_input_to_output_sections): Modify call to wild.
1793 (lang_gc_sections_1): Likewise.
1794 (print_wild_statement): Modify for lang_wild_statement_type
1795 change.
1796 (lang_add_wild): Replace filename, filenames_sorted param with
1797 filespec. Replace section_name, sections_sorted,
1798 exclude_filename_list with section_list.
1799 * ldlang.h (lang_add_wild): Here too.
1800 (lang_wild_statement_type): Replace section_name, sections_sorted,
1801 and exclude_filename_list with section_list.
1802 * ldgram.y (current_file): Delete.
1803 (%union): Add wildcard_list.
1804 (file_NAME_list): Set type to wildcard_list. Build a linked list
1805 rather than calling lang_add_wild for each entry.
1806 (input_section_spec_no_keep): Call lang_add_wild here instead.
1807 * ld.h (struct wildcard_list): Declare.
1808 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1809
18102001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1811
1812 * ldmain.c (main): initialize link_info.pei386_auto_import
1813 * pe-dll.c: new tables for auto-export filtering
1814 (auto_export): change API, pass abfd for contextual filtering.
1815 Loop thru tables of excluded symbols instead of comparing
1816 "by hand".
1817
18182001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1819
1820 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1821 static variable current_sec (static struct sec *). Add
1822 forward declaration for add_bfd_to_link.
1823 (process_def_file): Don't export undefined symbols. Do not
1824 export symbols starting with "_imp__". Call auto_export()
1825 with new API.
1826 (pe_walk_relocs_of_symbol): New function.
1827 (generate_reloc): add optional extra debugging
1828 (pe_dll_generate_def_file): eliminate extraneous initial blank
1829 line in output
1830 (make_one): enlarge symtab to make room for __nm__ symbols
1831 (DATA auto-import support).
1832 (make_singleton_name_thunk): New function.
1833 (make_import_fixup_mark): New function.
1834 (make_import_fixup_entry): New function.
1835 (pe_create_import_fixup): New function.
1836 (add_bfd_to_link): Specify that 'name' argument is a CONST
1837 char *.
1838 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1839 declare new functions pe_walk_relocs_of_symbol and
1840 pe_create_import_fixup.
1841 * emultempl/pe.em: add new options --enable-auto-import,
1842 --disable-auto-import, and --enable-extra-pe-debug.
1843 (make_import_fixup): New function.
1844 (pe_find_data_imports): New function.
1845 (pr_sym): New function.
1846 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1847 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1848 CODE.
1849
18502001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1851
1852 * ld.texinfo: add additional documentation for
1853 --export-all-symbols. Document --out-implib,
1854 --enable-auto-image-base, --disable-auto-image-base,
1855 --dll-search-prefix, --enable-auto-import, and
1856 --disable-auto-import.
1857 * ldint.texinfo: Add detailed documentation on auto-import
1858 implementation.
1859
18602001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1861
1862 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1863 example.
1864
18652001-07-24 Alan Modra <amodra@bigpond.net.au>
1866
1867 * Makefile.am: Update dependencies with "make dep-am".
1868 * Makefile.in: Regenerate
1869
18702001-07-23 Alan Modra <amodra@bigpond.net.au>
1871
1872 * ldcref.c (check_section_sym_xref): New function.
1873 (check_nocrossrefs): Call it.
1874 (check_nocrossref): Interate over h->refs here instead of..
1875 (check_refs): ..here. Pass in the symbol name, section, and bfd
1876 rather than hash_entry pointers.
1877 (struct check_refs_info): Keep symbol name rather than hash entry.
1878 Remove "same".
1879 (check_reloc_refs): Tweak for above changes in check_refs_info.
1880 Only report references to section syms when symname is NULL to
1881 prevent duplicate messages for the same reloc.
1882
18832001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1884
1885 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1886 available. Do not print NULL trees.
1887 (exp_print_token): Print unknown tokens with values > 126 as
1888 decimal values not ASCII characters.
1889
1890 * ldlang.c (lang_leave_overlay): If a region is specified assign
1891 it to all sections inside the overlay unless they have been
1892 assigned to the own, non-default, memory region.
1893
1894 * README: Add header for consistency with other README files.
1895
18962001-07-14 H.J. Lu <hjl@gnu.org>
1897
1898 * emultempl/elf32.em (output_prev_sec_find): Never return
1899 bfd_abs_section_ptr, bfd_com_section_ptr nor
1900 bfd_und_section_ptr.
1901
19022001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1903
1904 * Makefile.am (em32relf.c): Change dependency from generic.em to
1905 elf32.em.
1906 * Makefile.in: Regenerate.
1907
19082001-07-14 matthew green <mrg@eterna.com.au>
1909
1910 * configure.tgt (i386-*-netbsdelf*): New target.
1911 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1912
19132001-07-13 Jakub Jelinek <jakub@redhat.com>
1914
1915 * emultempl/elf32.em (output_prev_sec_find): New.
1916 (place_orphan): Use it.
1917
19182001-07-11 H.J. Lu <hjl@gnu.org>
1919
1920 * ldmain.c (main): Fix typos in the last change.
1921
19222001-07-11 Jakub Jelinek <jakub@redhat.com>
1923
1924 * ldmain.c (main): Disallow -F and -f without -shared.
1925
19262001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1927
1928 * emultempl/pe.em (after_open): Check for the output_bfd not
1929 having any coff_data structure allocated to it.
1930
19312001-07-09 David O'Brien <obrien@FreeBSD.org>
1932
1933 * emultempl/elf32.em: Do not assuming that contents of the buffer
1934 returned from basename function will remain unchanged accross other
1935 function calls.
1936
19372001-07-03 H.J. Lu <hjl@gnu.org>
1938
1939 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1940 2001-07-03. It creates dynamic entries even for static binaries.
1941
19422001-07-03 Jakub Jelinek <jakub@redhat.com>
1943
1944 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1945 (DYNAMIC): Use it to reserve few dynamic entries for
1946 post-linking tools.
1947
19482001-06-27 Alan Modra <amodra@bigpond.net.au>
1949
1950 * emulparams/hppa64linux.sh: New file.
1951 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1952 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1953 (ehppa64linux.c): Add rule to make it.
1954 Run "make dep-am".
1955 * Makefile.in: Regenerate.
1956
19572001-06-21 Hans-Peter Nilsson <hp@axis.com>
1958
1959 * ld.texinfo (Options, -r): Mention restrictions when using
1960 different object formats.
1961
19622001-06-19 Hans-Peter Nilsson <hp@axis.com>
1963
1964 * ldlang.c (lang_check): Emit fatal error if relocatable link
1965 between different object flavours with relocations in input.
1966
19672001-06-19 H.J. Lu <hjl@gnu.org>
1968
1969 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1970 (--version-script): Mention the language support.
1971
19722001-06-19 H.J. Lu <hjl@gnu.org>
1973
1974 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1975
19762001-06-18 H.J. Lu <hjl@gnu.org>
1977
1978 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1979 (diststuff): Add $(MANS).
1980 * Makefile.in: Regenerated.
1981
1982 * ld.1: Removed.
1983
19842001-06-18 Hans-Peter Nilsson <hp@axis.com>
1985
1986 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1987 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1988 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1989 * ld.h (args_type): Remove member export_dynamic. All users
1990 changed to use struct bfd_link_info member.
1991
1992 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1993 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1994 * Makefile.in: Regenerate.
1995
19962001-06-18 H.J. Lu <hjl@gnu.org>
1997
1998 * ldlang.c (init_os): Add the newline to the einfo call.
1999 (lang_check): Likewise.
2000 (lang_do_version_exports_section): Likewise.
2001
20022001-06-15 H.J. Lu <hjl@gnu.org>
2003
2004 * lexsup.c (parse_args); Save optind to report unrecognized
2005 option.
2006
20072001-06-15 Hans-Peter Nilsson <hp@axis.com>
2008
2009 * ldlang.c (lang_check): Emit fatal error if relocatable link
2010 between different object flavours.
2011
2012 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2013 Set new link_info member export_dynamic.
2014 * ldmain.c (main): Initialize new link_info member export_dynamic.
2015
20162001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2017
2018 * ldlang.c (walk_wild): Only call walk_wild_file if
2019 lookup_name returns something.
2020 (lookup_name): If load_symbols fails, return NULL.
2021 (load_symbols): Change to a boolean function.
2022 (open_input_bfds): If load_symbols fails then do not make the
2023 executable.
2024
20252001-06-08 Alan Modra <amodra@bigpond.net.au>
2026
2027 * ldlang.c (record_bfd_errors): Remove.
2028
2029 * emultempl/aix.em: Fix copyright dates.
2030
20312001-06-07 Andreas Jaeger <aj@suse.de>
2032
2033 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2034 (TEXT_START_ADDR): Likewise.
2035
20362001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2037
2038 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2039
20402001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2041
2042 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2043
20442001-05-31 H.J. Lu <hjl@gnu.org>
2045
2046 * ldlang.c (open_input_bfds): Don't change the bfd error
2047 handler whilst loading symbols.
2048
20492001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2050
2051 * configure.tgt: Remove i370-mvs architecture, it is not currently
2052 supported.
2053
20542001-05-25 H.J. Lu <hjl@gnu.org>
2055
2056 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2057 like emulparams/aixppc.sh.
2058
20592001-05-25 H.J. Lu <hjl@gnu.org>
2060
2061 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2062 setting of output_filename after bfd_scan_arch.
2063 * emultempl/pe.em: Likewise.
2064
20652001-05-25 H.J. Lu <hjl@gnu.org>
2066
2067 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2068 like emulparams/aixppc.sh.
2069
2070 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2071 instead of ${srcdir}/emultempl/stringify.sed.
2072
20732001-05-25 Timothy Wall <twall@oculustech.com>
2074
2075 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2076 output.
2077
20782001-05-25 Alan Modra <amodra@one.net.au>
2079
2080 * configure.host: Replace linuxoldld with linux*oldld.
2081 * configure.tgt: Likewise.
2082
20832001-05-24 H.J. Lu <hjl@gnu.org>
2084
2085 * emultempl/stringify.sed: Removed again.
2086
20872001-05-24 H.J. Lu <hjl@gnu.org>
2088
2089 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2090 (gld${EMULATION_NAME}_before_parse): Initialize
2091 ldfile_output_architecture, ldfile_output_machine and
2092 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2093 * emultempl/beos.em: Likewise.
2094 * emultempl/elf32.em: Likewise.
2095 * emultempl/linux.em: Likewise.
2096 * emultempl/mipsecoff.em: Likewise.
2097 * emultempl/pe.em: Likewise.
2098 * emultempl/sunos.em: Likewise.
2099
21002001-05-24 Tom Rix <trix@redhat.com>
2101
2102 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2103 udate import file format.
2104 (change_symbol_mode) New, same
2105 (is_syscall) New, same
2106 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2107 * emulparams/aixppc64.sh : same
2108 * emulparams/aixrs6.sh : same
2109 * emulparams/ppcmacos.sh : same
2110 * emultempl/aix.em : use strtoull to parse options
2111 * Makefile.am : add eaixppc64 emulation for xcoff64
2112 * Makefile.in : same
2113 * configure.tgt : same
2114
2115 * scripttempl/aix.sc : default text section offset to 0x10000000
2116 default data section offset to 0x20000000
2117 add .sv3264 and .sv64 pseudo sections
2118 loader and debug sections use the currect section offset.
2119
2120 * emultempl/aix.em : Add xcoff64 support
2121 Add -binitfini support
2122 (gld${EMULATION_NAME}_before_parse) -binitfini
2123 (gld${EMULATION_NAME}_parse_args) same
2124 (gld${EMULATION_NAME}_before_allocation) format change for special
2125 sections
2126
2127 * emulparams/aixppc64.sh : New file for xcoff64 support
2128
21292001-05-23 Alexandre Oliva <aoliva@redhat.com>
2130
2131 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2132 variable to avoid non-portable shell construct.
2133
21342001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2135
2136 * ldmain.c (get_emulation): Add -mips5 command line argument.
2137
21382001-05-22 Alexandre Oliva <aoliva@redhat.com>
2139
2140 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2141 (ELF_INTERPRETER_NAME): Define it.
2142 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2143 it.
2144 * configure.tgt (targ_emul, targ_extra_emuls)
2145 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2146 as primary, elf_i386 as extra.
2147 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2148 (eelf_i386_ldso.c): New rule.
2149 * Makefile.in: Rebuilt.
2150
21512001-05-22 Nick Clifton <nickc@redhat.com>
2152
2153 * lexsup.c (ld_options): Allow -I to be an alias for
2154 --dynamic-linker. This is for Solaris compatability.
2155 * ld.texinfo: Document that -I can be used.
2156 * ld.1: Regenerate.
2157
21582001-05-16 Alan Modra <amodra@one.net.au>
2159
2160 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2161 whether an input section is the first one assigned to an output
2162 section.
2163 Assorted formatting fixes.
2164
21652001-05-14 DJ Delorie <dj@delorie.com>
2166
2167 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2168 * Makefile.in: Ditto.
2169
21702001-05-11 Jakub Jelinek <jakub@redhat.com>
2171
2172 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2173 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2174 output sections.
2175 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2176
21772001-05-11 Jakub Jelinek <jakub@redhat.com>
2178
2179 * ldlang.c (lang_process): Call bfd_merge_sections.
2180
21812001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2182
2183 * ldgram.y: Fix typo.
2184
21852001-05-03 H.J. Lu <hjl@gnu.org>
2186
2187 * emultempl/elf32.em: Include "libiberty.h".
2188 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2189 basename of the bfd filename.
2190 (gld${EMULATION_NAME}_stat_needed): Likewise.
2191 (gld${EMULATION_NAME}_try_needed): Likewise.
2192 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2193
21942001-05-02 H.J. Lu <hjl@gnu.org>
2195
2196 * emultempl/pe.em: Include <ctype.h>.
2197
21982001-05-02 Johan Rydberg <jrydberg@opencores.org>
2199
2200 * emulparams/elf32openrisc.sh: New file.
2201
2202 * Makefile.am: Add OpenRISC target.
2203 * Makefile.in: Regenerated.
2204
2205 * configure.tgt: Add openrisc-*-* mapping.
2206
22072001-05-02 Nick Clifton <nickc@redhat.com>
2208
2209 * emultempl/aix.em: Replace buystring with xstrdup.
2210 * emultempl/beos.em: Replace buystring with xstrdup.
2211
22122001-05-02 H.J. Lu <hjl@gnu.org>
2213
2214 * ldfile.c: Include "libiberty.h".
2215 * ldlex.l: Likewise.
2216
2217 * ldmisc.c (buystring): Removed.
2218 * ldmisc.h: Likewise.
2219
2220 * ldfile.c: Replace buystring with xstrdup.
2221 * ldlang.c: Likewise.
2222 * ldlex.l: Likewise.
2223 * ldmain.c: Likewise.
2224 * ldmisc.c: Likewise.
2225 * lexsup.c: Likewise.
2226 * mpw-eppcmac.c: Likewise.
2227
22282001-04-30 Andreas Jaeger <aj@suse.de>
2229
2230 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2231
22322001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2233
2234 * ldlang.c (load_symbols): Give emulation a chance
2235 to process unrecognized file before fatal error is
2236 reported, not after.
2237
22382001-04-27 Sean McNeil <sean@mcneil.com>
2239
2240 * configure.tgt: Add arm-vxworks target.
2241 * scripttempl/armcoff.sc: Support .text or .data as a section name
2242 prefix.
2243 Define _etext.
2244
22452001-04-13 J.T. Conklin <jtc@redback.com>
2246
2247 * ld.texinfo: Document --fatal-warnings.
2248 * ld.1: Regenerate.
2249
2250 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2251 warnings have been turned into errors.
2252 * lexsup.c (OPTION_WARN_FATAL): Define.
2253 (ld_options): Entry for --fatal-warnings.
2254 (parse_args): Handle OPTION_WARN_FATAL.
2255 * ld.h (ld_config_type): Add fatal_warnings field.
2256
22572001-04-13 Jakub Jelinek <jakub@redhat.com>
2258
2259 * ldmain.c (main): Default to discard_sec_merge.
2260 * lexsup.c (OPTION_DISCARD_NONE): Define.
2261 (ld_options): Add --discard-none.
2262 (parse_args): Handle OPTION_DISCARD_NONE.
2263 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2264 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2265 all its input sections match.
2266
22672001-04-05 Steven J. Hill <sjhill@cotw.com>
2268
2269 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2270 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2271 (eelf32ltsmip.c): New target.
2272 (eelf64btsmip.c): Likewise.
2273 (eelf64ltsmip.c): Likewise.
2274 * Makefile.in: Regenerated.
2275
2276 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2277 target.
2278 (mips*-*-linux-gnu*): Likewise.
2279
2280 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2281 MIPS taget.
2282 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2283 target.
2284 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2285 endian target.
2286
22872001-04-05 Hans-Peter Nilsson <hp@axis.com>
2288
2289 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2290 correct value of __Stext here.
2291 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2292 .startup section.
2293
2294 * emulparams/crislinux.sh: Remove FIXME.
2295
22962001-04-02 Alan Modra <alan@linuxcare.com.au>
2297
2298 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2299 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2300
23012001-03-27 Hans-Peter Nilsson <hp@axis.com>
2302
2303 * configure.tgt (cris-*-*): Change default emulation to criself.
2304 (cris-*-*aout*): New rule.
2305
23062001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2307
2308 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2309 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2310
23112001-03-26 Andreas Jaeger <aj@suse.de>
2312
2313 * ld.texinfo (Overview): Fix syntax in texi code.
2314
23152001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2316
2317 * ld.texinfo: Put @c man indications to generate the ld man page.
2318 When generating man, define all the variables. Define SEEALSO
2319 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2320 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2321 (ld.1): Generate from ld.texinfo.
2322 * Makefile.in: Regenerate.
2323
23242001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2325
2326 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2327 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2328
23292001-03-17 Ulrich Drepper <drepper@redhat.com>
2330
2331 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2332 is an absolute path look only for this file and not along the path.
2333
23342001-03-17 Ulrich Drepper <drepper@redhat.com>
2335
2336 * emultempl/elf32.em (OPTION_GROUP): New macro.
2337 Add new option Bgroup to longopts.
2338 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2339 (gld*_list_options): Add -Bgroup and -z defs.
2340 * ld.1: Document -Bgroup and -z defs.
2341 * ld.texinfo: Likewise.
2342
23432001-03-07 Michael Meissner <meissner@redhat.com>
2344
2345 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2346 with sections created by -fdata-sections.
2347 (.dynbss,.bss): Ditto.
2348
23492001-03-05 Alan Modra <alan@linuxcare.com.au>
2350
2351 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2352 after_allocation_default, not gld..._before_allocation.
2353
23542001-02-27 Alan Modra <alan@linuxcare.com.au>
2355
2356 * configure.in (BFD_VERSION): New.
2357 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2358 * configure: Regenerate.
2359 * Makefile.am: Run "make dep-am"
2360 * Makefile.in: Regenerate.
2361
23622001-02-26 Timothy Wall <twall@cygnus.com>
2363
2364 * emulparams/elf64_aix.sh: Add additional read-only sections;
2365 uncomment lines which are now required.
2366
23672001-02-26 H.J. Lu <hjl@gnu.org>
2368
2369 * ldlang.c (open_input_bfds): Set the bfd error handler so
2370 that problems can be caught whilst loading symbols.
2371 (record_bfd_errors): New function: Report BFD errors and mark
2372 the executable output as being invalid.
2373
23742001-02-22 Timothy Wall <twall@cygnus.com>
2375
2376 * configure.host: Add configuration for ia64-*-aix*.
2377 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2378 Add dependencies for eelf64_aix.c.
2379 * Makefile.in: Regenerate.
2380 * configure.tgt: Add ia64-*-aix* mapping.
2381 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2382 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2383 AIX-specific test.
2384
23852001-02-20 H.J. Lu <hjl@gnu.org>
2386
2387 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2388 false if we found the file.
2389
23902001-02-18 David O'Brien <obrien@FreeBSD.org>
2391
2392 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2393 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2394
23952001-02-18 lars brinkhoff <lars@nocrew.org>
2396
2397 * Makefile.am: Add PDP-11 target.
2398 * configure.tgt: Likewise.
2399 * emulparams/pdp11.sh: New file.
2400
24012001-02-17 David O'Brien <obrien@FreeBSD.org>
2402
2403 * configure.host: Add a generic FreeBSD configuration entry such that
2404 all [modern] FreeBSD systems on all platforms will look the same.
2405
24062001-02-14 H.J. Lu <hjl@gnu.org>
2407
2408 * configure.tgt: Remove mention of earmelf_linux26.
2409
24102001-02-13 Richard Henderson <rth@redhat.com>
2411
2412 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2413
24142001-02-13 H.J. Lu <hjl@gnu.org>
2415
2416 * ldexp.h (node_type): Add etree_provided.
2417 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2418 type to etree_provided if defined by PROVIDE. Allow updating
2419 for etree_provided.
2420 (exp_print_tree): Handle etree_provided.
2421 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2422 etree_provided.
2423
24242001-02-09 David Mosberger <davidm@hpl.hp.com>
2425
2426 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2427 .IA_64.unwind.* pattern to unwind table section and
2428 .IA_64.unwind_info* pattern to unwind info section.
2429
24302001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2431
2432 * Makefile.am: Add linux target for S/390.
2433 * Makefile.in: Likewise.
2434 * configure.host: Likewise.
2435 * configure.tgt: Likewise.
2436 * emulparams/elf64_s390.sh: New file.
2437 * emulparams/elf_s390.sh: New file.
2438
24392001-02-09 Jakub Jelinek <jakub@redhat.com>
2440
2441 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2442 targ_extra_libpath.
2443 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2444
24452001-02-06 Philip Blundell <philb@gnu.org>
2446
2447 * Makefile.am: Remove mention of earmelf_linux26.
2448 * Makefile.in: Regenerate.
2449
24502001-02-04 Philip Blundell <philb@gnu.org>
2451
2452 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2453 * emulparams/armelf_linux26.sh: Delete.
2454 * configure.tgt: Remove mention of armelf_linux26 emulation.
2455
24562001-02-01 Nick Clifton <nickc@redhat.com>
2457
2458 * ld.1: Replace occurances of -oformat with --oformat.
2459
24602001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2461
2462 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2463 load_base is specified.
2464
24652001-01-24 Hans-Peter Nilsson <hp@axis.com>
2466
2467 * emultempl/elf32.em: Correct spelling in comments and listed
2468 options.
2469
24702001-01-23 Alan Modra <alan@linuxcare.com.au>
2471
2472 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2473 default for the first section of a group of overlay sections.
2474
24752001-01-22 Alan Modra <alan@linuxcare.com.au>
2476
2477 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2478 * Makefile.in: Regenerate.
2479 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2480 Check for null tool_dir.
2481
24822001-01-16 Jim Wilson <wilson@redhat.com>
2483
2484 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2485 and IA_64.unwind.info.
2486
24872001-01-16 H.J. Lu <hjl@gnu.org>
2488
2489 * ldlang.c (lang_check): Merge the private data only if the
2490 input file has contents.
2491
24922001-01-14 Alan Modra <alan@linuxcare.com.au>
2493
2494 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2495
2496 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2497 enabling search for libmilli. On a relocatable link, make .text
2498 sections unique.
2499 (LDEMUL_AFTER_PARSE): Define.
2500 (hppaelf_finish): Correct spelling of relocatable in comments.
2501
2502 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2503 rummage through the script for sections on the unique list.
2504 Correct length of strncmp for ".note".
2505 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2506
2507 * ldlang.c (unique_section_list): New var.
2508 (unique_section_p): New function.
2509 (walk_wild_section): Don't match sections on unique_section_list.
2510 (lang_add_unique): New function.
2511 Correct spelling of relocatable in comments.
2512
2513 * ldlang.h (struct unique_sections): Declare.
2514 (unique_section_list): Declare.
2515 (unique_section_p): Declare.
2516 (lang_add_unique): Declare.
2517
2518 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2519 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2520
2521 * ld.texinfo (--unique): Update.
2522
25232001-01-13 Nick Clifton <nickc@redhat.com>
2524
2525 * lexsup.c (parse_args): Remove spurious white space.
2526
25272001-01-12 Nick Clifton <nickc@redhat.com>
2528
2529 * lexsup.c (parse_args): Update copyright date.
2530
25312001-01-12 Philip Blundell <pb@futuretv.com>
2532
2533 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2534
25352001-01-10 Kazu Hirata <kazu@hxi.com>
2536
2537 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2538 * scripttempl/h8300h.sc: Fix formatting.
2539 * scripttempl/h8300s.sc: Likewise.
2540 * scripttempl/h8500.sc: Likewise.
2541 * scripttempl/h8500b.sc: Likewise.
2542 * scripttempl/h8500c.sc: Likewise.
2543 * scripttempl/h8500m.sc: Likewise.
2544 * scripttempl/h8500s.sc: Likewise.
2545
25462000-01-07 David O'Brien <obrien@BSDi.com>
2547
2548 * emultempl/elf32.em: Only perform Linux ld hints processing when
2549 targeting Linux.
2550
25512001-01-07 Philip Blundell <philb@gnu.org>
2552
2553 * ld.texinfo (Bug Reporting): Update email address for reports.
2554
25552000-12-31 Nick Clifton <nickc@redhat.com>
2556
2557 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2558 options by checking for a return value of '?' not -1.
2559
25602000-12-28 Nick Clifton <nickc@redhat.com>
2561
2562 * lexsup.c (struct ld_option): Add new enum value:
2563 EXACTLY_TWO_DASHES.
2564 (ld_options[]): Change -omagic, -output and -oformat options
2565 to be EXACTLY_TWO_DASHES.
2566 (OUTPUT_COUNT): Use ARRAY_SIZE.
2567 (parse_args): Change parameter 'argc' to unsigned.
2568 Place EXACTLY_TWO_DASHES options into new really_longopts
2569 array.
2570 If getopt_long_only fails, try calling getopt_long using the
2571 really_longopts array.
2572 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2573 TWO_DASHES options.
2574
2575 * ldlex.h: Fix prototype of parse_args.
2576
2577 * ld.texinfo: Document that long options starting with 'o'
2578 must be preceeded by two dashes. Change example of a single
2579 dashed long option from -oformat to -trace-symbol.
2580
25812000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2582
2583 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2584 (longopts[]): New --no-default-excludes option.
2585 (gld_${EMULATION_NAME}_list_options): Document.
2586 (gld_${EMULATION_NAME}_parse_args): Handle.
2587
25882000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2589
2590 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2591 whitespace, it breaks the K&R C preprocessor.
2592
25932000-12-11 DJ Delorie <dj@redhat.com>
2594
2595 * ld.texinfo: Add notes about --whole-archive and gcc.
2596
25972000-11-18 Fred Fish <fnf@be.com>
2598
2599 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2600 (ld_options): Entry for --allow-shlib-undefined.
2601 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2602 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2603 to false.
2604 * ld.texinfo: Document new command line switch.
2605
26062000-12-12 Geoffrey Keating <geoffk@redhat.com>
2607
2608 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2609 .fixup is actually read/write.
2610 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2611 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2612 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2613
26142000-12-11 Jan Hubicka <jh@suse.cz>
2615
2616 * NEWS: Add note about x86_64 architecture.
2617
26182000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2619
2620 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2621 Set DWARF2 sections to a VMA of zero.
2622
26232000-12-01 Joel Sherrill <joel@OARcorp.com>
2624
2625 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2626 New targets.
2627 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2628 (sparc*-*-rtems*): Switched from a.out to ELF.
2629
26302000-11-30 Jan Hubicka <jh@suse.cz>
2631
2632 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2633 (eelf_x86_64.c): New.
2634 * Makefile.in: Regenerate.
2635 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2636 * emulparams/elf_x86_64.sh: New.
2637
26382000-11-30 Hans-Peter Nilsson <hp@axis.com>
2639
2640 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2641 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2642
2643 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2644 merging non-a.out sections into CONSTRUCTING.
2645
26462000-11-28 Nick Clifton <nickc@redhat.com>
2647
2648 * ld.1 (COPYING): Mention that the GNU Free Documentation
2649 License is present in the sources, but not the output, and
2650 also available from the GNU website.
2651 (GNU Free Documentation License): Comment out this section.
2652
26532000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2654
2655 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2656 does not use them.
2657
26582000-11-25 David O'Brien <obrien@FreeBSD.org>
2659
2660 * ld.1: Remove old date so it does not give the impression the manpage
2661 is way out of date.
2662
26632000-11-24 Nick Clifton <nickc@redhat.com>
2664
2665 * configure.tgt (xscale-coff): Add target.
2666 (xscale-elf): Add target.
2667
26682000-11-24 Fred Fish <fnf@be.com>
2669
2670 * ldmain.c (main): Remove redundant init of config.make_executable
2671 to true.
2672
26732000-11-15 Richard Henderson <rth@redhat.com>
2674
2675 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2676
26772000-11-14 Kazu Hirata <kazu@hxi.com>
2678
2679 * scripttempl/h8300.sc: Fix formatting.
2680 * scripttempl/h8300h.sc: Likewise.
2681 * scripttempl/h8300s.sc: Likewise.
2682
26832000-11-14 Denis Chertykov <denisc@overta.ru>
2684
2685 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2686
26872000-11-09 Philip Blundell <pb@futuretv.com>
2688
2689 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2690 around orphan sections whose names can be represented in C.
2691
26922000-11-07 Jim Wilson <wilson@redhat.com>
2693
2694 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2695 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2696
26972000-11-06 Nick Clifton <nickc@redhat.com>
2698
2699 * ld.texinfo: Add GNU Free Documentation License.
2700 * ldint.texinfo: Add GNU Free Documentation License.
2701 * ld.1: Add GNU Free Documentation License.
2702
27032000-11-05 Alan Modra <alan@linuxcare.com.au>
2704
2705 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2706 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2707
2708 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2709 Move 2000-11-02 Makefile.in changes to this file.
2710 * Makefile.in: Regenerate.
2711
27122000-11-03 Nick Clifton <nickc@redhat.com>
2713
2714 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2715 constructors and destructors.
2716 * scripttempl/h8300h.sc: Ditto.
2717 * scripttempl/h8300s.sc: Ditto.
2718 * scripttempl/h8500.sc: Ditto.
2719 * scripttempl/h8500b.sc: Ditto.
2720 * scripttempl/h8500c.sc: Ditto.
2721 * scripttempl/h8500m.sc: Ditto.
2722 * scripttempl/h8500s.sc: Ditto.
2723 * scripttempl/v850.sc: Ditto.
2724 * scripttempl/w65.sc: Ditto.
2725 * scripttempl/z8000.sc: Ditto.
2726
27272000-11-02 Per Lundberg <plundis@chaosdev.org>
2728
2729 * Makefile.in (e_i386_chaos.c): New rule.
2730 (ALL_EMULATIONS): Added e_i386_chaos.o.
2731 * emulparams/elf_i386_chaos.sh: New file.
2732 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2733
27342000-10-20 Jakub Jelinek <jakub@redhat.com>
2735
2736 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2737 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2738 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2739 library path suffix.
2740 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2741
27422000-10-18 Hans-Peter Nilsson <hp@axis.com>
2743
2744 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2745 for consecutive sections.
2746
27472000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2748
2749 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2750 options.
2751 * ld.texinfo: Added notes about this new option.
2752
27532000-10-16 Nick Clifton <nickc@redhat.com>
2754
2755 * emultempl/pe.em (_after_open): Add tests of return values from
2756 bfd functions. Emit appropriate error messages if necessary.
2757
27582000-10-13 Nick Clifton <nickc@redhat.com>
2759
2760 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2761 local variables - they are not used, but leave in the call to
2762 bfd_canonicalize_symtab.
2763 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2764 pe_dll_search_prefix.
2765
27662000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2767
2768 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2769 (longopts): New --dll-search-prefix option.
2770 (gld_${EMULATION_NAME}_list_options): Document.
2771 (gld_${EMULATION_NAME}_parse_args): Handle.
2772 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2773 dynamically, search for a dll named '<prefix><basename>.dll'
2774 in preference to 'lib<basename>.dll' if --dll-search-prefix
2775 is specified.
2776
27772000-10-12 Alan Modra <alan@linuxcare.com.au>
2778
2779 * ldlang.c (section_already_linked): Set kept_section instead of
2780 sec->comdat->sec.
2781
27822000-10-10 Kazu Hirata <kazu@hxi.com>
2783
2784 * deffile.h: Fix formatting.
2785 * lexsup.c: Likewise.
2786 * mri.c: Likewise.
2787
27882000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2789
2790 * pe-dll.c (make_one): Do not generate code thunk for DATA
2791 exports.
2792 (process_def_file): deduce DATA flag for auto-export sumbols.
2793
27942000-10-09 Kazu Hirata <kazu@hxi.com>
2795
2796 * ld.h: Fix formatting.
2797 * ldcref.c: Likewise.
2798 * ldctor.h: Likewise.
2799 * ldemul.c: Likewise.
2800 * ldemul.h: Likewise.
2801 * ldexp.c: Likewise.
2802 * ldexp.h: Likewise.
2803 * ldfile.c: Likewise.
2804 * ldfile.h: Likewise.
2805 * ldlang.c: Likewise.
2806 * ldlang.h: Likewise.
2807 * ldmain.c: Likewise.
2808 * pe-dll.c: Likewise.
2809
2810 * pe-dll.c: Revert some formatting fixes.
2811
28122000-10-08 Kazu Hirata <kazu@hxi.com>
2813
2814 * pe-dll.c: Fix formatting.
2815
28162000-10-05 Kazu Hirata <kazu@hxi.com>
2817
2818 * ldlang.c: Fix formatting.
2819
28202000-10-03 DJ Delorie <dj@redhat.com>
2821
2822 * pe-dll.c (fill_edata): initialize entire block
2823 (make_one): fill in correct section.
2824
28252000-10-03 Kazu Hirata <kazu@hxi.com>
2826
2827 * ldexp.c: Fix formatting.
2828
28292000-10-02 DJ Delorie <dj@redhat.com>
2830
2831 * emultempl/pe.em (gld_*_after_open): detect case where there two
2832 import libraries for same dll; rename one to ensure proper link
2833 order.
2834
2835 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2836 typo
2837 (generate_edata): fix typo
2838
28392000-09-29 Hans-Peter Nilsson <hp@axis.com>
2840
2841 * scripttempl/crisaout.sc (ENTRY): Now __start.
2842 (.text): Add default setting for __start.
2843 Remove CONSTRUCTORS handling.
2844 (/DISCARD/): Add .gnu.warning.*.
2845 * emulparams/crislinux.sh (ENTRY): Now __start.
2846 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2847 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2848 (ENTRY): Now __start.
2849 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2850 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2851
28522000-09-29 Kazu Hirata <kazu@hxi.com>
2853
2854 * deffile.h: Fix formatting.
2855 * ld.h: Likewise.
2856 * ldcref.c: Likewise.
2857 * ldctor.c: Likewise.
2858 * ldctor.h: Likewise.
2859 * ldemul.c: Likewise.
2860 * ldemul.h: Likewise.
2861 * ldexp.c: Likewise.
2862 * ldexp.h: Likewise.
2863 * ldfile.c: Likewise.
2864 * ldfile.h: Likewise.
2865 * ldlang.c: Likewise.
2866 * ldlang.h: Likewise.
2867 * lexsup.c: Likewise.
2868 * mri.c: Likewise.
2869 * pe-dll.c: Likewise.
2870
28712000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2872
2873 * pe-dll.c (process_def_file): Uninitialized data wasn't
2874 exported with --export-all-symbols switch.
2875
28762000-09-28 DJ Delorie <dj@redhat.com>
2877
2878 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2879 noname work properly.
2880
28812000-09-28 Alan Modra <alan@linuxcare.com.au>
2882
2883 * ld.texinfo (HPPA ELF32): New section.
2884
2885 * emultempl/hppaelf.em (group_size): New.
2886 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2887 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2888 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2889 options to prevent abbreviations matching.
2890 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2891 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2892
28932000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2894
2895 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2896 on the m68*-*-elf target. Make it support COFF input objects.
2897
28982000-09-21 Kazu Hirata <kazu@hxi.com>
2899
2900 * ldmain.c: Fix formatting.
2901 * ldmisc.c: Likewise.
2902 * ldver.c: Likewise.
2903 * ldwrite.c: Likewise.
2904
29052000-09-21 Alan Modra <alan@linuxcare.com.au>
2906
2907 * ldwrite.c (clone_section): Silence gcc warnings.
2908
29092000-09-20 Alan Modra <alan@linuxcare.com.au>
2910
2911 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2912 out of memory failure.
2913
2914 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2915 (clone_section): Handle out of memory failures. Rename var to
2916 avoid c++ reserved word.
2917
29182000-09-18 Alan Modra <alan@linuxcare.com.au>
2919
2920 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2921 stub_name param to stub_sec_name.
2922 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2923
29242000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2925
2926 * emultempl/m68kelf.em: New file.
2927 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2928 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2929 * Makefile.in: Regenerate.
2930
29312000-09-15 Alan Modra <alan@linuxcare.com.au>
2932
2933 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2934 only as needed.
2935
29362000-09-13 Nick Clifton <nickc@redhat.com>
2937
2938 * ldmain.c (multiple_definition): Disable relaxation if
2939 multiple symbol definitions are encountered - otherwise the
2940 linker could abort with an assertion failure.
2941
29422000-09-10 Nick Clifton <nickc@redhat.com>
2943
2944 * mri.c: Fix formatting.
2945
29462000-09-07 H.J. Lu <hjl@gnu.org>
2947
2948 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2949 * configure: Rebuild.
2950
29512000-09-07 H.J. Lu <hjl@gnu.org>
2952
2953 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2954 * Makefile.in: Rebuild.
2955
29562000-09-07 Alan Modra <alan@linuxcare.com.au>
2957
2958 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2959 broken list handling. Create __start_SECNAME and __stop_SECNAME
2960 when no place-holder. Add some comments. Test both SEC_CODE and
2961 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2962 Handle case where no output section statement created.
2963
29642000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2965
2966 * configure.tgt (sh-*-linux*): Added.
2967 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2968 * Makefile.in: Rebuilt.
2969 * emulparams/shelf_linux.sh: New file.
2970 * emulparams/shlelf_linux.sh: New file.
2971
29722000-09-06 Alan Modra <alan@linuxcare.com.au>
2973
2974 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2975 try shuffling sections when the orphan happens to be the place
2976 holder. Keep count of unique section names generated so we speed
2977 the search for a new name.
2978
29792000-09-06 Alexandre Oliva <aoliva@redhat.com>
2980
2981 * configure: Rebuilt with new libtool.m4.
2982
29832000-09-05 Nick Clifton <nickc@redhat.com>
2984
2985 * Makefile.in: Regenerate.
2986 * aclocal.m4: Regenerate.
2987 * configure: Regenerate.
2988 * config.in: Regenerate.
2989 * po/ld.pot: Regenerate.
2990
2991 * ldint.texinfo: Remove CVS revision marker - it foils local
2992 comparisons.
2993
2994 * emultempl/ticoff.em: Remove extraneous comma.
2995
29962000-09-05 Alan Modra <alan@linuxcare.com.au>
2997
2998 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2999 to stub section flags.
3000 (hppa_for_each_input_file_wrapper): New.
3001 (hppa_lang_for_each_input_file): New.
3002 (lang_for_each_input_file): Define to call above.
3003 (multi_subspace): New.
3004 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3005 (PARSE_AND_LIST_PROLOGUE): Define.
3006 (PARSE_AND_LIST_LONGOPTS): Define.
3007 (PARSE_AND_LIST_OPTIONS): Define.
3008 (PARSE_AND_LIST_ARGS_CASES): Define.
3009 (hppaelf_finish): Call elf32_hppa_set_gp.
3010 (hppaelf_set_output_arch): Remove.
3011 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3012
3013 * emulparams/hppalinux.sh (ELFSIZE): Define.
3014 (MACHINE): Define.
3015 (OTHER_READONLY_SECTIONS): Define.
3016 (DATA_PLT): Define.
3017 (GENERATE_SHLIB_SCRIPT): Define.
3018
3019 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3020 to const throughout. Change `void *' to `PTR' throughout.
3021 (lang_memory_default): Function is local to file, add `static'.
3022
3023 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3024 (ehppalinux.c): Likewise.
3025 (earmelf.c): Likewise.
3026 (earmelf_linux.c): Likewise.
3027 (earmelf_linux26.c): Likewise.
3028 * Makefile.in: Regenerate.
3029
3030 * ld.h (ld_config_type): Add unique_orphan_sections.
3031 * lexsup.c (OPTION_UNIQUE): Define.
3032 (ld_options): Add "--unique".
3033 (parse_args): Handle it.
3034 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3035 search for an existing output section if unique_orphan_sections is
3036 set. Make use of bfd_get_unique_section_name rather than
3037 duplicating code here.
3038 * ld.texinfo: Describe --unique.
3039
3040 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3041 optional arg to split-by-file.
3042 (parse_args): Handle them.
3043 * ld.texinfo: Update description of these options.
3044 * ldwrite.c (clone_section): Pass in the section name. Replace
3045 local code with bfd_get_unique_section_name.
3046 (split_sections): Tidy code and comments. Use a list traversal
3047 more appropriate to the list construction. Handle cooked section
3048 sizes. Split when split_by_reloc reached rather than exceeded.
3049 Track section size and split when split_by_file reached. Fix
3050 link_order_tail (even though it's not used).
3051 (ldwrite): Modify condition for calling split_sections to suit
3052 changed split_by_reloc and split_by_file.
3053 * ldmain.c (main): Init config.split_by_reloc and
3054 config.split_by_file to -1.
3055 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3056 Change split_by_file to bfd_size_type.
3057
30582000-09-02 Nick Clifton <nickc@redhat.com>
3059
3060 * configure.in: Increase version number to 2.10.91.
3061 * NEWS: Mention new ability to support removal of duplicate DWARF2
3062 debug information.
3063 * configure: Regenerate.
3064 * aclocal.m4: Regenerate.
3065 * config.in: Regenerate.
3066
30672000-09-02 Daniel Berlin <dberlin@redhat.com>
3068
3069 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3070 sections.
3071 * scripttempl/elf32avr.sc: Ditto.
3072 * scripttempl/elfd10v.sc: Ditto.
3073 * scripttempl/elfd30v.sc: Ditto.
3074 * scripttempl/elfi370.sc: Ditto.
3075 * scripttempl/elfm68hc11.sc: Ditto.
3076 * scripttempl/elfm68hc12.sc: Ditto.
3077 * scripttempl/elfi386beos.sc: Ditto.
3078 * scripttempl/v850.sc: Ditto.
3079
30802000-08-31 Alexandre Oliva <aoliva@redhat.com>
3081
3082 * acinclude.m4: Include libtool and gettext macros from the
3083 top level.
3084 * aclocal.m4, configure: Rebuilt.
3085
30862000-08-25 Nick Clifton <nickc@redhat.com>
3087
3088 * ldlang.c (open_output): When choosing the target for a
3089 particular endianness, do nothing if the target is not
3090 supported.
3091
30922000-08-25 H.J. Lu <hjl@gnu.org>
3093
3094 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3095 check -rpath nor LD_RUN_PATH for cross link.
3096 * ld.texinfo: Document the change.
3097
30982000-08-24 Hans-Peter Nilsson <hp@axis.com>
3099
3100 * NEWS: Mention support for CRIS.
3101
31022000-08-23 H.J. Lu <hjl@gnu.org>
3103
3104 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3105 the current runpath list from bfd_elf_get_runpath_list ()
3106 before search.
3107
31082000-08-22 H.J. Lu <hjl@gnu.org>
3109
3110 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3111 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3112 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3113 trace_file_tries is non-zero.
3114 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3115 if trace_file_tries is non-zero.
3116
3117 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3118 * NEWS: Mention it.
3119
31202000-08-14 Jason Eckhardt <jle@cygnus.com>
3121
3122 * NEWS: Mention i860 support.
3123
31242000-08-14 Andreas Schwab <schwab@suse.de>
3125
3126 * scripttempl/elf.sc: Fix last change to use correct comment
3127 syntax.
3128
31292000-08-10 Geoff Keating <geoffk@cygnus.com>
3130
3131 * scripttempl/elf.sc: Add a comment giving the correspondence
3132 between sections, per-datum sections, and linkonce sections. Make
3133 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3134 .sbss2.
3135
31362000-08-10 Jason Eckhardt <jle@cygnus.com>
3137
3138 * emulparams/elf32_i860.sh: New file.
3139 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3140 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3141 (eelf32_i860.c): New rule.
3142 * Makefile.in: Regenerate.
3143
31442000-08-10 Nick Clifton <nickc@cygnus.com>
3145
3146 * emulparams/mipspe.sh (ENTRY): Add definition.
3147
31482000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3149
3150 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3151 in error message.
3152
31532000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3154
3155 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3156 the final size of .bss section.
3157 * scripttempl/elfm68hc12.sc: Likewise.
3158
31592000-08-04 Alan Modra <alan@linuxcare.com.au>
3160
3161 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3162 gld${EMULATION_NAME}_parse_args for consistency. Combine
3163 lastoptind and prevoptind vars, and keep track of last optind.
3164 (gld_${EMULATION_NAME}_list_options): Rename to
3165 gld${EMULATION_NAME}_list_options.
3166
31672000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3168
3169 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3170 (i586-sco-sysv5uw7.1.0).
3171
31722000-07-27 H.J. Lu <hjl@gnu.org>
3173
3174 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3175 (PARSE_AND_LIST_PROLOGUE): New.
3176 (PARSE_AND_LIST_LONGOPTS): Likewise.
3177 (PARSE_AND_LIST_OPTIONS): Likewise.
3178 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3179 (PARSE_AND_LIST_EPILOGUE): Likewise.
3180
31812000-07-28 Alan Modra <alan@linuxcare.com.au>
3182
3183 * emultempl/armelf.em: Elide functions common to elf32.em,
3184 ie. most of the file.
3185 (arm_elf_after_open): New. Do arm specific things then call
3186 gld${EMULATION_NAME}_after_open.
3187 (arm_elf_before_allocation): New. Call
3188 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3189 (PARSE_AND_LIST_PROLOGUE): Define.
3190 (PARSE_AND_LIST_SHORTOPTS): Define.
3191 (PARSE_AND_LIST_LONGOPTS): Define.
3192 (PARSE_AND_LIST_OPTIONS): Define.
3193 (PARSE_AND_LIST_ARGS_CASES): Define.
3194 (LDEMUL_AFTER_OPEN): Define.
3195 (LDEMUL_BEFORE_ALLOCATION): Define.
3196 (LDEMUL_BEFORE_PARSE): Define.
3197 (LDEMUL_FINISH): Define.
3198
3199 * emultempl/hppaelf.em: Similarly zap most of this file.
3200 (hppaelf_add_stub_section): Prototype.
3201 (hppaelf_layaout_sections_again): Prototype.
3202 (hook_in_stub): Prototype.
3203 (LDEMUL_SET_OUTPUT_ARCH): Define.
3204 (LDEMUL_FINISH): Define.
3205 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3206
3207 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3208 (EXTRA_EM_FILE): New.
3209 * emulparams/armelf_linux.sh: Likewise.
3210 * emulparams/armelf_linux26.sh: Likewise.
3211 * emulparams/hppalinux.sh: Likewise.
3212 * emulparams/hppaelf.sh: Likewise.
3213 (NOP): Define.
3214
3215 * emultempl/elf32.em: Fix formatting.
3216 (EXTRA_EM_FILE): Source it.
3217 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3218 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3219 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3220 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3221 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3222 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3223 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3224 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3225 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3226 allow functions in this file to be overridden.
3227 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3228
3229 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3230
3231 * emultempl/elf32.em: Reorganize file.
3232
32332000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3234
3235 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3236 specific option to fit 64-bit executable in the lower
3237 31-bit address range. This is done by changing start
3238 address of .interp (the very first section of executable)
3239 and then setting EF_ALPHA_32BIT elf header flag.
3240
32412000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3242
3243 * emultempl/m68kcoff.em: New file.
3244 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3245 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3246 generic.em.
3247 * Makefile.in: Regenerate.
3248
32492000-07-20 H.J. Lu <hjl@gnu.org>
3250
3251 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3252 and "disable-new-dtags" to stop getopt from treating -d/-e as
3253 abbreviations for these options.
3254
32552000-07-20 H.J. Lu <hjl@gnu.org>
3256
3257 * ld.texinfo: Add documentation for --disable-new-dtags and
3258 --enable-new-dtags.
3259
3260 * ldmain.c (main): Initialize link_info.new_dtags to false.
3261
3262 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3263 --disable-new-dtags and --enable-new-dtags.
3264 (gld_${EMULATION_NAME}_list_options): Likewise.
3265
32662000-07-05 Kenneth Block <krblock@computer.org>
3267
3268 * lexsup.c: Add optional style to demangle switch
3269 * ld.texinfo: Document optional style to demangle switch.
3270
32712000-07-20 Hans-Peter Nilsson <hp@axis.com>
3272
3273 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3274 ecrislinux.o.
3275 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3276 Regenerate dependencies.
3277 * Makefile.in: Rebuild.
3278 * configure.tgt (cris-*-*): New target.
3279 * emulparams/crisaout.sh, emulparams/criself.sh,
3280 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3281 * po/POTFILES.in, po/ld.pot: Regenerate.
3282
32832000-07-20 H.J. Lu <hjl@gnu.org>
3284
3285 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3286 Print out ignored -z options.
3287
32882000-07-19 H.J. Lu <hjl@gnu.org>
3289
3290 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3291 (PARSE_AND_LIST_PROLOGUE): New.
3292 (PARSE_AND_LIST_LONGOPTS): Likewise.
3293 (PARSE_AND_LIST_OPTIONS): Likewise.
3294 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3295
3296 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3297
3298 * lexsup.c (ld_options): Comment out 'z'.
3299 (parse_args): Likewise.
3300
3301 * emultempl/elf32.em: Include "elf/common.h".
3302 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3303 options.
3304 (gld_${EMULATION_NAME}_list_options): Likewise.
3305
3306 * ld.texinfo: Add documentation for the recognized -z options.
3307
33082000-07-19 H.J. Lu <hjl@gnu.org>
3309
3310 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3311 bfd_elf_set_dt_needed_soname ().
3312
33132000-07-18 DJ Delorie <dj@cygnus.com>
3314
3315 * pe-dll.c (pe_dll_id_target): check object target name also
3316
33172000-07-18 Hans-Peter Nilsson <hp@axis.com>
3318
3319 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3320 ${INIT_END} if relocating.
3321 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3322
33232000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3324
3325 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3326 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3327 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3328 errors introduced by the old dynamic lib search order.
3329
33302000-07-17 DJ Delorie <dj@cygnus.com>
3331
3332 * pe-dll.c (process_def_file): auto-export data items also
3333 (pe_process_import_defs): also see if _imp_ form needed
3334
33352000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3336
3337 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3338 for dll import libraries
3339
33402000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3341
3342 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3343 gcc 2.95.2 and later.
3344
33452000-07-11 Kazu Hirata <kazu@hxi.com>
3346
3347 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3348 message.
3349
33502000-07-10 Alan Modra <alan@linuxcare.com.au>
3351
3352 * ldemul.h (struct lang_input_statement_struct): Remove forward
3353 declaration.
3354 (struct search_dirs): Likewise.
3355 * ldfile.h (struct lang_input_statement_struct): Likewise.
3356 Protect file from multiple inclusion.
3357 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3358 declaration from macro to file scope.
3359
3360 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3361 * ldgram.y: Likewise here.
3362 * ldlang.c: And here.
3363 * ldmain.c: And here.
3364 * mpw-elfmips.c: And here.
3365 * mpw-eppcmac.c: And here.
3366 * emultempl/aix.em: And here.
3367 * emultempl/armcoff.em: And here.
3368 * emultempl/armelf.em: And here.
3369 * emultempl/armelf_oabi.em: And here.
3370 * emultempl/beos.em: And here.
3371 * emultempl/elf32.em: And here.
3372 * emultempl/hppaelf.em: And here.
3373 * emultempl/linux.em: And here.
3374 * emultempl/lnk960.em: And here.
3375 * emultempl/pe.em: And here.
3376 * emultempl/sunos.em: And here.
3377 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3378 * mpw-idtmips.c: Ditto.
3379 * emultempl/generic.em: Ditto.
3380 * emultempl/gld960.em: Ditto.
3381 * emultempl/gld960c.em: Ditto.
3382 * emultempl/mipsecoff.em: Ditto.
3383 * emultempl/ticoff.em: Ditto.
3384 * emultempl/vanilla.em: Ditto.
3385
3386 * pe-dll.c: Include ldfile.h
3387 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3388
3389 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3390 arguments to bfd_elf32_size_dynamic_sections call.
3391 (gldelf32ebmip_place_orphan): Add missing arguments to
3392 lang_leave_output_section_statement call.
3393
33942000-07-10 H.J. Lu <hjl@gnu.org>
3395
3396 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3397 DLL_SUPPORT.
3398 (strhash): Likewise.
3399 (compute_dll_image_base): Likewise.
3400 (pe_undef_found_sym): Likewise.
3401 (pe_undef_cdecl_match): Likewise.
3402 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3403 argument "arch" with ATTRIBUTE_UNUSED.
3404
34052000-07-10 Alan Modra <alan@linuxcare.com.au>
3406
3407 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3408
3409 From Ryan Bradetich <rbradetich@uswest.net>
3410 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3411
34122000-07-09 Alan Modra <alan@linuxcare.com.au>
3413
3414 Changes to create multiple linker stubs, positioned immediately
3415 before the section where they are required.
3416 * emultempl/hppaelf.em: Include elf32-hppa.h.
3417 (stub_sec, file_chain): Delete.
3418 (hppaelf_create_output_section_statements): Don't make a stub
3419 section here.
3420 (hook_stub_info): New struct.
3421 (hook_in_stub): New function.
3422 (hppaelf_add_stub_section): New function.
3423 (hppaelf_finish): Do nothing for relocateable links. Modify the
3424 call to elf32_hppa_size_stubs. Move code for updating section
3425 layout from here...
3426 (hppaelf_layaout_sections_again): ..to here, a new function.
3427
3428 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3429 broken list handling. Pass in a pointer to the list.
3430 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3431 for above changes.
3432 (hppaelf_before_parse): Prototype.
3433 (hppaelf_set_output_arch): Prototype.
3434 (hppaelf_create_output_section_statements): Prototype.
3435 (hppaelf_delete_padding_statements): Prototype.
3436 (hppaelf_finish): Prototype.
3437
3438 Merge from elf32.em
3439 * emultempl/hppaelf.em: Include ctype.h.
3440 (struct orphan_save): New.
3441 (gld${EMULATION_NAME}_place_orphan): New.
3442 (output_rel_find): New.
3443 (hppaelf_get_script): Update from elf32.em.
3444 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3445 Change emulation_name field to "${EMULATION_NAME}". Add
3446 gld${EMULATION_NAME}_place_orphan.
3447
3448 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3449 ehppalinux.o, sort it. Regenerate dependencies.
3450 (ehppalinux.c): Depend on hppaelf.em
3451 * Makefile.in: Regenerate.
3452
3453 * configure.tgt: targ_emul=hppalinux for hppa*linux
3454
3455 * emulparams/hppalinux.sh: New.
3456 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3457
34582000-07-08 Alan Modra <alan@linuxcare.com.au>
3459
3460 * lexsup.c (parse_args): Copy section name.
3461
34622000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3463
3464 * emultempl/pe.em: institute the following search order for
3465 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3466 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3467 static lib (libfoo.a) if none of the above are found.
3468
34692000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3470
3471 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3472 (longopts): New --{enable,disable}-auto-image-base options.
3473 (gld_${EMULATION_NAME}_list_options): Document.
3474 (gld_${EMULATION_NAME}_parse): Handle.
3475 (strhash): New static function.
3476 (compute_dll_image_base): New static function.
3477 (gld_${EMULATION_NAME}_set_symbols): Use.
3478
34792000-07-05 DJ Delorie <dj@redhat.com>
3480
3481 * MAINTAINERS: new
3482
34832000-07-01 Koundinya K <kk@ddeorg.soft.net>
3484
3485 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3486 * emulparams/elf32btsmip.sh: New file.
3487 * Makefile.am: Add traditional mips target.
3488 * Makefile.in: Rebuild.
3489
34902000-07-01 H.J. Lu <hjl@gnu.org>
3491
3492 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3493 automake to use YLWRAP.
3494 * Makefile.in: Rebuild.
3495
34962000-07-01 Alan Modra <alan@linuxcare.com.au>
3497
3498 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3499 (CLEANFILES): Add DEPA.
3500 * Makefile.in: Regenerate.
3501
35022000-06-30 Timothy Wall <twall@ppc>
3503
3504 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3505 the page in the upper octet of the address.
3506
35072000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3508
3509 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3510
35112000-06-24 Alan Modra <alan@linuxcare.com.au>
3512
3513 * NEWS: arm-elf does --gc-sections too.
3514
35152000-06-22 Alan Modra <alan@linuxcare.com.au>
3516
3517 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3518 find one.
3519 * Makefile.in: Regenerate.
3520
35212000-06-21 H.J. Lu <hjl@gnu.org>
3522
3523 * Makefile.am: Rebuild dependency.
3524 * Makefile.in: Rebuild.
3525
35262000-06-20 H.J. Lu <hjl@gnu.org>
3527
3528 * Makefile.am: Rebuild dependency.
3529 * Makefile.in: Rebuild.
3530
35312000-06-20 Timothy Wall <twall@cygnus.com>
3532
3533 * scripttempl/tic54xcoff.sc: New.
3534 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3535 * gen-doc.texi: Add flag for TI COFF.
3536 * ld.texinfo: Add documentation for TI COFF handling switches.
3537 * emultempl/ticoff.em: New. TI COFF handling.
3538 * configure.tgt: Add tic54x target.
3539 * Makefile.am: Add tic54x target.
3540 * Makefile.in: Ditto.
3541
35422000-06-20 Alan Modra <alan@linuxcare.com.au>
3543
3544 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3545 checking for backslashes.
3546
35472000-06-19 Alan Modra <alan@linuxcare.com.au>
3548
3549 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3550
35512000-06-18 Alan Modra <alan@linuxcare.com.au>
3552
3553 * NEWS: Update list of targets supporting --gc-sections.
3554
3555 * scripttempl/elf.sc: KEEP .eh_frame contents.
3556 * scripttempl/elfd30v.sc: Same here.
3557
35582000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3559
3560 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3561 and m68hc11 (elf).
3562 * Makefile.in: Rebuild.
3563 * configure.tgt: Recognize m68hc12 and m68hc11.
3564 * scripttempl/elfm68hc12.sc: New file.
3565 * emulparams/m68hc12elfb: New emulation.
3566 * emulparams/m68hc12elf: New emulation.
3567 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3568 (includes a memory.x script to define the ROM and RAM banks).
3569 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3570 New configuration files for support of Motorola 68hc11
3571
35722000-06-15 Alan Modra <alan@linuxcare.com.au>
3573
3574 * ldmain.c (main): Only change SEC_READONLY for final link.
3575
35762000-06-13 H.J. Lu <hjl@gnu.org>
3577
3578 * configure: Regenerate.
3579
35802000-06-08 David O'Brien <obrien@FreeBSD.org>
3581
3582 * configure.in (VERSION): Update to show this is the CVS mainline.
3583
35842000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3585
3586 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3587 input objects to be ECOFF.
3588 (check_sections): einfo takes %B, not %P, to print a BFD name.
3589
35902000-06-05 Michael Matz <matz@ifh.de>
3591
3592 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3593 version scripts.
3594
3595 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3596
35972000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3598
3599 * emulparams/avr1200.sh (STACK): Define as 0.
3600 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3601 * emulparams/avr4433.sh (STACK): Likewise.
3602 * emulparams/avr44x4.sh (STACK): Likewise.
3603 * emulparams/avr85xx.sh (STACK): Likewise.
3604 * emulparams/avrmega103.sh (STACK): Likewise.
3605 * emulparams/avrmega161.sh (STACK): Likewise.
3606 * emulparams/avrmega603.sh (STACK): Likewise.
3607 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3608 (__stack): Define from ${STACK} for main().
3609
36102000-05-26 Alan Modra <alan@linuxcare.com.au>
3611
3612 * Makefile.am: Update dependencies with "make dep-am"
3613 * Makefile.in: Regenerate.
3614
36152000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3616
3617 * ldmain.c: Include filenames.h.
3618 (set_scripts_dir): Support backslashes in program name.
3619
36202000-05-22 Igor Shevlyakov <igor@windriver.com>
3621
3622 * ldmain.c (main): When deciding if ".text" section should be
3623 read-only, don't forget to reset SEC_READONLY because it
3624 could be already set.
3625
36262000-05-22 Thomas de Lellis <tdel@windriver.com>
3627
3628 * ld.1: Add documentation for new command line option:
3629 --section-start <sectionname>=<sectionorg>
3630 This is a generic version of -Ttext etc. which accepts
3631 any section name as a parameter instead of just text/data/
3632 bss.
3633 * ld.texinfo: More docs.
3634 * NEWS: More docs.
3635 * lexsup.c: (parse_args): Recognize new command line option.
3636 (ld_options): Add new option.
3637
36382000-05-18 H.J. Lu <hjl@gnu.org>
3639
3640 * lexsup.c (parse_args): `i' == `r', not `q'.
3641
36422000-05-18 Jeffrey A Law (law@cygnus.com)
3643
3644 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3645
36462000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3647 Rick Gorton <gorton@scrugs.lkg.dec.com>
3648
3649 Add support for '-q' == '--emit-relocs' switch.
3650 * ldmain.c (main): Default to false.
3651 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3652 * NEWS: Describe the emitrelocations switch.
3653 * ld.texinfo: Describe the emitrelocations switch.
3654
36552000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3656
3657 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3658 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3659 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3660 link options.
3661
36622000-05-15 David O'Brien <obrien@FreeBSD.org>
3663
3664 * lexsup.c (parse_args): Update the year in the copyright notice.
3665
36662000-05-13 Alan Modra <alan@linuxcare.com.au>
3667
3668 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3669 Replace defines with those from intl/libgettext.h to quieten gcc
3670 warnings.
3671
36722000-05-10 H.J. Lu <hjl@gnu.org>
3673
3674 * ldlang.c (open_input_bfds): Don't load the same file within
3675 a group again if the whole archive has been loaded already.
3676
36772000-05-03 Alan Modra <alan@linuxcare.com.au>
3678
3679 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3680 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3681 strtoul.
3682
36832000-05-01 Jim Wilson <wilson@cygnus.com>
3684
3685 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3686
3687 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3688 host "ia64-*-linux-gnu*".
3689
36902000-04-29 Andreas Jaeger <aj@suse.de>
3691
3692 * ld.h: Correctly check GCC version.
3693
36942000-04-25 Jeffrey A Law (law@cygnus.com)
3695
3696 * Makefile.am: Add PA64 support. Add missing dependencies for
3697 PA32 elf support.
3698 * Makefile.in: Rebuilt.
3699 * configure.tgt: Add PA64 support (currently disabled).
3700
37012000-04-25 Alan Modra <alan@linuxcare.com.au>
3702
3703 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3704 (output_rel_find): New function.
3705 (hold_section, hold_use): Delete.
3706 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3707 hold_interp): Make local to place_orphan.
3708 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3709 rather than place_section to find possible previous use of orphan.
3710 Similarly find the place-holder output sections. Use returned
3711 value from lang_enter_output_section_statement rather than calling
3712 lang_output_section_statement_lookup.
3713 * emultempl/armelf.em: Same here.
3714 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3715
3716 * ldlang.c (lang_enter_output_section_statement): Return output
3717 section statement.
3718 * ldlang.h (lang_enter_output_section_statement): Change
3719 declaration too.
3720
3721 * ldlang.h (lang_output_section_statement): Export it.
3722 * ldlang.c (lang_output_section_statement): Ditto.
3723
37242000-04-24 Nick Clifton <nickc@cygnus.com>
3725
3726 * ld.texinfo (Output Section Data): Add note that section data
3727 commands cannot appear outside of section directives.
3728
37292000-04-2 Matthew Green <mrg@cygnus.com>
3730
3731 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3732
37332000-04-21 Richard Henderson <rth@cygnus.com>
3734 David Mosberger <davidm@hpl.hp.com>
3735
3736 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3737 (eelf64_ia64.c): New rule.
3738 * Makefile.in: Rebuild.
3739 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3740 * emulparams/elf64_ia64.sh: New file.
3741
37422000-04-21 Richard Henderson <rth@cygnus.com>
3743
3744 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3745
37462000-04-19 Alan Modra <alan@linuxcare.com.au>
3747
3748 * dep-in.sed: Match space at start of file name, not at end.
3749
37502000-04-18 H.J. Lu <hjl@gnu.org>
3751
3752 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3753 lang_leave_output_section_statement () after calling
3754 lang_enter_output_section_statement ().
3755 * emultempl/armelf.em: Likewise.
3756
37572000-04-18 Alan Modra <alan@linuxcare.com.au>
3758
3759 * emultempl/elf32.em (struct orphan_save): Add section field.
3760 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3761 better order, and place first orphan section as we did before the
3762 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3763 Don't call make_bfd_section here, let wild_doit do the job for us.
3764 Don't build a statement list when we'll only throw it away.
3765 * emultempl/armelf.em: Ditto.
3766 * emultempl/pe.em: Similarly.
3767
37682000-04-14 Geoff Keating <geoffk@cygnus.com>
3769
3770 * scripttempl/elfppc.sc: Remove.
3771 * emulparams/elf32ppc.sh: Use elf.sc.
3772 * emulparams/elf32lppc.sh: Use elf.sc.
3773 * emulparams/elf32ppclinux.sh: Use elf.sc.
3774 * emulparams/elf32ppcsim.sh: New file.
3775 * emulparams/elf32lppcsim.sh: New file.
3776 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3777 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3778 * Makefile.in: Regenerate.
3779 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3780
37812000-04-14 Alan Modra <alan@linuxcare.com.au>
3782
3783 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3784 ~SEC_ALLOC sections too. Init start address of debug sections.
3785 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3786 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3787 Also set all relocateable section start addresses.
3788
37892000-04-13 Geoff Keating <geoffk@cygnus.com>
3790
3791 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3792 Add new BSS_PLT variable for when .plt need not be contained in
3793 the file. Move _etext so that it is also after .fini, and provide
3794 both etext and _etext with a leading underscore. Mark the start
3795 and end of .sbss.
3796
37972000-04-12 Alan Modra <alan@linuxcare.com.au>
3798
3799 * emultempl/elf32.em (struct orphan_save): New.
3800 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3801 hold_interp): Make them struct orphan_save.
3802 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3803 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3804 the end of the relevant section list. Also add associated section
3805 statements to the end of any previous orphan statements.
3806 * emultempl/armelf.em: Similarly.
3807 * emultempl/pe.em: Similarly.
3808
38092000-04-11 Alan Modra <alan@linuxcare.com.au>
3810
3811 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3812
38132000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3814
3815 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3816 --enable-build-warnings option.
3817 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3818 * Makefile.in, configure: Re-generate.
3819
38202000-04-04 Alan Modra <alan@linuxcare.com.au>
3821
3822 * po/ld.pot: Regenerate.
3823
3824 * lexsup.c (help): Restore translated part of bug string.
3825
3826 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3827 (DEP): Quote when passing vars to sub-make. Add warning message
3828 to end.
3829 (DEP1): Rewrite for "gcc -MM".
3830 (CLEANFILES): Add DEP2.
3831 Update dependencies.
3832 * Makefile.in: Regenerate.
3833
38342000-04-03 Alan Modra <alan@linuxcare.com.au>
3835
3836 * ld.h: #include "bin-bugs.h"
3837 * lexsup.c (help): Use REPORT_BUGS_TO.
3838
38392000-03-27 Denis Chertykov <denisc@overta.ru>
3840
3841 * configure.tgt (avr-*-*): New target support.
3842 * Makefile.am: Likewise.
3843 * scripttempl/elf32avr.sc: New script file.
3844 * emulparams/avr1200.sh: New file.
3845 * emulparams/avr23xx.sh: New file.
3846 * emulparams/avr4433.sh New file.
3847 * emulparams/avr44x4.sh New file.
3848 * emulparams/avr85xx.sh New file.
3849 * emulparams/avrmega103.sh New file.
3850 * emulparams/avrmega161.sh New file.
3851 * emulparams/avrmega603.sh New file.
3852 * Makefile.in: Regenerate.
3853
38542000-03-09 Andreas Jaeger <aj@suse.de>
3855
3856 * Makefile.am (check-DEJAGNU): Also unset LANG.
3857 * Makefile.in: Rebuild.
3858
38592000-03-06 Ian Lance Taylor <ian@zembu.com>
3860
3861 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3862 archive.
3863
38642000-03-02 H.J. Lu <hjl@gnu.org>
3865
3866 * emulparams/elf32mcore.sh: Include "getopt.h".
3867
38682000-03-01 Ian Lance Taylor <ian@zembu.com>
3869
3870 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3871
38722000-03-01 H.J. Lu <hjl@gnu.org>
3873
3874 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3875 * emulparams/shpe.sh: Likewise.
3876
38772000-03-01 Nick Clifton <nickc@cygnus.com>
3878
3879 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3880 to unused parameters.
3881
3882 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3883 functions only used by DLL code.
3884 (_place_orphan): Initialise 'dollar'.
3885
38862000-03-01 H.J. Lu <hjl@gnu.org>
3887
3888 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3889 indicate if the undefined symbol is a fatal error or not.
3890 Don't delete the output file if "fatal" is false.
3891
38922000-02-29 H.J. Lu <hjl@gnu.org>
3893
3894 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3895 Set LC_COLLATE and LC_ALL to null and export them. It is for
3896 sort which expects the C locale.
3897 Add $(LIBS) to all $(HOSTING_LIBS).
3898 * Makefile.in: Rebuild.
3899
39002000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3901
3902 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3903 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3904 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3905 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3906 find_potential_libraries.
3907
39082000-02-28 Jim Blandy <jimb@redhat.com>
3909
3910 * ldgram.y (exclude_name_list): Don't require a comma to separate
3911 list entries; the lexer considers commas to be valid part of a
3912 filename, so in something like `foo, bar' the comma is considered
3913 part of the first filename, `foo,'.
3914 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3915
39162000-02-27 Loren J. Rittle <ljrittle@acm.org>
3917
3918 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3919 host "i[3456]86-*-freebsdelf*".
3920
39212000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3922
3923 * scripttempl/i386go32.sc: Move misplaced semicolons.
3924
39252000-02-25 Ian Lance Taylor <ian@zembu.com>
3926
3927 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3928 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3929 (eelf64hppa.c, ehppaelf.c): Remove targets.
3930 * Makefile.in: Rebuild.
3931
39322000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3933
3934 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3935 GNU/Linux/sparc, but keep the default as 32.
3936
3937 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3938 it default if sparcv9 or sparc64.
3939
39402000-02-24 Nick Clifton <nickc@cygnus.com>
3941
3942 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3943 * Makefile.in: Regenerate.
3944 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3945
3946 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3947 find_potential_libraries.
3948 * ldemul.c (ldemul_find_potential_libraries): New function.
3949
3950 * ldfile.c (ldfile_open_file_search): Allow function to be
3951 exported.
3952 (ldfile_open_file): Call ldemul_find_potential_libraries.
3953 * ldfile.h: Add prototype for ldfile_open_file_search.
3954
3955 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3956
3957 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3958 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3959
3960 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3961 (gld_X_find_potential_libraries): New function. Search for
3962 libraries called "*.lib".
3963
3964 * scripttempl/pe.sc: Add .pdata section.
3965
39662000-02-23 Richard Henderson <rth@cygnus.com>
3967
3968 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3969 Add and use memory regions.
3970
39712000-02-23 Linas Vepstas (linas@linas.org)
3972
3973 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3974
3975 * Makefile.am: Add support for Linux/IBM 370.
3976 * configure.tgt: Likewise.
3977
3978 * Makefile.in: Regenerate.
3979
39802000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3981
3982 * ldlang.c (print_input_section, print_data_statement,
3983 print_reloc_statement, print_padding_statement, insert_pad,
3984 size_input_section, lang_check_section_addresses,
3985 lang_size_sections, lang_do_assignments, lang_set_startof,
3986 lang_one_common): Change `opb' to unsigned.
3987 (lang_do_assignments): Also change `size' to unsigned.
3988
39892000-02-16 Richard Henderson <rth@cygnus.com>
3990
3991 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3992
39932000-02-16 Timothy Wall <twall@cygnus.com>
3994
3995 * mri.c (mri_draw_tree): Add default LMA region argument to call
3996 to lang_leave_output_section_statement.
3997 * ldlang.h: Update prototypes with LMA region arguments.
3998 * ldlang.c (lang_size_sections): Encapsulate region bounds
3999 checking in os_check_region call.
4000 (os_check_region): New function.
4001 (lang_output_section_statement_lookup): Initialize lma_region.
4002 (lang_leave_output_section_statement): Add LMA region argument.
4003 (lang_leave_overlay): Ditto.
4004 * ldgram.y: Handle LMA region syntax.
4005 * ld.texinfo (Output Section Description): Describe LMA region usage.
4006 * emultempl/armelf.em (gld$place_orphan): Add default value for
4007 lma region in call to lang_leave_output_section_statement.
4008 * emultempl/elf32.em (gld$place_orphan): Add default value for
4009 lma region in call to lang_leave_output_section_statement.
4010 * emultempl/pe.em (gld$place_orphan): Add default value for
4011 lma region in call to lang_leave_output_section_statement.
4012
4013
40142000-02-04 Timothy Wall <twall@redhat.com>
4015
4016 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4017 octets when calculating section end addresses.
4018
40192000-02-04 Timothy Wall <twall@redhat.com>
4020
4021 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4022
40232000-02-03 Timothy Wall <twall@redhat.com>
4024
4025 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4026 octet count.
4027 * ldlang.c (print_input_section, print_data_statement,
4028 print_reloc_statement, print_padding_statement): Print target
4029 address values and section sizes as bytes, not octets.
4030 (insert_pad) Calculate padding size in octets, and adjust "dot"
4031 by bytes.
4032 (size_input_section) Always adjust "dot" by bytes, not octets.
4033 (lang_check_section_addresses, lang_do_assignments) Adjust
4034 "dot" by bytes, not octets. Use the larger of the directive size
4035 or octets_per_byte for the number of octets actually allocated in
4036 the output section.
4037 (lang_set_startof) Make sure STARTOF returns a target address.
4038 (lang_one_common) Record size changes in octets.
4039 (lang_abs_symbol_at_end_of) Section end symbol's value is
4040 recorded in target bytes.
4041 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4042 to be clear about behavior when an octet is smaller than one byte.
4043
40442000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4045
4046 * ldcref.c (output_cref): Don't pass message strings to printf
4047 as format arg.
4048 Update copyright.
4049
4050 * ldmisc.c (vfinfo): Same here.
4051 Update copyright.
4052
40532000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4054
4055 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4056 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4057 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4058 Add missing NULL initialisers, and comments.
4059
4060 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4061
40622000-01-21 Nick Clifton <nickc@cygnus.com>
4063
4064 * ldlang.c (lang_size_sections): Fix typo in comment.
4065
40662000-01-18 H.J. Lu <hjl@gnu.org>
4067
4068 * ldlang.c (lang_size_sections): Also update the current
4069 address of a region if the SEC_NEVER_LOAD bit is not set.
4070
40712000-01-10 Philip Blundell <pb@futuretv.com>
4072
4073 * configure.tgt (arm*-*-conix*): New target.
4074
40752000-01-07 Nick Clifton <nickc@cygnus.com>
4076
4077 * ld.texinfo (Options): Remind users to preceed linker command
4078 line switches with -Wl, (or whatever is appropriate) if it is
4079 being invoked by a comnpiler driver program.
4080 Fix description of the behaviour of the -n command line switch.
4081
40822000-01-05 Catherine Moore <clm@cygnus.com>
4083
4084 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4085 (name_list): New.
4086 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4087 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4088 (exclude_name_list): New.
4089 ldlang.c (walk_wild_section): Support list of excluded files.
4090 (print_wild_statement): Likewise.
4091 (lang_add_wild): Likewise.
4092 * ldlang.h (lang_wild_statement_type): Likewise.
4093 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4094
40952000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4096
4097 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4098 (process_def_file): Use.
4099 (pe_dll_compat_implib): New variable.
4100 (make_one): Use.
4101
4102 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4103 pe_dll_compat_implib.
4104
4105 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4106 compat-implib options.
4107 (gld_${EMULATION_NAME}_list_options): List new options.
4108 (gld_${EMULATION_NAME}_parse_args): Handle.
4109
4110 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4111 dll.
4112
4113 * deffilep.y (opt_name): Allow "." in name.
4114
4115For older changes see ChangeLog-9899
4116\f
4117Local Variables:
4118mode: change-log
4119left-margin: 8
4120fill-column: 74
4121version-control: never
4122End:
This page took 0.052414 seconds and 4 git commands to generate.