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