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