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