bfd/
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
2
3 * ldlang.c (lang_vers_match): Check "symbol" instead of
4 "wildcard" and "pattern". Fix a typo.
5 (lang_finalize_version_expr_head): Likewise.
6 (lang_register_vers_node): Likewise.
7 (realsymbol): New function.
8 (lang_new_vers_pattern): Set "symbol" and remove "wildcard".
9
10 * ldlex.l (V_IDENTIFIER): Allow '\\'.
11
12 2003-10-24 Nick Clifton <nickc@redhat.com>
13
14 * emultempl/m68hc1xelf.em (before_allocation): Add missing second
15 parameter to lang_memory_region_lookup.
16
17 2003-10-22 Jakub Jelinek <jakub@redhat.com>
18
19 * ldlang.c: Include hashtab.h.
20 (lang_vers_match_lang_c, lang_vers_match_lang_cplusplus,
21 lang_vers_match_lang_java): Remove.
22 (lang_vers_match): New function.
23 (lang_new_vers_pattern): Initialize wildcard and mask
24 fields, don't initialize match.
25 (lang_new_vers_node): Use xcalloc. Adjust for globals and
26 locals field type changes. Set match field.
27 (version_expr_head_hash, version_expr_head_eq): New functions.
28 (lang_finalize_version_expr_head): New function.
29 (lang_register_vers_node): Call lang_finalize_version_expr_head.
30 Search in hash table if not wildcard when looking for duplicates.
31 * emultempl/ppc64elf.em (new_vers_pattern): Don't bother with
32 duplicate checking. Initialize all fields of dot_entry from entry
33 with the exception of pattern and next.
34
35 2003-10-21 Nick Clifton <nickc@redhat.com>
36
37 * ldlang.c (lang_memory_region_lookup): Add second parameter -
38 create - which is true if the region is being created. Issue
39 appropriate warning messages for finding and not finding
40 already created regions.
41 (lang_memory_default): Use DEFAULT_MEMORY_REGION.
42 (lang_leave_overlay_section): Likewise.
43 (lang_size_sections_1): Likewise.
44 Pass second parameter to lang_memory_region_lookup.
45 (lang_get_regions): Likewise.
46 * ldlang.h (DEFAULT_MEMORY_REGION): Define.
47 Update prototype for lang_memory_region_lookup.
48 * ldgram.y: Pass second parameter to lang_memory_region_lookup.
49 Use DEFAULT_MEMORY_REGION instead of "*default".
50
51 2003-10-20 Andrew Cagney <cagney@redhat.com>
52
53 * pe-dll.c: Replace "struct sec" with "struct bfd_section".
54
55 2003-10-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
56
57 * Makefile.am: Remove old (before GCC 3.3) emulations for AVR
58 target: avr1200, avr23xx, avr4433, avr44x4, avr85xx, avrmega103,
59 avrmega161, avrmega603. Default to avr2.
60 * Makefile.in: Regenerate.
61 * configure.tgt: Likewise.
62 * emulparams/avr1200.sh: Remove.
63 * emulparams/avr23xx.sh: Remove.
64 * emulparams/avr4433.sh: Remove.
65 * emulparams/avr44x4.sh: Remove.
66 * emulparams/avr85xx.sh: Remove.
67 * emulparams/avrmega103.sh: Remove.
68 * emulparams/avrmega161.sh: Remove.
69 * emulparams/avrmega603.sh: Remove.
70 * scripttempl/elf32avr.sc: Remove.
71
72 2003-10-19 Andreas Schwab <schwab@suse.de>
73
74 * emultempl/ticoff.em (gld_${EMULATION_NAME}_list_options): Add
75 newline to message.
76
77 * deffilep.y: Remove commas from %token lines.
78
79 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
80
81 * emultempl/mmix-elfnmmo.em (mmix_before_allocation): Force linker
82 relaxation always; don't exclude relocatable linking. Adjust for
83 _bfd_mmix_prepare_linker_allocated_gregs renamed to
84 _bfd_mmix_before_linker_allocation.
85 (mmix_after_allocation): Adjust for
86 _bfd_mmix_finalize_linker_allocated_gregs renamed to
87 _bfd_mmix_after_linker_allocation.
88 * scripttempl/mmo.sc: Use ADDR (.text), not . - SIZEOF (.text).
89
90 * ldlang.c (lang_size_sections): Last, set _cooked_size for output
91 sections.
92
93 2003-10-16 Alan Modra <amodra@bigpond.net.au>
94
95 * Makefile.am (GENSCRIPTS_EXTRA, GEN_EXTRA_DEPENDS): Remove. Use
96 GENSCRIPTS and GEN_DEPENDS in place of these.
97 * Makefile.in: Regenerate.
98 * genscripts_extra.sh: Delete. Merge extra functionality to..
99 * genscripts.sh: ..here.
100
101 * emulparams/gld960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Define.
102 * emulparams/gld960coff.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
103 * emulparams/lnk960.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
104 * emulparams/m88kbcs.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
105 * emulparams/vanilla.sh (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
106
107 2003-10-16 Alan Modra <amodra@bigpond.net.au>
108
109 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Don't
110 use $EMULATION_NAME to call bfd function.
111
112 2003-10-14 Danny Smith <dannysmith@users.sourceforge.net>
113
114 * pe-dll.c (pe_implied_import_dll): Also scan .rdata sections
115 to identify data symbols.
116
117 2003-10-13 Richard Sandiford <rsandifo@redhat.com>
118
119 * emulparams/elf32bmipn32-defs.sh (INITIAL_READONLY_SECTIONS): Move
120 definition from elf64btsmip.sh.
121 (TEXT_DYNAMIC): Likewise elf32btsmipn32.sh.
122 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Remove.
123 * emulparams/elf64btsmip.sh (INITIAL_READONLY_SECTIONS): Remove.
124 * emulparams/elf64bmip.sh (SHLIB_TEXT_START_ADDR): Define.
125 (EXECUTABLE_SYMBOLS): Set __elf_header correctly for shared objects.
126 Define __program_header_table in terms of __elf_header.
127
128 2003-10-10 H.J. Lu <hongjiu.lu@intel.com>
129
130 * Makefile.am (eelf64_ia64.c): Also depend on
131 $(srcdir)/emultempl/ia64elf.em.
132 * Makefile.in: Regenerated.
133
134 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Set to ia64elf.
135
136 * emultempl/ia64elf.em: New.
137
138 2003-10-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
139
140 * emulparams/shelf32_nbsd.sh (OTHER_SECTIONS): Redefine.
141
142 2003-10-11 Hans-Peter Nilsson <hp@bitrange.com>
143
144 * ld.texinfo (Builtin Functions) <DEFINED>: Say that only symbols
145 defined before the statement using DEFINED yield 1.
146 * ldexp.c (fold_name) <case DEFINED>: In lang_first_phase_enum,
147 call lang_track_definedness on symbol. In subsequent phases, use
148 lang_symbol_definition_iteration and lang_statement_iteration to
149 check whether the symbol was defined before the current statement.
150 (exp_fold_tree) <case etree_assign et al>: Call
151 lang_update_definedness before updating symbol type when setting
152 symbol.
153 * ldlang.c (lang_definedness_table): New variable.
154 (lang_definedness_newfunc, lang_track_definedness)
155 (lang_symbol_definition_iteration, lang_update_definedness): New
156 functions.
157 (lang_init): Initialize lang_definedness_table and
158 lang_statement_iteration.
159 (lang_finish): Destroy bfd_hash_table_free.
160 (lang_size_sections): Increment lang_statement_iteration.
161 (lang_do_assignments_1): New function with former
162 lang_do_assignments contents. Change recursive calls to call this
163 function.
164 (lang_do_assignments): Evacuate contents. Increment
165 lang_statement_iteration, then just call lang_do_assignments_1.
166 * ldlang.h (struct lang_definedness_hash_entry)
167 (lang_statement_iteration, lang_track_definedness)
168 (lang_symbol_definition_iteration, lang_update_definedness):
169 Declare.
170
171 2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
172
173 * scripttempl/elf.sc (__executable_start): Provide.
174
175 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
176
177 * emulparams/armelf.sh: Define NO_SMALL_DATA.
178 * emulparams/armelf_linux.sh, emulparams/armelf_oabi.sh,
179 emulparams/armnto.sh: Likewise.
180
181 2003-10-08 Alexandre Oliva <aoliva@redhat.com>
182
183 * ldlang.c (lang_size_sections_1): Use IGNORE_SECTION to tell
184 whether to skip test for no memory region.
185
186 2003-10-08 Nick Clifton <nickc@redhat.com>
187
188 * lexsup.c (parse_args: OPTION_CALL_SHARED): Revise comment
189 describing defaults. Change default to report unresolved symbols
190 in object files as well.
191
192 2003-10-08 Hans-Peter Nilsson <hp@bitrange.com>
193
194 * ldexp.c (fold_name) <case DEFINED>: Set section of result to
195 abs_output_section.
196
197 2003-10-07 Bob Wilson <bob.wilson@acm.org>
198
199 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS,
200 OTHER_READWRITE_SECTIONS, OTHER_SECTIONS): Set section addresses to
201 zero for relocatable links.
202
203 2003-10-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
204
205 * configure.host (HOSTING_LIBS): Define for hppa*-*-linux*.
206
207 2003-10-07 Nathan Sidwell <nathan@codesourcery.com>
208
209 * ldwrite.c (unsplittable_name): New.
210 (clone_section): Strip existing numeric suffix. Only truncate names
211 for coff targets.
212 (split_sections): Use unsplittable_name.
213
214 2003-10-06 Nick Clifton <nickc@redhat.com>
215
216 * lexsup.c (parse_args): Report unresolved symbols in shared
217 libraries when creating a dynamic executable. This is a
218 restoration of the default behaviour for previous versions of
219 the linker.
220
221 2003-10-06 Matt Thomas <matt@3am-software.com>
222
223 * emulparams/hppanbsd.sh: Remove OUTPUT_FORMAT.
224 * emulparams/hppaobsd.sh: Add OUTPUT_FORMAT="elf32-hppa".
225
226 2003-10-06 Robert Millan <robertmh@gnu.org>
227
228 * configure.tgt: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
229
230 2003-10-02 Ivan Warren <ivan@vmfacility.fr>
231
232 * pe-dll.c (make_one): Correct sym def order & pick right sym for
233 .idata$7 reloc.
234
235 2003-09-30 Chris Demetriou <cgd@broadcom.com>
236
237 * NEWS: Add an indication of the cutoff for 2.14.
238
239 2003-09-30 Chris Demetriou <cgd@broadcom.com>
240
241 * ldmain.c (get_emulation): Ignore "-mips64r2".
242
243 2003-09-03 Robert Millan <robertmh@gnu.org>
244
245 * configure.host: Match GNU/KFreeBSD with new kfreebsd*-gnu
246 triplet.
247 * configure.tgt: Likewise.
248
249 2003-08-29 Jafa <jafa@silicondust.com>
250
251 * emulparams/elf32ip2k.sh (TEMPLATE_NAME): Define.
252
253 2003-08-21 Nick Clifton <nickc@redhat.com>
254
255 * po/tr.po: Updated Turkish translation.
256
257 2003-08-20 Nick Clifton <nickc@redhat.com>
258
259 * ldmain.c: Initialise the new fields in bfd_link_info to
260 NOT_YET_SET.
261 * lexsup.c (enum option_values): New enum. Use this to
262 replace the handed coded values for the long switch options.
263 (ld_options): Add 'unresolved-symbols',
264 'warn-unresolved-symbols' and 'error-unresolved-symbols'.
265 (parse_args): Handle the new switches. Set the values of
266 unresolved_symbols_in_objects and
267 unresolved_symbols_in_shared_libs appropriately. If they were
268 not initialised by the command line, install default values.
269 * emultempl/elf32.em (handle_option): Update OPTION_GROUP and
270 -z defs to use the new fields in bfd_link_info.
271 * ld.texinfo: Document the new switches.
272 * NEWS: Mention this feature.
273
274 2003-08-15 Dmitry Diky <diwil@mail.ru>
275
276 * Makefile.am (GENSCRIPTS_EXTRA): New script definition which
277 calls genscripts_extra.sh.
278 Rearrange all msp430 depends using this script.
279 * Makefile.in: Regenerate.
280 * genscripts_extra.sh: New file: Similar to genscripts.sh, except
281 that the script to be run to generate the emulations can be passed
282 as an optional parameter instead of being computed from the
283 emulation name.
284 * emulparams/msp430all.sh: New file: Combine all msp430 subdevice
285 definitions into one file.
286 * emulparams/msp430x*.sh: Removed.
287
288 2003-08-15 Nick Clifton <nickc@redhat.com>
289
290 * ld.texinfo (Options): Put keywords for the -z option into a
291 table. Add more text describing what the -z now option does.
292
293 2003-08-14 Alan Modra <amodra@bigpond.net.au>
294
295 * dep-in.sed: Remove libintl.h.
296 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
297 * Makefile.in: Regenerate.
298
299 2003-08-13 Alan Modra <amodra@bigpond.net.au>
300
301 * genscripts.sh (libpath.exp): Only generate for first emulation.
302 (LIB_PATH): Correct order of paths. Don't add $tool_lib when
303 already present or when LIB_PATH is set to ":".
304
305 2003-08-12 Ian Lance Taylor <ian@airs.com>
306
307 * ldmain.c (undefined_symbol): Change parameter name from `fatal'
308 to `error'. If only a warning, put warning in the reported
309 string. Consistently set failure flag when not a warning.
310
311 2003-08-08 Dmitry Diky <diwil@mail.ru>
312
313 * Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
314 gcc order.
315 * Makefile.in: Regenerate.
316 * configure.tgt: Add extra emulations.
317 * emulparams/msp430xE423.sh: New file.
318 * emulparams/msp430xE427.sh: New file.
319 * emulparams/msp430xW425.sh: New file.
320 * emulparams/msp430xE425.sh: New file.
321 * emulparams/msp430xW423.sh: New file.
322 * emulparams/msp430xW427.sh: New file.
323
324 2003-08-07 Danny Smith <dannysmith@users.sourceforge.net>
325
326 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
327 Change second (cmdline) arg to lang_add_entry to FALSE.
328 (set_pe_subsystem): Change second arg to lang_add_entry to TRUE.
329
330 2003-08-05 Christian Groessler <chris@groessler.org>
331 Jason Eckhardt <jle@rice.edu>
332
333 * configure.tgt: Recognize new target i860-*-coff.
334 * Makefile.am (ALL_EMULATIONS): Add ecoff_i860.o.
335 (ecoff_i860.c): New rule.
336 * emulparams/coff_i860.sh: New file.
337 * scripttempl/i860coff.sc: New file.
338 * Makefile.in: Regenerate.
339
340 2003-08-04 Nick Clifton <nickc@redhat.com>
341
342 * emultempl/elf32.em (before_allocation): Prepend "warning: "
343 to messages produced for .gnu.warning.SYMBOL sections.
344
345 2003-08-04 Alan Modra <amodra@bigpond.net.au>
346
347 * emultempl/elf32.em (output_rel_find): Add "isdyn" param. Put
348 .rel.dyn before other reloc sections. Don't stop looking for reloc
349 sections on finding one that isn't allocated. Match .rel even when
350 placing .rela and vice versa, when setting last_rel and
351 last_rel_alloc for the first time. If no reloc sections in script,
352 prefer allocated section over non-alloc.
353 (gld${EMULATION_NAME}_place_orphan): Handle orphan .rel.dyn.
354
355 2003-07-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
356
357 * emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
358 section for shared library.
359 * emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
360 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
361
362 2003-07-29 Stephane Carrez <stcarrez@nerim.fr>
363
364 * scripttempl/elfm68hc12.sc: Add gcc_except_table.
365 * scripttempl/elfm68hc11.sc: Likewise.
366
367 2003-07-28 Alan Modra <amodra@bigpond.net.au>
368
369 * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
370
371 * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.
372
373 2003-07-27 Alan Modra <amodra@bigpond.net.au>
374
375 * ld.texinfo: Typo fixes. Document SUBALIGN.
376 * ldgram.y (opt_subalign): Add.
377 * ldlex.l (SUBALIGN): Recognize.
378 * ldlang.c (overlay_subalign): New var.
379 (lang_enter_overlay): Add subalign param.
380 (lang_enter_overlay_section): Pass overlay_subalign to
381 lang_enter_output_section_statement.
382 * ldlang.h (lang_enter_overlay): Update.
383
384 2003-07-24 Nick Clifton <nickc@redhat.com>
385
386 * po/fr.po: Updated French translation.
387
388 2003-07-23 Stephane Carrez <stcarrez@nerim.fr>
389
390 * scripttempl/elfm68hc11.sc: Keep ctor/dtor sections; Take into
391 account .tramp sections;
392 * scripttempl/elfm68hc12.sc: Likewise.
393
394 2003-07-17 Charles Wilson <cwilson@ece.gatech.edu>
395
396 * ld/pe-dll.c: Add libcygwin to autofilter_liblist[]
397
398 2003-07-17 Nick Clifton <nickc@redhat.com>
399
400 * po/es.po: New Spanish translation.
401
402 2003-07-11 Alan Modra <amodra@bigpond.net.au>
403
404 * po/ld.pot: Regenerate.
405
406 2003-07-10 Bob Wilson <bob.wilson@acm.org>
407
408 * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
409 with new .got.loc section.
410 (OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
411 non-relocating links.
412 (OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
413 sections separate for non-relocating links; likewise for .xt.insn.
414
415 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
416
417 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
418 * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
419 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
420 * configure.host (am33_2.0-*-linux*): Added.
421 * configure.tgt (am33_2.0-*-linux*): Likewise.
422 * emulparams/elf32am33lin.sh: New.
423 * Makefile.am (eelf32am33lin.c): New rule.
424 * Makefile.in: Rebuilt.
425
426 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
427
428 2001-04-17 Alexandre Oliva <aoliva@redhat.com>
429 * emulparams/mn10300.sh (TEMPLATE_NAME): Define.
430 (GENERATE_SHLIB_SCRIPT): Likewise.
431
432 2003-07-10 Alan Modra <amodra@bigpond.net.au>
433
434 * emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
435 (GOT): Define.
436 * emultempl/ppc64elf.em (stub_added): New static var.
437 (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
438 (ppc_add_stub_section): Set stub_added.
439 (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
440 ppc64_elf_size_stubs call and test for stubs.
441 * scripttempl/elf.sc (GOT): Define and use.
442
443 2003-07-08 J"orn Rennecke <joern.rennecke@superh.com>
444
445 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
446 Allow second call from ldemul_finish.
447
448 2003-07-04 J"orn Rennecke <joern.rennecke@superh.com>
449
450 * emulparams/shelf32.sh (STACK_ADDR): Don't define.
451 (OTHER_SECTIONS): Include .stack.
452 * emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
453
454 2003-07-02 Jakub Jelinek <jakub@redhat.com>
455
456 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
457 .opd if -pie.
458 (OTHER_READWRITE_SECTIONS): Include .opd if -pie.
459 * scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
460 if -pie.
461
462 2003-06-28 Alan Modra <amodra@bigpond.net.au>
463
464 * ld.h: Convert to C90, remove unnecessary prototypes and casts.
465 Replace PTR with void *. Formatting.
466 * ldcref.c: Likewise.
467 * ldctor.c: Likewise.
468 * ldctor.h: Likewise.
469 * ldemul.h: Likewise.
470 * ldexp.c: Likewise.
471 * ldexp.h: Likewise.
472 * ldfile.c: Likewise.
473 * ldfile.h: Likewise.
474 * ldlang.c: Likewise.
475 * ldlang.h: Likewise.
476 * ldlex.h: Likewise.
477 * ldlex.l: Likewise.
478 * ldmain.c: Likewise.
479 * ldmain.h: Likewise.
480 * ldmisc.c: Likewise.
481 * ldmisc.h: Likewise.
482 * ldver.h: Likewise.
483 * ldwrite.c: Likewise.
484 * ldwrite.h: Likewise.
485 * lexsup.c: Likewise.
486 * mri.c: Likewise.
487 * mri.h: Likewise.
488 * pe-dll.c: Likewise.
489 * pe-dll.h: Likewise.
490 * deffilep.y: Likewise.
491 * deffile.h: Likewise. Don't include ansidecl.h.
492 * emulparams/elf32mcore.sh: Remove unnecessary cast.
493 * emultempl/m68kcoff.em: Likewise.
494 * emultempl/m68kelf.em: Likewise.
495 * emultempl/ticoff.em: Remove lang_add_output_format declaration.
496 * sysdep.h: Don't include ansidecl.h.
497 * Makefile.am: Run "make dep-am".
498 * Makefile.in: Regenerate.
499
500 2003-06-27 Nick Clifton <nickc@redhat.com>
501
502 * deffilep.y (def_file_add_directive): Cope with NUL seperated
503 directives. Fix reporting of unparseable directives.
504 (def_error): Check for a NULL def_filename.
505
506 2003-06-27 Alan Modra <amodra@bigpond.net.au>
507
508 * emultempl/aix.em: Convert to C90, remove unnecessary prototypes
509 and casts. Replace PTR with void *. Formatting.
510 * emultempl/alphaelf.em: Likewise.
511 * emultempl/armcoff.em: Likewise.
512 * emultempl/armelf.em: Likewise.
513 * emultempl/armelf_oabi.em: Likewise.
514 * emultempl/beos.em: Likewise.
515 * emultempl/elf32.em: Likewise.
516 * emultempl/generic.em: Likewise.
517 * emultempl/gld960.em: Likewise.
518 * emultempl/gld960c.em: Likewise.
519 * emultempl/hppaelf.em: Likewise.
520 * emultempl/linux.em: Likewise.
521 * emultempl/lnk960.em: Likewise.
522 * emultempl/m68hc1xelf.em: Likewise.
523 * emultempl/m68kcoff.em: Likewise.
524 * emultempl/m68kelf.em: Likewise.
525 * emultempl/mipsecoff.em: Likewise.
526 * emultempl/mipself.em: Likewise.
527 * emultempl/mmix-elfnmmo.em: Likewise.
528 * emultempl/mmixelf.em: Likewise.
529 * emultempl/mmo.em: Likewise.
530 * emultempl/needrelax.em: Likewise.
531 * emultempl/netbsd.em: Likewise.
532 * emultempl/pe.em: Likewise.
533 * emultempl/sh64elf.em: Likewise.
534 * emultempl/sunos.em: Likewise.
535 * emultempl/ticoff.em: Likewise.
536 * emultempl/vanilla.em: Likewise.
537 * emultempl/xtensaelf.em: Likewise.
538 * Makefile.am: Correct dependencies.
539 * Makefile.in: Regenerate.
540
541 2003-06-25 Alan Modra <amodra@bigpond.net.au>
542
543 * ld.texinfo: Correct spelling of "relocatable".
544 * ldctor.c: Likewise.
545 * ldexp.c: Likewise.
546 * ldfile.c: Likewise.
547 * ldint.texinfo: Likewise.
548 * ldlang.c: Likewise.
549 * ldmain.c: Likewise.
550 * ldwrite.c: Likewise.
551 * lexsup.c: Likewise.
552 * emultempl/aix.em: Likewise.
553 * emultempl/alphaelf.em: Likewise.
554 * emultempl/armcoff.em: Likewise.
555 * emultempl/armelf_oabi.em: Likewise.
556 * emultempl/beos.em: Likewise.
557 * emultempl/elf32.em: Likewise.
558 * emultempl/generic.em: Likewise.
559 * emultempl/gld960.em: Likewise.
560 * emultempl/gld960c.em: Likewise.
561 * emultempl/hppaelf.em: Likewise.
562 * emultempl/linux.em: Likewise.
563 * emultempl/lnk960.em: Likewise.
564 * emultempl/m68hc1xelf.em: Likewise.
565 * emultempl/m68kcoff.em: Likewise.
566 * emultempl/m68kelf.em: Likewise.
567 * emultempl/mipsecoff.em: Likewise.
568 * emultempl/mipself.em: Likewise.
569 * emultempl/mmix-elfnmmo.em: Likewise.
570 * emultempl/mmo.em: Likewise.
571 * emultempl/needrelax.em: Likewise.
572 * emultempl/pe.em: Likewise.
573 * emultempl/ppc64elf.em: Likewise.
574 * emultempl/sh64elf.em: Likewise.
575 * emultempl/sunos.em: Likewise.
576 * emultempl/ticoff.em: Likewise.
577 * emultempl/xtensaelf.em: Likewise.
578
579 2003-06-24 Alan Modra <amodra@bigpond.net.au>
580
581 * emultempl/ppc32elf.em: Convert to C90.
582
583 2003-06-20 Alan Modra <amodra@bigpond.net.au>
584
585 * emultempl/ppc64elf.em: Convert to C90 function definitions, remove
586 unnecessary prototypes and casts.
587
588 2003-06-19 Alan Modra <amodra@bigpond.net.au>
589
590 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
591 statistics from ppc64_elf_build_stubs.
592
593 2003-06-19 Alan Modra <amodra@bigpond.net.au>
594
595 * emultempl/ppc64elf.em (build_section_lists): Check return status
596 from ppc64_elf_next_input_section.
597
598 2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
599
600 * ldlang.c (section_already_linked): Put back assignment of
601 kept_section.
602
603 2003-06-17 Rainer Keuchel <rkeuchel@allgeier.com>
604
605 * pe-dll.c (generate_reloc): Catch and ignore an ARM_26D
606 reloc.
607
608 2003-06-17 Loren James Rittle <rittle@latour.rsch.comm.mot.com>
609
610 * configure.host (*-*-freebsd*): Add known path for ld-elf.so.1
611 if not produced by gcc.
612
613 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
614
615 * configure.tgt: Add specific case for cris-*-linux-gnu*
616 with crislinux emulation only.
617
618 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
619
620 * configure.tgt: Add i386-netbsd-gnu target.
621
622 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
623
624 * configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
625 to $targ_extra_libpath.
626
627 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
628
629 * po/Make-in (DESTDIR): New.
630 (install-data-yes): Support $(DESTDIR).
631 (uninstall): Likewise.
632
633 2003-06-10 Doug Evans <dje@sebabeach.org>
634
635 * Makefile.am (ALL_EMULATIONS): Add em32relf.o.
636 * Makefile.in: Regenerate.
637
638 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
639
640 * configure.tgt (h8300*): Add h8300sxn emulations.
641 * Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
642 (eh8300sxn.c, eh8300sxnelf.c): New rules.
643 * Makefile.in: Regenerate.
644 * emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
645 * scripttempl/h8300sxn.sc: New file.
646
647 2003-06-10 Alan Modra <amodra@bigpond.net.au>
648
649 * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
650 CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
651
652 2003-06-08 Alan Modra <amodra@bigpond.net.au>
653
654 * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
655 (build_toc_list): New function.
656 (gld${EMULATION_NAME}_finish): Call build_toc_list and
657 ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
658 (OPTION_STUBSYMS): Define.
659 (PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
660 (PARSE_AND_LIST_OPTIONS): Document.
661 (PARSE_AND_LIST_ARGS_CASES): Handle.
662
663 2003-06-05 Roland McGrath <roland@redhat.com>
664
665 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
666 extra \t in -z noexecstack line.
667
668 2003-05-23 Jakub Jelinek <jakub@redhat.com>
669
670 * ldgram.y (phdr_type): Grok PT_GNU_STACK.
671 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
672 -z execstack and -z noexecstack.
673 (gld${EMULATION_NAME}_list_options): Likewise.
674 * scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
675
676 2003-06-03 Michael Snyder <msnyder@redhat.com>
677 and Bernd Schmidt <bernds@redhat.com>
678 and Alexandre Oliva <aoliva@redhat.com>
679
680 * Makefile.am: Add new emulations for h8300sx.
681 * Makefile.in: Regenerate.
682 * configure.tgt: Add new emulations.
683 * emulparams/h8300sx.sh: New emulation.
684 * emulparams/h8300sxelf.sh: Ditto.
685 * scripttempl/h8300sx.sc: Ditto.
686
687 2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
688
689 * ldmisc.c: Include "bfdlink.h".
690 (error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
691 and -LD_DEFINITION_IN_DISCARDED_SECTION.
692
693 * Makefile.am: Rebuild dependency.
694 * Makefile.in: Regenerated.
695
696 2003-06-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
697
698 * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
699 * emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.
700
701 2003-06-02 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
702
703 * pe-dll.c (fill_edata): Scan table pe_dll->exports, which is
704 sorted alphabetically, instead of exported_symbols, which is
705 sorted by ordinal.
706
707 2003-05-30 Ulrich Drepper <drepper@redhat.com>
708 Jakub Jelinek <jakub@redhat.com>
709
710 * lexsup.c (OPTION_PIE): Define.
711 (ld_options): Add -pie and --pic-executable options.
712 (parse_args): Handle OPTION_PIE.
713 * ldmain.c (main): Initialize link_info.pie and
714 link_info.executable.
715 * genscripts.sh: Generate PIE scripts.
716 * ld.texinfo: Document -pie and --pic-executable options.
717 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
718 (gld${EMULATION_NAME}_place_orphan): Likewise.
719 (gld${EMULATION_NAME}_get_script): Include PIE scripts.
720 * scripttempl/elf.sc: In PIE scripts set . the same way as in
721 shared scripts.
722 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
723 * emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
724 * emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
725 * emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
726 * emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
727 * emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
728 * emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
729 * emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
730 * emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
731 * emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
732 * emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.
733
734 2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
735
736 * genscripts.sh: Create tmpdir/libpath.exp.
737
738 2003-05-30 Nick Clifton <nickc@redhat.com>
739
740 * emultempl/armelf.em (arm_elf_before_allocation): Replace ASSERT
741 with a test for a NULL bfd_for_interworking.
742
743 2003-05-29 Jason Thorpe <thorpej@wasabisystems.com>
744
745 * configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
746 correctly for more recent versions of NetBSD.
747 (alpha*-*-netbsd*): Remove.
748 (i[3-7]86-*-netbsd*): Remove.
749
750 2003-05-29 Nick Clifton <nickc@redhat.com>
751
752 * emultempl/pe.em: Include "safe-ctype.h" instead of <ctype.h>.
753
754 2003-05-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
755
756 * emulparams/elf64btsmip.sh: Set TEXT_START_ADDR to 0x120000000 to
757 trap on pointer crops.
758
759 2003-05-21 Marcus Comstedt <marcus@mc.pp.se>
760
761 * configure.tgt: Check for a target triplet of shl-...-netbsdelf
762 as well as shle-...-netbsdelf.
763
764 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
765
766 * configure.host: Accept i[3-7]86 variants.
767 * configure.tgt: Likewise.
768
769 2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
770
771 * emulparams/elf64_ia64.sh: Don't set COMMONPAGESIZE for now.
772
773 2003-05-09 Daniel Jacobowitz <drow@mvista.com>
774
775 * Makefile.am (ALL_EMULATIONS): Add earmelfb.o and earmelfb_linux.o.
776 (earmelfb.c, earmelfb_linux.c): New rules.
777 * Makefile.in: Regenerated.
778 * emulparams/armelfb.sh, emulparams/armelfb_linux.sh: New files.
779 * configure.tgt: Add armeb-elf and arm*b-*-linux-gnu.
780
781 2003-05-09 Nick Clifton <nickc@redhat.com>
782
783 * ldlang.c (lang_size_sections_1): Default to generating a
784 fatal error message if a loadable section is not allocated
785 to a memory region when regions are defined.
786
787 2003-05-09 Alan Modra <amodra@bigpond.net.au>
788
789 * Makefile.am (em68hc11elf.c): Correct dependencies.
790 (em68hc11elfb.c, em68hc12elf.c, em68hc12elfb.c): Likewise.
791 * Makefile.in: Regenerate.
792 * emultempl/elf32.em (find_exp_assignment): Adjust for changed
793 bfd_elf_record_link_assignment name.
794
795 2003-05-07 Alexandre Oliva <aoliva@redhat.com>
796
797 * ldmain.h (overflow_cutoff_limit): Declare.
798 * ldmain.c (overflow_cutoff_limit): Define, initialized to 10.
799 (reloc_overflow): Limit error messages based on it.
800 * lexsup.c (parse_args) <OPTION_VERBOSE>: Set cutoff to
801 unlimited.
802
803 2003-05-05 Alan Modra <amodra@bigpond.net.au>
804
805 * ldlex.l: Accept C style comments in version scripts.
806
807 2003-04-28 H.J. Lu <hjl@gnu.org>
808
809 * ldlang.c (lang_process): Add the relax finalize pass.
810
811 * ldmain.c (main): Initialize link_info.relax_finalizing to
812 FALSE.
813
814 2003-04-24 Roland McGrath <roland@redhat.com>
815
816 * ldgram.y (phdr_type): Grok PT_TLS and PT_GNU_EH_FRAME names.
817 If a name string is unknown, give an error rather than crashing later.
818
819 2003-04-23 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
820
821 * Makefile.am (ALL_EMULATIONS): Add eh8300hn.o, eh8300sn.o,
822 eh8300hnelf.o, eh8300snelf.o and respective rules.
823 * Makefile.in: Regenerate.
824 * configure.tgt: Add h8300hn, h8300sn, h8300hnelf, h8300snelf
825 * emulparams/h8300hn.sh: New
826 * emulparams/h8300sn.sh: New
827 * emulparams/h8300hnelf.sh: New
828 * emulparams/h8300snelf.sh: New
829 * scripttempl/h8300hn.sc: new
830 * scripttempl/h8300sn.sc: new
831
832 2003-04-23 H.J. Lu <hjl@gnu.org>
833
834 * ldmain.c (link_callbacks): Initialize error_handler.
835
836 * ldmisc.c (error_handler): New function.
837
838 * ldmisc.h (error_handler): New prototype.
839
840 2003-04-21 Stephane Carrez <stcarrez@nerim.fr>
841
842 * emulparams/m68hc11elf.sh: Use m68hc1xelf.em extra.
843 * emulparams/m68hc11elfb.sh: Likewise.
844 * emulparams/m68hc12elf.sh: Likewise.
845 * emulparams/m68hc12elfb.sh: Likewise.
846
847 2003-04-19 Stephane Carrez <stcarrez@nerim.fr>
848
849 * emultempl/m68hc1xelf.em: New file to generate far trampolines on
850 68HC11 and 68HC12.
851 (LDEMUL_BEFORE_ALLOCATION): Override to gather the trampolines to
852 generate.
853 (LDEMUL_FINISH): Override to generate the trampolines after gc and
854 linker relaxation.
855 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Override to create the
856 stub file for trampolines.
857 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_LONGOPTS): New options
858 --no-trampoline and --bank-window to control the memory bank window.
859
860 2003-04-18 H.J. Lu <hjl@gnu.org>
861
862 * ldfile.c (ldfile_add_library_path): Remove the unused
863 variable.
864
865 2003-04-18 Andrew Haley <aph@cambridge.redhat.com>
866
867 * scripttempl/xstormy16.sc (__data, __rdata): New.
868
869 2003-04-16 Nick Clifton <nickc@redhat.com>
870
871 * scripttempl/xstormy16.sc: Add .jcr section mapping.
872
873 2003-04-15 H.J. Lu <hjl@gnu.org>
874
875 From Debian by Jack Howarth <howarth@nitro.med.uc.edu>:
876
877 * ldlex.l: Use YY_CURRENT_BUFFER instead of yy_current_buffer.
878
879 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
880
881 * h8-doc.texi: Replace occurrances of 'Hitachi' with 'Renesas'.
882 * ld.texinfo: Likewise.
883
884 2003-04-14 Alan Modra <amodra@bigpond.net.au>
885
886 From Prashanth Tamraparni <prashanth_t@in.ibm.com>
887 * scripttempl/elf.sc (CTOR): Handle crtbeginS.o, crtendS.o and
888 other variants of crtbegin.o, crtend.o.
889 (DTOR): Likewise.
890 * scripttempl/crisaout.sc (ctors, dtors): Likewise.
891 * scripttempl/elf_chaos.sc (CTOR, DTOR): Likewise.
892 * scripttempl/elfd10v.sc (CTOR, DTOR): Likewise.
893 * scripttempl/elfd30v.sc (CTOR, DTOR): Likewise.
894 * scripttempl/elfxtensa.sc (CTOR, DTOR): Likewise.
895 * scripttempl/iq2000.sc (CTOR, DTOR): Likewise.
896 * scripttempl/mmo.sc (ctors, dtors): Likewise.
897 * scripttempl/xstormy16.sc (CTOR, DTOR): Likewise.
898
899 2003-04-09 Dmitry Diky <diwil@mail.ru>
900
901 * scripttempl/elf32msp430.sc: Add initX, finiX, ctors, dtors
902 sections to respect C++ constructor/destructor. Add ctors/dtors
903 start/stop definitions.
904 * scripttempl/elf32msp430_3.sc: Likewise.
905
906 2003-04-06 Nick Clifton <nickc@redhat.com>
907
908 * ld.texinfo (Options): Add a reminder of the target specific
909 nature to the description of the i386 PE specific options, for
910 readers who have not read all the way through the manual.
911
912 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
913
914 * configure.tgt: Fixed bug in list of targ_extra_emuls.
915 * emulparams/tic3xcoff.sh (SCRIPT_NAME): Namespace
916 cleanup. Replace s/c4x/tic4x and s/c3x/tic3x/
917 * emulparams/tic3xcoff_onchip.sh: Ditto
918 * emulparams/tic4xcoff.sh: Ditto
919 * scripttempl/tic4xcoff.sc: Ditto
920
921 2003-04-03 Nick Clifton <nickc@redhat.com>
922
923 * NEWS: Mention support for Xtensa architecture.
924
925 2003-04-02 Nick Clifton <nickc@redhat.com>
926
927 * pe-dll.c (pe_detail_list): arm-pe targets use underscores.
928
929 2003-04-01 Danny Smith <dannysmith@users.sourceforge.net>
930
931 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
932 Don't call pe_dll_build_section() if link_info.relocateable.
933 (gld_${EMULATION_NAME}_finish): Don't call pe_dll_fill_sections()
934 if link_info.relocateable.
935
936 2003-04-01 Fabrizio Gennari <fabrizio.ge@tiscalinet.it>
937
938 * pe-dll.c (process_def_file): Don't create an export
939 section if there are no exports and we're building an exe
940 (pe_dll_build_sections): Ditto
941 (pe_dll_fill_sections): Conditionalize setting
942 abfd->dll true on info->shared
943 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):
944 If i386pe or armpe, call pe_dll_build_section()
945 for both exe's and dll's, not just dll's.
946 (gld_${EMULATION_NAME}_finish): For all targets except
947 shpe and mipspe, call pe_dll_fill_sections() for both
948 exe's and dll's, not just dll's.
949
950 2003-04-02 Bob Wilson <bob.wilson@acm.org>
951
952 * emulparams/xtensa-config.sh: Remove comment indicating that this is
953 a generated file.
954
955 2003-04-01 Bob Wilson <bob.wilson@acm.org>
956
957 * Makefile.am (ALL_EMULATIONS): Add eelf32xtensa.o.
958 (eelf32xtensa.c): New target.
959 * Makefile.in: Regenerate.
960 * configure.tgt: Handle xtensa-*-*.
961 * gen-doc.texi: Set XTENSA variable.
962 * ld.texinfo: Set XTENSA variable. Add new Xtensa node.
963 * emulparams/elf32xtensa.sh: New file.
964 * emulparams/xtensa-config.sh: Likewise.
965 * emultempl/xtensaelf.em: Likewise.
966 * scripttempl/elfxtensa.sc: Likewise.
967
968 2003-04-01 Jakub Jelinek <jakub@redhat.com>
969
970 * configure.tgt (powerpc*-*-linux*): Add elf32ppc to ppc64
971 targ_extra_libpath. Add elf64ppc to ppc targ_extra_libpath
972 if --enable-64-bit-bfd.
973
974 2003-04-01 Nick Clifton <nickc@redhat.com>
975
976 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Change name of
977 note section.
978 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Change
979 name of note section.
980
981 2003-03-31 Alexandre Oliva <aoliva@redhat.com>
982
983 * ld.texinfo (-Tbss, -Tdata, -Ttext): Document in terms of
984 --section-start.
985
986 2003-03-31 David Heine <dlheine@suif.stanford.edu>
987
988 * ldfile.c (ldfile_add_library_path): Always allocate space for
989 the filename.
990 * ldlang.c (lang_register_vers_node): Free the node if it cannot
991 be used.
992 * ldmain.c (set_scripts_dir): Always free the constructed
993 directory name.
994 (add_keepsyms_file): Fix memory leak.
995 * ldmisc.c (vfinfo): Likewise.
996 * lexsup.c (parse_args): Likewise.
997
998 2003-03-25 Stan Cox <scox@redhat.com>
999 Nick Clifton <nickc@redhat.com>
1000
1001 Contribute support for Intel's iWMMXt chip - an ARM variant:
1002
1003 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Define.
1004 * emulparams/armelf_linux.sh (OTHER_READONLY_SECTIONS): Define.
1005 * scripttempl/armcoff.sc (.data): Ensure 8 byte alignment.
1006 (.bss): Likewise.
1007
1008 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
1009
1010 * ldmain.h (ld_canon_sysroot, ld_canon_sysroot_len): Declare.
1011 * ldmain.c (ld_canon_sysroot, ld_canon_sysroot_len): Define.
1012 (main): Initialize them.
1013 * ldfile.c: Include pathnames.h.
1014 (is_sysrooted_pathname): New.
1015 (ldfile_add_library_path): Use it.
1016 (ldfile_open_file_search): Likewise. Use IS_ABSOLUTE_PATH. Don't
1017 search_dirs if given an absolute pathname.
1018 (ldfile_open_file): Issue error message for sysrooted
1019 absolute pathnames.
1020 * Makefile.am: Updated dependencies.
1021 * Makefile.in: Rebuild.
1022
1023 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1024
1025 * ld.texinfo: Rename all occurances of C54X to TIC54X.
1026
1027 2003-03-19 Andreas Schwab <schwab@suse.de>
1028
1029 * ldfile.c (ldfile_try_open_bfd): Pop lexer start condition after
1030 eof.
1031
1032 2003-03-18 Danny Smith <dannysmith@users.sourceforge.net>
1033
1034 * deffilep.y (opt_base): If no number given, set to default
1035 (-1), not 0.
1036
1037 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
1038
1039 * deffilep.y (def_import): Use default extension of "dll"
1040 if no extension provided in parsed IMPORT definition.
1041
1042 * deffilep.y (def_lex): Revert 2003-03-12 change.
1043 (dot_name): New id type and rule.
1044 (expline): Use instead of ID.
1045 (opt_equal_name): Likewise.
1046
1047 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1048
1049 * deffilep.y (def_lex): Accept '.' as valid non-lead char.
1050
1051 2003-03-07 Christopher Faylor <cgf@redhat.com>
1052
1053 * configure.tgt: Add NATIVE_LIB_DIRS for cygwin target back after
1054 apparent accidental removal on 2003-01-06.
1055
1056 2003-03-04 Dmitry Diky <diwil@mail.ru>
1057
1058 * Makefile.am: Add new devices x1122 x1132 emulation
1059 * configure.tgt: Likewise.
1060 * Makefile.in: Regenerate.
1061 * emulparams/msp430x1122.sh: New file.
1062 * emulparams/msp430x1132.sh: New file.
1063
1064 2003-03-03 Alexandre Oliva <aoliva@redhat.com>
1065
1066 * ldmain.c (set_scripts_dir): Look for relative to TOOLBINDIR as
1067 well.
1068
1069 * ldfile.h (struct search_dirs): Added sysrooted field.
1070 * ldlang.h (struct lang_input_statement_struct): Likewise.
1071 * ldfile.c (ldfile_add_library_path): Mark sysrooted paths.
1072 (ldfile_open_file_search): Look for sysrooted filename starting
1073 with / in ld_sysroot instead of in the current directory. Clear
1074 sysrooted flag if it's found in the current directory. Set it
1075 from the search directory's sysrooted flag where it is found
1076 otherwise.
1077 * ldlang.c (ldlang_sysrooted_script): New static variable.
1078 (new_afile): Mark search_file_enums as sysrooted if
1079 ldlang_sysrooted_script.
1080 (load_symbols): Set ldlang_sysrooted_script according to the
1081 script's sysrooted field while processing it.
1082 * ld.texinfo: Document INPUT behavior in sysroot.
1083
1084 2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
1085
1086 * scripttempl/pe.sc: Use PROVIDE with etext, end, _end,
1087
1088 2003-03-03 Alan Modra <amodra@bigpond.net.au>
1089
1090 * emulparams/elf64alpha.sh (EXTRA_EM_FILE): Define.
1091 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
1092 PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES,
1093 PARSE_AND_LIST_EPILOGUE): Don't define.
1094 * emultempl/alphaelf.em: New file.
1095
1096 2003-03-01 Alan Modra <amodra@bigpond.net.au>
1097
1098 * ldemul.c: Include getopt.h.
1099 * emultempl/elf32.em: Include getopt.h earlier.
1100 * emultempl/ticoff.em: Likewise.
1101
1102 2003-02-28 Alan Modra <amodra@bigpond.net.au>
1103
1104 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Add combreloc
1105 support when scripts read from files.
1106
1107 2003-02-28 Alan Modra <amodra@bigpond.net.au>
1108
1109 * ldemul.c (ldemul_parse_args): Return FALSE by default.
1110 * ldemul.h (struct ld_emulation_xfer_struct): Update parse_args
1111 comment.
1112
1113 * ldemul.c (ldemul_add_options, ldemul_handle_option): New functions.
1114 (ldemul_parse_args): Return bfd_boolean. Formatting.
1115 * ldemul.h (ldemul_add_options, ldemul_handle_option): Declare.
1116 (ldemul_parse_args): Adjust.
1117 (struct ld_emulation_xfer_struct): Add add_options and handle_option.
1118 Return bfd_boolean from parse_args.
1119 * lexsup.c (parse_args): Malloc shortopts, longopts and
1120 really_longopts. Call ldemul_add_options and ldemul_handle_option.
1121 * emultempl/aix.em (gld${EMULATION_NAME}_add_options): Split out from
1122 gld${EMULATION_NAME}_parse_args.
1123 (gld${EMULATION_NAME}_handle_option): Likewise.
1124 (ld_${EMULATION_NAME}_emulation): Adjust initializer.
1125 * emultempl/armcoff.em: As for aix.em, but remove parse_args.
1126 * emultempl/beos.em: Likewise.
1127 * emultempl/pe.em: Likewise.
1128 * emultempl/ticoff.em: Likewise.
1129 * emultempl/elf32.em: Likewise. Don't duplicate long options either.
1130 (gld${EMULATION_NAME}_add_sysroot): Prototype.
1131 * emultempl/armelf.em (PARSE_AND_LIST_LONGOPTS): Don't duplicate
1132 options.
1133 * emultempl/hppaelf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1134 * emultempl/ppc32elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1135 * emultempl/ppc64elf.em (PARSE_AND_LIST_LONGOPTS): Likewise.
1136 * emultempl/armelf_oabi.em (ld_${EMULATION_NAME}_emulation): Adjust
1137 initializer.
1138 * emultempl/generic.em: Likewise.
1139 * emultempl/gld960.em: Likewise.
1140 * emultempl/gld960c.em: Likewise.
1141 * emultempl/linux.em: Likewise.
1142 * emultempl/lnk960.em: Likewise.
1143 * emultempl/m68kcoff.em: Likewise.
1144 * emultempl/mipsecoff.em: Likewise.
1145 * emultempl/sunos.em: Likewise.
1146 * emultempl/vanilla.em: Likewise.
1147 * emultempl/netbsd.em (gldnetbsd_before_parse): Prototype.
1148
1149 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
1150
1151 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Fix
1152 memory allocation error.
1153
1154 * Makefile.am (ldmain.o): Define TOOLBINDIR.
1155 * Makefile.in: Rebuilt.
1156 * ldmain.c (ld_sysroot): Try to set from TOOLBINDIR too.
1157
1158 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1159
1160 * ldlang.c (lang_size_sections_1): Add CHECK_REGIONS argument and only
1161 call os_region_check when it is set.
1162 (lang_size_sections): Add CHECK_REGIONS argument and pass it through to
1163 lang_size_sections_1.
1164 (lang_process): Change lang_size_sections calls to set CHECK_REGIONS
1165 only for the last call, not on every relaxation iteration.
1166 * ldlang.h (lang_size_sections): Update prototype.
1167 * pe-dll.c (pe_dll_fill_sections): Set CHECK_REGIONS argument in calls
1168 to lang_size_sections.
1169 (pe_exe_fill_sections): Likewise.
1170 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Likewise.
1171 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1172 * emultempl/ppc64elf.em (ppc_before_allocation): Likewise.
1173 (ppc_layout_sections_again): Likewise.
1174
1175 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1176
1177 * gen-doc.texi: Set ARM and HPPA variables.
1178 * ld.texinfo: Fix typos and obvious texinfo mistakes. Make section
1179 title capitalization more consistent. Add missing menu entries for
1180 machine-specific sections and conditionalize them consistently.
1181 Conditionalize text that is irrelevant when SingleFormat is set.
1182 Add @group divisions to improve page breaks in long examples.
1183 Use @iftex/@ifnottex instead of @iftex/@ifinfo so that HTML output
1184 is correct. Remove "FIXME" comment about not using
1185 @raisesections/@lowersections. Use @raisesections/@lowersections
1186 consistently for machine-specific sections. Change to be more polite
1187 about poor bug reports. Replace FDL appendix with include of fdl.texi.
1188 Move WIN32 node to match its order in the menus.
1189 * fdl.texi: New file.
1190
1191 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1192
1193 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1194 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1195 '${exec_prefix}' (in addition to the expansion thereof) as
1196 relocatable.
1197 * configure: Rebuilt.
1198
1199 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
1200
1201 * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
1202
1203 2003-02-20 Harri Porten <porten@kde.org>
1204
1205 * ldgram.y (vers_defns): Allow optional trailing semicolon in
1206 EXTERN NAME block;
1207
1208 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1209
1210 * emultempl/ppc32elf.em: New file.
1211 * emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
1212 * Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
1213 (eelf32lppcnto.c): Likewise.
1214 (eelf32lppcsim.c): Likewise.
1215 (eelf32ppcnto.c): Likewise.
1216 (eelf32ppc.c): Likewise.
1217 (eelf32ppc_fbsd.c): Likewise.
1218 (eelf32ppcsim.c): Likewise.
1219 (eelf32ppclinux.c): Likewise.
1220 * Makefile.in: Regenerate.
1221
1222 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1223
1224 * ld.texinfo: Remove spaces between @samp and opening brace.
1225
1226 2003-02-18 Alan Modra <amodra@bigpond.net.au>
1227
1228 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
1229 hash creator.
1230 (ppc_before_allocation): Don't do optimizations if wrong hash table.
1231 (gld${EMULATION_NAME}_finish): Ditto.
1232
1233 2003-02-17 Nick Clifton <nickc@redhat.com>
1234
1235 * ldmain.c (main) Default allow_shlib_undefined to true.
1236 * lexsup.c (ld_options): Add --no-allow-shlib-undefined.
1237 (parse_args): Parse the new switch.
1238 * ld.texinfo: Document new switch and default behaviour of
1239 allowing undefined symbols in shared libraries.
1240
1241 2003-02-11 Dmitry Diky <diwil@mail.ru>
1242
1243 * scripttempl/elf32msp430.sc: Add new data anchors definitions.
1244 * scripttempl/elf32msp430_3.sc: Likewise.
1245
1246 2003-02-11 Uwe Stieber <uwe@wwws.de>
1247
1248 * configure.tgt: Add support for kaOS as cross build target
1249 system.
1250
1251 2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
1252
1253 * hppaelf.em (group_size): Change default back to 1.
1254
1255 2003-02-09 Alan Modra <amodra@bigpond.net.au>
1256
1257 * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
1258
1259 2003-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1260
1261 * hppaelf.em (group_size): Change default to -1.
1262
1263 2003-02-07 Nick Clifton <nickc@redhat.com>
1264
1265 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Remove 'n' short
1266 opt.
1267 (PARSE_AND_LIST_LONGOPTS): Add duplicate entry for
1268 no-pipeline-knowledge. This will prevent the getopt package from
1269 thinking that there are any shorter abbreviations for
1270 --no-pipeline-knowledge.
1271
1272 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1273
1274 * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
1275 which already have it. Avoid duplicates.
1276
1277 2003-02-06 Jakub Jelinek <jakub@redhat.com>
1278
1279 * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
1280 * emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
1281 * emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.
1282
1283 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1284
1285 * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
1286 call ppc64_elf_tls_optimize.
1287
1288 2003-02-03 Daniel Jacobowitz <drow@mvista.com>
1289
1290 * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
1291 outside of GNU/Linux conditional.
1292
1293 2003-01-28 Ralf Habacker <ralf.habacker@freenet.de>
1294
1295 * deffilep.y (def_get_module): New function: locate an already
1296 added module.
1297 * deffile.h (def_get_module): New prototype.
1298 * pe-dll.c (pe_implied_import_dll): Add code to prevent importing
1299 a dll multiple times.
1300
1301 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1302
1303 * emultempl/sh64elf.em: Include elf32-sh64.h.
1304 (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
1305 sh64_elf_section_data.
1306 (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.
1307
1308 2003-01-23 Wu Yongwei <adah@netstd.com>
1309
1310 * ld.texinfo: Remove an extra "i" in --dll-search-prefix.
1311 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Move a
1312 cross-80th-column-margin "an" to the next line.
1313
1314 2003-01-21 Nick Clifton <nickc@redhat.com>
1315
1316 * emulparams/tic3xcoff-onchip.sh: Rename to ...z
1317 * emulparams/tic3xcoff_onchip.sh: ...this.
1318 * Makefile.am (etic3xcoff_onchip.c): Fix name of generated C file.
1319 * Makefile.in: Regenerate.
1320
1321 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1322
1323 * configure.tgt: Handle i[3456]86-*-aros*
1324
1325 2003-01-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1326
1327 * Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o
1328 * Makefile.in: Regenerate
1329 * configure.tgt: Added extra target emulations
1330 * emulparams/tic3xcoff.sh: Remove old settings
1331 * emulparams/tic4xcoff.sh: Ditto
1332 * emulparams/tic3xcoff-onchip.sh: Added new
1333 * scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x
1334 * scripttempl/tic3xcoff.sc: Remove
1335
1336 2003-01-17 Andreas Jaeger <aj@suse.de>
1337
1338 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Do not
1339 skip ':'.
1340
1341 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1342
1343 * Makefile.in: Regenerate.
1344
1345 2002-01-14 Charles Wilson <cwilson@ece.gatech.edu>
1346
1347 * ld.texinfo (node WIN32): Some clarifications
1348 and formatting fixups.
1349
1350 2003-01-09 Chris Demetriou <cgd@broadcom.com>
1351
1352 * ldmain.c (get_emulation): Sort -mipsNN checks in the usual
1353 order, and handle (ignore) -mips32r2.
1354
1355 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1356
1357 * ldmain.c (main): Make sure ld_sysroot is initialized.
1358
1359 2003-01-06 Daniel Jacobowitz <drow@mvista.com>
1360
1361 * Makefile.am (eelf32iq10.c): Fix tab/whitespace mixup.
1362
1363 * Makefile.am (ldmain.o): Add @TARGET_SYSTEM_ROOT_DEFINE@.
1364 (GENSCRIPTS): Add @use_sysroot@.
1365 * Makefile.in: Regenerated.
1366 * configure.host: Move setting of NATIVE_LIB_DIRS to...
1367 * configure.tgt: ... here. Use ${target} instead of ${host}
1368 for NATIVE_LIB_DIRS.
1369 * configure.in: Add --with-sysroot.
1370 * configure: Regenerated.
1371 * genscripts.sh: Accept use_sysroot option. Set new variables
1372 NATIVE and USE_LIBPATH. Prepend "=" to directory names if
1373 $use_sysroot. Don't search $tool_lib if $use_sysroot.
1374 * ldfile.c (ldfile_add_library_path): Handle leading '='.
1375 * ldmain.c (TARGET_SYSTEM_ROOT): Define if not defined.
1376 (ld_sysroot): New variable.
1377 (main): Initialize ld_sysroot.
1378 * ldmain.h (ld_sysroot): New extern.
1379 * emultempl/elf32.em: Use NATIVE and USE_LIBPATH instead of
1380 searching $EMULATION_LIBPATH.
1381 (gld${EMULATION_NAME}_add_sysroot): New function.
1382 (gld${EMULATION_NAME}_check_ld_so_conf): Use it. Honor ld_sysroot.
1383 (gld${EMULATION_NAME}_after_open): Likewise. Only search
1384 environment variables if $NATIVE.
1385 * ld.texinfo (Options): Mention "=" prefix in the description of -L.
1386 * NEWS: Mention --with-sysroot.
1387
1388 * emulparams/elf32bmipn32-defs.sh: Set NATIVE and LIBPATH_SUFFIX
1389 instead of setting LIB_PATH.
1390 * emulparams/elf32ppc.sh: Likewise.
1391 * emulparams/elf64_s390.sh: Likewise.
1392 * emulparams/elf64_sparc.sh: Likewise.
1393 * emulparams/elf64ppc.sh: Likewise.
1394 * emulparams/elf_x86_64.sh: Likewise.
1395
1396 * emulparams/elf64_aix.sh: Add "=" prefixes to LIB_PATH.
1397 * emulparams/elf64hppa.sh: Add "=" prefixes to LIB_PATH.
1398
1399 2003-01-03 Charles Wilson <cwilson@ece.gatech.edu>
1400
1401 * pe-dll.c (autofilter_symbollist): Add cygwin_crt0.
1402
1403 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1404
1405 * Makefile.am (ldmain.o): Pass BINDIR.
1406 * Makefile.in: Regenerated.
1407 * ldmain.c (set_scripts_dir): Use make_relative_prefix for the first
1408 search path.
1409
1410 2003-01-02 Ben Elliston <bje@redhat.com>
1411
1412 * Makefile.am (ALL_EMULATIONS): Add eelf32iq2000.o.
1413 (eelf32iq2000.c): New target.
1414 * Makefile.in: Regenerate.
1415 * configure.tgt: Handle iq2000-*-elf.
1416 * emulparams/elf32iq10.sh: New file.
1417 * emulparams/elf32iq2000.sh: New file.
1418 * scripttempl/iq2000.sc: New file.
1419
1420 2003-01-02 Charles Wilson <cwilson@ece.gatech.edu>
1421
1422 * pe-dll.c (autofilter_symbollist): Add do_pseudo_reloc
1423 and _pei386_runtime_relocator to the exclude list.
1424
1425 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
1426
1427 * ldfile.c: Fix comment typos.
1428 * ldlang.c: Likewise.
1429 * mri.c: Likewise.
1430 * pe-dll.c: Likewise.
1431
1432 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1433
1434 Suggested by Manfred Hollstein <manfred.h@gmx.net>:
1435 * Makefile.am (ld.1): Depend on configdoc.texi
1436 and ldver.texi.
1437 * Makefile.in: Regenerated.
1438
1439 2002-12-24 Dmitry Diky <diwil@mail.ru>
1440
1441 * Makefile.am: Add msp430 target.
1442 * configure.tgt: Likewise.
1443 * Makefile.in: Regenerate.
1444 * emulparams/msp430x???.sh: New files. Linker script parameters
1445 for various msp430 configurations.
1446 * gen-doc.texi: Enable msp430 documenation.
1447 * ld.texinfo: Document msp430 sections.
1448 * scripttempl/elf32msp430.sc: New file. Linker script for msp430.
1449 * scripttempl/elf32msp430_3.sc: New file. Linker script for msp430.
1450
1451 2002-12-30 Ralf Habacker <Ralf.Habacker@freenet.de>
1452 Charles Wilson <cwilson@ece.gatech.edu>
1453
1454 * config.in (HAVE_REALPATH): New entry.
1455 (HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
1456
1457 2002-12-30 Ralf Habacker <ralf.habacker@freenet.de>
1458
1459 * ld.texinfo: New win32 topics: 'symbol aliasing' and 'export dll
1460 symbols'.
1461
1462 2002-12-23 Alan Modra <amodra@bigpond.net.au>
1463
1464 * ldmain.c (main): Init "strip_discarded".
1465 * lexsup.c (OPTION_STRIP_DISCARDED): Define.
1466 (OPTION_NO_STRIP_DISCARDED): Define.
1467 (ld_options): Add "strip-discarded" and "no-strip-discarded".
1468 (parse_args): Handle them.
1469
1470 2002-12-23 Nick Clifton <nickc@redhat.com>
1471
1472 * ld.h (struct args_type): Add new field
1473 'accept_unknown_input_architecture'.
1474 * ldmain.c (main): Initialise 'accept_unknown_input_architecture'
1475 to false.
1476 * ldlang.c (lang_check): Pass accept_unknown_input_architecture to
1477 bfd_arch_get_compatible.
1478 * ldfile.c (ldfile_try_open_bfd): Likewise.
1479 * lexsup.c (ld_options): Add new command line switch
1480 --accept-unknown-input-architecture and its inverse.
1481 (parse_args): Handle --accept-unknown-input-architecture.
1482 * ld.texinfo: Document new linker option.
1483 * NEWS: Mention new linker option.
1484
1485 2002-12-20 Alan Modra <amodra@bigpond.net.au>
1486
1487 * ldmain.c (main): Re-order link_info initialization. Init all
1488 fields.
1489
1490 2002-12-19 Charles Wilson <cwilson@ece.gatech.edu>
1491
1492 * ld.texinfo: Clarify and extend the documentation
1493 in the Machine Dependent, WIN32 section.
1494
1495 2002-12-18 Ralf Habacker <ralf.habacker@freenet.de>
1496
1497 * ld.texinfo: Add win32 machine depending section.
1498 * gen-doc.texi: Enable win32 machine depending section.
1499
1500 * configure.host: Add win32 library search path.
1501
1502 2002-12-17 Ralf Habacker <ralf.habacker@freenet.de>
1503
1504 * emultempl/pe.em (pe_find_data_imports): Don't search for data
1505 import when auto-import is disabled.
1506
1507 2002-12-17 Danny Smith <dannysmith@users.sourceforge.net>
1508
1509 * emultempl/pe.em (..._recognized_file): Use LD_PATHMAX+1 to
1510 account for trailing '\0'.
1511
1512 2002-12-17 Nick Clifton <nickc@redhat.com>
1513
1514 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
1515 so that it is not confused with -c.
1516
1517 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
1518 Charles Wilson <cwilson@ece.gatech.edu>
1519
1520 * configure.in: Add check for realpath function.
1521 * configure: Regenerate.
1522 * config.in: Regenerate.
1523 * aclocal.m4: Regenerate.
1524 * deffile.h: Add .data field to def_file_import
1525 structure.
1526 * pe-dll.c (pe_proces_import_defs): Use .data field of
1527 def_file_import structure to initialize flag_data field of
1528 def_file_export structure.
1529 (pe_implied_import_dll): New variables exp_funcbase and
1530 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
1531 not filename (which may be a symlink). Scan the sections and
1532 initialize [data|bss]_[start|end]. When scanning the export
1533 table, skip _nm_ symbols, and mark any symbols whose rva indicates
1534 that it is in the .bss or .data sections as data.
1535 * sysdep.h: Include limits.h and sys/param.h, and define
1536 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
1537 exists, NULL otherwise.
1538 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
1539 pe_process_import_defs before pe_find_data_imports, so that
1540 auto-import will check the virtual implib as well as "real"
1541 implibs.
1542 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
1543 symlinks to their target; check that the target's extension is
1544 .dll before calling pe_implied_import_dll(), not the filename
1545 itself (which may be a symlink).
1546
1547 2002-12-10 Alan Modra <amodra@bigpond.net.au>
1548
1549 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
1550 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
1551 list too.
1552
1553 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1554
1555 * ldlang.h: Formatting.
1556
1557 2002-12-07 Alan Modra <amodra@bigpond.net.au>
1558
1559 * ldlang.c (init_os): Ensure sections mentioned in load_base
1560 are initialized.
1561
1562 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1563
1564 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
1565 load_base for orphans that follow a section with load_base set.
1566
1567 2002-12-01 H.J. Lu <hjl@gnu.org>
1568
1569 * ld.texinfo: Remove the extra `;' in sample version script.
1570
1571 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1572
1573 * configure.host: Correct dynamic-linker for powerpc64 hosts.
1574
1575 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
1576 * Makefile.in: Regenerate.
1577
1578 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
1579 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
1580 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
1581 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
1582 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
1583 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
1584 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
1585 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
1586 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
1587 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
1588 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
1589 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
1590 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
1591
1592 2002-11-27 David O'Brien <obrien@FreeBSD.org>
1593
1594 * configure.host: Fix generic FreeBSD configuration entry.
1595
1596 2002-11-27 H.J. Lu <hjl@gnu.org>
1597
1598 * ld.texinfo: Add the missing `;' to sample version scripts.
1599
1600 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1601
1602 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
1603
1604 2002-11-14 Egor Duda <deo@logos-m.ru>
1605
1606 * ldmain.c (main): Make runtime relocs disabled by default. Remove
1607 assignment which has no effect.
1608 * pe-dll.h (pe_create_import_fixup): Change prototype.
1609 * pe-dll.c (make_runtime_pseudo_reloc): New function.
1610 (pe_create_runtime_relocator_reference): Ditto.
1611 (pe_create_import_fixup): Handle relocations with non-zero addends.
1612 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
1613 --disable-runtime-pseudo-reloc.
1614 (make_import_fixup): Handle relocations with non-zero addends. Create
1615 an external reference to _pei386_runtime_relocator symbol if at least
1616 one pseudo reloc was created.
1617 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
1618 --disable-runtime-pseudo-reloc options.
1619
1620 2002-11-12 Earl Chew <earl_chew@agilent.com>
1621
1622 * ldlang.c (lang_add_section): Discard debugging sections that have
1623 been marked SEC_EXCLUDE.
1624
1625 2002-11-12 Nick Clifton <nickc@redhat.com>
1626
1627 * configure.in (ALL_LINGUAS): Add da.
1628 * configure: Regenerate.
1629 * po/da.po: New Danish translation.
1630
1631 2002-11-12 Alan Modra <amodra@bigpond.net.au>
1632
1633 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
1634 (LDEMUL_BEFORE_ALLOCATION): Define.
1635 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
1636 linking.
1637 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
1638
1639 2002-11-11 Christopher Faylor <cgf@redhat.com>
1640
1641 * configure.tgt (LIB_PATH): Default to searching w32api directory under
1642 cygwin.
1643
1644 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1645
1646 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
1647 of restricted auto-export libs.
1648
1649 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
1650
1651 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
1652 creative library naming instances like, e.g., libstdc++-2.a.
1653
1654 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
1655
1656 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
1657 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
1658
1659 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
1660
1661 * deffilep.y (def_lex): Handle '@' as first character of an ID.
1662 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
1663 (make_one): Don't prefix decorated fastcall symbols with '_'.
1664 (pe_process_import_defs): Likewise.
1665 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
1666 symbols to cdecl names or vise-versa.
1667
1668 2002-10-13 Eric Kohl <ekohl@rz-online.de>
1669
1670 * pe-dll.c (process_def_file): Handle fastcall symbols when
1671 generating undecorated aliases. Don't prefix decorated fastcall
1672 symbols with '_'.
1673 (fill_exported_offsets): Don't prefix decorated fastcall symbols
1674 with '_'.
1675
1676 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1677
1678 * emultempl/aix.em: Use include <> for generated headers.
1679 * emultempl/beos.em: Likewise.
1680 * emultempl/elf32.em: Likewise.
1681 * emultempl/pe.em: Likewise.
1682 * ldctor.c: Likewise.
1683 * ldexp.c: Likewise.
1684 * ldfile.c: Likewise.
1685 * ldlang.c: Likewise.
1686 * ldlex.c: Likewise.
1687 * ldlex.l: Likewise.
1688 * ldmain.c: Likewise.
1689 * ldmisc.c: Likewise.
1690 * ldwrite.c: Likewise.
1691 * lexsup.c: Likewise.
1692 * mri.c: Likewise.
1693 * pe-dll.c: Likewise.
1694
1695 2002-10-23 Jakub Jelinek <jakub@redhat.com>
1696
1697 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
1698 sections into .rel{,a}.dyn.
1699
1700 2002-10-23 Nick Clifton <nickc@redhat.com>
1701
1702 * lexsup.c (OPTION_NO_OMAGIC): Define.
1703 (ld_options): Add "no-omagic" option.
1704 (parse_args): Parse --no-omagic.
1705 * ld.texinfo: Document --no-omagic.
1706 * NEWS: Mention new option.
1707
1708 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
1709
1710 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
1711 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
1712
1713 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
1714
1715 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
1716 emulation name. Set LIB_PATH only for native tools, and
1717 search the ABI-specific versions of NATIVE_LIB_DIRS before the
1718 .../lib variants, not instead of them. Mostly copied from...
1719 * emulparams/elf32ppc.sh: ... here. Fixed typo.
1720 * emulparams/elf64bmip-defs.sh: Backed out.
1721 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
1722 * emulparams/elf64btsmip.sh: Likewise.
1723 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
1724 TEXT_DYNAMIC): Removed.
1725
1726 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
1727
1728 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
1729 (GENERATE_SHLIB_SCRIPT): Set to yes.
1730 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
1731 * emulparams/elf32bmipn32.sh: here.
1732 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
1733 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
1734 * emulparams/elf64bmip-defs.sh: New file. Extend
1735 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
1736 * emulparams/elf64bmip.sh: Bring in definitions from
1737 elf64bmip-defs.sh.
1738 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
1739 settings.
1740 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
1741 * emulparams/elf64btsmip.sh: Bring in definitions from
1742 elf64bmip-defs.sh.
1743 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
1744 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
1745
1746 2002-10-16 Jakub Jelinek <jakub@redhat.com>
1747
1748 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
1749 (s390-*-linux*): Add elf64_s390 emulation if want64.
1750 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
1751 genscript.sh changes.
1752 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
1753 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
1754
1755 2002-10-15 Alan Modra <amodra@bigpond.net.au>
1756
1757 * ldlang.c (load_symbols): Revert last change.
1758
1759 2002-10-14 Alan Modra <amodra@bigpond.net.au>
1760
1761 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
1762 just_syms_flag.
1763 (lang_reasonable_defaults): Don't compare against false.
1764 (size_input_section): Likewise.
1765 (lang_size_sections_1): Likewise.
1766 (lang_do_assignments): Likewise.
1767 (lang_add_output): Likewise.
1768
1769 * Makefile.am: Run "make dep-am".
1770 * Makefile.in: Regenerate.
1771 * ldver.c: #include "bfdver.h".
1772
1773 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
1774
1775 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
1776 .finiN section.
1777 * scripttempl/elfm68hc12.sc: Likewise.
1778
1779 2002-10-11 Alan Modra <amodra@bigpond.net.au>
1780
1781 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
1782
1783 * ldgram.y (memory_spec): Provide empty action.
1784 (section <NAME>): Likewise.
1785
1786 2002-10-10 Jakub Jelinek <jakub@redhat.com>
1787
1788 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
1789 they have OUTPUT_FORMAT not matching actual output format.
1790 * ldlang.c (lang_get_output_target): New function.
1791 (open_output): Use it.
1792 * ldlang.h (lang_get_output_target): New prototype.
1793
1794 2002-10-10 Alan Modra <amodra@bigpond.net.au>
1795
1796 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
1797 when orphan is .rel, .rela when orphan is .rela.
1798 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
1799 first. Remove outsecname var.
1800
1801 2002-10-09 Richard Shann <richard.shann@superh.com>
1802 Stephen Clarke <stephen.clarke@superh.com>
1803
1804 * Makefile.am: Add eshelf32_linux.o and
1805 eshlelf32_linux.o, new emulations for sh64 Linux.
1806 * Makefile.in: Regenerate.
1807 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
1808 * emulparams/shelf32_linux.sh: New file.
1809 * emulparams/shlelf32_linux.sh: New file.
1810
1811 2002-10-08 H.J. Lu <hjl@gnu.org>
1812
1813 * ldlang.c (lang_file_exist): Removed.
1814 (new_afile): Revert the last change.
1815 * ldlang.h (lang_file_exist): Removed.
1816 * lexsup.c (parse_args): Revert the last change.
1817
1818 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1819
1820 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
1821 auto-import symbols.
1822 (make_one): Create _nm_<symbol> for data only.
1823
1824 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
1825
1826 * ldlang.c (lang_file_exist): New function.
1827 (new_afile): Abort if the filename to be added matches the linker
1828 output filename.
1829 * ldlang.h: Add prototype for lang_file_exist.
1830 * lexsup.c (parse_args): Abort if the output filename matches
1831 one of the input filenames.
1832
1833 2002-10-02 Alan Modra <amodra@bigpond.net.au>
1834
1835 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
1836
1837 2002-09-30 Alan Modra <amodra@bigpond.net.au>
1838
1839 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
1840 * scripttempl/elfm68hc11.sc: Likewise.
1841 * scripttempl/elfm68hc12.sc: Likewise.
1842
1843 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
1844 reloc sections just before .rel.plt/.rela.plt.
1845 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
1846 Only put loadable reloc sections in hold_rel.
1847
1848 2002-09-29 H.J. Lu <hjl@gnu.org>
1849
1850 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
1851
1852 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
1853
1854 From "Anita Kulkarni" <AnitaK@kpit.com>
1855 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
1856 sections.
1857
1858 2002-09-25 Alan Modra <amodra@bigpond.net.au>
1859
1860 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
1861 TARGET_PAGE_SIZE.
1862 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
1863 SEGMENT_SIZE alignment.
1864 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
1865 (SEGMENT_SIZE): Define.
1866
1867 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
1868 (fold_binary): Correct abs - non-abs case.
1869 (fold_trinary): New. Split out from exp_fold_tree.
1870
1871 2002-09-24 Alan Modra <amodra@bigpond.net.au>
1872
1873 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
1874 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
1875 for start of .data, instead align up to 256M boundary.
1876 * scripttempl/aix.sc: Likewise.
1877
1878 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
1879
1880 * scripttempl/i386go32.sc: Handle bss unique sections.
1881
1882 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1883
1884 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
1885
1886 2002-09-17 Stan Cox <scox@redhat.com>
1887
1888 * emulparams/elf32bmipn32-defs.sh: New file.
1889 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
1890 * emulparams/elf32btsmipn32.sh: Likewise.
1891 * emulparams/elf64bmip.sh: Likewise.
1892 * emulparams/elf64btsmip.sh: Likewise.
1893
1894 2002-09-16 Bruno Haible <bruno@clisp.org>
1895
1896 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
1897 elf32-i386-freebsd.
1898 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
1899 elf64-alpha-freebsd.
1900
1901 2002-09-11 Nick Clifton <nickc@redhat.com>
1902
1903 * NEWS: New TI port supports both C4x and C3x series of DSPs.
1904
1905 * po/tr.po: Updated Turkish translation.
1906
1907 2002-09-06 Jeffrey A Law (law@redhat.com)
1908
1909 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
1910
1911 2002-09-02 Nick Clifton <nickc@redhat.com>
1912
1913 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
1914 __ep.
1915 * emulparams/v850.sh (TEMPLATE_NAME): Define.
1916
1917 2002-08-30 Nick Clifton <nickc@redhat.com>
1918
1919 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
1920 used. Change INSN to start at 0x01000000 and extend for
1921 256K (ignoring holes). Start the STACK on a word aligned
1922 boundary.
1923 (.rodata): Start it at the READONLY_START_ADDR.
1924
1925 2002-08-30 Alan Modra <amodra@bigpond.net.au>
1926
1927 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
1928
1929 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
1930
1931 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
1932 added makefile targets for this file.
1933 * Makefile.in: Regenerate.
1934 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
1935 * NEWS: Mention new port.
1936
1937 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1938
1939 * emulparams/tic3xcoff.sh: New file.
1940 * emulparams/tic4xcoff.sh: New file.
1941 * scripttempl/tic3xcoff.sc: New file.
1942 * scripttempl/tic4xcoff.sc: New file.
1943
1944 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1945
1946 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
1947 strtoul and strtoull with bfd_scan_vma.
1948 (gld${EMULATION_NAME}_read_file): Likewise.
1949
1950 2002-08-28 Alan Modra <amodra@bigpond.net.au>
1951
1952 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
1953
1954 2002-08-27 Egor Duda <deo@logos-m.ru>
1955
1956 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
1957 Add symbols for application to access them.
1958
1959 2002-08-27 Nick Clifton <nickc@redhat.com>
1960
1961 * emultempl/armelf.em: Revert this patch, it is not needed.
1962
1963 2002-08-22 Adam Nemet <anemet@lnxw.com>
1964
1965 2002-08-20 Dan Kegel <dank@kegel.com>
1966
1967 * configure.in: added --with-lib-path argument to ld's configure
1968 to set LIB_PATH.
1969 * NEWS: Document new switch.
1970 * README: Mention new switch.
1971 * configure: Regenerate.
1972 * Makefile.in: Regenerate.
1973
1974 Based on this patch:
1975 2001-04-25 Christopher Faylor <cgf@cygnus.com>
1976
1977 * Makefile.in (LIB_PATH): Make configurable.
1978 (GENSCRIPTS): Set LIB_PATH in environment.
1979 * configure.in: Substitute LIB_PATH.
1980
1981 2002-08-22 Adam Nemet <anemet@lnxw.com>
1982
1983 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
1984 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
1985 depending on the type of the function.
1986 (arm_elf_convert_thumb_symbol_to_address): New function.
1987
1988 2002-08-22 Graeme Peterson <gp@qnx.com>
1989
1990 * Makefile.am: Add esh{l}elf_nto.o files.
1991 * Makefile.in: Regenerate.
1992 * configure.tgt: Add support for sh-**-nto* targets.
1993 * emulparams/shelf_nto.sh: New file.
1994 * emulparams/shlelf_nto.sh: New file.
1995
1996 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
1997
1998 * ldlang.c (offsetof): Define if not defined.
1999
2000 2002-08-14 H.J. Lu <hjl@gnu.org>
2001
2002 * configure.tgt: Always enable 64bit emulations for 32bit
2003 Linux/mips.
2004
2005 2002-08-13 Alan Modra <amodra@bigpond.net.au>
2006
2007 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
2008 (MAXPAGESIZE): Set to 1.
2009
2010 * ld.h (ALIGN_N): Delete.
2011 * ldexp.h (align_n): Declare.
2012 * ldexp.c (align_n): New function.
2013 (fold_binary): Use align_n instead of ALIGN_N.
2014 (exp_fold_tree): Likewise.
2015 * ldlang.c (lang_size_sections_1): Likewise.
2016 (lang_one_common): Likewise.
2017 * ld.texinfo (ALIGN): Remove power of 2 restriction.
2018
2019 2002-07-31 Graeme Peterson <gp@qnx.com>
2020
2021 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
2022 * Makefile.am: Add eelf32{l}ppcnto.o files.
2023 * Makefile.in: Regenerate.
2024 * emulparams/elf32lppcnto.sh: New file.
2025 * emulparams/elf32ppcnto.sh: New file.
2026
2027 2002-08-07 H.J. Lu <hjl@gnu.org>
2028
2029 * ld.texinfo: Document --no-undefined-version.
2030
2031 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
2032 `script.' fields to 0.
2033
2034 * ldmain.c (main): Initialize the allow_undefined_version to
2035 true.
2036
2037 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
2038 (ld_options): Add --no-undefined-version.
2039 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
2040
2041 2002-08-07 Nick Clifton <nickc@redhat.com>
2042
2043 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
2044 an interworking bfd if there are input bfds. (107501)
2045
2046 2002-08-06 Alan Modra <amodra@bigpond.net.au>
2047
2048 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
2049 2002-05-10 change.
2050
2051 2002-08-01 Nick Clifton <nickc@redhat.com>
2052
2053 * emulparams/armelf.sh: Revert previous delta.
2054 * scripttempl/elf.sc: Revert previous delta.
2055
2056 2002-07-31 H.J. Lu <hjl@gnu.org>
2057
2058 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
2059 --enable-64-bit-bfd.
2060
2061 2002-07-31 H.J. Lu <hjl@gnu.org>
2062
2063 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
2064 64bit BFD is selected.
2065
2066 2002-07-31 H.J. Lu <hjl@gnu.org>
2067
2068 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
2069 if 64bit BFD is selected.
2070
2071 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
2072
2073 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
2074 link_info.common_skip_ar_aymbols.
2075 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
2076
2077 * ldmain.c (main): Initialize new field
2078 link_info.common_skip_ar_aymbols.
2079
2080 2002-07-31 Adam Nemet <anemet@lnxw.com>
2081
2082 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
2083 to .plt.thumb.
2084 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
2085 used.
2086
2087 2002-07-31 Nick Clifton <nickc@redhat.com>
2088
2089 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
2090 of the PDP-11 and 2.11BSD a.out support.
2091
2092 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2093
2094 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
2095 for n32 ABI support.
2096 * Makefile.in: Regenerate.
2097 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
2098 n32 ABI emulations for these 64 bit targets.
2099 * emulparams/elf32bmipn32.sh: Expand comment.
2100 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
2101 n32 ABI.
2102 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
2103
2104 2002-07-30 Graeme Peterson <gp@qnx.com>
2105
2106 * configure.tgt: Add support for arm-*-nto target.
2107 * Makefile.am: Add earmnto.o file.
2108 * Makefile.in: Regenerate.
2109 * NEWS: Mention port of ARM support to QNX.
2110 * emulparams/armnto.sh: New file.
2111
2112 2002-07-30 Jakub Jelinek <jakub@redhat.com>
2113
2114 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
2115 for relocatable link.
2116 (lang_size_sections_1): Don't make .tbss zero size for relocatable
2117 link.
2118
2119 2002-07-26 Bernd Schmidt <bernds@redhat.com>
2120
2121 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
2122 (STACK_ADDR): New.
2123
2124 2002-07-25 Nick Clifton <nickc@redhat.com>
2125
2126 * po/sv.po: Updated Swedish translation.
2127 * po/es.po: Updated Spanish translation.
2128 * po/fr.po: Updated French translation.
2129
2130 2002-07-24 Nick Clifton <nickc@redhat.com>
2131
2132 * po/sv.po: Updated Swedish translation.
2133 * po/es.po: Updated Spanish translation.
2134
2135 2002-07-23 Nick Clifton <nickc@redhat.com>
2136
2137 * po/fr.po: Updated French translation.
2138
2139 2002-07-20 Alan Modra <amodra@bigpond.net.au>
2140
2141 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2142 bomb on /DISCARD/ input section.
2143 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2144 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2145
2146 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
2147
2148 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
2149 output section.
2150
2151 2002-07-16 Denis Chertykov <denisc@overta.ru>
2152 Nick Clifton <nickc@redhat.com>
2153 Frank Ch. Eigler <fche@redhat.com>
2154 John Healy <jhealy@redhat.com>
2155
2156 * configure.tgt: Add support for ip2k-elf.
2157 * Makefile.am: Add support for ip2k-elf.
2158 * Makefile.in: Regenerate.
2159 * emulparams/elf32ip2k.sh: New file.
2160 * scripttempl/ip2k.sc: New file
2161 * NEWS: Mention support for new port.
2162
2163 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
2164
2165 * NEWS: Add 'Changes in 2.13'.
2166
2167 2002-07-14 H.J. Lu <hjl@gnu.org>
2168
2169 * ld.texinfo: Document a .symver takes precedence over a
2170 version script.
2171
2172 2002-07-12 Alan Modra <amodra@bigpond.net.au>
2173
2174 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
2175 (COMMONPAGESIZE): Define.
2176
2177 2002-07-09 Alan Modra <amodra@bigpond.net.au>
2178
2179 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
2180
2181 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
2182
2183 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
2184 powerpc-*-openbsd* and sparc64-*-openbsd*.
2185 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
2186 * Makefile.in: Regenerate.
2187 * emulparams/hppaobsd.sh: New file.
2188
2189 2002-07-05 Alan Modra <amodra@bigpond.net.au>
2190
2191 * ldlang.c (print_wild_statement): Fix output formatting.
2192
2193 2002-07-04 Alan Modra <amodra@bigpond.net.au>
2194
2195 * ldlang.c: (strip_excluded_output_sections): New function.
2196 (lang_process): Call it.
2197 (lang_size_sections_1): Revert 2002-06-10 change.
2198
2199 2002-07-03 Alan Modra <amodra@bigpond.net.au>
2200
2201 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
2202 Run "make dep-am".
2203 * Makefile.in: Regenerate.
2204
2205 2002-07-02 Alan Modra <amodra@bigpond.net.au>
2206
2207 * ldfile.c (ldfile_try_open_bfd): Formatting.
2208
2209 * ldmisc.c (demangle): Move so that it doesn't intrude between
2210 vfinfo comment and body. Add comment.
2211
2212 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
2213
2214 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
2215
2216 2002-07-01 Alan Modra <amodra@bigpond.net.au>
2217
2218 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
2219 * ldlang.c (entry_sym): Likewise.
2220 (ldlang_undef_chain_list_type): Likewise.
2221 (lang_finish): Adjust references to entry_symbol.
2222 (lang_add_entry): Likewise.
2223 (lang_gc_sections): Use link_info.gc_sym_list.
2224 (lang_process): Set link_info.gc_sym_list.
2225 * ldlex.l: Include bfdlink.h.
2226 * ldmain.c (main): Init link_info.gc_sym_list.
2227 * emultempl/aix.em: Adjust references to entry_symbol.
2228 * emultempl/armcoff.em: Likewise.
2229 * emultempl/armelf.em: Likewise.
2230 * emultempl/pe.em: Likewise.
2231 * emultempl/ppc64elf.em (ppc_after_open): New function.
2232 (LDEMUL_AFTER_OPEN): Define.
2233 * emulparams/elf64ppc.sh: KEEP .opd sections.
2234
2235 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
2236
2237 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
2238 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
2239 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
2240 (EEPROM_START_ADDR): Define.
2241 (EEPROM_MEMORY): Define.
2242 * emulparams/m68hc12elf.sh: Likewise.
2243 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
2244 section to put soft registers in .page0.
2245 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
2246
2247 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2248
2249 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
2250 section. Add ${RELOCATING-0}.
2251
2252 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
2253
2254 * emulparams/shelf.sh (STACK_ADDR): Don't define.
2255 (OTHER_SECTIONS): Define.
2256 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
2257 (OTHER_SECTIONS): Undef.
2258
2259 2002-06-26 Alan Modra <amodra@bigpond.net.au>
2260
2261 * ldmisc.c (demangle): Restore dots stripped from sym name.
2262
2263 2002-06-25 H.J. Lu <hjl@gnu.org>
2264
2265 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
2266 * Makefile.in: Regenerated.
2267
2268 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
2269
2270 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
2271 the size of attached object files, to allow make the object files
2272 available via FTP or HTTP and to mention that the mail will be
2273 sent to a mailing list.
2274
2275 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
2276
2277 * configure.host (romp): Drop support.
2278
2279 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2280
2281 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
2282 section flags for SEC_DATA, rather than for SEC_CODE being unset.
2283
2284 2002-06-18 Chris Demetriou <cgd@broadcom.com>
2285
2286 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
2287 format specifier used to print BFD name.
2288
2289 2002-06-18 Dave Brolley <brolley@redhat.com>
2290
2291 From Catherine Moore, Michael Meissner, Jim Blandy:
2292 * emulparams/elf32frv.sh: New file.
2293 * configure.tgt: Support frv-*-*.
2294 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
2295 (eelf32frv.c): New target.
2296
2297 2002-06-17 Tom Rix <trix@redhat.com>
2298
2299 * emultempl/elf32.em: gld*_get_script: Check for
2300 GENERATE_COMBRELOC_SCRIPT.
2301 * scripttempl/elfd10v.sc : Fix STACK and INSN.
2302 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
2303
2304 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
2305
2306 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
2307
2308 2002-06-12 H.J. Lu <hjl@gnu.org>
2309
2310 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
2311 false if xvec doesn't match.
2312
2313 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2314
2315 * ldlang.c (lang_size_sections_1): Skip removed output sections.
2316
2317 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2318
2319 * ldexp.c: Replace CONST with const.
2320 * ldfile.c: Likewise.
2321 * ldfile.h: Likewise.
2322 * ldlex.l: Likewise.
2323 * mri.c: Likewise.
2324 * pe-dll.h: Likewise.
2325
2326 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2327
2328 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
2329
2330 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
2331
2332 * ldmain.c (main): initialize link_info.pei386_auto_import
2333 to -1 == implicit enable.
2334 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
2335 initialize link_info.pei386_auto_import to -1 == implicit
2336 enable.
2337 (gld_${EMULATION_NAME}_parse_args): When processing
2338 --enable-auto-import and --disable-auto-import options, use
2339 '1' and '0' instead of 'true' and 'false'.
2340 (pe_find_data_imports): Only issue message about auto-import
2341 when the feature is implicitly enabled. Downgrade message to
2342 informational instead of warning.
2343
2344 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2345
2346 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
2347
2348 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2349
2350 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
2351 HOSTING_CRT0 and HOSTING_LIBS.
2352
2353 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
2354
2355 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
2356
2357 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
2358
2359 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
2360 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
2361
2362 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2363
2364 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
2365 SEC_EXCLUDE sections when doing a relocatable link.
2366
2367 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2368
2369 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
2370 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
2371 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
2372 (eshlelf64_nbsd.c): New rules.
2373 * Makefile.in: Regenerate.
2374 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2375 (sh64-*-netbsd*): New targets.
2376 * emulparams/shelf32_nbsd.sh: New file.
2377 * emulparams/shelf64_nbsd.sh: New file.
2378 * emulparams/shlelf32_nbsd.sh: New file.
2379 * emulparams/shlelf64_nbsd.sh: New file.
2380
2381 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2382
2383 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
2384
2385 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2386
2387 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
2388 C++ constructors/destructors, loosely based on the m68hc11 port.
2389
2390 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2391
2392 * Makefile.in: Regenerate.
2393 * aclocal.m4: Regenerate.
2394 * config.in: Regenerate.
2395 * configure: Regenerate.
2396
2397 2002-05-31 Graeme Peterson <gp@qnx.com>
2398
2399 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
2400 (ei386nto.c): Add rule.
2401 * Makefile.in: Regenerate.
2402 * configure.tgt: Add i[3456]86-*-nto-qnx*.
2403 * emulparams/i386nto.sh: New file.
2404
2405 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2406
2407 * NEWS: Add entry for VAX ELF support.
2408
2409 2002-05-29 Matt Thomas <matt@3am-software.com>
2410 Jason Thorpe <thorpej@wasabisystems.com>
2411
2412 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
2413 (eelf32vax.c)
2414 (evaxnbsd.c): New rules.
2415 * Makefile.in: Regenerate.
2416 * configure.tgt (vax-*-netbsdelf*)
2417 (vax-*-netbsdaout*)
2418 (vax-*-netbsd*): New targets.
2419 * emulparams/elf32vax.sh: New file.
2420 * emulparams/vaxnbsd.sh: New file.
2421
2422 2002-05-29 Adam Nemet <anemet@lnxw.com>
2423
2424 * emultempl/armelf.em (arm_elf_after_open): Don't determine
2425 bfd_for_interwork, instead add glue sections to each input bfd.
2426 (bfd_for_interwork): New global.
2427 (arm_elf_set_bfd_for_interworking): New function.
2428 (arm_elf_before_allocation): Use it.
2429
2430 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2431
2432 * Makefile.am: Add DLX make target.
2433 * configure.tgt: Add DLX configuration.
2434 * Makefile.in: Regenerate.
2435 * emulparams/elf32_dlx.sh: New file
2436 * scripttempl/dlx.sc: New file
2437
2438 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
2439
2440 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
2441 * Makefile.in: Regenerate.
2442 * emulparams/elf_chaos.sh: Use elf_chaos script.
2443 * scripttempl/elf_chaos.sc: New file.
2444
2445 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
2446
2447 * ldlang.c (lang_size_sections_1): Move check for conflicting load
2448 addresses and regions from here...
2449 (lang_get_regions): ...to this new function.
2450 (lang_leave_output_section_statement): Use lang_get_regions.
2451 (lang_leave_overlay): Likewise.
2452 * mri.c (mri_draw_tree): Pass null as last argument to
2453 lang_leave_output_section_statement.
2454 * emultempl/elf32.em (gld*_place_orphan): Likewise.
2455 * emultempl/mmo.em (mmo_place_orphan): Likewise.
2456 * emultempl/pe.em (gld*_place_orphan): Likewise.
2457
2458 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2459
2460 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
2461
2462 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2463
2464 * ldemul.c: Fix formatting.
2465 * ldfile.c: Likewise.
2466 * pe-dll.c: Likewise.
2467 * pe-dll.h: Likewise.
2468
2469 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2470
2471 * ldlang.c (lang_process): Formatting, grammar.
2472
2473 * ldlex.l: Use #include "" instead of <> for local header files.
2474
2475 2002-05-24 TAMURA Kent <kent@netbsd.org>
2476
2477 * configure.tgt: Add a target for i386-netbsdpe.
2478
2479 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2480
2481 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
2482 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
2483 output section if necessary. Handle .tbss.
2484 (lang_size_sections): Clear _raw_size for .tbss section
2485 (it allocates space in PT_TLS segment only).
2486 * ldwrite.c (build_link_order): Build link order for .tbss too.
2487
2488 2002-05-23 Alan Modra <amodra@bigpond.net.au>
2489
2490 * configure.in: Correct spelling of AC_PREREQ.
2491
2492 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2493
2494 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
2495 default.
2496 (autofilter_objlist): Add crtbegin.o, crtend.o.
2497
2498 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2499
2500 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
2501 (longopts): Add new option --exclude-libs.
2502 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
2503 (gld_${EMULATION_NAME}_parse_args): Use it.
2504 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
2505 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
2506 from whole archives.
2507 (pe_dll_add_excludes): Set excludes->type.
2508 (auto_export): Add new variable libname and set to archive basename if
2509 abfd. Use it when filtering default and user-specified libarary
2510 excludes. Let string "ALL" mean all libs when filtering user-specified
2511 libs.
2512 * ld.texinfo: Document --exclude-libs.
2513
2514 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2515
2516 * ldemul.c (ldemul_new_vers_pattern): New function.
2517 * ldemul.h (ldemul_new_vers_pattern): Declare.
2518 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
2519 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
2520 * emultempl/ppc64elf.em (dotsyms): New static var.
2521 (gld${EMULATION_NAME}_new_vers_pattern): New function.
2522 (LDEMUL_NEW_VERS_PATTERN): Define.
2523 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
2524 (PARSE_AND_LIST_LONGOPTS): Likewise.
2525 (PARSE_AND_LIST_ARGS_CASES): Handle them.
2526 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
2527 initialiser.
2528 * emultempl/armcoff.em: Likewise.
2529 * emultempl/armelf_oabi.em: Likewise.
2530 * emultempl/beos.em: Likewise.
2531 * emultempl/elf32.em: Likewise.
2532 * emultempl/generic.em: Likewise.
2533 * emultempl/gld960.em: Likewise.
2534 * emultempl/gld960c.em: Likewise.
2535 * emultempl/linux.em: Likewise.
2536 * emultempl/lnk960.em: Likewise.
2537 * emultempl/m68kcoff.em: Likewise.
2538 * emultempl/mipsecoff.em: Likewise.
2539 * emultempl/pe.em: Likewise.
2540 * emultempl/sunos.em: Likewise.
2541 * emultempl/ticoff.em: Likewise.
2542 * emultempl/vanilla.em: Likewise.
2543
2544 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2545
2546 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
2547 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
2548 (LIB_SEARCH_DIRS): No need to use "tr".
2549 (COMPILE_IN): Only set for native targets.
2550 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
2551 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
2552 * configure.tgt (powerpc*): Set tdir_*.
2553 (powerpcle*): Correct targ_extra_emuls.
2554 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
2555 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
2556
2557 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2558
2559 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
2560 calling lang_add_entry.
2561
2562 2002-05-21 H.J. Lu (hjl@gnu.org)
2563
2564 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
2565 "-z muldefs".
2566 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
2567
2568 * ld.texinfo: Updated for --allow-multiple-definition and
2569 "-z muldefs".
2570
2571 * ldmain.c (main): Initialize the allow_multiple_definition
2572 field to false.
2573
2574 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
2575 (ld_options): Add --allow-multiple-definition.
2576 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
2577
2578 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2579
2580 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
2581 (earmelfb_nbsd.c): New rule.
2582 * Makefile.in: Regenerate.
2583 * configure.tgt (armeb-*-netbsdelf*): New target.
2584 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
2585 (arm-*-netbsd*): Likewise.
2586 * emulparams/armelfb_nbsd.sh: New file.
2587
2588 2002-05-18 Tom Rix <trix@redhat.com>
2589
2590 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
2591 support.
2592
2593 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2594
2595 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
2596 * Makefile.in: Regenerate.
2597 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
2598
2599 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
2600
2601 * emulparams/avr1.sh: New file.
2602 * emulparams/avr2.sh: New file.
2603 * emulparams/avr3.sh: New file.
2604 * emulparams/avr4.sh: New file.
2605 * emulparams/avr5.sh: New file.
2606 * scripttempl/avr.sc: New file.
2607
2608 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2609
2610 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
2611 (lang_place_orphans): Abort if just_syms_flag.
2612
2613 2002-05-10 Tom Rix <trix@redhat.com>
2614
2615 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
2616 architecture and machine information in the output bfd.
2617 (gld*_before_parse): Remove old arch and machine code.
2618 (choose_target): Rename to gld*_choose_target.
2619 (rtld): Change type to int.
2620 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
2621 objects in XCOFF archives.
2622 * ldfile.h: Update copyright date.
2623
2624 2002-05-10 Jakub Jelinek <jakub@redhat.com>
2625
2626 * ldmain.c (main): Enable -z combreloc by default.
2627
2628 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
2629
2630 * Makefile.am: Honour DESTDIR.
2631 * Makefile.in: Regenerate.
2632
2633 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
2634
2635 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
2636 (lang_enter_overlay): Remove the last two parameters.
2637 (lang_leave_overlay): Take them here instead.
2638 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
2639 (section): Pass LMA and crossref flag to lang_leave_overlay rather
2640 than lang_enter_overlay.
2641 * ldlang.c (lang_memory_region_lookup): Return null for null names.
2642 (lang_output_section_statement_lookup): Initialize update_dot_tree.
2643 (lang_size_sections_1): Evaluate it.
2644 (lang_leave_output_section_statement): Rework LMA lookup.
2645 (overlay_lma, overlay_nocrossrefs): Remove.
2646 (lang_enter_overlay): Remove LMA and crossref arguments.
2647 (lang_enter_overlay_section): Don't set the LMA here.
2648 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
2649 assignment to the last section's update_dot_tree. Unconditionally
2650 use the load and run-time regions specified in the OVERLAY statement.
2651 Likewise the first section's LMA. Only set the other sections' LMAs
2652 when no load region is given.
2653
2654 2002-05-06 Nick Clifton <nickc@redhat.com>
2655
2656 * po/sv.po: New translation.
2657
2658 2002-05-04 Alan Modra <amodra@bigpond.net.au>
2659
2660 * emultempl/hppaelf.em (build_section_lists): New function.
2661 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
2662 and build_section_lists.
2663
2664 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
2665
2666 * ld.h: Fix formatting.
2667 * ldexp.c: Likewise.
2668 * ldfile.c: Likewise.
2669 * ldlang.c: Likewise.
2670 * ldmain.c: Likewise.
2671 * lexsup.c: Likewise.
2672 * pe-dll.c: Likewise.
2673
2674 2002-05-02 Alan Modra <amodra@bigpond.net.au>
2675
2676 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
2677 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
2678 (build_section_lists): Do output_section tests here.
2679
2680 2002-04-30 Tom Rix <trix@redhat.com>
2681
2682 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
2683
2684 2002-05-01 Alan Modra <amodra@bigpond.net.au>
2685
2686 Long branch stubs, multiple stub sections.
2687 * emultempl/ppc64elf.em: Include ldctor.h.
2688 (stub_file): New var.
2689 (group_size): New var.
2690 (ppc_create_output_section_statements): New function.
2691 (struct hook_stub_info): New.
2692 (hook_in_stub): New function.
2693 (ppc_add_stub_section): New function.
2694 (ppc_layout_sections_again): New function.
2695 (build_section_lists): New function.
2696 (gld${EMULATION_NAME}_finish): Rewrite.
2697 (real_func): New var.
2698 (ppc_for_each_input_file_wrapper): New function.
2699 (ppc_lang_for_each_input_file): New function.
2700 (lang_for_each_input_file): Define.
2701 (PARSE_AND_LIST_PROLOGUE): Define.
2702 (PARSE_AND_LIST_LONGOPTS): Define.
2703 (PARSE_AND_LIST_OPTIONS): Define.
2704 (PARSE_AND_LIST_ARGS_CASES): Define.
2705 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2706
2707 2002-04-30 Tom Rix <trix@redhat.com>
2708
2709 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
2710 -blibpath, -bnolibpath support.
2711
2712 2002-04-30 Mark Mitchell <mark@codesourcery.com>
2713
2714 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
2715 (eelf32ppcwindiss.c): New target.
2716 * Makefile.in: Regenerated.
2717 * configure.tgt: Add support for powerpc-*-windiss.
2718 * emulparams/elf32ppcwindiss.sh: New file.
2719
2720 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
2721
2722 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
2723 * ldexp.c (exp_print_token): Add "infix_p" argument.
2724 (exp_print_tree): Update accordingly.
2725
2726 2002-04-28 Alan Modra <amodra@bigpond.net.au>
2727
2728 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
2729 * Makefile.in: Regenerate.
2730 * mpw-elfmips.c: Delete.
2731 * mpw-eppcmac.c: Delete.
2732 * mpw-esh.c: Delete.
2733 * mpw-idtmips.c: Delete.
2734
2735 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
2736
2737 * emulparams/shelf32.sh (MACHINE): Now sh5.
2738
2739 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2740
2741 * ldgram.y: Fix syntax warning.
2742
2743 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
2744
2745 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
2746 to prevent "-n" from being taken as an abbreviation for
2747 "--no-pipeline-knowledge".
2748
2749 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2750
2751 * ldlang.c (lang_size_sections_1): Don't complain about
2752 SEC_NEVER_LOAD sections having no memory region specified.
2753
2754 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
2755
2756 2002-04-07 matthew green <mrg@redhat.com>
2757
2758 * configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
2759
2760 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2761
2762 * dep-in.sed: Cope with absolute paths.
2763 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
2764 Run "make dep-am".
2765 * Makefile.in: Regenerate.
2766
2767 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2768
2769 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
2770
2771 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2772
2773 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
2774 is smaller than maximum, round dot up to common page boundary.
2775
2776 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2777
2778 * configure.host: Set up for generic hosts first, then tweak as
2779 necessary in more specific targets.
2780 (HOSTING_LIBS): Include libgcc_eh.a if found.
2781
2782 2002-03-23 Andreas Jaeger <aj@suse.de>
2783
2784 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
2785
2786 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2787
2788 * Makefile.am: Run "make dep-am".
2789 * Makefile.in: Regenerate.
2790
2791 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
2792
2793 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
2794
2795 2002-03-20 Alan Modra <amodra@bigpond.net.au>
2796
2797 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
2798 add the symbol to the linker hash table immediately.
2799 (lang_place_undefineds): Split symbol creation out..
2800 (insert_undefined): ..to here.
2801
2802 2002-03-18 David O'Brien <obrien@FreeBSD.org>
2803
2804 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
2805 the contents of the buffer returned from basename function will are
2806 getting overwritten while still being used.
2807
2808 2002-03-18 Jan Hubicka <jh@suse.cz>
2809 Andreas Jaeger <aj@suse.de>
2810 Andreas Schwab <schwab@suse.de>
2811
2812 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
2813 * elf_x86_64.sh (ARCH): Set to i386:x86-64
2814 set libraries to default to lib64 paths.
2815
2816 2002-03-18 Tom Rix <trix@redhat.com>
2817
2818 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
2819 * configure.tgt : Same.
2820 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
2821 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
2822 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
2823 emulation parameters for better -b32, -b64 support.
2824 * emulparms/aixrs6.sh : Same.
2825 * emulparms/ppcmacos.sh : Same.
2826 * emultempl/aix.em (choose_target) : Use new emulation parameters
2827 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
2828 * Makefile.in : Regenerate.
2829
2830 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2831
2832 * po/fr.po: Updated version.
2833
2834 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2835
2836 * ldmain.c (main): Move .text readonly flag fudges from here..
2837 * ldlang.c (lang_process): ..to here.
2838
2839 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2840
2841 * ldlang.c (lang_check): Remove the word size check added in last
2842 change. Treat emitrelocations case as for relocatable links.
2843
2844 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2845
2846 * po/fr.po: Updated version.
2847
2848 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2849
2850 * ldlang.c (lang_check): Do relocatable link checks first, so that
2851 warn_mismatch can't override. Check compatible and word size too.
2852
2853 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
2854
2855 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
2856
2857 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2858
2859 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
2860 DATA_SEGMENT_ALIGN.
2861
2862 2002-03-04 H.J. Lu <hjl@gnu.org>
2863
2864 * scripttempl/elf.sc: Put .preinit_array, .init_array and
2865 .fini_array in the data segment.
2866
2867 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2868
2869 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
2870
2871 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2872
2873 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
2874 .init_array, and .fini_array.
2875
2876 2002-02-20 Andreas Schwab <schwab@suse.de>
2877
2878 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
2879 .IA64_unwind* in a relocatable link.
2880
2881 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
2882
2883 * NEWS: Mark 2.12 branch.
2884
2885 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2886
2887 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
2888 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
2889
2890 2002-02-18 Tom Rix <trix@redhat.com>
2891
2892 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
2893 (gld*_before_allocation): Same.
2894 (gld*_create_output_section_statements): Generate
2895 __rtinit if run time linking. Add librtl.a to the link.
2896 (gld*_read_file): Clean.
2897
2898 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2899
2900 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
2901
2902 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2903
2904 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
2905 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
2906 and eelf64alpha_fbsd.
2907 * Makefile.in: Regenerate.
2908 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
2909 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
2910 use a FreeBSD-specific emulation rather than the psABI one.
2911 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
2912 for all FreeBSD ELF systems.
2913 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
2914 emulation.
2915 * emulparams/elf32ppc_fbsd.sh: Likewise.
2916 * emulparams/elf64_ia64_fbsd.sh: Likewise.
2917 * emulparams/elf64_sparc_fbsd.sh: Likewise.
2918 * emulparams/elf64alpha_fbsd.sh: Likewise.
2919 * emulparams/elf_i386_fbsd.sh: Likewise.
2920 * emulparams/elf_x86_64_fbsd.sh: Likewise.
2921
2922 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
2923
2924 * po/tr.po: Updated version.
2925
2926 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2927
2928 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
2929 (FILL): Likewise.
2930
2931 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2932
2933 * emultempl/mmo.em (mmo_after_open): Don't call
2934 _bfd_mmix_check_all_relocs when producing ELF output.
2935
2936 2002-02-15 Richard Henderson <rth@redhat.com>
2937
2938 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
2939 definition. Emit a unop+nop pair.
2940
2941 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
2942
2943 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
2944 for presence of .MMIX.reg_contents.linker_allocated before early
2945 exit.
2946
2947 * NEWS: Mention support for MMIX.
2948
2949 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2950
2951 Support arbitrary length fill patterns.
2952 * ld.texinfo (Output Section Fill): Describe fill expressions.
2953 (FILL): Refer to the above.
2954 * ldexp.h (etree_value_type): Add "str" field.
2955 (union etree_union): Add "str" to "value" struct.
2956 (exp_bigintop): Declare.
2957 (exp_get_fill): Declare.
2958 * ldexp.c: Include "safe-ctype.h".
2959 (exp_intop): Set value.str to NULL.
2960 (exp_bigintop): New function.
2961 (new_rel): Pass in "str", and set new.str from it.
2962 (new_rel_from_section): Set new.str to NULL.
2963 (fold_name): Adjust calls to new_rel.
2964 (exp_fold_tree): Likewise.
2965 (exp_get_fill): New function.
2966 * ldgram.y (struct big_int bigint, fill_type *fill): New.
2967 (INT): Returns a "bigint". Adjust all code handling INTs.
2968 (fill_opt): Returns a "fill".
2969 (fill_exp): Split out of fill_opt, use for FILL.
2970 * ldlang.h (struct _fill_type): New.
2971 (fill_type): Move typedef to ldexp.h.
2972 (lang_output_section_statement_type): "fill" is now a pointer.
2973 (lang_fill_statement_type): Likewise.
2974 (lang_padding_statement_type): Likewise.
2975 (lang_add_fill): Now takes a "fill_type *" param.
2976 (lang_leave_output_section_statement): Likewise.
2977 (lang_do_assignments): Likewise.
2978 (lang_size_sections): Likewise.
2979 (lang_leave_overlay_section): Likewise.
2980 (lang_leave_overlay): Likewise.
2981 * ldlang.c: Include ldgram.h after ldexp.h.
2982 (lang_output_section_statement_lookup): Adjust for fill_type change.
2983 (print_fill_statement): Likewise.
2984 (print_padding_statement): Likewise.
2985 (insert_pad): Now takes a "fill_type *" arg.
2986 (size_input_section): Likewise.
2987 (lang_size_sections_1): Likewise.
2988 (lang_size_sections): Likewise.
2989 (lang_do_assignments): Likewise.
2990 (lang_add_fill): Likewise.
2991 (lang_leave_output_section_statement): Likewise.
2992 (lang_leave_overlay_section): Likewise.
2993 (lang_leave_overlay): Likewise.
2994 Adjust all callers of the above function.
2995 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
2996 starting with "0X" as well as "0x". Return bigint.str for hex
2997 numbers starting with "0x" or "0X", zero bigint.str otherwise.
2998 Always use base 16 for numbers starting with "$".
2999 * ldmain.c: Include ldgram.h after ldexp.h.
3000 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
3001 of bfd_fill_link_order.
3002 * pe-dll.c: Adjust lang_do_assignments calls.
3003 * emultempl/elf32.em: Likewise.
3004 * emultempl/hppaelf.em: Likewise.
3005 * emultempl/ppc64elf.em: Likewise.
3006 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
3007 lang_add_assignment call.
3008 * emultempl/pe.em: Likewise.
3009
3010 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
3011
3012 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
3013 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
3014 the pattern in question is not a regexp.
3015 * ldlang.c: Likewise.
3016 * ldlang.h: Likewise.
3017 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
3018
3019 2002-02-12 Jakub Jelinek <jakub@redhat.com>
3020
3021 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
3022 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
3023 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
3024 * ldexp.c (exp_data_seg): New variable.
3025 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
3026 (fold_binary): Handle DATA_SEGMENT_ALIGN.
3027 (exp_fold_tree): Handle DATA_SEGMENT_END.
3028 Pass allocation_done when recursing instead of hardcoding
3029 lang_allocating_phase_enum.
3030 * ldexp.h (exp_data_seg): New.
3031 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
3032 (lang_size_sections): New.
3033 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
3034 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
3035 if COMMONPAGESIZE is defined.
3036 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
3037 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
3038 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
3039 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
3040 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
3041 libraries only.
3042
3043 2002-02-11 Alan Modra <amodra@bigpond.net.au>
3044
3045 * Makefile.in: Regenerate.
3046
3047 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3048
3049 * lexsup.c: Remove strtoul declaration.
3050
3051 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3052
3053 * ldmain.c: Add prototype for main ().
3054 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
3055 * emultempl/lnk960.em (lnk960_choose_target): Function should
3056 take two arguments.
3057
3058 2002-02-10 Alan Modra <amodra@bigpond.net.au>
3059
3060 * ldlang.c (entry_section): New initialised variable.
3061 (lang_finish): Use it.
3062 * ldlang.h (entry_section): Declare.
3063 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
3064 entry_section to ".opd".
3065
3066 2002-02-09 Chris Demetriou <cgd@broadcom.com>
3067
3068 * ld.texinfo (Options): Add back in -nostdlib documentation,
3069 which had been inadvertently removed.
3070
3071 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
3072
3073 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
3074 register section vma to a sane value after emitting error. Make
3075 fatal conditions cause program exit when emitting message.
3076
3077 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
3078
3079 * configure.tgt: Add or32-*-rtems target.
3080
3081 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
3082
3083 Contribute sh64-elf.
3084 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3085 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
3086 in OTHER_RELOCATABLE_SECTIONS.
3087 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3088 * emulparams/shelf32.sh (STACK_ADDR): Define.
3089 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
3090 (OTHER_SECTIONS): this. Removed stack settings.
3091 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
3092 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
3093 2001-03-12 DJ Delorie <dj@redhat.com>
3094 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
3095 relaxing if any shmedia or mixed sections are found.
3096 2001-03-07 DJ Delorie <dj@redhat.com>
3097 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
3098 einfo. Gracefully decline to output to non-elf formats.
3099 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
3100 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
3101 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
3102 * emulparams/shelf32.sh: Ditto.
3103 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
3104 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
3105 comment.
3106 2001-01-10 Ben Elliston <bje@redhat.com>
3107 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
3108 non-portable shell constructs. From Hans-Peter Nilsson.
3109 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
3110 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
3111 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
3112 dependencies to the shell script include chain.
3113 * Makefile.in: Regenerate.
3114 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
3115 * emultempl/sh64elf.em: Update and tweak comments.
3116 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
3117 make a .cranges section SEC_IN_MEMORY.
3118 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3119 * emultempl/sh64elf.em
3120 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
3121 .cranges section found to be necessary; continue and set stored
3122 section contents flags for sections with non-mixed contents.
3123 Use a struct sh64_section_data container and sh64_elf_section_data
3124 to store contents-type flags.
3125 Remove unused update of "isec".
3126 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
3127 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
3128 access contents-type flags. Assert that the associated container
3129 is initialized. Use that container, not elf_gp_size, to hold size
3130 of linker-generated cranges contents.
3131 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3132 * emultempl/sh64elf.em
3133 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
3134 there's already a .cranges section. When section flag difference
3135 is found, don't NULL-check cranges a second time. Tweak comments.
3136 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
3137 merging, not max size, as size of ld-generated .cranges contents.
3138 Don't set ELF section flags in output section. When checking for
3139 needed .cranges descriptors, don't use a variable; compare
3140 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
3141 comments.
3142 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3143 * emultempl/sh64elf.em: New file.
3144 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
3145 * Makefile.in: Regenerate.
3146 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
3147 (OTHER_RELOCATING_SECTIONS): Ditto.
3148 (EXTRA_EM_FILE): New, set to sh64elf if not set.
3149 * emulparams/shlelf32.sh: Stub out all settings except
3150 OUTPUT_FORMAT. Source shelf32.sh.
3151 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
3152 OTHER_RELOCATING_SECTIONS.
3153 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
3154 * emulparams/shlelf64.sh: Stub out all settings except
3155 OUTPUT_FORMAT. Source shelf64.sh.
3156 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
3157 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
3158 .cranges section.
3159 (DATA_START_SYMBOLS): Define, provide ___data.
3160 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
3161 for consecutive .data section.
3162 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
3163 section after .data section.
3164 * emulparams/shlelf64.sh: Ditto.
3165 * emulparams/shelf32.sh: Ditto.
3166 (ALIGNMENT): Define to 8.
3167 * emulparams/shelf32.sh: Ditto.
3168 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3169 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
3170 built-in linker scripts.
3171 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3172 * emulparams/shlelf64.sh: New.
3173 * emulparams/shelf64.sh: New.
3174 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
3175 targ_extra_emuls.
3176 * Makefile.am: Add support for shlelf64 and shelf64.
3177 * Makefile.in: Regenerate.
3178 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3179 * configure.tgt (sh64-*-elf*): Add shelf as default.
3180 Add shlelf to targ_extra_emuls.
3181 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3182 * emulparams/shelf32.sh: New file.
3183 * emulparams/shlelf32.sh: New file.
3184 * Makefile.am: Add support for shlelf32 and shelf32.
3185 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
3186 * Makefile.in: Regenerate.
3187
3188 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
3189
3190 * ldlang.c (lang_reset_memory_regions): Rename from
3191 reset_memory_regions. Change all callers. Make public.
3192 * ldlang.h (lang_reset_memory_regions): Prototype.
3193 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
3194 lang_reset_memory_regions before lang_size_sections.
3195 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3196 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
3197
3198 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3199
3200 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
3201 arithmetic when checking for too many global registers.
3202
3203 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3204
3205 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
3206 (ehppanbsd.c): New rule.
3207 * Makefile.in: Regenerate.
3208 * configure.tgt (hppa*-*-netbsd*): New target.
3209 * emulparams/hppalinux.sh: Add comment to check other files
3210 that source this file it is modified, and list which
3211 files that do.
3212 * emulparams/hppanbsd.sh: New file.
3213
3214 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
3215
3216 * scripttempl/xstormy16.sc: Don't allocate extra space for the
3217 stack.
3218
3219 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3220
3221 Support on-demand global register allocation from
3222 R_MMIX_BASE_PLUS_OFFSET relocs.
3223 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
3224 mmix_set_reg_section_vma. Call
3225 _bfd_mmix_finalize_linker_allocated_gregs.
3226 (mmix_before_allocation): New function.
3227 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
3228 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
3229 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
3230 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
3231 before .MMIX.reg_contents.
3232 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
3233 (mmo_after_open): New function.
3234 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
3235 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
3236 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
3237
3238 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3239
3240 * emulparams/or32.sh: New file.
3241 * emulparams/or32elf.sh: New file.
3242 * scripttempl/or32.sc: New file.
3243 * configure.tgt : Add support for or32.
3244 * configure: Regenerate
3245 * Makefile.am: Add support for or32.
3246 * Makefile.in: Regenerate.
3247 * NEWS: Mention support for or32.
3248 * po/ld.pot: Regenerate.
3249
3250 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3251 Mitch Lichtenberg <mpl@broadcom.com>
3252
3253 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
3254 * emultempl/mipself.em: New file to handle MIPS ELF embedded
3255 reloc creation (ld --embedded-relocs).
3256
3257 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3258
3259 * configure: Regenerated.
3260
3261 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3262
3263 * Makefile.am (install): Depend on install-info.
3264 * Makefile.in: Regenerate.
3265
3266 2002-01-26 Christian Rose <menthos@menthos.com>
3267
3268 * ldmain.c (main): Use full sentences to ease translation.
3269
3270 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
3271
3272 * po/fr.po: Updated version.
3273
3274 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3275
3276 * po/es.po: Updated version.
3277
3278 2002-01-25 Andreas Jaeger <aj@suse.de>
3279
3280 * ldlex.l (yy_input): Correct error check.
3281
3282 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3283
3284 * ldmisc.c (demangle): Put back dots when string not demangled.
3285
3286 2002-01-22 Richard Henderson <rth@redhat.com>
3287
3288 * emulparams/elf64alpha.sh (NOP): Use unop.
3289
3290 2002-01-21 Andreas Jaeger <aj@suse.de>
3291
3292 * ldlex.l: Use fread instead of read.
3293
3294 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3295
3296 * configure.tgt (ia64-*-netbsd*): New target.
3297
3298 2002-01-21 H.J. Lu <hjl@gnu.org>
3299
3300 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
3301 0.
3302 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
3303
3304 2002-01-18 Andreas Jaeger <aj@suse.de>
3305
3306 * ldver.c (ldversion): Update year.
3307
3308 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3309
3310 * po/ld.pot: Regenerate.
3311
3312 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3313
3314 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
3315 * Makefile.in: Regenerate.
3316 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
3317 * emultempl/ppc64elf.em: New file.
3318
3319 2002-01-15 DJ Delorie <dj@redhat.com>
3320
3321 * scripttempl/pe.sc: Add support for constructor priorities.
3322
3323 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
3324
3325 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
3326 * emulparams/avr23xx.sh: Likewise.
3327 * emulparams/avr4433.sh: Likewise.
3328 * emulparams/avr44x4.sh: Likewise.
3329 * emulparams/avr85xx.sh: Likewise.
3330 * emulparams/avrmega103.sh: Likewise.
3331 * emulparams/avrmega161.sh: Likewise.
3332 * emulparams/avrmega603.sh: Likewise.
3333 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
3334
3335 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3336
3337 * ldlang.c (walk_wild_section): Exclude object file if enclosing
3338 archive is excluded.
3339
3340 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3341
3342 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
3343 (eshelf_nbsd.c): New rule.
3344 (eshlelf_nbsd.c): New rule.
3345 * Makefile.in: Regenerate.
3346 * configure.tgt (sh*le-*-netbsdelf*): New target.
3347 (sh*-*-netbsdelf*): New target.
3348 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
3349 * emulparams/shelf_nbsd.sh: New emulation.
3350 * emulparams/shlelf_nbsd.sh: New emulation.
3351
3352 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3353
3354 * po/es.po: New file: Spanish translation.
3355 * configure.in (ALL_LINGUAS): Add es.
3356 * configure: Regenerate.
3357
3358 2002-01-06 John Marshall <jmarshall@acm.org>
3359
3360 * ld.texinfo: Note that --emit-relocs is currently only
3361 implemented for ELF.
3362
3363 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3364
3365 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
3366 of bfd_section_list_remove and bfd_section_list_insert macros.
3367 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3368 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3369
3370 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3371
3372 * configure.tgt (x86_64-*-netbsd*): New target.
3373
3374 2001-12-21 Tom Rix <trix@redhat.com>
3375
3376 (gld*_create_output_section_statements): New function.
3377 For -binitfini support.
3378 * emultempl/aix.em (gld*_before_parse): Fix comment.
3379 * emultempl/aix.em (gld*_parse_args): Fix comment.
3380
3381 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
3382
3383 * configure.tgt (mips*-dec-netbsd*): Delete alias for
3384 mips*el-*-netbsd*.
3385 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
3386
3387 * configure.tgt (arm-*-netbsdelf*): Add target.
3388 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
3389 * emulparams/armelf_nbsd.sh: Added.
3390 * Makefile.am: Add rules for earmelf_nbsd.
3391 * Makefile.in: Regenerate.
3392
3393 2001-12-19 Andreas Jaeger <aj@suse.de>,
3394 Susanne Oberhauser <froh@suse.de>
3395
3396 * configure.host: Add rules for x86_64-*linux-gnu. Change
3397 s390x-linux entry to use gcc to report configuration, replace gcc
3398 with $CC in s390-linux
3399
3400 2001-12-19 Andreas Jaeger <aj@suse.de>
3401
3402 * ld.texinfo (VERSION): Fix markup.
3403
3404 2001-12-18 matthew green <mrg@eterna.com.au>
3405
3406 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
3407 (m68kelfnbsd.c): New rule.
3408 * Makefile.in: Regenerate.
3409 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
3410 (m68*-*-netbsd*4k*): .. this.
3411 (m68*-*-netbsdelf*): New target.
3412 (m68*-*-netbsd*): Also include ELF support.
3413 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
3414 * emulparams/m68kelfnbsd.sh: New emulation.
3415
3416 2001-12-18 Jakub Jelinek <jakub@redhat.com>
3417
3418 * ldgram.y (vers_node): Support anonymous version tags.
3419 * ldlang.c (lang_register_vers_node): Ensure anonymous version
3420 tag is not defined together with non-anonymous versions.
3421 * ld.texinfo: Document it.
3422
3423 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
3424
3425 * po/tr.po: New file: Turkish translation.
3426 * configure.in (ALL_LINGUAS): Add tr.
3427 * configure: Regenerate.
3428
3429 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
3430
3431 * Makefile.am: Add rules for eelf64alpha_nbsd.
3432 * Makefile.in: Regenerate.
3433 * configure.tgt (alpha*-*-netbsd*): Set
3434 targ_emul to elf64alpha_nbsd.
3435 * emulparams/elf64alpha_nbsd.sh: Added.
3436
3437 2001-12-17 Alan Modra <amodra@bigpond.net.au>
3438
3439 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
3440 section_tail when fiddling with section list.
3441 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
3442 broken into separate strings to make translation easier.
3443 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
3444 fiddling with section list.
3445 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
3446
3447 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
3448
3449 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
3450
3451 2001-12-15 Alan Modra <amodra@bigpond.net.au>
3452
3453 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
3454
3455 2001-12-13 Jakub Jelinek <jakub@redhat.com>
3456
3457 * emultempl/elf32.em (finish): Supply output_bfd
3458 to bfd_elf*_discard_info.
3459 (OPTION_EH_FRAME_HDR): Define.
3460 (longopts): Add --eh-frame-hdr.
3461 (parse_args): Handle it.
3462 (list_options): Add --eh-frame-hdr to help.
3463 * emultempl/hppaelf.em (finish): Supply output_bfd
3464 to bfd_elf*_discard_info.
3465 * scripttempl/elf.sc (.eh_frame_hdr): Add.
3466
3467 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3468
3469 * lexsup.c (parse_args): Don't pass shortopts to second call to
3470 getopt functions. Restore optind rather than decrementing before
3471 second call. Remove errind as it now duplicates last_optind.
3472
3473 2001-12-11 Christopher Faylor <cgf@redhat.com>
3474
3475 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
3476
3477 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
3478 Richard Henderson <rth@redhat.com>
3479
3480 * Makefile.am: Add support for xstormy16.
3481 * configure.tgt: Add support for xstormy16.
3482 * Makefile.in: Regenerate.
3483 * emulparams/elf32xstormy16.sh: New file.
3484 * scripttempl/xstormy16.sc: New file.
3485
3486 2001-10-01 Christopher Faylor <cgf@cygnus.com>
3487
3488 * Makefile.in (LIB_PATH): Make configurable.
3489 (GENSCRIPTS): Set LIB_PATH in environment.
3490 * configure.in: Substitute LIB_PATH.
3491 * configure: Regenerate.
3492 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
3493 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
3494
3495 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
3496
3497 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
3498 describing the -N option so that it is easier to translate into
3499 foreign languages.
3500
3501 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
3502
3503 * emultempl/pe.em (..._list_options): Replace multiple fprintf
3504 statements describing a single option with a single, newline
3505 escaped fprintf. This allows better translation into other
3506 languages.
3507
3508 * ldmain.c (add_archive_element): Combine multiple strings
3509 into a single string to permit better translation into other
3510 languages.
3511
3512 2001-12-05 Tom Rix <trix@redhat.com>
3513
3514 * Makefile.am: Remove eaixppc64.
3515 * Makefile.in: Regenerate.
3516
3517 2001-12-04 Tom Rix <trix@redhat.com>
3518
3519 * emultempl/aix.em (choose_target): Change default target to
3520 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
3521 warning.
3522 (gld*_read_file): Fix typo.
3523 (change_symbol_mode): Add prototype.
3524 (is_syscall): Same.
3525
3526 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
3527 * emulparams/aixrs6.sh : Same.
3528 * emulparams/ppcmacos.sh : Same.
3529 * emulparams/aixppc64.sh : Delete file.
3530 * emultempl/aix.em : Formatting changes.
3531
3532 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
3533
3534 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
3535 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
3536 __Sbss.
3537 (OTHER_END_SYMBOLS): Fix formatting.
3538 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
3539 (OTHER_END_SYMBOLS): Fix formatting.
3540
3541 2001-12-04 Alan Modra <amodra@bigpond.net.au>
3542
3543 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
3544
3545 2001-12-02 Tom Rix <trix@redhat.com>
3546
3547 * configure.tgt : Remove eaixppc64 emulations.
3548 * Makefile.in : Remove eaixppc64.c
3549 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
3550 (ldemul_default_target): Same.
3551 * emultempl/gld960.em (gld960_choose_target): Same.
3552 * emultempl/gld960c.em (gld960_choose_target): Same.
3553 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
3554 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
3555 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
3556 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
3557 * emultempl/aix.em (choose_target): New function. Handle emulation of
3558 -b32 and -b64.
3559
3560 2001-11-27 H.J. Lu <hjl@gnu.org>
3561
3562 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
3563 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
3564 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
3565 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
3566 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
3567 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
3568 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
3569 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
3570
3571 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
3572 is not empty.
3573 (SDATA): Likewise.
3574 (REL_SDATA): Likewise.
3575 (REL_SBSS): Likewise.
3576 (REL_SDATA2): Likewise.
3577 (REL_SBSS2): Likewise.
3578 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
3579 (SDATA2): Likewise.
3580
3581 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3582
3583 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
3584 destructor in rom.
3585 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
3586
3587 2001-11-22 H.J. Lu <hjl@gnu.org>
3588
3589 * Makefile.in: Regenerated with automake based on automake
3590 1.4-8 in RedHat 7.1.
3591
3592 2001-11-22 Alan Modra <amodra@bigpond.net.au>
3593
3594 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
3595 (config.status): Delete rule.
3596 Add extra dependencies to cover sourced emulparams files.
3597 * Makefile.in: Regenerate.
3598
3599 * scripttempl/elf.sc: Order <section>, <section>.* and
3600 corresponding linkonce sections as seen in input files.
3601 Formatting fixes. Zero vma of all sections if not relocating.
3602 (STACK): Define and insert if STACK_ADDR defined.
3603 (OTHER_RELOCATING_SECTIONS): Delete.
3604 (OTHER_END_SYMBOLS): Define.
3605 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
3606 (OTHER_READWRITE_SECTIONS): Likewise.
3607 (OTHER_GOT_SECTIONS): Likewise.
3608 (OTHER_SDATA_SECTIONS): Likewise.
3609 (OTHER_BSS_SECTIONS): Likewise.
3610 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
3611 (OTHER_READWRITE_SECTIONS): Likewise.
3612 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
3613 (OTHER_READWRITE_SECTIONS): Likewise.
3614
3615 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
3616 (STACK_ADDR): Define.
3617 * emulparams/armelf_oabi.sh: As for armelf.sh.
3618 * emulparams/elf32mcore.sh: As for armelf.sh.
3619 * emulparams/h8300elf.sh: As for armelf.sh.
3620 * emulparams/mn10200.sh: As for armelf.sh.
3621 * emulparams/shelf.sh: As for armelf.sh.
3622
3623 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
3624 (OTHER_END_SYMBOLS): Define.
3625 * emulparams/m32relf.sh: As for elf32fr30.sh.
3626 * emulparams/h8300helf.sh: As for elf32fr30.sh.
3627 * emulparams/h8300self.sh: As for elf32fr30.sh.
3628
3629 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
3630 defines with RELOCATING test.
3631 (OTHER_SDATA_SECTIONS): Likewise.
3632 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3633 (OTHER_END_SYMBOLS): ..this.
3634 * emulparams/crislinux.sh: As for criself.sh.
3635
3636 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
3637 if not relocating.
3638 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
3639 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
3640 normal and linkonce sections as seen in input files.
3641 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
3642 (TEXT_DYNAMIC): Likewise.
3643 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
3644 (OTHER_SDATA_SECTIONS): Likewise.
3645 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3646 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
3647 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
3648 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
3649 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
3650 (OTHER_PLT_RELOC_SECTIONS): Likewise.
3651 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
3652 sections as seen in input files.
3653 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
3654 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
3655 if not relocating.
3656 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
3657 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
3658 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
3659 (OTHER_SECTIONS): Instead, use this..
3660 (OTHER_END_SYMBOLS): ..and this.
3661
3662 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
3663 * emulparams/elf32bsmip.sh: Likewise.
3664 * emulparams/elf32btsmip.sh: Likewise.
3665 * emulparams/elf32ebmip.sh: Likewise.
3666 * emulparams/elf32lmip.sh: Likewise.
3667 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
3668 * emulparams/elf32lsmip.sh: Likewise.
3669 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
3670 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
3671 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
3672 * emulparams/elf64btsmip.sh: Likewise.
3673 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
3674 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
3675 * emulparams/elf32ppclinux.sh: Likewise.
3676 * emulparams/elf32ppcsim.sh: Likewise.
3677 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
3678 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
3679 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
3680 * emulparams/h8300self.sh: Likewise.
3681 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
3682 * emulparams/sh.sh: Comment.
3683 * emulparams/shl.sh: Source sh.sh, remove duplicates.
3684 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
3685 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
3686
3687 2001-11-21 David Heine <dlheine@tensilica.com>
3688 Alan Modra <amodra@bigpond.net.au>
3689
3690 * ldlang.c (map_input_to_output_sections): Replace "break"
3691 accidentally removed with 2001-08-03 change.
3692 (lang_gc_sections_1): Likewise.
3693
3694 2001-11-21 Alan Modra <amodra@bigpond.net.au>
3695
3696 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
3697
3698 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3699
3700 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
3701 of false when calling lang_size_sections.
3702 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
3703
3704 2001-11-15 Alan Modra <amodra@bigpond.net.au>
3705
3706 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
3707 function when LDEMUL_FINISH isn't set to the same name. Don't
3708 call ${LDEMUL_FINISH}.
3709 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
3710 * emultempl/armelf.em (arm_elf_finish): Call
3711 gld${EMULATION_NAME}_finish.
3712 * emultempl/hppaelf.em (hppaelf_finish): Rename to
3713 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
3714 hppaelf_layout_sections_again if necessary.
3715 (need_laying_out): New var.
3716 (hppaelf_layaout_sections_again): Rename to
3717 hppaelf_layout_sections_again. Clear need_laying_out.
3718 (PARSE_AND_LIST_OPTIONS): Format text.
3719
3720 2001-11-14 H.J. Lu <hjl@gnu.org>
3721
3722 * emultempl/armelf.em (arm_elf_finish): Renamed from
3723 gld${EMULATION_NAME}_finish.
3724 (LDEMUL_FINISH): Set to arm_elf_finish.
3725
3726 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
3727
3728 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
3729 (struct ld_emulation_xfer_struct): Use it.
3730
3731 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
3732
3733 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
3734 additional symbols referenced by newer crt0.o files from HP.
3735
3736 2001-11-12 Anthony Green <green@redhat.com>
3737
3738 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
3739
3740 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
3741
3742 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
3743 * Makefile.in: Regenerate.
3744
3745 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3746
3747 * ld.texinfo: Use @command for commands, @option for options.
3748 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
3749 the page man title.
3750 * Makefile.in: Rebuild.
3751
3752 2001-11-04 Chris Demetriou <cgd@broadcom.com>
3753
3754 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
3755 Add support for targets.
3756
3757 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
3758
3759 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
3760 * configure: Regernate.
3761 * po/fr.po: New file.
3762 * po/sv.po: New file.
3763
3764 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
3765
3766 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
3767 as little endian default and to support big endian.
3768
3769 2001-11-01 Chris Demetriou <cgd@broadcom.com>
3770
3771 * ld.texinfo (Options): Document new option, -nostdlib.
3772 * lexsup.c (OPTION_NOSTDLIB): New definition.
3773 (ld_options): Add entry for "nostdlib".
3774 (parse_args): Handle OPTIONS_NOSTDLIB.
3775 * ldfile.c (ldfile_add_library_path): Don't add directories
3776 to the search path if they weren't specified on the command line
3777 and -nostdlib was specified.
3778 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
3779
3780 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
3781
3782 * lexsup.c (parse_args): Prevent infinite parsing loop when
3783 "-rpath.a" is specified on the command line.
3784 Replace calls to fprintf with calls to einfo.
3785
3786 2001-10-31 John Marshall <jmarshall@acm.org>
3787
3788 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
3789 appear only once across all the linker scripts involved in a link
3790 invocation no longer applies. Make the documentation reflect
3791 that.
3792
3793 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
3794
3795 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
3796 targets.
3797 (sh-*-linux*): Added targ_extra_libpath.
3798
3799 2001-10-31 David Heine <dlheine@tensilica.com>
3800
3801 * ldlang.c (lang_size_sections): Keep a valid output_offset field
3802 for padding statements.
3803
3804 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
3805
3806 * configure.tgt (mmix-*-*): New target.
3807 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
3808 Add dependencies to match.
3809 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
3810 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
3811 scripttempl/mmo.sc: New files.
3812 * gen-doc.texi: @set MMIX.
3813 * ld.texinfo: Ditto.
3814 [MMIX] Add MMIX node.
3815 * Makefile.in: Regenerate.
3816
3817 2001-10-29 Kazu Hirata <kazu@hxi.com>
3818
3819 * ldlang.c: Fix a comment typo.
3820
3821 2001-10-23 Alan Modra <amodra@bigpond.net.au>
3822
3823 * configure.host: Move alpha*-*-linux-gnu* entry to generic
3824 entries, and match *-*-linux*.
3825
3826 2001-10-20 Alan Modra <amodra@bigpond.net.au>
3827
3828 * ldgram.y (mri_script_command): Surround processing of INCLUDE
3829 with ldlex_script, ldlex_popstate.
3830 (ifile_p1): Likewise.
3831 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
3832 correct slot.
3833 (lex_push_file): Save current lineno to lineno_stack. Set lineno
3834 to 1. Don't BEGIN(SCRIPT).
3835 (lex_redirect): Similarly.
3836 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
3837
3838 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
3839
3840 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
3841 __EH_FRAME_END__ and accept eh frames into data section.
3842 Add ctor and dtor sections.
3843
3844 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3845
3846 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
3847 (auto-export): Fix indentation.
3848
3849 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3850
3851 * pe-dll.c (autofilter_objectlist): Add startup objects
3852 for profiling.
3853 (auto-export): Constify char * p.
3854 Extract file basename and use strcmp rather than ststr
3855 for object lookup.
3856
3857 2001-10-18 Chris Demetriou <cgd@broadcom.com>
3858
3859 * ldmain.c (get_emulation): Improve comment about the handling
3860 of -mipsN options.
3861
3862 2001-10-17 Alan Modra <amodra@bigpond.net.au>
3863
3864 * po/POTFILES.in: Regenerate.
3865
3866 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
3867
3868 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
3869 -z nocopyreloc and -z nocombreloc usage strings.
3870
3871 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
3872
3873 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
3874 in usage.
3875
3876 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
3877
3878 * scripttempl/armaout.sc: Place .bss section after end of aligned
3879 data section to match behaviour of aout code in constructrion of
3880 header.
3881
3882 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3883
3884 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
3885 startup files for mingw32 dlls to list.
3886
3887 2001-10-10 Chris Demetriou <cgd@broadcom.com>
3888
3889 * emultempl/elf32.em: Fix shell 'if' usage for portability.
3890
3891 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
3892
3893 * configure.tgt (targ): Add arm9e-*-elf.
3894
3895 2001-10-05 H.J. Lu <hjl@gnu.org>
3896
3897 * genscripts.sh: Fix a typo in the last change.
3898
3899 2001-10-05 Jakub Jelinek <jakub@redhat.com>
3900
3901 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
3902 -z nocombreloc in usage.
3903
3904 2001-10-03 Jim Blandy <jimb@redhat.com>
3905
3906 * genscripts.sh: Include a comment at the top of each generated
3907 script, explaining its purpose.
3908
3909 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
3910
3911 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
3912 * NEWS: Mention -z nocopyreloc.
3913 * ld.texinfo (Options): Describe nocopyreloc.
3914
3915 2001-10-03 Alan Modra <amodra@bigpond.net.au>
3916
3917 * configure: Regenerate.
3918
3919 2001-10-02 Alan Modra <amodra@bigpond.net.au>
3920
3921 * ldver.h (ld_program_version): Remove declaration.
3922 * lexsup.c (parse_args): Move printing of copyright message..
3923 * ldver.c (ldversion): .. to here.
3924 Use BFD_VERSION_STRING in place of BFD_VERSION.
3925 (ld_program_version): Remove.
3926 * Makefile.am (Makefile): Depend on bfd/configure.in.
3927 Run "make dep-am".
3928 * Makefile.in: Regenerate.
3929
3930 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3931
3932 * Makefile.am: Update dependencies with "make dep-am".
3933 * Makefile.in: Regenerate.
3934
3935 2001-09-29 John Reiser <jreiser@BitWagon.com>
3936
3937 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
3938 * lexsup.c: Add --no-define-common commandline option.
3939 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
3940 * ldlex.l: Likewise.
3941 * ld.h: Add command_line.inhibit_common_definition.
3942 * ldmain.c (main): Initialize.
3943 * ld.texinfo: Document.
3944
3945 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3946
3947 * ldlang.c (section_already_linked): Remove assignment to kept_section.
3948
3949 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3950
3951 * ldmisc.c (USE_STDARG): Remove.
3952 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
3953 (einfo): Likewise.
3954 (minfo): Likewise.
3955 (lfinfo): Likewise.
3956
3957 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
3958 declarations. Update copyright.
3959
3960 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3961
3962 * pe-dll.c: Remove obsoleted declaration of
3963 pe_get_data_import_dll_name.
3964 (pe_create_import_fixup): Fix thinko.
3965
3966 * ld.texinfo(enable-auto-import): Clarify the explanation.
3967
3968 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
3969
3970 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
3971 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
3972 DLL_SUPPORT controlled code.
3973
3974 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
3975
3976 * emultempl/pe.em(pe_data_import_dll): Make static.
3977 (pe_get_data_import_dll_name): New accessor function.
3978 * pe-dll.c(pe_create_import_fixup): call
3979 pe_get_data_import_dll_name() from pe.em, instead of
3980 directly accessing pe_data_import_dll variable from pe.em.
3981
3982 2001-09-18 Bruno Haible <haible@clisp.cons.org>
3983
3984 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
3985 (def_file_add_directive): Use ISSPACE instead of isspace.
3986 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
3987 isdigit/isxdigit/isalpha/isalnum.
3988 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
3989 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
3990 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
3991 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
3992 isalnum.
3993 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
3994 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
3995 isupper/tolower.
3996 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
3997 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
3998 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
3999 (ctor_prio): Use ISDIGIT instead of isdigit.
4000 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
4001 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
4002 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
4003 isupper/tolower.
4004 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
4005 (stricpy): Use TOLOWER instead of isupper/tolower.
4006 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
4007 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
4008 (lex_warn_invalid): Use ISPRINT instead of isprint.
4009 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
4010 (main): For gettext, also set the LC_CTYPE locate facet.
4011 (add_keepsyms_file): Use ISSPACE instead of isspace.
4012 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
4013 (is_num, parse_args): Use ISDIGIT instead of isdigit.
4014 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
4015 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
4016 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
4017 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
4018 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
4019 (quoteput): Use ISSPACE instead of isspace.
4020 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
4021 instead of isalnum.
4022
4023 2001-09-18 Alan Modra <amodra@bigpond.net.au>
4024
4025 * deffilep.y (def_stash_module): Constify "name" param.
4026
4027 * pe-dll.c: Replace CONST with const throughout.
4028 (quick_symbol): Constify "n1", "n2", "n3" params.
4029 (make_singleton_name_thunk): Constify "import" param. Make
4030 "buffer_len" a size_t.
4031 (make_import_fixup_entry): Constify "name", "fixup_name",
4032 "dll_symname" params.
4033 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
4034 (pe_get32): Likewise.
4035 (pe_implied_import_dll): Likewise.
4036
4037 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
4038 (sort_by_section_name): Likewise.
4039
4040 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
4041 (make_import_fixup): Cast printf arg, rel->address to long rather
4042 than int.
4043 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
4044
4045 2001-09-15 Alan Modra <amodra@bigpond.net.au>
4046
4047 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
4048 defines BufferSize. Increase buffer size by one.
4049
4050 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
4051
4052 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
4053
4054 2001-09-14 Kevin Lo <kevlo@openbsd.org>
4055
4056 * configure.tgt: Add arm-openbsd target.
4057
4058 2001-09-12 H.J. Lu <hjl@gnu.org>
4059
4060 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
4061 eelf64lppc.o to ...
4062 (ALL_64_EMULATIONS): Here.
4063 * Makefile.in: Regenerated.
4064
4065 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4066
4067 * emultempl/pe.em(make_import_fixup): change signature to
4068 take asection as well as arelec; we need this for proper
4069 error reporting. Only call pe_create_import_fixup() if
4070 there is no attempt to add a constant addend to the reloc;
4071 otherwise, report error condition.
4072 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
4073 since final argument is a pointer to make_import_fixup().
4074 Change call to cb() to match make_import_fixup() signature.
4075 (make_import_fixup_mark): make buffer_len unsigned.
4076 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
4077
4078 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
4079
4080 * ld.texinfo: add verbose documentation for auto-import
4081 direct-addressing workaround, to compliment the terse
4082 error message.
4083
4084 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
4085
4086 * scripttempl/v850.sc: Add gcc_except_table sections.
4087
4088 2001-09-11 Jeffrey A Law (law@cygnus.com)
4089
4090 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
4091 * emulparams/h8300self.sh: Similarly.
4092
4093 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
4094
4095 * ld.texinfo (Options, --stack): Correct default value for stack
4096 reserve.
4097
4098 2001-09-05 Tom Rix <trix@redhat.com>
4099
4100 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
4101
4102 2001-09-03 Andreas Jaeger <aj@suse.de>
4103
4104 * emultempl/beos.em: Declare prototypes for comparions functions,
4105 adjust definitions.
4106
4107 2001-09-02 Andreas Jaeger <aj@suse.de>
4108
4109 * emultempl/aix.em: Add missing prototype.
4110 * emultempl/lnk960.em: Likewise.
4111 * emultempl/vanilla.em: Likewise.
4112 * emultempl/armcoff.em: Likewise.
4113 * emultempl/armelf_oabi.em: Likewise.
4114 * emultempl/beos.em: Likewise.
4115 * emultempl/gld960c.em: Likewise.
4116 * emultempl/gld960.em: Likewise.
4117
4118 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
4119 for prototype declaration.
4120
4121 2001-08-31 Eric Christopher <echristo@redhat.com>
4122 Jason Eckhardt <jle@redhat.com>
4123
4124 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
4125
4126 2001-08-31 Andreas Jaeger <aj@suse.de>
4127
4128 * emultempl/pe.em: Add missing prototypes.
4129 (gld_${EMULATION_NAME}_after_open): Remove extra args to
4130 pe_find_data_imports.
4131 (pr_sym): Add unused attribute.
4132
4133 2001-08-29 Joel Sherrill <joel@OARcorp.com>
4134
4135 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
4136 default from coff to elf.
4137
4138 2001-08-29 Jeff Law <law@redhat.com>
4139
4140 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
4141 ARCH specification.
4142 * emulparams/h8300self.sh: Similarly.
4143
4144 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
4145
4146 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
4147 eh8300self.o .
4148 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
4149 * configure.tgt (h8300-*-elf*): New case.
4150 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
4151 * emulparams/h8300self.sh: New file.
4152 * Makefile.in: Regenerated.
4153
4154 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
4155
4156 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
4157 with macro name.
4158
4159 2001-08-27 Linus Nordberg <linus@swox.com>
4160 Alan Modra <amodra@bigpond.net.au>
4161
4162 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
4163 (eelf64ppc.c, eelf64lppc.c): Add make targets.
4164 Run "make dep-am"
4165 * Makefile.in: Regenerate.
4166 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
4167 entries to correct alphabetical position.
4168 * emulparams/elf64ppc.sh: New.
4169 * emulparams/elf64lppc.sh: New.
4170
4171 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
4172
4173 * ldmain.c (main): Declare BSIZE as static.
4174
4175 2001-08-23 Jakub Jelinek <jakub@redhat.com>
4176
4177 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
4178 into .rel.dyn resp. .rela.dyn if combreloc.
4179 (get_script): If .x linker script is equal to .xn, only put it
4180 once into the binary.
4181 Add .xc and .xsc scripts.
4182 (parse_args): Handle -z combreloc and -z nocombreloc.
4183 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
4184 For .xc and .xsc scripts put all .rel* or .rela* input sections
4185 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
4186 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
4187 is elf.
4188 Strip trailing whitespace from script.
4189 Generate .xc and .xsc scripts if requested.
4190 * ldmain.c (main): Initialize link_info.combreloc and
4191 link_info.spare_dynamic_tags.
4192 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
4193 (ld_options): Add --spare-dynamic-tags option.
4194 (parse_args): Likewise.
4195 * ld.texinfo: Document -z combreloc and -z nocombreloc.
4196 * ldint.texinfo: Document .xc and .xsc linker scripts.
4197 * NEWS: Add notes about -z combreloc and SHF_MERGE.
4198
4199 2001-08-22 H.J. Lu <hjl@gnu.org>
4200
4201 * emulparams/elf32fr30.sh: Add a newline.
4202
4203 2001-08-21 Andreas Jaeger <aj@suse.de>
4204
4205 * deffilep.y: Add missing prototypes.
4206 * pe-dll.c: Likewise.
4207
4208 2001-08-20 Alan Modra <amodra@bigpond.net.au>
4209
4210 * ldlang.c (insert_pad): Fix typos in last patch.
4211
4212 * ldlang.c: When traversing lang_statement_union_type lists,
4213 consistently use "header.next" rather than "next".
4214 * mpw-eppcmac.c: Likewise.
4215 * emultempl/beos.em: Likewise.
4216 * emultempl/hppaelf.em: Likewise.
4217 * emultempl/pe.em: Likewise.
4218 * ldlang.h (union lang_statement_union): Remove "next" field.
4219
4220 * ldlang.c (insert_pad): Use offsetof macro.
4221 (lang_size_sections): Always neuter padding statements.
4222 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
4223
4224 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
4225 passed to lang_size_sections.
4226 (pe_exe_fill_sections): Likewise.
4227 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
4228 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
4229
4230 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4231
4232 * emultempl/aix.em: Formatting fixes.
4233
4234 2001-08-18 Alan Modra <amodra@bigpond.net.au>
4235
4236 * ldlang.c (insert_pad): Make use of an existing pad statement if
4237 available. Move code calculating alignment, adjusting section
4238 alignment power, and adjusting dot to ..
4239 (size_input_section): .. here. Remove unused relax param.
4240 (lang_size_sections): Change boolean `relax' param to boolean *.
4241 Adjust call to size_input_section. Make use of insert_pad to
4242 place pad after the assignment statement. If relaxing, zap
4243 padding statements.
4244 (reset_memory_regions): Reset output_bfd section sizes too.
4245 (relax_again): Move to..
4246 (lang_process): ..here. Adjust call to lang_size_sections, and
4247 remove duplicated code.
4248 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
4249
4250 2001-08-17 Alan Modra <amodra@bigpond.net.au>
4251
4252 * ld.texinfo: Document that fill values now use the four least
4253 significant bytes.
4254 * emulparams/elf32fr30.sh (NOP): Update.
4255 * emulparams/elf32mcore.sh: Likewise.
4256 * emulparams/elf64_s390.sh: Likewise.
4257 * emulparams/elf_i386.sh: Likewise.
4258 * emulparams/elf_i386_be.sh: Likewise.
4259 * emulparams/elf_i386_chaos.sh: Likewise.
4260 * emulparams/elf_i386_ldso.sh: Likewise.
4261 * emulparams/elf_s390.sh: Likewise.
4262 * emulparams/elf_x86_64.sh: Likewise.
4263 * emulparams/i386moss.sh: Likewise.
4264 * emulparams/i386nw.sh: Likewise.
4265 * emulparams/m68kelf.sh: Likewise.
4266 * scripttempl/elf.sc: Update NOP comment.
4267 * scripttempl/elfi370.sc: Likewise.
4268 * scripttempl/elfm68hc11.sc: Likewise.
4269 * scripttempl/elfm68hc12.sc: Likewise.
4270 * scripttempl/nw.sc: Likewise.
4271
4272 2001-08-15 Tom Rix <trix@redhat.com>
4273
4274 * ldgram.y (saved_script_handle): Initialize to NULL.
4275 * ldmain.c (main): Change check on saved_script_handle.
4276
4277 2001-08-14 Alan Modra <amodra@bigpond.net.au>
4278
4279 * emultempl/elf32.em: Formatting fixes.
4280 (output_prev_sec_find): Test for bfd_ind_section too; do so by
4281 looking at sec->owner.
4282 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
4283 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
4284 unused code, and reorganize orphan section placement code.
4285
4286 * ldlang.c (wild_doit): Rename to lang_add_section.
4287 * ldlang.h: Here too.
4288 * mpw-elfmips.c: And here.
4289 * emultempl/beos.em: And here.
4290 * emultempl/elf32.em: And here.
4291 * emultempl/hppaelf.em: And here.
4292 * emultempl/pe.em: And here.
4293
4294 2001-08-13 Richard Henderson <rth@redhat.com>
4295
4296 * emultempl/needrelax.em: New file.
4297 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
4298 * Makefile.am (eelf64_ia64.c): Depend on it.
4299 * Makefile.in: Rebuild.
4300
4301 2001-08-13 Alan Modra <amodra@bigpond.net.au>
4302
4303 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
4304 output_section is set non-NULL.
4305
4306 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
4307 `true' for SEC_EXCLUDE sections so that the generic code doesn't
4308 needlessly create an output_section_statement. Treat a correctly
4309 named output_section_statement with NULL bfd_section as compatible.
4310
4311 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
4312
4313 * emultempl/generic.em: Support EXTRA_EM_FILE.
4314 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
4315 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4316 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4317 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4318 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4319 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4320 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4321 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4322 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4323 LDEMUL_FIND_POTENTIAL_LIBRARIES.
4324
4325 2001-08-12 Richard Henderson <rth@redhat.com>
4326
4327 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
4328 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
4329 scripttempl/v850.sc: Keep .jcr data.
4330
4331 2001-08-12 H.J. Lu <hjl@gnu.org>
4332 Andrew Haley <aph@cambridge.redhat.com>
4333 Nick Clifton <nickc@redhat.com>
4334
4335 * ldgram.y (had_script): Change name to saved_script_handle.
4336 Change type to file handle.
4337 * ld.h (had_script): Rename and retype.
4338 * ldfile.c (ldfile_open_command_file): Save the file handle
4339 used in saved_script_handle.
4340 * lexsup.c (parse_args): Do not allow -c option to alter
4341 saved_script_handle.
4342 * ldmain.c (main): Print out the linker script used if
4343 --verbose is given. Check saved_script_handle to obtain the
4344 external linker script used, or if NULL, dump the builtin
4345 script.
4346 * ld.texinfo: Document that --verbose now dumps the linker
4347 script used, regardless of whether it was an internal or an
4348 external script.
4349
4350 2001-08-10 Andreas Jaeger <aj@suse.de>
4351
4352 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
4353 to build warnings.
4354 * configure: Regenerate.
4355
4356 2001-08-09 Alan Modra <amodra@bigpond.net.au>
4357
4358 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
4359
4360 * scripttempl/elf.sc: Move non-text .dynamic section before
4361 .plt/.got/.sdata* group.
4362 (OTHER_GOT_SECTIONS): Move to immediately after .got.
4363 (OTHER_SDATA_SECTIONS): Add.
4364 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
4365 OTHER_GOT_SECTIONS.
4366 * emulparams/crislinux.sh: Likewise.
4367 * emulparams/elf32b4300.sh: Likewise.
4368 * emulparams/elf32bmip.sh: Likewise.
4369 * emulparams/elf32bmipn32.sh: Likewise.
4370 * emulparams/elf32bsmip.sh: Likewise.
4371 * emulparams/elf32btsmip.sh: Likewise.
4372 * emulparams/elf32ebmip.sh: Likewise.
4373 * emulparams/elf32elmip.sh: Likewise.
4374 * emulparams/elf32l4300.sh: Likewise.
4375 * emulparams/elf32lmip.sh: Likewise.
4376 * emulparams/elf32lsmip.sh: Likewise.
4377 * emulparams/elf32ltsmip.sh: Likewise.
4378 * emulparams/elf64bmip.sh: Likewise.
4379 * emulparams/elf64btsmip.sh: Likewise.
4380 * emulparams/elf64ltsmip.sh: Likewise.
4381
4382 2001-08-08 Alan Modra <amodra@bigpond.net.au>
4383
4384 * genscripts.sh: Source the emulparams script before each output
4385 script is generated so that variables like `RELOCATING' may affect
4386 variables defined in the emulparams script.
4387
4388 2001-08-04 Alan Modra <amodra@bigpond.net.au>
4389
4390 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
4391 order.
4392
4393 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
4394 ie. iterate over wild_statement.section_list.
4395 (gld${EMULATION_NAME}_place_orphan): Likewise.
4396
4397 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4398
4399 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
4400 .fini[0-4] sections used by _exit
4401 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
4402 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
4403 * scripttempl/elfm68hc11.sc: Likewise.
4404
4405 2001-08-03 H.J. Lu <hjl@gnu.org>
4406
4407 * emultempl/beos.em (init): Add the missing initialization.
4408
4409 2001-08-03 Alan Modra <amodra@bigpond.net.au>
4410
4411 * ld.texinfo (Input Section Basics): Clarify ordering of output
4412 sections.
4413 * ldlang.c (callback_t): Add wildcard_list param.
4414 (walk_wild_section): Remove "section" param. Rewrite for
4415 lang_wild_statement_type change. Remove unique_section_p test.
4416 (walk_wild_file): Remove "section" param.
4417 (walk_wild): Remove "section" and "file" params.
4418 (lang_gc_wild): Likewise.
4419 (wild): Likewise. Modify for lang_wild_statement_type change.
4420 (wild_sort): Likewise. Add "sec" param.
4421 (gc_section_callback): Likewise.
4422 (output_section_callback): Likewise. Do unique_section_p test.
4423 (map_input_to_output_sections): Modify call to wild.
4424 (lang_gc_sections_1): Likewise.
4425 (print_wild_statement): Modify for lang_wild_statement_type
4426 change.
4427 (lang_add_wild): Replace filename, filenames_sorted param with
4428 filespec. Replace section_name, sections_sorted,
4429 exclude_filename_list with section_list.
4430 * ldlang.h (lang_add_wild): Here too.
4431 (lang_wild_statement_type): Replace section_name, sections_sorted,
4432 and exclude_filename_list with section_list.
4433 * ldgram.y (current_file): Delete.
4434 (%union): Add wildcard_list.
4435 (file_NAME_list): Set type to wildcard_list. Build a linked list
4436 rather than calling lang_add_wild for each entry.
4437 (input_section_spec_no_keep): Call lang_add_wild here instead.
4438 * ld.h (struct wildcard_list): Declare.
4439 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
4440
4441 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4442
4443 * ldmain.c (main): initialize link_info.pei386_auto_import
4444 * pe-dll.c: new tables for auto-export filtering
4445 (auto_export): change API, pass abfd for contextual filtering.
4446 Loop thru tables of excluded symbols instead of comparing
4447 "by hand".
4448
4449 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
4450
4451 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
4452 static variable current_sec (static struct sec *). Add
4453 forward declaration for add_bfd_to_link.
4454 (process_def_file): Don't export undefined symbols. Do not
4455 export symbols starting with "_imp__". Call auto_export()
4456 with new API.
4457 (pe_walk_relocs_of_symbol): New function.
4458 (generate_reloc): add optional extra debugging
4459 (pe_dll_generate_def_file): eliminate extraneous initial blank
4460 line in output
4461 (make_one): enlarge symtab to make room for __nm__ symbols
4462 (DATA auto-import support).
4463 (make_singleton_name_thunk): New function.
4464 (make_import_fixup_mark): New function.
4465 (make_import_fixup_entry): New function.
4466 (pe_create_import_fixup): New function.
4467 (add_bfd_to_link): Specify that 'name' argument is a CONST
4468 char *.
4469 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
4470 declare new functions pe_walk_relocs_of_symbol and
4471 pe_create_import_fixup.
4472 * emultempl/pe.em: add new options --enable-auto-import,
4473 --disable-auto-import, and --enable-extra-pe-debug.
4474 (make_import_fixup): New function.
4475 (pe_find_data_imports): New function.
4476 (pr_sym): New function.
4477 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
4478 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
4479 CODE.
4480
4481 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
4482
4483 * ld.texinfo: add additional documentation for
4484 --export-all-symbols. Document --out-implib,
4485 --enable-auto-image-base, --disable-auto-image-base,
4486 --dll-search-prefix, --enable-auto-import, and
4487 --disable-auto-import.
4488 * ldint.texinfo: Add detailed documentation on auto-import
4489 implementation.
4490
4491 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
4492
4493 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
4494 example.
4495
4496 2001-07-24 Alan Modra <amodra@bigpond.net.au>
4497
4498 * Makefile.am: Update dependencies with "make dep-am".
4499 * Makefile.in: Regenerate
4500
4501 2001-07-23 Alan Modra <amodra@bigpond.net.au>
4502
4503 * ldcref.c (check_section_sym_xref): New function.
4504 (check_nocrossrefs): Call it.
4505 (check_nocrossref): Interate over h->refs here instead of..
4506 (check_refs): ..here. Pass in the symbol name, section, and bfd
4507 rather than hash_entry pointers.
4508 (struct check_refs_info): Keep symbol name rather than hash entry.
4509 Remove "same".
4510 (check_reloc_refs): Tweak for above changes in check_refs_info.
4511 Only report references to section syms when symname is NULL to
4512 prevent duplicate messages for the same reloc.
4513
4514 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4515
4516 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
4517 available. Do not print NULL trees.
4518 (exp_print_token): Print unknown tokens with values > 126 as
4519 decimal values not ASCII characters.
4520
4521 * ldlang.c (lang_leave_overlay): If a region is specified assign
4522 it to all sections inside the overlay unless they have been
4523 assigned to the own, non-default, memory region.
4524
4525 * README: Add header for consistency with other README files.
4526
4527 2001-07-14 H.J. Lu <hjl@gnu.org>
4528
4529 * emultempl/elf32.em (output_prev_sec_find): Never return
4530 bfd_abs_section_ptr, bfd_com_section_ptr nor
4531 bfd_und_section_ptr.
4532
4533 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
4534
4535 * Makefile.am (em32relf.c): Change dependency from generic.em to
4536 elf32.em.
4537 * Makefile.in: Regenerate.
4538
4539 2001-07-14 matthew green <mrg@eterna.com.au>
4540
4541 * configure.tgt (i386-*-netbsdelf*): New target.
4542 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
4543
4544 2001-07-13 Jakub Jelinek <jakub@redhat.com>
4545
4546 * emultempl/elf32.em (output_prev_sec_find): New.
4547 (place_orphan): Use it.
4548
4549 2001-07-11 H.J. Lu <hjl@gnu.org>
4550
4551 * ldmain.c (main): Fix typos in the last change.
4552
4553 2001-07-11 Jakub Jelinek <jakub@redhat.com>
4554
4555 * ldmain.c (main): Disallow -F and -f without -shared.
4556
4557 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
4558
4559 * emultempl/pe.em (after_open): Check for the output_bfd not
4560 having any coff_data structure allocated to it.
4561
4562 2001-07-09 David O'Brien <obrien@FreeBSD.org>
4563
4564 * emultempl/elf32.em: Do not assuming that contents of the buffer
4565 returned from basename function will remain unchanged accross other
4566 function calls.
4567
4568 2001-07-03 H.J. Lu <hjl@gnu.org>
4569
4570 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4571 2001-07-03. It creates dynamic entries even for static binaries.
4572
4573 2001-07-03 Jakub Jelinek <jakub@redhat.com>
4574
4575 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
4576 (DYNAMIC): Use it to reserve few dynamic entries for
4577 post-linking tools.
4578
4579 2001-06-27 Alan Modra <amodra@bigpond.net.au>
4580
4581 * emulparams/hppa64linux.sh: New file.
4582 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
4583 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
4584 (ehppa64linux.c): Add rule to make it.
4585 Run "make dep-am".
4586 * Makefile.in: Regenerate.
4587
4588 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
4589
4590 * ld.texinfo (Options, -r): Mention restrictions when using
4591 different object formats.
4592
4593 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
4594
4595 * ldlang.c (lang_check): Emit fatal error if relocatable link
4596 between different object flavours with relocations in input.
4597
4598 2001-06-19 H.J. Lu <hjl@gnu.org>
4599
4600 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
4601 (--version-script): Mention the language support.
4602
4603 2001-06-19 H.J. Lu <hjl@gnu.org>
4604
4605 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
4606
4607 2001-06-18 H.J. Lu <hjl@gnu.org>
4608
4609 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
4610 (diststuff): Add $(MANS).
4611 * Makefile.in: Regenerated.
4612
4613 * ld.1: Removed.
4614
4615 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
4616
4617 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4618 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
4619 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
4620 * ld.h (args_type): Remove member export_dynamic. All users
4621 changed to use struct bfd_link_info member.
4622
4623 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
4624 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
4625 * Makefile.in: Regenerate.
4626
4627 2001-06-18 H.J. Lu <hjl@gnu.org>
4628
4629 * ldlang.c (init_os): Add the newline to the einfo call.
4630 (lang_check): Likewise.
4631 (lang_do_version_exports_section): Likewise.
4632
4633 2001-06-15 H.J. Lu <hjl@gnu.org>
4634
4635 * lexsup.c (parse_args); Save optind to report unrecognized
4636 option.
4637
4638 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
4639
4640 * ldlang.c (lang_check): Emit fatal error if relocatable link
4641 between different object flavours.
4642
4643 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
4644 Set new link_info member export_dynamic.
4645 * ldmain.c (main): Initialize new link_info member export_dynamic.
4646
4647 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
4648
4649 * ldlang.c (walk_wild): Only call walk_wild_file if
4650 lookup_name returns something.
4651 (lookup_name): If load_symbols fails, return NULL.
4652 (load_symbols): Change to a boolean function.
4653 (open_input_bfds): If load_symbols fails then do not make the
4654 executable.
4655
4656 2001-06-08 Alan Modra <amodra@bigpond.net.au>
4657
4658 * ldlang.c (record_bfd_errors): Remove.
4659
4660 * emultempl/aix.em: Fix copyright dates.
4661
4662 2001-06-07 Andreas Jaeger <aj@suse.de>
4663
4664 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
4665 (TEXT_START_ADDR): Likewise.
4666
4667 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
4668
4669 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
4670
4671 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
4672
4673 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
4674
4675 2001-05-31 H.J. Lu <hjl@gnu.org>
4676
4677 * ldlang.c (open_input_bfds): Don't change the bfd error
4678 handler whilst loading symbols.
4679
4680 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
4681
4682 * configure.tgt: Remove i370-mvs architecture, it is not currently
4683 supported.
4684
4685 2001-05-25 H.J. Lu <hjl@gnu.org>
4686
4687 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4688 like emulparams/aixppc.sh.
4689
4690 2001-05-25 H.J. Lu <hjl@gnu.org>
4691
4692 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
4693 setting of output_filename after bfd_scan_arch.
4694 * emultempl/pe.em: Likewise.
4695
4696 2001-05-25 H.J. Lu <hjl@gnu.org>
4697
4698 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
4699 like emulparams/aixppc.sh.
4700
4701 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
4702 instead of ${srcdir}/emultempl/stringify.sed.
4703
4704 2001-05-25 Timothy Wall <twall@oculustech.com>
4705
4706 * emulparams/elf64_aix.sh: Change settings to match IBM linker
4707 output.
4708
4709 2001-05-25 Alan Modra <amodra@one.net.au>
4710
4711 * configure.host: Replace linuxoldld with linux*oldld.
4712 * configure.tgt: Likewise.
4713
4714 2001-05-24 H.J. Lu <hjl@gnu.org>
4715
4716 * emultempl/stringify.sed: Removed again.
4717
4718 2001-05-24 H.J. Lu <hjl@gnu.org>
4719
4720 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4721 (gld${EMULATION_NAME}_before_parse): Initialize
4722 ldfile_output_architecture, ldfile_output_machine and
4723 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
4724 * emultempl/beos.em: Likewise.
4725 * emultempl/elf32.em: Likewise.
4726 * emultempl/linux.em: Likewise.
4727 * emultempl/mipsecoff.em: Likewise.
4728 * emultempl/pe.em: Likewise.
4729 * emultempl/sunos.em: Likewise.
4730
4731 2001-05-24 Tom Rix <trix@redhat.com>
4732
4733 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
4734 udate import file format.
4735 (change_symbol_mode) New, same
4736 (is_syscall) New, same
4737 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
4738 * emulparams/aixppc64.sh : same
4739 * emulparams/aixrs6.sh : same
4740 * emulparams/ppcmacos.sh : same
4741 * emultempl/aix.em : use strtoull to parse options
4742 * Makefile.am : add eaixppc64 emulation for xcoff64
4743 * Makefile.in : same
4744 * configure.tgt : same
4745
4746 * scripttempl/aix.sc : default text section offset to 0x10000000
4747 default data section offset to 0x20000000
4748 add .sv3264 and .sv64 pseudo sections
4749 loader and debug sections use the currect section offset.
4750
4751 * emultempl/aix.em : Add xcoff64 support
4752 Add -binitfini support
4753 (gld${EMULATION_NAME}_before_parse) -binitfini
4754 (gld${EMULATION_NAME}_parse_args) same
4755 (gld${EMULATION_NAME}_before_allocation) format change for special
4756 sections
4757
4758 * emulparams/aixppc64.sh : New file for xcoff64 support
4759
4760 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
4761
4762 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
4763 variable to avoid non-portable shell construct.
4764
4765 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4766
4767 * ldmain.c (get_emulation): Add -mips5 command line argument.
4768
4769 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
4770
4771 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
4772 (ELF_INTERPRETER_NAME): Define it.
4773 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
4774 it.
4775 * configure.tgt (targ_emul, targ_extra_emuls)
4776 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
4777 as primary, elf_i386 as extra.
4778 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
4779 (eelf_i386_ldso.c): New rule.
4780 * Makefile.in: Rebuilt.
4781
4782 2001-05-22 Nick Clifton <nickc@redhat.com>
4783
4784 * lexsup.c (ld_options): Allow -I to be an alias for
4785 --dynamic-linker. This is for Solaris compatability.
4786 * ld.texinfo: Document that -I can be used.
4787 * ld.1: Regenerate.
4788
4789 2001-05-16 Alan Modra <amodra@one.net.au>
4790
4791 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
4792 whether an input section is the first one assigned to an output
4793 section.
4794 Assorted formatting fixes.
4795
4796 2001-05-14 DJ Delorie <dj@delorie.com>
4797
4798 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
4799 * Makefile.in: Ditto.
4800
4801 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4802
4803 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
4804 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
4805 output sections.
4806 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
4807
4808 2001-05-11 Jakub Jelinek <jakub@redhat.com>
4809
4810 * ldlang.c (lang_process): Call bfd_merge_sections.
4811
4812 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4813
4814 * ldgram.y: Fix typo.
4815
4816 2001-05-03 H.J. Lu <hjl@gnu.org>
4817
4818 * emultempl/elf32.em: Include "libiberty.h".
4819 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
4820 basename of the bfd filename.
4821 (gld${EMULATION_NAME}_stat_needed): Likewise.
4822 (gld${EMULATION_NAME}_try_needed): Likewise.
4823 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
4824
4825 2001-05-02 H.J. Lu <hjl@gnu.org>
4826
4827 * emultempl/pe.em: Include <ctype.h>.
4828
4829 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
4830
4831 * emulparams/elf32openrisc.sh: New file.
4832
4833 * Makefile.am: Add OpenRISC target.
4834 * Makefile.in: Regenerated.
4835
4836 * configure.tgt: Add openrisc-*-* mapping.
4837
4838 2001-05-02 Nick Clifton <nickc@redhat.com>
4839
4840 * emultempl/aix.em: Replace buystring with xstrdup.
4841 * emultempl/beos.em: Replace buystring with xstrdup.
4842
4843 2001-05-02 H.J. Lu <hjl@gnu.org>
4844
4845 * ldfile.c: Include "libiberty.h".
4846 * ldlex.l: Likewise.
4847
4848 * ldmisc.c (buystring): Removed.
4849 * ldmisc.h: Likewise.
4850
4851 * ldfile.c: Replace buystring with xstrdup.
4852 * ldlang.c: Likewise.
4853 * ldlex.l: Likewise.
4854 * ldmain.c: Likewise.
4855 * ldmisc.c: Likewise.
4856 * lexsup.c: Likewise.
4857 * mpw-eppcmac.c: Likewise.
4858
4859 2001-04-30 Andreas Jaeger <aj@suse.de>
4860
4861 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
4862
4863 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4864
4865 * ldlang.c (load_symbols): Give emulation a chance
4866 to process unrecognized file before fatal error is
4867 reported, not after.
4868
4869 2001-04-27 Sean McNeil <sean@mcneil.com>
4870
4871 * configure.tgt: Add arm-vxworks target.
4872 * scripttempl/armcoff.sc: Support .text or .data as a section name
4873 prefix.
4874 Define _etext.
4875
4876 2001-04-13 J.T. Conklin <jtc@redback.com>
4877
4878 * ld.texinfo: Document --fatal-warnings.
4879 * ld.1: Regenerate.
4880
4881 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
4882 warnings have been turned into errors.
4883 * lexsup.c (OPTION_WARN_FATAL): Define.
4884 (ld_options): Entry for --fatal-warnings.
4885 (parse_args): Handle OPTION_WARN_FATAL.
4886 * ld.h (ld_config_type): Add fatal_warnings field.
4887
4888 2001-04-13 Jakub Jelinek <jakub@redhat.com>
4889
4890 * ldmain.c (main): Default to discard_sec_merge.
4891 * lexsup.c (OPTION_DISCARD_NONE): Define.
4892 (ld_options): Add --discard-none.
4893 (parse_args): Handle OPTION_DISCARD_NONE.
4894 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
4895 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
4896 all its input sections match.
4897
4898 2001-04-05 Steven J. Hill <sjhill@cotw.com>
4899
4900 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
4901 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
4902 (eelf32ltsmip.c): New target.
4903 (eelf64btsmip.c): Likewise.
4904 (eelf64ltsmip.c): Likewise.
4905 * Makefile.in: Regenerated.
4906
4907 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
4908 target.
4909 (mips*-*-linux-gnu*): Likewise.
4910
4911 * emulparams/elf32ltsmip.sh: New. Traditional little endian
4912 MIPS taget.
4913 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
4914 target.
4915 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
4916 endian target.
4917
4918 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
4919
4920 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
4921 correct value of __Stext here.
4922 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
4923 .startup section.
4924
4925 * emulparams/crislinux.sh: Remove FIXME.
4926
4927 2001-04-02 Alan Modra <alan@linuxcare.com.au>
4928
4929 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
4930 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
4931
4932 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
4933
4934 * configure.tgt (cris-*-*): Change default emulation to criself.
4935 (cris-*-*aout*): New rule.
4936
4937 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
4938
4939 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
4940 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
4941
4942 2001-03-26 Andreas Jaeger <aj@suse.de>
4943
4944 * ld.texinfo (Overview): Fix syntax in texi code.
4945
4946 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4947
4948 * ld.texinfo: Put @c man indications to generate the ld man page.
4949 When generating man, define all the variables. Define SEEALSO
4950 and SYNOPSIS. Re-organize some lines to avoid the cross references.
4951 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
4952 (ld.1): Generate from ld.texinfo.
4953 * Makefile.in: Regenerate.
4954
4955 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
4956
4957 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
4958 and '-fdata-sections'. Set the VMA of STABS sections to zero.
4959
4960 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4961
4962 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
4963 is an absolute path look only for this file and not along the path.
4964
4965 2001-03-17 Ulrich Drepper <drepper@redhat.com>
4966
4967 * emultempl/elf32.em (OPTION_GROUP): New macro.
4968 Add new option Bgroup to longopts.
4969 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
4970 (gld*_list_options): Add -Bgroup and -z defs.
4971 * ld.1: Document -Bgroup and -z defs.
4972 * ld.texinfo: Likewise.
4973
4974 2001-03-07 Michael Meissner <meissner@redhat.com>
4975
4976 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
4977 with sections created by -fdata-sections.
4978 (.dynbss,.bss): Ditto.
4979
4980 2001-03-05 Alan Modra <alan@linuxcare.com.au>
4981
4982 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
4983 after_allocation_default, not gld..._before_allocation.
4984
4985 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4986
4987 * configure.in (BFD_VERSION): New.
4988 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
4989 * configure: Regenerate.
4990 * Makefile.am: Run "make dep-am"
4991 * Makefile.in: Regenerate.
4992
4993 2001-02-26 Timothy Wall <twall@cygnus.com>
4994
4995 * emulparams/elf64_aix.sh: Add additional read-only sections;
4996 uncomment lines which are now required.
4997
4998 2001-02-26 H.J. Lu <hjl@gnu.org>
4999
5000 * ldlang.c (open_input_bfds): Set the bfd error handler so
5001 that problems can be caught whilst loading symbols.
5002 (record_bfd_errors): New function: Report BFD errors and mark
5003 the executable output as being invalid.
5004
5005 2001-02-22 Timothy Wall <twall@cygnus.com>
5006
5007 * configure.host: Add configuration for ia64-*-aix*.
5008 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
5009 Add dependencies for eelf64_aix.c.
5010 * Makefile.in: Regenerate.
5011 * configure.tgt: Add ia64-*-aix* mapping.
5012 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
5013
5014 2001-02-20 H.J. Lu <hjl@gnu.org>
5015
5016 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
5017 false if we found the file.
5018
5019 2001-02-18 David O'Brien <obrien@FreeBSD.org>
5020
5021 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
5022 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
5023
5024 2001-02-18 lars brinkhoff <lars@nocrew.org>
5025
5026 * Makefile.am: Add PDP-11 target.
5027 * configure.tgt: Likewise.
5028 * emulparams/pdp11.sh: New file.
5029
5030 2001-02-17 David O'Brien <obrien@FreeBSD.org>
5031
5032 * configure.host: Add a generic FreeBSD configuration entry such that
5033 all [modern] FreeBSD systems on all platforms will look the same.
5034
5035 2001-02-14 H.J. Lu <hjl@gnu.org>
5036
5037 * configure.tgt: Remove mention of earmelf_linux26.
5038
5039 2001-02-13 Richard Henderson <rth@redhat.com>
5040
5041 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
5042
5043 2001-02-13 H.J. Lu <hjl@gnu.org>
5044
5045 * ldexp.h (node_type): Add etree_provided.
5046 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
5047 type to etree_provided if defined by PROVIDE. Allow updating
5048 for etree_provided.
5049 (exp_print_tree): Handle etree_provided.
5050 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
5051 etree_provided.
5052
5053 2001-02-09 David Mosberger <davidm@hpl.hp.com>
5054
5055 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
5056 .IA_64.unwind.* pattern to unwind table section and
5057 .IA_64.unwind_info* pattern to unwind info section.
5058
5059 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
5060
5061 * Makefile.am: Add linux target for S/390.
5062 * Makefile.in: Likewise.
5063 * configure.host: Likewise.
5064 * configure.tgt: Likewise.
5065 * emulparams/elf64_s390.sh: New file.
5066 * emulparams/elf_s390.sh: New file.
5067
5068 2001-02-09 Jakub Jelinek <jakub@redhat.com>
5069
5070 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
5071 targ_extra_libpath.
5072 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
5073
5074 2001-02-06 Philip Blundell <philb@gnu.org>
5075
5076 * Makefile.am: Remove mention of earmelf_linux26.
5077 * Makefile.in: Regenerate.
5078
5079 2001-02-04 Philip Blundell <philb@gnu.org>
5080
5081 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
5082 * emulparams/armelf_linux26.sh: Delete.
5083 * configure.tgt: Remove mention of armelf_linux26 emulation.
5084
5085 2001-02-01 Nick Clifton <nickc@redhat.com>
5086
5087 * ld.1: Replace occurances of -oformat with --oformat.
5088
5089 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
5090
5091 * ldlang.c (lang_leave_overlay): Don't set lma_region when
5092 load_base is specified.
5093
5094 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
5095
5096 * emultempl/elf32.em: Correct spelling in comments and listed
5097 options.
5098
5099 2001-01-23 Alan Modra <alan@linuxcare.com.au>
5100
5101 * ldlang.c (lang_leave_overlay): Only set lma_region from the
5102 default for the first section of a group of overlay sections.
5103
5104 2001-01-22 Alan Modra <alan@linuxcare.com.au>
5105
5106 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
5107 * Makefile.in: Regenerate.
5108 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
5109 Check for null tool_dir.
5110
5111 2001-01-16 Jim Wilson <wilson@redhat.com>
5112
5113 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
5114 and IA_64.unwind.info.
5115
5116 2001-01-16 H.J. Lu <hjl@gnu.org>
5117
5118 * ldlang.c (lang_check): Merge the private data only if the
5119 input file has contents.
5120
5121 2001-01-14 Alan Modra <alan@linuxcare.com.au>
5122
5123 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
5124
5125 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
5126 enabling search for libmilli. On a relocatable link, make .text
5127 sections unique.
5128 (LDEMUL_AFTER_PARSE): Define.
5129 (hppaelf_finish): Correct spelling of relocatable in comments.
5130
5131 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5132 rummage through the script for sections on the unique list.
5133 Correct length of strncmp for ".note".
5134 (gld${EMULATION_NAME}_check_needed): Rearrange function.
5135
5136 * ldlang.c (unique_section_list): New var.
5137 (unique_section_p): New function.
5138 (walk_wild_section): Don't match sections on unique_section_list.
5139 (lang_add_unique): New function.
5140 Correct spelling of relocatable in comments.
5141
5142 * ldlang.h (struct unique_sections): Declare.
5143 (unique_section_list): Declare.
5144 (unique_section_p): Declare.
5145 (lang_add_unique): Declare.
5146
5147 * lexsup.c (ld_options): Allow --unique to take an optional arg.
5148 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
5149
5150 * ld.texinfo (--unique): Update.
5151
5152 2001-01-13 Nick Clifton <nickc@redhat.com>
5153
5154 * lexsup.c (parse_args): Remove spurious white space.
5155
5156 2001-01-12 Nick Clifton <nickc@redhat.com>
5157
5158 * lexsup.c (parse_args): Update copyright date.
5159
5160 2001-01-12 Philip Blundell <pb@futuretv.com>
5161
5162 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
5163
5164 2001-01-10 Kazu Hirata <kazu@hxi.com>
5165
5166 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
5167 * scripttempl/h8300h.sc: Fix formatting.
5168 * scripttempl/h8300s.sc: Likewise.
5169 * scripttempl/h8500.sc: Likewise.
5170 * scripttempl/h8500b.sc: Likewise.
5171 * scripttempl/h8500c.sc: Likewise.
5172 * scripttempl/h8500m.sc: Likewise.
5173 * scripttempl/h8500s.sc: Likewise.
5174
5175 2000-01-07 David O'Brien <obrien@BSDi.com>
5176
5177 * emultempl/elf32.em: Only perform Linux ld hints processing when
5178 targeting Linux.
5179
5180 2001-01-07 Philip Blundell <philb@gnu.org>
5181
5182 * ld.texinfo (Bug Reporting): Update email address for reports.
5183
5184 2000-12-31 Nick Clifton <nickc@redhat.com>
5185
5186 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
5187 options by checking for a return value of '?' not -1.
5188
5189 2000-12-28 Nick Clifton <nickc@redhat.com>
5190
5191 * lexsup.c (struct ld_option): Add new enum value:
5192 EXACTLY_TWO_DASHES.
5193 (ld_options[]): Change -omagic, -output and -oformat options
5194 to be EXACTLY_TWO_DASHES.
5195 (OUTPUT_COUNT): Use ARRAY_SIZE.
5196 (parse_args): Change parameter 'argc' to unsigned.
5197 Place EXACTLY_TWO_DASHES options into new really_longopts
5198 array.
5199 If getopt_long_only fails, try calling getopt_long using the
5200 really_longopts array.
5201 (help): Print a double dash for both EXACTLY_TWO_DASHES and
5202 TWO_DASHES options.
5203
5204 * ldlex.h: Fix prototype of parse_args.
5205
5206 * ld.texinfo: Document that long options starting with 'o'
5207 must be preceeded by two dashes. Change example of a single
5208 dashed long option from -oformat to -trace-symbol.
5209
5210 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
5211
5212 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
5213 (longopts[]): New --no-default-excludes option.
5214 (gld_${EMULATION_NAME}_list_options): Document.
5215 (gld_${EMULATION_NAME}_parse_args): Handle.
5216
5217 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5218
5219 * ldlang.c (new_stat): Revert the last beautification with "innocent"
5220 whitespace, it breaks the K&R C preprocessor.
5221
5222 2000-12-11 DJ Delorie <dj@redhat.com>
5223
5224 * ld.texinfo: Add notes about --whole-archive and gcc.
5225
5226 2000-11-18 Fred Fish <fnf@be.com>
5227
5228 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
5229 (ld_options): Entry for --allow-shlib-undefined.
5230 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
5231 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
5232 to false.
5233 * ld.texinfo: Document new command line switch.
5234
5235 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
5236
5237 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
5238 .fixup is actually read/write.
5239 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
5240 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5241 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
5242
5243 2000-12-11 Jan Hubicka <jh@suse.cz>
5244
5245 * NEWS: Add note about x86_64 architecture.
5246
5247 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
5248
5249 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
5250 Set DWARF2 sections to a VMA of zero.
5251
5252 2000-12-01 Joel Sherrill <joel@OARcorp.com>
5253
5254 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
5255 New targets.
5256 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
5257 (sparc*-*-rtems*): Switched from a.out to ELF.
5258
5259 2000-11-30 Jan Hubicka <jh@suse.cz>
5260
5261 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
5262 (eelf_x86_64.c): New.
5263 * Makefile.in: Regenerate.
5264 * configure.tgt: Add support for x86_64-*-linux-gnu*.
5265 * emulparams/elf_x86_64.sh: New.
5266
5267 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
5268
5269 * emulparams/crislinux.sh (ENTRY): Change back to _start.
5270 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
5271
5272 * scripttempl/crisaout.sc: Change all RELOCATING not related to
5273 merging non-a.out sections into CONSTRUCTING.
5274
5275 2000-11-28 Nick Clifton <nickc@redhat.com>
5276
5277 * ld.1 (COPYING): Mention that the GNU Free Documentation
5278 License is present in the sources, but not the output, and
5279 also available from the GNU website.
5280 (GNU Free Documentation License): Comment out this section.
5281
5282 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
5283
5284 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
5285 does not use them.
5286
5287 2000-11-25 David O'Brien <obrien@FreeBSD.org>
5288
5289 * ld.1: Remove old date so it does not give the impression the manpage
5290 is way out of date.
5291
5292 2000-11-24 Nick Clifton <nickc@redhat.com>
5293
5294 * configure.tgt (xscale-coff): Add target.
5295 (xscale-elf): Add target.
5296
5297 2000-11-24 Fred Fish <fnf@be.com>
5298
5299 * ldmain.c (main): Remove redundant init of config.make_executable
5300 to true.
5301
5302 2000-11-15 Richard Henderson <rth@redhat.com>
5303
5304 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
5305
5306 2000-11-14 Kazu Hirata <kazu@hxi.com>
5307
5308 * scripttempl/h8300.sc: Fix formatting.
5309 * scripttempl/h8300h.sc: Likewise.
5310 * scripttempl/h8300s.sc: Likewise.
5311
5312 2000-11-14 Denis Chertykov <denisc@overta.ru>
5313
5314 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
5315
5316 2000-11-09 Philip Blundell <pb@futuretv.com>
5317
5318 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
5319 around orphan sections whose names can be represented in C.
5320
5321 2000-11-07 Jim Wilson <wilson@redhat.com>
5322
5323 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
5324 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
5325
5326 2000-11-06 Nick Clifton <nickc@redhat.com>
5327
5328 * ld.texinfo: Add GNU Free Documentation License.
5329 * ldint.texinfo: Add GNU Free Documentation License.
5330 * ld.1: Add GNU Free Documentation License.
5331
5332 2000-11-05 Alan Modra <alan@linuxcare.com.au>
5333
5334 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
5335 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
5336
5337 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
5338 Move 2000-11-02 Makefile.in changes to this file.
5339 * Makefile.in: Regenerate.
5340
5341 2000-11-03 Nick Clifton <nickc@redhat.com>
5342
5343 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
5344 constructors and destructors.
5345 * scripttempl/h8300h.sc: Ditto.
5346 * scripttempl/h8300s.sc: Ditto.
5347 * scripttempl/h8500.sc: Ditto.
5348 * scripttempl/h8500b.sc: Ditto.
5349 * scripttempl/h8500c.sc: Ditto.
5350 * scripttempl/h8500m.sc: Ditto.
5351 * scripttempl/h8500s.sc: Ditto.
5352 * scripttempl/v850.sc: Ditto.
5353 * scripttempl/w65.sc: Ditto.
5354 * scripttempl/z8000.sc: Ditto.
5355
5356 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5357
5358 * Makefile.in (e_i386_chaos.c): New rule.
5359 (ALL_EMULATIONS): Added e_i386_chaos.o.
5360 * emulparams/elf_i386_chaos.sh: New file.
5361 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
5362
5363 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5364
5365 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
5366 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
5367 Fix sed invocation, so that it coped with '/' in Solaris 64bit
5368 library path suffix.
5369 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
5370
5371 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
5372
5373 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
5374 for consecutive sections.
5375
5376 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
5377
5378 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
5379 options.
5380 * ld.texinfo: Added notes about this new option.
5381
5382 2000-10-16 Nick Clifton <nickc@redhat.com>
5383
5384 * emultempl/pe.em (_after_open): Add tests of return values from
5385 bfd functions. Emit appropriate error messages if necessary.
5386
5387 2000-10-13 Nick Clifton <nickc@redhat.com>
5388
5389 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
5390 local variables - they are not used, but leave in the call to
5391 bfd_canonicalize_symtab.
5392 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
5393 pe_dll_search_prefix.
5394
5395 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
5396
5397 * emultempl/pe.em (pe_dll_search_prefix): New variable,
5398 (longopts): New --dll-search-prefix option.
5399 (gld_${EMULATION_NAME}_list_options): Document.
5400 (gld_${EMULATION_NAME}_parse_args): Handle.
5401 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
5402 dynamically, search for a dll named '<prefix><basename>.dll'
5403 in preference to 'lib<basename>.dll' if --dll-search-prefix
5404 is specified.
5405
5406 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5407
5408 * ldlang.c (section_already_linked): Set kept_section instead of
5409 sec->comdat->sec.
5410
5411 2000-10-10 Kazu Hirata <kazu@hxi.com>
5412
5413 * deffile.h: Fix formatting.
5414 * lexsup.c: Likewise.
5415 * mri.c: Likewise.
5416
5417 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5418
5419 * pe-dll.c (make_one): Do not generate code thunk for DATA
5420 exports.
5421 (process_def_file): deduce DATA flag for auto-export sumbols.
5422
5423 2000-10-09 Kazu Hirata <kazu@hxi.com>
5424
5425 * ld.h: Fix formatting.
5426 * ldcref.c: Likewise.
5427 * ldctor.h: Likewise.
5428 * ldemul.c: Likewise.
5429 * ldemul.h: Likewise.
5430 * ldexp.c: Likewise.
5431 * ldexp.h: Likewise.
5432 * ldfile.c: Likewise.
5433 * ldfile.h: Likewise.
5434 * ldlang.c: Likewise.
5435 * ldlang.h: Likewise.
5436 * ldmain.c: Likewise.
5437 * pe-dll.c: Likewise.
5438
5439 * pe-dll.c: Revert some formatting fixes.
5440
5441 2000-10-08 Kazu Hirata <kazu@hxi.com>
5442
5443 * pe-dll.c: Fix formatting.
5444
5445 2000-10-05 Kazu Hirata <kazu@hxi.com>
5446
5447 * ldlang.c: Fix formatting.
5448
5449 2000-10-03 DJ Delorie <dj@redhat.com>
5450
5451 * pe-dll.c (fill_edata): initialize entire block
5452 (make_one): fill in correct section.
5453
5454 2000-10-03 Kazu Hirata <kazu@hxi.com>
5455
5456 * ldexp.c: Fix formatting.
5457
5458 2000-10-02 DJ Delorie <dj@redhat.com>
5459
5460 * emultempl/pe.em (gld_*_after_open): detect case where there two
5461 import libraries for same dll; rename one to ensure proper link
5462 order.
5463
5464 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
5465 typo
5466 (generate_edata): fix typo
5467
5468 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
5469
5470 * scripttempl/crisaout.sc (ENTRY): Now __start.
5471 (.text): Add default setting for __start.
5472 Remove CONSTRUCTORS handling.
5473 (/DISCARD/): Add .gnu.warning.*.
5474 * emulparams/crislinux.sh (ENTRY): Now __start.
5475 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
5476 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
5477 (ENTRY): Now __start.
5478 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
5479 (EXECUTABLE_SYMBOLS): Add default setting for __start.
5480
5481 2000-09-29 Kazu Hirata <kazu@hxi.com>
5482
5483 * deffile.h: Fix formatting.
5484 * ld.h: Likewise.
5485 * ldcref.c: Likewise.
5486 * ldctor.c: Likewise.
5487 * ldctor.h: Likewise.
5488 * ldemul.c: Likewise.
5489 * ldemul.h: Likewise.
5490 * ldexp.c: Likewise.
5491 * ldexp.h: Likewise.
5492 * ldfile.c: Likewise.
5493 * ldfile.h: Likewise.
5494 * ldlang.c: Likewise.
5495 * ldlang.h: Likewise.
5496 * lexsup.c: Likewise.
5497 * mri.c: Likewise.
5498 * pe-dll.c: Likewise.
5499
5500 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5501
5502 * pe-dll.c (process_def_file): Uninitialized data wasn't
5503 exported with --export-all-symbols switch.
5504
5505 2000-09-28 DJ Delorie <dj@redhat.com>
5506
5507 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
5508 noname work properly.
5509
5510 2000-09-28 Alan Modra <alan@linuxcare.com.au>
5511
5512 * ld.texinfo (HPPA ELF32): New section.
5513
5514 * emultempl/hppaelf.em (group_size): New.
5515 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
5516 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
5517 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
5518 options to prevent abbreviations matching.
5519 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
5520 (PARSE_AND_LIST_ARGS_CASES): Handle it.
5521
5522 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5523
5524 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
5525 on the m68*-*-elf target. Make it support COFF input objects.
5526
5527 2000-09-21 Kazu Hirata <kazu@hxi.com>
5528
5529 * ldmain.c: Fix formatting.
5530 * ldmisc.c: Likewise.
5531 * ldver.c: Likewise.
5532 * ldwrite.c: Likewise.
5533
5534 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5535
5536 * ldwrite.c (clone_section): Silence gcc warnings.
5537
5538 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5539
5540 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
5541 out of memory failure.
5542
5543 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
5544 (clone_section): Handle out of memory failures. Rename var to
5545 avoid c++ reserved word.
5546
5547 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5548
5549 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
5550 stub_name param to stub_sec_name.
5551 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
5552
5553 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5554
5555 * emultempl/m68kelf.em: New file.
5556 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
5557 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
5558 * Makefile.in: Regenerate.
5559
5560 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5561
5562 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
5563 only as needed.
5564
5565 2000-09-13 Nick Clifton <nickc@redhat.com>
5566
5567 * ldmain.c (multiple_definition): Disable relaxation if
5568 multiple symbol definitions are encountered - otherwise the
5569 linker could abort with an assertion failure.
5570
5571 2000-09-10 Nick Clifton <nickc@redhat.com>
5572
5573 * mri.c: Fix formatting.
5574
5575 2000-09-07 H.J. Lu <hjl@gnu.org>
5576
5577 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
5578 * configure: Rebuild.
5579
5580 2000-09-07 H.J. Lu <hjl@gnu.org>
5581
5582 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
5583 * Makefile.in: Rebuild.
5584
5585 2000-09-07 Alan Modra <alan@linuxcare.com.au>
5586
5587 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
5588 broken list handling. Create __start_SECNAME and __stop_SECNAME
5589 when no place-holder. Add some comments. Test both SEC_CODE and
5590 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
5591 Handle case where no output section statement created.
5592
5593 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5594
5595 * configure.tgt (sh-*-linux*): Added.
5596 * Makefile.am: Added eshelf_linux and eshlelf_linux.
5597 * Makefile.in: Rebuilt.
5598 * emulparams/shelf_linux.sh: New file.
5599 * emulparams/shlelf_linux.sh: New file.
5600
5601 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5602
5603 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5604 try shuffling sections when the orphan happens to be the place
5605 holder. Keep count of unique section names generated so we speed
5606 the search for a new name.
5607
5608 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5609
5610 * configure: Rebuilt with new libtool.m4.
5611
5612 2000-09-05 Nick Clifton <nickc@redhat.com>
5613
5614 * Makefile.in: Regenerate.
5615 * aclocal.m4: Regenerate.
5616 * configure: Regenerate.
5617 * config.in: Regenerate.
5618 * po/ld.pot: Regenerate.
5619
5620 * ldint.texinfo: Remove CVS revision marker - it foils local
5621 comparisons.
5622
5623 * emultempl/ticoff.em: Remove extraneous comma.
5624
5625 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5626
5627 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
5628 to stub section flags.
5629 (hppa_for_each_input_file_wrapper): New.
5630 (hppa_lang_for_each_input_file): New.
5631 (lang_for_each_input_file): Define to call above.
5632 (multi_subspace): New.
5633 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
5634 (PARSE_AND_LIST_PROLOGUE): Define.
5635 (PARSE_AND_LIST_LONGOPTS): Define.
5636 (PARSE_AND_LIST_OPTIONS): Define.
5637 (PARSE_AND_LIST_ARGS_CASES): Define.
5638 (hppaelf_finish): Call elf32_hppa_set_gp.
5639 (hppaelf_set_output_arch): Remove.
5640 (LDEMUL_SET_OUTPUT_ARCH): Remove.
5641
5642 * emulparams/hppalinux.sh (ELFSIZE): Define.
5643 (MACHINE): Define.
5644 (OTHER_READONLY_SECTIONS): Define.
5645 (DATA_PLT): Define.
5646 (GENERATE_SHLIB_SCRIPT): Define.
5647
5648 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
5649 to const throughout. Change `void *' to `PTR' throughout.
5650 (lang_memory_default): Function is local to file, add `static'.
5651
5652 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
5653 (ehppalinux.c): Likewise.
5654 (earmelf.c): Likewise.
5655 (earmelf_linux.c): Likewise.
5656 (earmelf_linux26.c): Likewise.
5657 * Makefile.in: Regenerate.
5658
5659 * ld.h (ld_config_type): Add unique_orphan_sections.
5660 * lexsup.c (OPTION_UNIQUE): Define.
5661 (ld_options): Add "--unique".
5662 (parse_args): Handle it.
5663 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
5664 search for an existing output section if unique_orphan_sections is
5665 set. Make use of bfd_get_unique_section_name rather than
5666 duplicating code here.
5667 * ld.texinfo: Describe --unique.
5668
5669 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
5670 optional arg to split-by-file.
5671 (parse_args): Handle them.
5672 * ld.texinfo: Update description of these options.
5673 * ldwrite.c (clone_section): Pass in the section name. Replace
5674 local code with bfd_get_unique_section_name.
5675 (split_sections): Tidy code and comments. Use a list traversal
5676 more appropriate to the list construction. Handle cooked section
5677 sizes. Split when split_by_reloc reached rather than exceeded.
5678 Track section size and split when split_by_file reached. Fix
5679 link_order_tail (even though it's not used).
5680 (ldwrite): Modify condition for calling split_sections to suit
5681 changed split_by_reloc and split_by_file.
5682 * ldmain.c (main): Init config.split_by_reloc and
5683 config.split_by_file to -1.
5684 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
5685 Change split_by_file to bfd_size_type.
5686
5687 2000-09-02 Nick Clifton <nickc@redhat.com>
5688
5689 * configure.in: Increase version number to 2.10.91.
5690 * NEWS: Mention new ability to support removal of duplicate DWARF2
5691 debug information.
5692 * configure: Regenerate.
5693 * aclocal.m4: Regenerate.
5694 * config.in: Regenerate.
5695
5696 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5697
5698 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
5699 sections.
5700 * scripttempl/elf32avr.sc: Ditto.
5701 * scripttempl/elfd10v.sc: Ditto.
5702 * scripttempl/elfd30v.sc: Ditto.
5703 * scripttempl/elfi370.sc: Ditto.
5704 * scripttempl/elfm68hc11.sc: Ditto.
5705 * scripttempl/elfm68hc12.sc: Ditto.
5706 * scripttempl/elfi386beos.sc: Ditto.
5707 * scripttempl/v850.sc: Ditto.
5708
5709 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5710
5711 * acinclude.m4: Include libtool and gettext macros from the
5712 top level.
5713 * aclocal.m4, configure: Rebuilt.
5714
5715 2000-08-25 Nick Clifton <nickc@redhat.com>
5716
5717 * ldlang.c (open_output): When choosing the target for a
5718 particular endianness, do nothing if the target is not
5719 supported.
5720
5721 2000-08-25 H.J. Lu <hjl@gnu.org>
5722
5723 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
5724 check -rpath nor LD_RUN_PATH for cross link.
5725 * ld.texinfo: Document the change.
5726
5727 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
5728
5729 * NEWS: Mention support for CRIS.
5730
5731 2000-08-23 H.J. Lu <hjl@gnu.org>
5732
5733 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
5734 the current runpath list from bfd_elf_get_runpath_list ()
5735 before search.
5736
5737 2000-08-22 H.J. Lu <hjl@gnu.org>
5738
5739 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
5740 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
5741 LD_LIBRARY_PATH for native linker. Display the needed DSO if
5742 trace_file_tries is non-zero.
5743 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
5744 if trace_file_tries is non-zero.
5745
5746 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
5747 * NEWS: Mention it.
5748
5749 2000-08-14 Jason Eckhardt <jle@cygnus.com>
5750
5751 * NEWS: Mention i860 support.
5752
5753 2000-08-14 Andreas Schwab <schwab@suse.de>
5754
5755 * scripttempl/elf.sc: Fix last change to use correct comment
5756 syntax.
5757
5758 2000-08-10 Geoff Keating <geoffk@cygnus.com>
5759
5760 * scripttempl/elf.sc: Add a comment giving the correspondence
5761 between sections, per-datum sections, and linkonce sections. Make
5762 the comment true even for .bss, .sdata, .sdata2, .sbss, and
5763 .sbss2.
5764
5765 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5766
5767 * emulparams/elf32_i860.sh: New file.
5768 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
5769 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
5770 (eelf32_i860.c): New rule.
5771 * Makefile.in: Regenerate.
5772
5773 2000-08-10 Nick Clifton <nickc@cygnus.com>
5774
5775 * emulparams/mipspe.sh (ENTRY): Add definition.
5776
5777 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
5778
5779 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
5780 in error message.
5781
5782 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5783
5784 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
5785 the final size of .bss section.
5786 * scripttempl/elfm68hc12.sc: Likewise.
5787
5788 2000-08-04 Alan Modra <alan@linuxcare.com.au>
5789
5790 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
5791 gld${EMULATION_NAME}_parse_args for consistency. Combine
5792 lastoptind and prevoptind vars, and keep track of last optind.
5793 (gld_${EMULATION_NAME}_list_options): Rename to
5794 gld${EMULATION_NAME}_list_options.
5795
5796 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
5797
5798 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
5799 (i586-sco-sysv5uw7.1.0).
5800
5801 2000-07-27 H.J. Lu <hjl@gnu.org>
5802
5803 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
5804 (PARSE_AND_LIST_PROLOGUE): New.
5805 (PARSE_AND_LIST_LONGOPTS): Likewise.
5806 (PARSE_AND_LIST_OPTIONS): Likewise.
5807 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5808 (PARSE_AND_LIST_EPILOGUE): Likewise.
5809
5810 2000-07-28 Alan Modra <alan@linuxcare.com.au>
5811
5812 * emultempl/armelf.em: Elide functions common to elf32.em,
5813 ie. most of the file.
5814 (arm_elf_after_open): New. Do arm specific things then call
5815 gld${EMULATION_NAME}_after_open.
5816 (arm_elf_before_allocation): New. Call
5817 gld${EMULATION_NAME}_before_allocation then do arm specifics.
5818 (PARSE_AND_LIST_PROLOGUE): Define.
5819 (PARSE_AND_LIST_SHORTOPTS): Define.
5820 (PARSE_AND_LIST_LONGOPTS): Define.
5821 (PARSE_AND_LIST_OPTIONS): Define.
5822 (PARSE_AND_LIST_ARGS_CASES): Define.
5823 (LDEMUL_AFTER_OPEN): Define.
5824 (LDEMUL_BEFORE_ALLOCATION): Define.
5825 (LDEMUL_BEFORE_PARSE): Define.
5826 (LDEMUL_FINISH): Define.
5827
5828 * emultempl/hppaelf.em: Similarly zap most of this file.
5829 (hppaelf_add_stub_section): Prototype.
5830 (hppaelf_layaout_sections_again): Prototype.
5831 (hook_in_stub): Prototype.
5832 (LDEMUL_SET_OUTPUT_ARCH): Define.
5833 (LDEMUL_FINISH): Define.
5834 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
5835
5836 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
5837 (EXTRA_EM_FILE): New.
5838 * emulparams/armelf_linux.sh: Likewise.
5839 * emulparams/armelf_linux26.sh: Likewise.
5840 * emulparams/hppalinux.sh: Likewise.
5841 * emulparams/hppaelf.sh: Likewise.
5842 (NOP): Define.
5843
5844 * emultempl/elf32.em: Fix formatting.
5845 (EXTRA_EM_FILE): Source it.
5846 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
5847 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
5848 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
5849 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
5850 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
5851 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
5852 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
5853 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
5854 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
5855 allow functions in this file to be overridden.
5856 (PARSE_AND_LIST_SHORTOPTS): Handle it.
5857
5858 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
5859
5860 * emultempl/elf32.em: Reorganize file.
5861
5862 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
5863
5864 * emulparams/elf64alpha.sh: Implement "-taso" emulation
5865 specific option to fit 64-bit executable in the lower
5866 31-bit address range. This is done by changing start
5867 address of .interp (the very first section of executable)
5868 and then setting EF_ALPHA_32BIT elf header flag.
5869
5870 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5871
5872 * emultempl/m68kcoff.em: New file.
5873 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
5874 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
5875 generic.em.
5876 * Makefile.in: Regenerate.
5877
5878 2000-07-20 H.J. Lu <hjl@gnu.org>
5879
5880 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
5881 and "disable-new-dtags" to stop getopt from treating -d/-e as
5882 abbreviations for these options.
5883
5884 2000-07-20 H.J. Lu <hjl@gnu.org>
5885
5886 * ld.texinfo: Add documentation for --disable-new-dtags and
5887 --enable-new-dtags.
5888
5889 * ldmain.c (main): Initialize link_info.new_dtags to false.
5890
5891 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
5892 --disable-new-dtags and --enable-new-dtags.
5893 (gld_${EMULATION_NAME}_list_options): Likewise.
5894
5895 2000-07-05 Kenneth Block <krblock@computer.org>
5896
5897 * lexsup.c: Add optional style to demangle switch
5898 * ld.texinfo: Document optional style to demangle switch.
5899
5900 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5901
5902 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
5903 ecrislinux.o.
5904 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
5905 Regenerate dependencies.
5906 * Makefile.in: Rebuild.
5907 * configure.tgt (cris-*-*): New target.
5908 * emulparams/crisaout.sh, emulparams/criself.sh,
5909 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
5910 * po/POTFILES.in, po/ld.pot: Regenerate.
5911
5912 2000-07-20 H.J. Lu <hjl@gnu.org>
5913
5914 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
5915 Print out ignored -z options.
5916
5917 2000-07-19 H.J. Lu <hjl@gnu.org>
5918
5919 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
5920 (PARSE_AND_LIST_PROLOGUE): New.
5921 (PARSE_AND_LIST_LONGOPTS): Likewise.
5922 (PARSE_AND_LIST_OPTIONS): Likewise.
5923 (PARSE_AND_LIST_ARGS_CASES): Likewise.
5924
5925 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
5926
5927 * lexsup.c (ld_options): Comment out 'z'.
5928 (parse_args): Likewise.
5929
5930 * emultempl/elf32.em: Include "elf/common.h".
5931 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
5932 options.
5933 (gld_${EMULATION_NAME}_list_options): Likewise.
5934
5935 * ld.texinfo: Add documentation for the recognized -z options.
5936
5937 2000-07-19 H.J. Lu <hjl@gnu.org>
5938
5939 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
5940 bfd_elf_set_dt_needed_soname ().
5941
5942 2000-07-18 DJ Delorie <dj@cygnus.com>
5943
5944 * pe-dll.c (pe_dll_id_target): check object target name also
5945
5946 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
5947
5948 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
5949 ${INIT_END} if relocating.
5950 (.fini): Likewise ${FINI_START} and ${FINI_END}.
5951
5952 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
5953
5954 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
5955 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
5956 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
5957 errors introduced by the old dynamic lib search order.
5958
5959 2000-07-17 DJ Delorie <dj@cygnus.com>
5960
5961 * pe-dll.c (process_def_file): auto-export data items also
5962 (pe_process_import_defs): also see if _imp_ form needed
5963
5964 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5965
5966 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
5967 for dll import libraries
5968
5969 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
5970
5971 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
5972 gcc 2.95.2 and later.
5973
5974 2000-07-11 Kazu Hirata <kazu@hxi.com>
5975
5976 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
5977 message.
5978
5979 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5980
5981 * ldemul.h (struct lang_input_statement_struct): Remove forward
5982 declaration.
5983 (struct search_dirs): Likewise.
5984 * ldfile.h (struct lang_input_statement_struct): Likewise.
5985 Protect file from multiple inclusion.
5986 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
5987 declaration from macro to file scope.
5988
5989 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
5990 * ldgram.y: Likewise here.
5991 * ldlang.c: And here.
5992 * ldmain.c: And here.
5993 * mpw-elfmips.c: And here.
5994 * mpw-eppcmac.c: And here.
5995 * emultempl/aix.em: And here.
5996 * emultempl/armcoff.em: And here.
5997 * emultempl/armelf.em: And here.
5998 * emultempl/armelf_oabi.em: And here.
5999 * emultempl/beos.em: And here.
6000 * emultempl/elf32.em: And here.
6001 * emultempl/hppaelf.em: And here.
6002 * emultempl/linux.em: And here.
6003 * emultempl/lnk960.em: And here.
6004 * emultempl/pe.em: And here.
6005 * emultempl/sunos.em: And here.
6006 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
6007 * mpw-idtmips.c: Ditto.
6008 * emultempl/generic.em: Ditto.
6009 * emultempl/gld960.em: Ditto.
6010 * emultempl/gld960c.em: Ditto.
6011 * emultempl/mipsecoff.em: Ditto.
6012 * emultempl/ticoff.em: Ditto.
6013 * emultempl/vanilla.em: Ditto.
6014
6015 * pe-dll.c: Include ldfile.h
6016 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
6017
6018 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
6019 arguments to bfd_elf32_size_dynamic_sections call.
6020 (gldelf32ebmip_place_orphan): Add missing arguments to
6021 lang_leave_output_section_statement call.
6022
6023 2000-07-10 H.J. Lu <hjl@gnu.org>
6024
6025 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
6026 DLL_SUPPORT.
6027 (strhash): Likewise.
6028 (compute_dll_image_base): Likewise.
6029 (pe_undef_found_sym): Likewise.
6030 (pe_undef_cdecl_match): Likewise.
6031 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
6032 argument "arch" with ATTRIBUTE_UNUSED.
6033
6034 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6035
6036 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
6037
6038 From Ryan Bradetich <rbradetich@uswest.net>
6039 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
6040
6041 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6042
6043 Changes to create multiple linker stubs, positioned immediately
6044 before the section where they are required.
6045 * emultempl/hppaelf.em: Include elf32-hppa.h.
6046 (stub_sec, file_chain): Delete.
6047 (hppaelf_create_output_section_statements): Don't make a stub
6048 section here.
6049 (hook_stub_info): New struct.
6050 (hook_in_stub): New function.
6051 (hppaelf_add_stub_section): New function.
6052 (hppaelf_finish): Do nothing for relocateable links. Modify the
6053 call to elf32_hppa_size_stubs. Move code for updating section
6054 layout from here...
6055 (hppaelf_layaout_sections_again): ..to here, a new function.
6056
6057 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
6058 broken list handling. Pass in a pointer to the list.
6059 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
6060 for above changes.
6061 (hppaelf_before_parse): Prototype.
6062 (hppaelf_set_output_arch): Prototype.
6063 (hppaelf_create_output_section_statements): Prototype.
6064 (hppaelf_delete_padding_statements): Prototype.
6065 (hppaelf_finish): Prototype.
6066
6067 Merge from elf32.em
6068 * emultempl/hppaelf.em: Include ctype.h.
6069 (struct orphan_save): New.
6070 (gld${EMULATION_NAME}_place_orphan): New.
6071 (output_rel_find): New.
6072 (hppaelf_get_script): Update from elf32.em.
6073 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
6074 Change emulation_name field to "${EMULATION_NAME}". Add
6075 gld${EMULATION_NAME}_place_orphan.
6076
6077 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
6078 ehppalinux.o, sort it. Regenerate dependencies.
6079 (ehppalinux.c): Depend on hppaelf.em
6080 * Makefile.in: Regenerate.
6081
6082 * configure.tgt: targ_emul=hppalinux for hppa*linux
6083
6084 * emulparams/hppalinux.sh: New.
6085 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
6086
6087 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6088
6089 * lexsup.c (parse_args): Copy section name.
6090
6091 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
6092
6093 * emultempl/pe.em: institute the following search order for
6094 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
6095 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
6096 static lib (libfoo.a) if none of the above are found.
6097
6098 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
6099
6100 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
6101 (longopts): New --{enable,disable}-auto-image-base options.
6102 (gld_${EMULATION_NAME}_list_options): Document.
6103 (gld_${EMULATION_NAME}_parse): Handle.
6104 (strhash): New static function.
6105 (compute_dll_image_base): New static function.
6106 (gld_${EMULATION_NAME}_set_symbols): Use.
6107
6108 2000-07-05 DJ Delorie <dj@redhat.com>
6109
6110 * MAINTAINERS: new
6111
6112 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6113
6114 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
6115 * emulparams/elf32btsmip.sh: New file.
6116 * Makefile.am: Add traditional mips target.
6117 * Makefile.in: Rebuild.
6118
6119 2000-07-01 H.J. Lu <hjl@gnu.org>
6120
6121 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
6122 automake to use YLWRAP.
6123 * Makefile.in: Rebuild.
6124
6125 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6126
6127 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6128 (CLEANFILES): Add DEPA.
6129 * Makefile.in: Regenerate.
6130
6131 2000-06-30 Timothy Wall <twall@ppc>
6132
6133 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
6134 the page in the upper octet of the address.
6135
6136 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6137
6138 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
6139
6140 2000-06-24 Alan Modra <alan@linuxcare.com.au>
6141
6142 * NEWS: arm-elf does --gc-sections too.
6143
6144 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6145
6146 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6147 find one.
6148 * Makefile.in: Regenerate.
6149
6150 2000-06-21 H.J. Lu <hjl@gnu.org>
6151
6152 * Makefile.am: Rebuild dependency.
6153 * Makefile.in: Rebuild.
6154
6155 2000-06-20 H.J. Lu <hjl@gnu.org>
6156
6157 * Makefile.am: Rebuild dependency.
6158 * Makefile.in: Rebuild.
6159
6160 2000-06-20 Timothy Wall <twall@cygnus.com>
6161
6162 * scripttempl/tic54xcoff.sc: New.
6163 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
6164 * gen-doc.texi: Add flag for TI COFF.
6165 * ld.texinfo: Add documentation for TI COFF handling switches.
6166 * emultempl/ticoff.em: New. TI COFF handling.
6167 * configure.tgt: Add tic54x target.
6168 * Makefile.am: Add tic54x target.
6169 * Makefile.in: Ditto.
6170
6171 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6172
6173 * ldmain.c (set_scripts_dir): Correct pointer comparison when
6174 checking for backslashes.
6175
6176 2000-06-19 Alan Modra <alan@linuxcare.com.au>
6177
6178 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
6179
6180 2000-06-18 Alan Modra <alan@linuxcare.com.au>
6181
6182 * NEWS: Update list of targets supporting --gc-sections.
6183
6184 * scripttempl/elf.sc: KEEP .eh_frame contents.
6185 * scripttempl/elfd30v.sc: Same here.
6186
6187 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6188
6189 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
6190 and m68hc11 (elf).
6191 * Makefile.in: Rebuild.
6192 * configure.tgt: Recognize m68hc12 and m68hc11.
6193 * scripttempl/elfm68hc12.sc: New file.
6194 * emulparams/m68hc12elfb: New emulation.
6195 * emulparams/m68hc12elf: New emulation.
6196 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
6197 (includes a memory.x script to define the ROM and RAM banks).
6198 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
6199 New configuration files for support of Motorola 68hc11
6200
6201 2000-06-15 Alan Modra <alan@linuxcare.com.au>
6202
6203 * ldmain.c (main): Only change SEC_READONLY for final link.
6204
6205 2000-06-13 H.J. Lu <hjl@gnu.org>
6206
6207 * configure: Regenerate.
6208
6209 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6210
6211 * configure.in (VERSION): Update to show this is the CVS mainline.
6212
6213 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6214
6215 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
6216 input objects to be ECOFF.
6217 (check_sections): einfo takes %B, not %P, to print a BFD name.
6218
6219 2000-06-05 Michael Matz <matz@ifh.de>
6220
6221 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
6222 version scripts.
6223
6224 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
6225
6226 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
6227
6228 * emulparams/avr1200.sh (STACK): Define as 0.
6229 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
6230 * emulparams/avr4433.sh (STACK): Likewise.
6231 * emulparams/avr44x4.sh (STACK): Likewise.
6232 * emulparams/avr85xx.sh (STACK): Likewise.
6233 * emulparams/avrmega103.sh (STACK): Likewise.
6234 * emulparams/avrmega161.sh (STACK): Likewise.
6235 * emulparams/avrmega603.sh (STACK): Likewise.
6236 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
6237 (__stack): Define from ${STACK} for main().
6238
6239 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6240
6241 * Makefile.am: Update dependencies with "make dep-am"
6242 * Makefile.in: Regenerate.
6243
6244 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6245
6246 * ldmain.c: Include filenames.h.
6247 (set_scripts_dir): Support backslashes in program name.
6248
6249 2000-05-22 Igor Shevlyakov <igor@windriver.com>
6250
6251 * ldmain.c (main): When deciding if ".text" section should be
6252 read-only, don't forget to reset SEC_READONLY because it
6253 could be already set.
6254
6255 2000-05-22 Thomas de Lellis <tdel@windriver.com>
6256
6257 * ld.1: Add documentation for new command line option:
6258 --section-start <sectionname>=<sectionorg>
6259 This is a generic version of -Ttext etc. which accepts
6260 any section name as a parameter instead of just text/data/
6261 bss.
6262 * ld.texinfo: More docs.
6263 * NEWS: More docs.
6264 * lexsup.c: (parse_args): Recognize new command line option.
6265 (ld_options): Add new option.
6266
6267 2000-05-18 H.J. Lu <hjl@gnu.org>
6268
6269 * lexsup.c (parse_args): `i' == `r', not `q'.
6270
6271 2000-05-18 Jeffrey A Law (law@cygnus.com)
6272
6273 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
6274
6275 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6276 Rick Gorton <gorton@scrugs.lkg.dec.com>
6277
6278 Add support for '-q' == '--emit-relocs' switch.
6279 * ldmain.c (main): Default to false.
6280 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
6281 * NEWS: Describe the emitrelocations switch.
6282 * ld.texinfo: Describe the emitrelocations switch.
6283
6284 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
6285
6286 * emultempl/pe.em (_open_dynamic_archive): New function: Search
6287 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
6288 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
6289 link options.
6290
6291 2000-05-15 David O'Brien <obrien@FreeBSD.org>
6292
6293 * lexsup.c (parse_args): Update the year in the copyright notice.
6294
6295 2000-05-13 Alan Modra <alan@linuxcare.com.au>
6296
6297 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
6298 Replace defines with those from intl/libgettext.h to quieten gcc
6299 warnings.
6300
6301 2000-05-10 H.J. Lu <hjl@gnu.org>
6302
6303 * ldlang.c (open_input_bfds): Don't load the same file within
6304 a group again if the whole archive has been loaded already.
6305
6306 2000-05-03 Alan Modra <alan@linuxcare.com.au>
6307
6308 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
6309 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
6310 strtoul.
6311
6312 2000-05-01 Jim Wilson <wilson@cygnus.com>
6313
6314 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
6315
6316 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6317 host "ia64-*-linux-gnu*".
6318
6319 2000-04-29 Andreas Jaeger <aj@suse.de>
6320
6321 * ld.h: Correctly check GCC version.
6322
6323 2000-04-25 Jeffrey A Law (law@cygnus.com)
6324
6325 * Makefile.am: Add PA64 support. Add missing dependencies for
6326 PA32 elf support.
6327 * Makefile.in: Rebuilt.
6328 * configure.tgt: Add PA64 support (currently disabled).
6329
6330 2000-04-25 Alan Modra <alan@linuxcare.com.au>
6331
6332 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
6333 (output_rel_find): New function.
6334 (hold_section, hold_use): Delete.
6335 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6336 hold_interp): Make local to place_orphan.
6337 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
6338 rather than place_section to find possible previous use of orphan.
6339 Similarly find the place-holder output sections. Use returned
6340 value from lang_enter_output_section_statement rather than calling
6341 lang_output_section_statement_lookup.
6342 * emultempl/armelf.em: Same here.
6343 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
6344
6345 * ldlang.c (lang_enter_output_section_statement): Return output
6346 section statement.
6347 * ldlang.h (lang_enter_output_section_statement): Change
6348 declaration too.
6349
6350 * ldlang.h (lang_output_section_statement): Export it.
6351 * ldlang.c (lang_output_section_statement): Ditto.
6352
6353 2000-04-24 Nick Clifton <nickc@cygnus.com>
6354
6355 * ld.texinfo (Output Section Data): Add note that section data
6356 commands cannot appear outside of section directives.
6357
6358 2000-04-2 Matthew Green <mrg@cygnus.com>
6359
6360 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
6361
6362 2000-04-21 Richard Henderson <rth@cygnus.com>
6363 David Mosberger <davidm@hpl.hp.com>
6364
6365 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
6366 (eelf64_ia64.c): New rule.
6367 * Makefile.in: Rebuild.
6368 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
6369 * emulparams/elf64_ia64.sh: New file.
6370
6371 2000-04-21 Richard Henderson <rth@cygnus.com>
6372
6373 * scripttempl/elfd30v.sc: Place .gcc_except_table.
6374
6375 2000-04-19 Alan Modra <alan@linuxcare.com.au>
6376
6377 * dep-in.sed: Match space at start of file name, not at end.
6378
6379 2000-04-18 H.J. Lu <hjl@gnu.org>
6380
6381 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
6382 lang_leave_output_section_statement () after calling
6383 lang_enter_output_section_statement ().
6384 * emultempl/armelf.em: Likewise.
6385
6386 2000-04-18 Alan Modra <alan@linuxcare.com.au>
6387
6388 * emultempl/elf32.em (struct orphan_save): Add section field.
6389 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
6390 better order, and place first orphan section as we did before the
6391 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
6392 Don't call make_bfd_section here, let wild_doit do the job for us.
6393 Don't build a statement list when we'll only throw it away.
6394 * emultempl/armelf.em: Ditto.
6395 * emultempl/pe.em: Similarly.
6396
6397 2000-04-14 Geoff Keating <geoffk@cygnus.com>
6398
6399 * scripttempl/elfppc.sc: Remove.
6400 * emulparams/elf32ppc.sh: Use elf.sc.
6401 * emulparams/elf32lppc.sh: Use elf.sc.
6402 * emulparams/elf32ppclinux.sh: Use elf.sc.
6403 * emulparams/elf32ppcsim.sh: New file.
6404 * emulparams/elf32lppcsim.sh: New file.
6405 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
6406 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
6407 * Makefile.in: Regenerate.
6408 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
6409
6410 2000-04-14 Alan Modra <alan@linuxcare.com.au>
6411
6412 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
6413 ~SEC_ALLOC sections too. Init start address of debug sections.
6414 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6415 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
6416 Also set all relocateable section start addresses.
6417
6418 2000-04-13 Geoff Keating <geoffk@cygnus.com>
6419
6420 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
6421 Add new BSS_PLT variable for when .plt need not be contained in
6422 the file. Move _etext so that it is also after .fini, and provide
6423 both etext and _etext with a leading underscore. Mark the start
6424 and end of .sbss.
6425
6426 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6427
6428 * emultempl/elf32.em (struct orphan_save): New.
6429 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
6430 hold_interp): Make them struct orphan_save.
6431 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
6432 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
6433 the end of the relevant section list. Also add associated section
6434 statements to the end of any previous orphan statements.
6435 * emultempl/armelf.em: Similarly.
6436 * emultempl/pe.em: Similarly.
6437
6438 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6439
6440 * ld.texinfo (Simple Example): Remove extraneous paragraph.
6441
6442 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
6443
6444 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6445 --enable-build-warnings option.
6446 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6447 * Makefile.in, configure: Re-generate.
6448
6449 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6450
6451 * po/ld.pot: Regenerate.
6452
6453 * lexsup.c (help): Restore translated part of bug string.
6454
6455 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
6456 (DEP): Quote when passing vars to sub-make. Add warning message
6457 to end.
6458 (DEP1): Rewrite for "gcc -MM".
6459 (CLEANFILES): Add DEP2.
6460 Update dependencies.
6461 * Makefile.in: Regenerate.
6462
6463 2000-04-03 Alan Modra <alan@linuxcare.com.au>
6464
6465 * ld.h: #include "bin-bugs.h"
6466 * lexsup.c (help): Use REPORT_BUGS_TO.
6467
6468 2000-03-27 Denis Chertykov <denisc@overta.ru>
6469
6470 * configure.tgt (avr-*-*): New target support.
6471 * Makefile.am: Likewise.
6472 * scripttempl/elf32avr.sc: New script file.
6473 * emulparams/avr1200.sh: New file.
6474 * emulparams/avr23xx.sh: New file.
6475 * emulparams/avr4433.sh New file.
6476 * emulparams/avr44x4.sh New file.
6477 * emulparams/avr85xx.sh New file.
6478 * emulparams/avrmega103.sh New file.
6479 * emulparams/avrmega161.sh New file.
6480 * emulparams/avrmega603.sh New file.
6481 * Makefile.in: Regenerate.
6482
6483 2000-03-09 Andreas Jaeger <aj@suse.de>
6484
6485 * Makefile.am (check-DEJAGNU): Also unset LANG.
6486 * Makefile.in: Rebuild.
6487
6488 2000-03-06 Ian Lance Taylor <ian@zembu.com>
6489
6490 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
6491 archive.
6492
6493 2000-03-02 H.J. Lu <hjl@gnu.org>
6494
6495 * emulparams/elf32mcore.sh: Include "getopt.h".
6496
6497 2000-03-01 Ian Lance Taylor <ian@zembu.com>
6498
6499 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
6500
6501 2000-03-01 H.J. Lu <hjl@gnu.org>
6502
6503 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
6504 * emulparams/shpe.sh: Likewise.
6505
6506 2000-03-01 Nick Clifton <nickc@cygnus.com>
6507
6508 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
6509 to unused parameters.
6510
6511 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
6512 functions only used by DLL code.
6513 (_place_orphan): Initialise 'dollar'.
6514
6515 2000-03-01 H.J. Lu <hjl@gnu.org>
6516
6517 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
6518 indicate if the undefined symbol is a fatal error or not.
6519 Don't delete the output file if "fatal" is false.
6520
6521 2000-02-29 H.J. Lu <hjl@gnu.org>
6522
6523 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
6524 Set LC_COLLATE and LC_ALL to null and export them. It is for
6525 sort which expects the C locale.
6526 Add $(LIBS) to all $(HOSTING_LIBS).
6527 * Makefile.in: Rebuild.
6528
6529 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
6530
6531 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
6532 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
6533 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
6534 (ld_emulation_xfer_struct): Add missing NULL initialiser for
6535 find_potential_libraries.
6536
6537 2000-02-28 Jim Blandy <jimb@redhat.com>
6538
6539 * ldgram.y (exclude_name_list): Don't require a comma to separate
6540 list entries; the lexer considers commas to be valid part of a
6541 filename, so in something like `foo, bar' the comma is considered
6542 part of the first filename, `foo,'.
6543 * ld.texinfo: Update section on EXCLUDE_FILE lists.
6544
6545 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
6546
6547 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
6548 host "i[3456]86-*-freebsdelf*".
6549
6550 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
6551
6552 * scripttempl/i386go32.sc: Move misplaced semicolons.
6553
6554 2000-02-25 Ian Lance Taylor <ian@zembu.com>
6555
6556 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
6557 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
6558 (eelf64hppa.c, ehppaelf.c): Remove targets.
6559 * Makefile.in: Rebuild.
6560
6561 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6562
6563 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
6564 GNU/Linux/sparc, but keep the default as 32.
6565
6566 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
6567 it default if sparcv9 or sparc64.
6568
6569 2000-02-24 Nick Clifton <nickc@cygnus.com>
6570
6571 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
6572 * Makefile.in: Regenerate.
6573 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
6574
6575 * ldemul.h (ld_emulation_xfer_struct): Add new field:
6576 find_potential_libraries.
6577 * ldemul.c (ldemul_find_potential_libraries): New function.
6578
6579 * ldfile.c (ldfile_open_file_search): Allow function to be
6580 exported.
6581 (ldfile_open_file): Call ldemul_find_potential_libraries.
6582 * ldfile.h: Add prototype for ldfile_open_file_search.
6583
6584 * pe-dll.c: Add support for ARM, MIPS and SH targets.
6585
6586 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
6587 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
6588
6589 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
6590 (gld_X_find_potential_libraries): New function. Search for
6591 libraries called "*.lib".
6592
6593 * scripttempl/pe.sc: Add .pdata section.
6594
6595 2000-02-23 Richard Henderson <rth@cygnus.com>
6596
6597 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
6598 Add and use memory regions.
6599
6600 2000-02-23 Linas Vepstas (linas@linas.org)
6601
6602 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
6603
6604 * Makefile.am: Add support for Linux/IBM 370.
6605 * configure.tgt: Likewise.
6606
6607 * Makefile.in: Regenerate.
6608
6609 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
6610
6611 * ldlang.c (print_input_section, print_data_statement,
6612 print_reloc_statement, print_padding_statement, insert_pad,
6613 size_input_section, lang_check_section_addresses,
6614 lang_size_sections, lang_do_assignments, lang_set_startof,
6615 lang_one_common): Change `opb' to unsigned.
6616 (lang_do_assignments): Also change `size' to unsigned.
6617
6618 2000-02-16 Richard Henderson <rth@cygnus.com>
6619
6620 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
6621
6622 2000-02-16 Timothy Wall <twall@cygnus.com>
6623
6624 * mri.c (mri_draw_tree): Add default LMA region argument to call
6625 to lang_leave_output_section_statement.
6626 * ldlang.h: Update prototypes with LMA region arguments.
6627 * ldlang.c (lang_size_sections): Encapsulate region bounds
6628 checking in os_check_region call.
6629 (os_check_region): New function.
6630 (lang_output_section_statement_lookup): Initialize lma_region.
6631 (lang_leave_output_section_statement): Add LMA region argument.
6632 (lang_leave_overlay): Ditto.
6633 * ldgram.y: Handle LMA region syntax.
6634 * ld.texinfo (Output Section Description): Describe LMA region usage.
6635 * emultempl/armelf.em (gld$place_orphan): Add default value for
6636 lma region in call to lang_leave_output_section_statement.
6637 * emultempl/elf32.em (gld$place_orphan): Add default value for
6638 lma region in call to lang_leave_output_section_statement.
6639 * emultempl/pe.em (gld$place_orphan): Add default value for
6640 lma region in call to lang_leave_output_section_statement.
6641
6642
6643 2000-02-04 Timothy Wall <twall@redhat.com>
6644
6645 * ldlang.c (lang_check_section_addresses): Use bytes instead of
6646 octets when calculating section end addresses.
6647
6648 2000-02-04 Timothy Wall <twall@redhat.com>
6649
6650 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
6651
6652 2000-02-03 Timothy Wall <twall@redhat.com>
6653
6654 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
6655 octet count.
6656 * ldlang.c (print_input_section, print_data_statement,
6657 print_reloc_statement, print_padding_statement): Print target
6658 address values and section sizes as bytes, not octets.
6659 (insert_pad) Calculate padding size in octets, and adjust "dot"
6660 by bytes.
6661 (size_input_section) Always adjust "dot" by bytes, not octets.
6662 (lang_check_section_addresses, lang_do_assignments) Adjust
6663 "dot" by bytes, not octets. Use the larger of the directive size
6664 or octets_per_byte for the number of octets actually allocated in
6665 the output section.
6666 (lang_set_startof) Make sure STARTOF returns a target address.
6667 (lang_one_common) Record size changes in octets.
6668 (lang_abs_symbol_at_end_of) Section end symbol's value is
6669 recorded in target bytes.
6670 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
6671 to be clear about behavior when an octet is smaller than one byte.
6672
6673 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
6674
6675 * ldcref.c (output_cref): Don't pass message strings to printf
6676 as format arg.
6677 Update copyright.
6678
6679 * ldmisc.c (vfinfo): Same here.
6680 Update copyright.
6681
6682 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
6683
6684 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
6685 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
6686 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
6687 Add missing NULL initialisers, and comments.
6688
6689 2000-01-21 Nick Clifton <nickc@cygnus.com>
6690
6691 * ldlang.c (lang_size_sections): Fix typo in comment.
6692
6693 2000-01-18 H.J. Lu <hjl@gnu.org>
6694
6695 * ldlang.c (lang_size_sections): Also update the current
6696 address of a region if the SEC_NEVER_LOAD bit is not set.
6697
6698 2000-01-10 Philip Blundell <pb@futuretv.com>
6699
6700 * configure.tgt (arm*-*-conix*): New target.
6701
6702 2000-01-07 Nick Clifton <nickc@cygnus.com>
6703
6704 * ld.texinfo (Options): Remind users to preceed linker command
6705 line switches with -Wl, (or whatever is appropriate) if it is
6706 being invoked by a comnpiler driver program.
6707 Fix description of the behaviour of the -n command line switch.
6708
6709 2000-01-05 Catherine Moore <clm@cygnus.com>
6710
6711 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
6712 (name_list): New.
6713 * ld.texinfo (EXCLUDE_FILE): Update documentation.
6714 * ldgram.y (wildcard_spec): Support a list of excluded_files.
6715 (exclude_name_list): New.
6716 ldlang.c (walk_wild_section): Support list of excluded files.
6717 (print_wild_statement): Likewise.
6718 (lang_add_wild): Likewise.
6719 * ldlang.h (lang_wild_statement_type): Likewise.
6720 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
6721
6722 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6723
6724 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
6725 (process_def_file): Use.
6726 (pe_dll_compat_implib): New variable.
6727 (make_one): Use.
6728
6729 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
6730 pe_dll_compat_implib.
6731
6732 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
6733 compat-implib options.
6734 (gld_${EMULATION_NAME}_list_options): List new options.
6735 (gld_${EMULATION_NAME}_parse_args): Handle.
6736
6737 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
6738 dll.
6739
6740 * deffilep.y (opt_name): Allow "." in name.
6741
6742 For older changes see ChangeLog-9899
6743 \f
6744 Local Variables:
6745 mode: change-log
6746 left-margin: 8
6747 fill-column: 74
6748 version-control: never
6749 End:
This page took 0.191031 seconds and 5 git commands to generate.