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