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