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