* elf-bfd.h (enum elf_reloc_type_class): New.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2
3 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
4 into .rel.dyn resp. .rela.dyn if combreloc.
5 (get_script): If .x linker script is equal to .xn, only put it
6 once into the binary.
7 Add .xc and .xsc scripts.
8 (parse_args): Handle -z combreloc and -z nocombreloc.
9 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
10 For .xc and .xsc scripts put all .rel* or .rela* input sections
11 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
12 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
13 is elf.
14 Strip trailing whitespace from script.
15 Generate .xc and .xsc scripts if requested.
16 * ldmain.c (main): Initialize link_info.combreloc and
17 link_info.spare_dynamic_tags.
18 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
19 (ld_options): Add --spare-dynamic-tags option.
20 (parse_args): Likewise.
21 * ld.texinfo: Document -z combreloc and -z nocombreloc.
22 * ldint.texinfo: Document .xc and .xsc linker scripts.
23 * NEWS: Add notes about -z combreloc and SHF_MERGE.
24
25 2001-08-22 H.J. Lu <hjl@gnu.org>
26
27 * emulparams/elf32fr30.sh: Add a newline.
28
29 2001-08-21 Andreas Jaeger <aj@suse.de>
30
31 * deffilep.y: Add missing prototypes.
32 * pe-dll.c: Likewise.
33
34 2001-08-20 Alan Modra <amodra@bigpond.net.au>
35
36 * ldlang.c (insert_pad): Fix typos in last patch.
37
38 * ldlang.c: When traversing lang_statement_union_type lists,
39 consistently use "header.next" rather than "next".
40 * mpw-eppcmac.c: Likewise.
41 * emultempl/beos.em: Likewise.
42 * emultempl/hppaelf.em: Likewise.
43 * emultempl/pe.em: Likewise.
44 * ldlang.h (union lang_statement_union): Remove "next" field.
45
46 * ldlang.c (insert_pad): Use offsetof macro.
47 (lang_size_sections): Always neuter padding statements.
48 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
49
50 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
51 passed to lang_size_sections.
52 (pe_exe_fill_sections): Likewise.
53 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
54 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
55
56 2001-08-18 Alan Modra <amodra@bigpond.net.au>
57
58 * emultempl/aix.em: Formatting fixes.
59
60 2001-08-18 Alan Modra <amodra@bigpond.net.au>
61
62 * ldlang.c (insert_pad): Make use of an existing pad statement if
63 available. Move code calculating alignment, adjusting section
64 alignment power, and adjusting dot to ..
65 (size_input_section): .. here. Remove unused relax param.
66 (lang_size_sections): Change boolean `relax' param to boolean *.
67 Adjust call to size_input_section. Make use of insert_pad to
68 place pad after the assignment statement. If relaxing, zap
69 padding statements.
70 (reset_memory_regions): Reset output_bfd section sizes too.
71 (relax_again): Move to..
72 (lang_process): ..here. Adjust call to lang_size_sections, and
73 remove duplicated code.
74 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
75
76 2001-08-17 Alan Modra <amodra@bigpond.net.au>
77
78 * ld.texinfo: Document that fill values now use the four least
79 significant bytes.
80 * emulparams/elf32fr30.sh (NOP): Update.
81 * emulparams/elf32mcore.sh: Likewise.
82 * emulparams/elf64_s390.sh: Likewise.
83 * emulparams/elf_i386.sh: Likewise.
84 * emulparams/elf_i386_be.sh: Likewise.
85 * emulparams/elf_i386_chaos.sh: Likewise.
86 * emulparams/elf_i386_ldso.sh: Likewise.
87 * emulparams/elf_s390.sh: Likewise.
88 * emulparams/elf_x86_64.sh: Likewise.
89 * emulparams/i386moss.sh: Likewise.
90 * emulparams/i386nw.sh: Likewise.
91 * emulparams/m68kelf.sh: Likewise.
92 * scripttempl/elf.sc: Update NOP comment.
93 * scripttempl/elfi370.sc: Likewise.
94 * scripttempl/elfm68hc11.sc: Likewise.
95 * scripttempl/elfm68hc12.sc: Likewise.
96 * scripttempl/nw.sc: Likewise.
97
98 2001-08-15 Tom Rix <trix@redhat.com>
99
100 * ldgram.y (saved_script_handle): Initialize to NULL.
101 * ldmain.c (main): Change check on saved_script_handle.
102
103 2001-08-14 Alan Modra <amodra@bigpond.net.au>
104
105 * emultempl/elf32.em: Formatting fixes.
106 (output_prev_sec_find): Test for bfd_ind_section too; do so by
107 looking at sec->owner.
108 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
109 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
110 unused code, and reorganize orphan section placement code.
111
112 * ldlang.c (wild_doit): Rename to lang_add_section.
113 * ldlang.h: Here too.
114 * mpw-elfmips.c: And here.
115 * emultempl/beos.em: And here.
116 * emultempl/elf32.em: And here.
117 * emultempl/hppaelf.em: And here.
118 * emultempl/pe.em: And here.
119
120 2001-08-13 Richard Henderson <rth@redhat.com>
121
122 * emultempl/needrelax.em: New file.
123 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
124 * Makefile.am (eelf64_ia64.c): Depend on it.
125 * Makefile.in: Rebuild.
126
127 2001-08-13 Alan Modra <amodra@bigpond.net.au>
128
129 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
130 output_section is set non-NULL.
131
132 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
133 `true' for SEC_EXCLUDE sections so that the generic code doesn't
134 needlessly create an output_section_statement. Treat a correctly
135 named output_section_statement with NULL bfd_section as compatible.
136
137 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
138
139 * emultempl/generic.em: Support EXTRA_EM_FILE.
140 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
141 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
142 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
143 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
144 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
145 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
146 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
147 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
148 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
149 LDEMUL_FIND_POTENTIAL_LIBRARIES.
150
151 2001-08-12 Richard Henderson <rth@redhat.com>
152
153 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
154 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
155 scripttempl/v850.sc: Keep .jcr data.
156
157 2001-08-12 H.J. Lu <hjl@gnu.org>
158 Andrew Haley <aph@cambridge.redhat.com>
159 Nick Clifton <nickc@redhat.com>
160
161 * ldgram.y (had_script): Change name to saved_script_handle.
162 Change type to file handle.
163 * ld.h (had_script): Rename and retype.
164 * ldfile.c (ldfile_open_command_file): Save the file handle
165 used in saved_script_handle.
166 * lexsup.c (parse_args): Do not allow -c option to alter
167 saved_script_handle.
168 * ldmain.c (main): Print out the linker script used if
169 --verbose is given. Check saved_script_handle to obtain the
170 external linker script used, or if NULL, dump the builtin
171 script.
172 * ld.texinfo: Document that --verbose now dumps the linker
173 script used, regardless of whether it was an internal or an
174 external script.
175
176 2001-08-10 Andreas Jaeger <aj@suse.de>
177
178 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
179 to build warnings.
180 * configure: Regenerate.
181
182 2001-08-09 Alan Modra <amodra@bigpond.net.au>
183
184 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
185
186 * scripttempl/elf.sc: Move non-text .dynamic section before
187 .plt/.got/.sdata* group.
188 (OTHER_GOT_SECTIONS): Move to immediately after .got.
189 (OTHER_SDATA_SECTIONS): Add.
190 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
191 OTHER_GOT_SECTIONS.
192 * emulparams/crislinux.sh: Likewise.
193 * emulparams/elf32b4300.sh: Likewise.
194 * emulparams/elf32bmip.sh: Likewise.
195 * emulparams/elf32bmipn32.sh: Likewise.
196 * emulparams/elf32bsmip.sh: Likewise.
197 * emulparams/elf32btsmip.sh: Likewise.
198 * emulparams/elf32ebmip.sh: Likewise.
199 * emulparams/elf32elmip.sh: Likewise.
200 * emulparams/elf32l4300.sh: Likewise.
201 * emulparams/elf32lmip.sh: Likewise.
202 * emulparams/elf32lsmip.sh: Likewise.
203 * emulparams/elf32ltsmip.sh: Likewise.
204 * emulparams/elf64bmip.sh: Likewise.
205 * emulparams/elf64btsmip.sh: Likewise.
206 * emulparams/elf64ltsmip.sh: Likewise.
207
208 2001-08-08 Alan Modra <amodra@bigpond.net.au>
209
210 * genscripts.sh: Source the emulparams script before each output
211 script is generated so that variables like `RELOCATING' may affect
212 variables defined in the emulparams script.
213
214 2001-08-04 Alan Modra <amodra@bigpond.net.au>
215
216 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
217 order.
218
219 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
220 ie. iterate over wild_statement.section_list.
221 (gld${EMULATION_NAME}_place_orphan): Likewise.
222
223 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
224
225 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
226 .fini[0-4] sections used by _exit
227 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
228 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
229 * scripttempl/elfm68hc11.sc: Likewise.
230
231 2001-08-03 H.J. Lu <hjl@gnu.org>
232
233 * emultempl/beos.em (init): Add the missing initialization.
234
235 2001-08-03 Alan Modra <amodra@bigpond.net.au>
236
237 * ld.texinfo (Input Section Basics): Clarify ordering of output
238 sections.
239 * ldlang.c (callback_t): Add wildcard_list param.
240 (walk_wild_section): Remove "section" param. Rewrite for
241 lang_wild_statement_type change. Remove unique_section_p test.
242 (walk_wild_file): Remove "section" param.
243 (walk_wild): Remove "section" and "file" params.
244 (lang_gc_wild): Likewise.
245 (wild): Likewise. Modify for lang_wild_statement_type change.
246 (wild_sort): Likewise. Add "sec" param.
247 (gc_section_callback): Likewise.
248 (output_section_callback): Likewise. Do unique_section_p test.
249 (map_input_to_output_sections): Modify call to wild.
250 (lang_gc_sections_1): Likewise.
251 (print_wild_statement): Modify for lang_wild_statement_type
252 change.
253 (lang_add_wild): Replace filename, filenames_sorted param with
254 filespec. Replace section_name, sections_sorted,
255 exclude_filename_list with section_list.
256 * ldlang.h (lang_add_wild): Here too.
257 (lang_wild_statement_type): Replace section_name, sections_sorted,
258 and exclude_filename_list with section_list.
259 * ldgram.y (current_file): Delete.
260 (%union): Add wildcard_list.
261 (file_NAME_list): Set type to wildcard_list. Build a linked list
262 rather than calling lang_add_wild for each entry.
263 (input_section_spec_no_keep): Call lang_add_wild here instead.
264 * ld.h (struct wildcard_list): Declare.
265 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
266
267 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
268
269 * ldmain.c (main): initialize link_info.pei386_auto_import
270 * pe-dll.c: new tables for auto-export filtering
271 (auto_export): change API, pass abfd for contextual filtering.
272 Loop thru tables of excluded symbols instead of comparing
273 "by hand".
274
275 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
276
277 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
278 static variable current_sec (static struct sec *). Add
279 forward declaration for add_bfd_to_link.
280 (process_def_file): Don't export undefined symbols. Do not
281 export symbols starting with "_imp__". Call auto_export()
282 with new API.
283 (pe_walk_relocs_of_symbol): New function.
284 (generate_reloc): add optional extra debugging
285 (pe_dll_generate_def_file): eliminate extraneous initial blank
286 line in output
287 (make_one): enlarge symtab to make room for __nm__ symbols
288 (DATA auto-import support).
289 (make_singleton_name_thunk): New function.
290 (make_import_fixup_mark): New function.
291 (make_import_fixup_entry): New function.
292 (pe_create_import_fixup): New function.
293 (add_bfd_to_link): Specify that 'name' argument is a CONST
294 char *.
295 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
296 declare new functions pe_walk_relocs_of_symbol and
297 pe_create_import_fixup.
298 * emultempl/pe.em: add new options --enable-auto-import,
299 --disable-auto-import, and --enable-extra-pe-debug.
300 (make_import_fixup): New function.
301 (pe_find_data_imports): New function.
302 (pr_sym): New function.
303 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
304 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
305 CODE.
306
307 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
308
309 * ld.texinfo: add additional documentation for
310 --export-all-symbols. Document --out-implib,
311 --enable-auto-image-base, --disable-auto-image-base,
312 --dll-search-prefix, --enable-auto-import, and
313 --disable-auto-import.
314 * ldint.texinfo: Add detailed documentation on auto-import
315 implementation.
316
317 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
318
319 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
320 example.
321
322 2001-07-24 Alan Modra <amodra@bigpond.net.au>
323
324 * Makefile.am: Update dependencies with "make dep-am".
325 * Makefile.in: Regenerate
326
327 2001-07-23 Alan Modra <amodra@bigpond.net.au>
328
329 * ldcref.c (check_section_sym_xref): New function.
330 (check_nocrossrefs): Call it.
331 (check_nocrossref): Interate over h->refs here instead of..
332 (check_refs): ..here. Pass in the symbol name, section, and bfd
333 rather than hash_entry pointers.
334 (struct check_refs_info): Keep symbol name rather than hash entry.
335 Remove "same".
336 (check_reloc_refs): Tweak for above changes in check_refs_info.
337 Only report references to section syms when symname is NULL to
338 prevent duplicate messages for the same reloc.
339
340 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
341
342 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
343 available. Do not print NULL trees.
344 (exp_print_token): Print unknown tokens with values > 126 as
345 decimal values not ASCII characters.
346
347 * ldlang.c (lang_leave_overlay): If a region is specified assign
348 it to all sections inside the overlay unless they have been
349 assigned to the own, non-default, memory region.
350
351 * README: Add header for consistency with other README files.
352
353 2001-07-14 H.J. Lu <hjl@gnu.org>
354
355 * emultempl/elf32.em (output_prev_sec_find): Never return
356 bfd_abs_section_ptr, bfd_com_section_ptr nor
357 bfd_und_section_ptr.
358
359 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
360
361 * Makefile.am (em32relf.c): Change dependency from generic.em to
362 elf32.em.
363 * Makefile.in: Regenerate.
364
365 2001-07-14 matthew green <mrg@eterna.com.au>
366
367 * configure.tgt (i386-*-netbsdelf*): New target.
368 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
369
370 2001-07-13 Jakub Jelinek <jakub@redhat.com>
371
372 * emultempl/elf32.em (output_prev_sec_find): New.
373 (place_orphan): Use it.
374
375 2001-07-11 H.J. Lu <hjl@gnu.org>
376
377 * ldmain.c (main): Fix typos in the last change.
378
379 2001-07-11 Jakub Jelinek <jakub@redhat.com>
380
381 * ldmain.c (main): Disallow -F and -f without -shared.
382
383 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
384
385 * emultempl/pe.em (after_open): Check for the output_bfd not
386 having any coff_data structure allocated to it.
387
388 2001-07-09 David O'Brien <obrien@FreeBSD.org>
389
390 * emultempl/elf32.em: Do not assuming that contents of the buffer
391 returned from basename function will remain unchanged accross other
392 function calls.
393
394 2001-07-03 H.J. Lu <hjl@gnu.org>
395
396 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
397 2001-07-03. It creates dynamic entries even for static binaries.
398
399 2001-07-03 Jakub Jelinek <jakub@redhat.com>
400
401 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
402 (DYNAMIC): Use it to reserve few dynamic entries for
403 post-linking tools.
404
405 2001-06-27 Alan Modra <amodra@bigpond.net.au>
406
407 * emulparams/hppa64linux.sh: New file.
408 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
409 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
410 (ehppa64linux.c): Add rule to make it.
411 Run "make dep-am".
412 * Makefile.in: Regenerate.
413
414 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
415
416 * ld.texinfo (Options, -r): Mention restrictions when using
417 different object formats.
418
419 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
420
421 * ldlang.c (lang_check): Emit fatal error if relocatable link
422 between different object flavours with relocations in input.
423
424 2001-06-19 H.J. Lu <hjl@gnu.org>
425
426 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
427 (--version-script): Mention the language support.
428
429 2001-06-19 H.J. Lu <hjl@gnu.org>
430
431 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
432
433 2001-06-18 H.J. Lu <hjl@gnu.org>
434
435 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
436 (diststuff): Add $(MANS).
437 * Makefile.in: Regenerated.
438
439 * ld.1: Removed.
440
441 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
442
443 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
444 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
445 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
446 * ld.h (args_type): Remove member export_dynamic. All users
447 changed to use struct bfd_link_info member.
448
449 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
450 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
451 * Makefile.in: Regenerate.
452
453 2001-06-18 H.J. Lu <hjl@gnu.org>
454
455 * ldlang.c (init_os): Add the newline to the einfo call.
456 (lang_check): Likewise.
457 (lang_do_version_exports_section): Likewise.
458
459 2001-06-15 H.J. Lu <hjl@gnu.org>
460
461 * lexsup.c (parse_args); Save optind to report unrecognized
462 option.
463
464 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
465
466 * ldlang.c (lang_check): Emit fatal error if relocatable link
467 between different object flavours.
468
469 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
470 Set new link_info member export_dynamic.
471 * ldmain.c (main): Initialize new link_info member export_dynamic.
472
473 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
474
475 * ldlang.c (walk_wild): Only call walk_wild_file if
476 lookup_name returns something.
477 (lookup_name): If load_symbols fails, return NULL.
478 (load_symbols): Change to a boolean function.
479 (open_input_bfds): If load_symbols fails then do not make the
480 executable.
481
482 2001-06-08 Alan Modra <amodra@bigpond.net.au>
483
484 * ldlang.c (record_bfd_errors): Remove.
485
486 * emultempl/aix.em: Fix copyright dates.
487
488 2001-06-07 Andreas Jaeger <aj@suse.de>
489
490 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
491 (TEXT_START_ADDR): Likewise.
492
493 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
494
495 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
496
497 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
498
499 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
500
501 2001-05-31 H.J. Lu <hjl@gnu.org>
502
503 * ldlang.c (open_input_bfds): Don't change the bfd error
504 handler whilst loading symbols.
505
506 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
507
508 * configure.tgt: Remove i370-mvs architecture, it is not currently
509 supported.
510
511 2001-05-25 H.J. Lu <hjl@gnu.org>
512
513 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
514 like emulparams/aixppc.sh.
515
516 2001-05-25 H.J. Lu <hjl@gnu.org>
517
518 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
519 setting of output_filename after bfd_scan_arch.
520 * emultempl/pe.em: Likewise.
521
522 2001-05-25 H.J. Lu <hjl@gnu.org>
523
524 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
525 like emulparams/aixppc.sh.
526
527 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
528 instead of ${srcdir}/emultempl/stringify.sed.
529
530 2001-05-25 Timothy Wall <twall@oculustech.com>
531
532 * emulparams/elf64_aix.sh: Change settings to match IBM linker
533 output.
534
535 2001-05-25 Alan Modra <amodra@one.net.au>
536
537 * configure.host: Replace linuxoldld with linux*oldld.
538 * configure.tgt: Likewise.
539
540 2001-05-24 H.J. Lu <hjl@gnu.org>
541
542 * emultempl/stringify.sed: Removed again.
543
544 2001-05-24 H.J. Lu <hjl@gnu.org>
545
546 * emultempl/aix.em (OUTPUT_ARCH): Defined.
547 (gld${EMULATION_NAME}_before_parse): Initialize
548 ldfile_output_architecture, ldfile_output_machine and
549 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
550 * emultempl/beos.em: Likewise.
551 * emultempl/elf32.em: Likewise.
552 * emultempl/linux.em: Likewise.
553 * emultempl/mipsecoff.em: Likewise.
554 * emultempl/pe.em: Likewise.
555 * emultempl/sunos.em: Likewise.
556
557 2001-05-24 Tom Rix <trix@redhat.com>
558
559 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
560 udate import file format.
561 (change_symbol_mode) New, same
562 (is_syscall) New, same
563 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
564 * emulparams/aixppc64.sh : same
565 * emulparams/aixrs6.sh : same
566 * emulparams/ppcmacos.sh : same
567 * emultempl/aix.em : use strtoull to parse options
568 * Makefile.am : add eaixppc64 emulation for xcoff64
569 * Makefile.in : same
570 * configure.tgt : same
571
572 * scripttempl/aix.sc : default text section offset to 0x10000000
573 default data section offset to 0x20000000
574 add .sv3264 and .sv64 pseudo sections
575 loader and debug sections use the currect section offset.
576
577 * emultempl/aix.em : Add xcoff64 support
578 Add -binitfini support
579 (gld${EMULATION_NAME}_before_parse) -binitfini
580 (gld${EMULATION_NAME}_parse_args) same
581 (gld${EMULATION_NAME}_before_allocation) format change for special
582 sections
583
584 * emulparams/aixppc64.sh : New file for xcoff64 support
585
586 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
587
588 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
589 variable to avoid non-portable shell construct.
590
591 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
592
593 * ldmain.c (get_emulation): Add -mips5 command line argument.
594
595 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
596
597 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
598 (ELF_INTERPRETER_NAME): Define it.
599 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
600 it.
601 * configure.tgt (targ_emul, targ_extra_emuls)
602 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
603 as primary, elf_i386 as extra.
604 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
605 (eelf_i386_ldso.c): New rule.
606 * Makefile.in: Rebuilt.
607
608 2001-05-22 Nick Clifton <nickc@redhat.com>
609
610 * lexsup.c (ld_options): Allow -I to be an alias for
611 --dynamic-linker. This is for Solaris compatability.
612 * ld.texinfo: Document that -I can be used.
613 * ld.1: Regenerate.
614
615 2001-05-16 Alan Modra <amodra@one.net.au>
616
617 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
618 whether an input section is the first one assigned to an output
619 section.
620 Assorted formatting fixes.
621
622 2001-05-14 DJ Delorie <dj@delorie.com>
623
624 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
625 * Makefile.in: Ditto.
626
627 2001-05-11 Jakub Jelinek <jakub@redhat.com>
628
629 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
630 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
631 output sections.
632 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
633
634 2001-05-11 Jakub Jelinek <jakub@redhat.com>
635
636 * ldlang.c (lang_process): Call bfd_merge_sections.
637
638 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
639
640 * ldgram.y: Fix typo.
641
642 2001-05-03 H.J. Lu <hjl@gnu.org>
643
644 * emultempl/elf32.em: Include "libiberty.h".
645 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
646 basename of the bfd filename.
647 (gld${EMULATION_NAME}_stat_needed): Likewise.
648 (gld${EMULATION_NAME}_try_needed): Likewise.
649 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
650
651 2001-05-02 H.J. Lu <hjl@gnu.org>
652
653 * emultempl/pe.em: Include <ctype.h>.
654
655 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
656
657 * emulparams/elf32openrisc.sh: New file.
658
659 * Makefile.am: Add OpenRISC target.
660 * Makefile.in: Regenerated.
661
662 * configure.tgt: Add openrisc-*-* mapping.
663
664 2001-05-02 Nick Clifton <nickc@redhat.com>
665
666 * emultempl/aix.em: Replace buystring with xstrdup.
667 * emultempl/beos.em: Replace buystring with xstrdup.
668
669 2001-05-02 H.J. Lu <hjl@gnu.org>
670
671 * ldfile.c: Include "libiberty.h".
672 * ldlex.l: Likewise.
673
674 * ldmisc.c (buystring): Removed.
675 * ldmisc.h: Likewise.
676
677 * ldfile.c: Replace buystring with xstrdup.
678 * ldlang.c: Likewise.
679 * ldlex.l: Likewise.
680 * ldmain.c: Likewise.
681 * ldmisc.c: Likewise.
682 * lexsup.c: Likewise.
683 * mpw-eppcmac.c: Likewise.
684
685 2001-04-30 Andreas Jaeger <aj@suse.de>
686
687 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
688
689 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
690
691 * ldlang.c (load_symbols): Give emulation a chance
692 to process unrecognized file before fatal error is
693 reported, not after.
694
695 2001-04-27 Sean McNeil <sean@mcneil.com>
696
697 * configure.tgt: Add arm-vxworks target.
698 * scripttempl/armcoff.sc: Support .text or .data as a section name
699 prefix.
700 Define _etext.
701
702 2001-04-13 J.T. Conklin <jtc@redback.com>
703
704 * ld.texinfo: Document --fatal-warnings.
705 * ld.1: Regenerate.
706
707 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
708 warnings have been turned into errors.
709 * lexsup.c (OPTION_WARN_FATAL): Define.
710 (ld_options): Entry for --fatal-warnings.
711 (parse_args): Handle OPTION_WARN_FATAL.
712 * ld.h (ld_config_type): Add fatal_warnings field.
713
714 2001-04-13 Jakub Jelinek <jakub@redhat.com>
715
716 * ldmain.c (main): Default to discard_sec_merge.
717 * lexsup.c (OPTION_DISCARD_NONE): Define.
718 (ld_options): Add --discard-none.
719 (parse_args): Handle OPTION_DISCARD_NONE.
720 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
721 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
722 all its input sections match.
723
724 2001-04-05 Steven J. Hill <sjhill@cotw.com>
725
726 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
727 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
728 (eelf32ltsmip.c): New target.
729 (eelf64btsmip.c): Likewise.
730 (eelf64ltsmip.c): Likewise.
731 * Makefile.in: Regenerated.
732
733 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
734 target.
735 (mips*-*-linux-gnu*): Likewise.
736
737 * emulparams/elf32ltsmip.sh: New. Traditional little endian
738 MIPS taget.
739 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
740 target.
741 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
742 endian target.
743
744 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
745
746 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
747 correct value of __Stext here.
748 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
749 .startup section.
750
751 * emulparams/crislinux.sh: Remove FIXME.
752
753 2001-04-02 Alan Modra <alan@linuxcare.com.au>
754
755 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
756 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
757
758 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
759
760 * configure.tgt (cris-*-*): Change default emulation to criself.
761 (cris-*-*aout*): New rule.
762
763 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
764
765 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
766 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
767
768 2001-03-26 Andreas Jaeger <aj@suse.de>
769
770 * ld.texinfo (Overview): Fix syntax in texi code.
771
772 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
773
774 * ld.texinfo: Put @c man indications to generate the ld man page.
775 When generating man, define all the variables. Define SEEALSO
776 and SYNOPSIS. Re-organize some lines to avoid the cross references.
777 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
778 (ld.1): Generate from ld.texinfo.
779 * Makefile.in: Regenerate.
780
781 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
782
783 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
784 and '-fdata-sections'. Set the VMA of STABS sections to zero.
785
786 2001-03-17 Ulrich Drepper <drepper@redhat.com>
787
788 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
789 is an absolute path look only for this file and not along the path.
790
791 2001-03-17 Ulrich Drepper <drepper@redhat.com>
792
793 * emultempl/elf32.em (OPTION_GROUP): New macro.
794 Add new option Bgroup to longopts.
795 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
796 (gld*_list_options): Add -Bgroup and -z defs.
797 * ld.1: Document -Bgroup and -z defs.
798 * ld.texinfo: Likewise.
799
800 2001-03-07 Michael Meissner <meissner@redhat.com>
801
802 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
803 with sections created by -fdata-sections.
804 (.dynbss,.bss): Ditto.
805
806 2001-03-05 Alan Modra <alan@linuxcare.com.au>
807
808 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
809 after_allocation_default, not gld..._before_allocation.
810
811 2001-02-27 Alan Modra <alan@linuxcare.com.au>
812
813 * configure.in (BFD_VERSION): New.
814 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
815 * configure: Regenerate.
816 * Makefile.am: Run "make dep-am"
817 * Makefile.in: Regenerate.
818
819 2001-02-26 Timothy Wall <twall@cygnus.com>
820
821 * emulparams/elf64_aix.sh: Add additional read-only sections;
822 uncomment lines which are now required.
823
824 2001-02-26 H.J. Lu <hjl@gnu.org>
825
826 * ldlang.c (open_input_bfds): Set the bfd error handler so
827 that problems can be caught whilst loading symbols.
828 (record_bfd_errors): New function: Report BFD errors and mark
829 the executable output as being invalid.
830
831 2001-02-22 Timothy Wall <twall@cygnus.com>
832
833 * configure.host: Add configuration for ia64-*-aix*.
834 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
835 Add dependencies for eelf64_aix.c.
836 * Makefile.in: Regenerate.
837 * configure.tgt: Add ia64-*-aix* mapping.
838 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
839 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
840 AIX-specific test.
841
842 2001-02-20 H.J. Lu <hjl@gnu.org>
843
844 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
845 false if we found the file.
846
847 2001-02-18 David O'Brien <obrien@FreeBSD.org>
848
849 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
850 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
851
852 2001-02-18 lars brinkhoff <lars@nocrew.org>
853
854 * Makefile.am: Add PDP-11 target.
855 * configure.tgt: Likewise.
856 * emulparams/pdp11.sh: New file.
857
858 2001-02-17 David O'Brien <obrien@FreeBSD.org>
859
860 * configure.host: Add a generic FreeBSD configuration entry such that
861 all [modern] FreeBSD systems on all platforms will look the same.
862
863 2001-02-14 H.J. Lu <hjl@gnu.org>
864
865 * configure.tgt: Remove mention of earmelf_linux26.
866
867 2001-02-13 Richard Henderson <rth@redhat.com>
868
869 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
870
871 2001-02-13 H.J. Lu <hjl@gnu.org>
872
873 * ldexp.h (node_type): Add etree_provided.
874 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
875 type to etree_provided if defined by PROVIDE. Allow updating
876 for etree_provided.
877 (exp_print_tree): Handle etree_provided.
878 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
879 etree_provided.
880
881 2001-02-09 David Mosberger <davidm@hpl.hp.com>
882
883 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
884 .IA_64.unwind.* pattern to unwind table section and
885 .IA_64.unwind_info* pattern to unwind info section.
886
887 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
888
889 * Makefile.am: Add linux target for S/390.
890 * Makefile.in: Likewise.
891 * configure.host: Likewise.
892 * configure.tgt: Likewise.
893 * emulparams/elf64_s390.sh: New file.
894 * emulparams/elf_s390.sh: New file.
895
896 2001-02-09 Jakub Jelinek <jakub@redhat.com>
897
898 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
899 targ_extra_libpath.
900 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
901
902 2001-02-06 Philip Blundell <philb@gnu.org>
903
904 * Makefile.am: Remove mention of earmelf_linux26.
905 * Makefile.in: Regenerate.
906
907 2001-02-04 Philip Blundell <philb@gnu.org>
908
909 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
910 * emulparams/armelf_linux26.sh: Delete.
911 * configure.tgt: Remove mention of armelf_linux26 emulation.
912
913 2001-02-01 Nick Clifton <nickc@redhat.com>
914
915 * ld.1: Replace occurances of -oformat with --oformat.
916
917 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
918
919 * ldlang.c (lang_leave_overlay): Don't set lma_region when
920 load_base is specified.
921
922 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
923
924 * emultempl/elf32.em: Correct spelling in comments and listed
925 options.
926
927 2001-01-23 Alan Modra <alan@linuxcare.com.au>
928
929 * ldlang.c (lang_leave_overlay): Only set lma_region from the
930 default for the first section of a group of overlay sections.
931
932 2001-01-22 Alan Modra <alan@linuxcare.com.au>
933
934 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
935 * Makefile.in: Regenerate.
936 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
937 Check for null tool_dir.
938
939 2001-01-16 Jim Wilson <wilson@redhat.com>
940
941 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
942 and IA_64.unwind.info.
943
944 2001-01-16 H.J. Lu <hjl@gnu.org>
945
946 * ldlang.c (lang_check): Merge the private data only if the
947 input file has contents.
948
949 2001-01-14 Alan Modra <alan@linuxcare.com.au>
950
951 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
952
953 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
954 enabling search for libmilli. On a relocatable link, make .text
955 sections unique.
956 (LDEMUL_AFTER_PARSE): Define.
957 (hppaelf_finish): Correct spelling of relocatable in comments.
958
959 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
960 rummage through the script for sections on the unique list.
961 Correct length of strncmp for ".note".
962 (gld${EMULATION_NAME}_check_needed): Rearrange function.
963
964 * ldlang.c (unique_section_list): New var.
965 (unique_section_p): New function.
966 (walk_wild_section): Don't match sections on unique_section_list.
967 (lang_add_unique): New function.
968 Correct spelling of relocatable in comments.
969
970 * ldlang.h (struct unique_sections): Declare.
971 (unique_section_list): Declare.
972 (unique_section_p): Declare.
973 (lang_add_unique): Declare.
974
975 * lexsup.c (ld_options): Allow --unique to take an optional arg.
976 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
977
978 * ld.texinfo (--unique): Update.
979
980 2001-01-13 Nick Clifton <nickc@redhat.com>
981
982 * lexsup.c (parse_args): Remove spurious white space.
983
984 2001-01-12 Nick Clifton <nickc@redhat.com>
985
986 * lexsup.c (parse_args): Update copyright date.
987
988 2001-01-12 Philip Blundell <pb@futuretv.com>
989
990 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
991
992 2001-01-10 Kazu Hirata <kazu@hxi.com>
993
994 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
995 * scripttempl/h8300h.sc: Fix formatting.
996 * scripttempl/h8300s.sc: Likewise.
997 * scripttempl/h8500.sc: Likewise.
998 * scripttempl/h8500b.sc: Likewise.
999 * scripttempl/h8500c.sc: Likewise.
1000 * scripttempl/h8500m.sc: Likewise.
1001 * scripttempl/h8500s.sc: Likewise.
1002
1003 2000-01-07 David O'Brien <obrien@BSDi.com>
1004
1005 * emultempl/elf32.em: Only perform Linux ld hints processing when
1006 targeting Linux.
1007
1008 2001-01-07 Philip Blundell <philb@gnu.org>
1009
1010 * ld.texinfo (Bug Reporting): Update email address for reports.
1011
1012 2000-12-31 Nick Clifton <nickc@redhat.com>
1013
1014 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1015 options by checking for a return value of '?' not -1.
1016
1017 2000-12-28 Nick Clifton <nickc@redhat.com>
1018
1019 * lexsup.c (struct ld_option): Add new enum value:
1020 EXACTLY_TWO_DASHES.
1021 (ld_options[]): Change -omagic, -output and -oformat options
1022 to be EXACTLY_TWO_DASHES.
1023 (OUTPUT_COUNT): Use ARRAY_SIZE.
1024 (parse_args): Change parameter 'argc' to unsigned.
1025 Place EXACTLY_TWO_DASHES options into new really_longopts
1026 array.
1027 If getopt_long_only fails, try calling getopt_long using the
1028 really_longopts array.
1029 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1030 TWO_DASHES options.
1031
1032 * ldlex.h: Fix prototype of parse_args.
1033
1034 * ld.texinfo: Document that long options starting with 'o'
1035 must be preceeded by two dashes. Change example of a single
1036 dashed long option from -oformat to -trace-symbol.
1037
1038 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1039
1040 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1041 (longopts[]): New --no-default-excludes option.
1042 (gld_${EMULATION_NAME}_list_options): Document.
1043 (gld_${EMULATION_NAME}_parse_args): Handle.
1044
1045 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1046
1047 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1048 whitespace, it breaks the K&R C preprocessor.
1049
1050 2000-12-11 DJ Delorie <dj@redhat.com>
1051
1052 * ld.texinfo: Add notes about --whole-archive and gcc.
1053
1054 2000-11-18 Fred Fish <fnf@be.com>
1055
1056 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1057 (ld_options): Entry for --allow-shlib-undefined.
1058 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1059 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1060 to false.
1061 * ld.texinfo: Document new command line switch.
1062
1063 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
1064
1065 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1066 .fixup is actually read/write.
1067 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1068 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1069 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1070
1071 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
1072
1073 * NEWS: Add note about x86_64 architecture.
1074
1075 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
1076
1077 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1078 Set DWARF2 sections to a VMA of zero.
1079
1080 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1081
1082 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
1083 New targets.
1084 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1085 (sparc*-*-rtems*): Switched from a.out to ELF.
1086
1087 2000-11-30 Jan Hubicka <jh@suse.cz>
1088
1089 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1090 (eelf_x86_64.c): New.
1091 * Makefile.in: Regenerate.
1092 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1093 * emulparams/elf_x86_64.sh: New.
1094
1095 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
1096
1097 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1098 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1099
1100 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1101 merging non-a.out sections into CONSTRUCTING.
1102
1103 2000-11-28 Nick Clifton <nickc@redhat.com>
1104
1105 * ld.1 (COPYING): Mention that the GNU Free Documentation
1106 License is present in the sources, but not the output, and
1107 also available from the GNU website.
1108 (GNU Free Documentation License): Comment out this section.
1109
1110 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
1111
1112 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1113 does not use them.
1114
1115 2000-11-25 David O'Brien <obrien@FreeBSD.org>
1116
1117 * ld.1: Remove old date so it does not give the impression the manpage
1118 is way out of date.
1119
1120 2000-11-24 Nick Clifton <nickc@redhat.com>
1121
1122 * configure.tgt (xscale-coff): Add target.
1123 (xscale-elf): Add target.
1124
1125 2000-11-24 Fred Fish <fnf@be.com>
1126
1127 * ldmain.c (main): Remove redundant init of config.make_executable
1128 to true.
1129
1130 2000-11-15 Richard Henderson <rth@redhat.com>
1131
1132 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1133
1134 2000-11-14 Kazu Hirata <kazu@hxi.com>
1135
1136 * scripttempl/h8300.sc: Fix formatting.
1137 * scripttempl/h8300h.sc: Likewise.
1138 * scripttempl/h8300s.sc: Likewise.
1139
1140 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
1141
1142 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1143
1144 2000-11-09 Philip Blundell <pb@futuretv.com>
1145
1146 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1147 around orphan sections whose names can be represented in C.
1148
1149 2000-11-07 Jim Wilson <wilson@redhat.com>
1150
1151 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1152 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1153
1154 2000-11-06 Nick Clifton <nickc@redhat.com>
1155
1156 * ld.texinfo: Add GNU Free Documentation License.
1157 * ldint.texinfo: Add GNU Free Documentation License.
1158 * ld.1: Add GNU Free Documentation License.
1159
1160 2000-11-05 Alan Modra <alan@linuxcare.com.au>
1161
1162 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1163 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1164
1165 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1166 Move 2000-11-02 Makefile.in changes to this file.
1167 * Makefile.in: Regenerate.
1168
1169 2000-11-03 Nick Clifton <nickc@redhat.com>
1170
1171 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1172 constructors and destructors.
1173 * scripttempl/h8300h.sc: Ditto.
1174 * scripttempl/h8300s.sc: Ditto.
1175 * scripttempl/h8500.sc: Ditto.
1176 * scripttempl/h8500b.sc: Ditto.
1177 * scripttempl/h8500c.sc: Ditto.
1178 * scripttempl/h8500m.sc: Ditto.
1179 * scripttempl/h8500s.sc: Ditto.
1180 * scripttempl/v850.sc: Ditto.
1181 * scripttempl/w65.sc: Ditto.
1182 * scripttempl/z8000.sc: Ditto.
1183
1184 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1185
1186 * Makefile.in (e_i386_chaos.c): New rule.
1187 (ALL_EMULATIONS): Added e_i386_chaos.o.
1188 * emulparams/elf_i386_chaos.sh: New file.
1189 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1190
1191 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1192
1193 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1194 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1195 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1196 library path suffix.
1197 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1198
1199 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
1200
1201 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1202 for consecutive sections.
1203
1204 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1205
1206 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1207 options.
1208 * ld.texinfo: Added notes about this new option.
1209
1210 2000-10-16 Nick Clifton <nickc@redhat.com>
1211
1212 * emultempl/pe.em (_after_open): Add tests of return values from
1213 bfd functions. Emit appropriate error messages if necessary.
1214
1215 2000-10-13 Nick Clifton <nickc@redhat.com>
1216
1217 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
1218 local variables - they are not used, but leave in the call to
1219 bfd_canonicalize_symtab.
1220 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1221 pe_dll_search_prefix.
1222
1223 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
1224
1225 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1226 (longopts): New --dll-search-prefix option.
1227 (gld_${EMULATION_NAME}_list_options): Document.
1228 (gld_${EMULATION_NAME}_parse_args): Handle.
1229 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1230 dynamically, search for a dll named '<prefix><basename>.dll'
1231 in preference to 'lib<basename>.dll' if --dll-search-prefix
1232 is specified.
1233
1234 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1235
1236 * ldlang.c (section_already_linked): Set kept_section instead of
1237 sec->comdat->sec.
1238
1239 2000-10-10 Kazu Hirata <kazu@hxi.com>
1240
1241 * deffile.h: Fix formatting.
1242 * lexsup.c: Likewise.
1243 * mri.c: Likewise.
1244
1245 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1246
1247 * pe-dll.c (make_one): Do not generate code thunk for DATA
1248 exports.
1249 (process_def_file): deduce DATA flag for auto-export sumbols.
1250
1251 2000-10-09 Kazu Hirata <kazu@hxi.com>
1252
1253 * ld.h: Fix formatting.
1254 * ldcref.c: Likewise.
1255 * ldctor.h: Likewise.
1256 * ldemul.c: Likewise.
1257 * ldemul.h: Likewise.
1258 * ldexp.c: Likewise.
1259 * ldexp.h: Likewise.
1260 * ldfile.c: Likewise.
1261 * ldfile.h: Likewise.
1262 * ldlang.c: Likewise.
1263 * ldlang.h: Likewise.
1264 * ldmain.c: Likewise.
1265 * pe-dll.c: Likewise.
1266
1267 * pe-dll.c: Revert some formatting fixes.
1268
1269 2000-10-08 Kazu Hirata <kazu@hxi.com>
1270
1271 * pe-dll.c: Fix formatting.
1272
1273 2000-10-05 Kazu Hirata <kazu@hxi.com>
1274
1275 * ldlang.c: Fix formatting.
1276
1277 2000-10-03 DJ Delorie <dj@redhat.com>
1278
1279 * pe-dll.c (fill_edata): initialize entire block
1280 (make_one): fill in correct section.
1281
1282 2000-10-03 Kazu Hirata <kazu@hxi.com>
1283
1284 * ldexp.c: Fix formatting.
1285
1286 2000-10-02 DJ Delorie <dj@redhat.com>
1287
1288 * emultempl/pe.em (gld_*_after_open): detect case where there two
1289 import libraries for same dll; rename one to ensure proper link
1290 order.
1291
1292 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1293 typo
1294 (generate_edata): fix typo
1295
1296 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
1297
1298 * scripttempl/crisaout.sc (ENTRY): Now __start.
1299 (.text): Add default setting for __start.
1300 Remove CONSTRUCTORS handling.
1301 (/DISCARD/): Add .gnu.warning.*.
1302 * emulparams/crislinux.sh (ENTRY): Now __start.
1303 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
1304 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
1305 (ENTRY): Now __start.
1306 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
1307 (EXECUTABLE_SYMBOLS): Add default setting for __start.
1308
1309 2000-09-29 Kazu Hirata <kazu@hxi.com>
1310
1311 * deffile.h: Fix formatting.
1312 * ld.h: Likewise.
1313 * ldcref.c: Likewise.
1314 * ldctor.c: Likewise.
1315 * ldctor.h: Likewise.
1316 * ldemul.c: Likewise.
1317 * ldemul.h: Likewise.
1318 * ldexp.c: Likewise.
1319 * ldexp.h: Likewise.
1320 * ldfile.c: Likewise.
1321 * ldfile.h: Likewise.
1322 * ldlang.c: Likewise.
1323 * ldlang.h: Likewise.
1324 * lexsup.c: Likewise.
1325 * mri.c: Likewise.
1326 * pe-dll.c: Likewise.
1327
1328 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1329
1330 * pe-dll.c (process_def_file): Uninitialized data wasn't
1331 exported with --export-all-symbols switch.
1332
1333 2000-09-28 DJ Delorie <dj@redhat.com>
1334
1335 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
1336 noname work properly.
1337
1338 2000-09-28 Alan Modra <alan@linuxcare.com.au>
1339
1340 * ld.texinfo (HPPA ELF32): New section.
1341
1342 * emultempl/hppaelf.em (group_size): New.
1343 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
1344 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
1345 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
1346 options to prevent abbreviations matching.
1347 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
1348 (PARSE_AND_LIST_ARGS_CASES): Handle it.
1349
1350 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1351
1352 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
1353 on the m68*-*-elf target. Make it support COFF input objects.
1354
1355 2000-09-21 Kazu Hirata <kazu@hxi.com>
1356
1357 * ldmain.c: Fix formatting.
1358 * ldmisc.c: Likewise.
1359 * ldver.c: Likewise.
1360 * ldwrite.c: Likewise.
1361
1362 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1363
1364 * ldwrite.c (clone_section): Silence gcc warnings.
1365
1366 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1367
1368 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
1369 out of memory failure.
1370
1371 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
1372 (clone_section): Handle out of memory failures. Rename var to
1373 avoid c++ reserved word.
1374
1375 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1376
1377 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
1378 stub_name param to stub_sec_name.
1379 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
1380
1381 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1382
1383 * emultempl/m68kelf.em: New file.
1384 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
1385 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
1386 * Makefile.in: Regenerate.
1387
1388 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1389
1390 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1391 only as needed.
1392
1393 2000-09-13 Nick Clifton <nickc@redhat.com>
1394
1395 * ldmain.c (multiple_definition): Disable relaxation if
1396 multiple symbol definitions are encountered - otherwise the
1397 linker could abort with an assertion failure.
1398
1399 2000-09-10 Nick Clifton <nickc@redhat.com>
1400
1401 * mri.c: Fix formatting.
1402
1403 2000-09-07 H.J. Lu <hjl@gnu.org>
1404
1405 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1406 * configure: Rebuild.
1407
1408 2000-09-07 H.J. Lu <hjl@gnu.org>
1409
1410 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1411 * Makefile.in: Rebuild.
1412
1413 2000-09-07 Alan Modra <alan@linuxcare.com.au>
1414
1415 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1416 broken list handling. Create __start_SECNAME and __stop_SECNAME
1417 when no place-holder. Add some comments. Test both SEC_CODE and
1418 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
1419 Handle case where no output section statement created.
1420
1421 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1422
1423 * configure.tgt (sh-*-linux*): Added.
1424 * Makefile.am: Added eshelf_linux and eshlelf_linux.
1425 * Makefile.in: Rebuilt.
1426 * emulparams/shelf_linux.sh: New file.
1427 * emulparams/shlelf_linux.sh: New file.
1428
1429 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1430
1431 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1432 try shuffling sections when the orphan happens to be the place
1433 holder. Keep count of unique section names generated so we speed
1434 the search for a new name.
1435
1436 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1437
1438 * configure: Rebuilt with new libtool.m4.
1439
1440 2000-09-05 Nick Clifton <nickc@redhat.com>
1441
1442 * Makefile.in: Regenerate.
1443 * aclocal.m4: Regenerate.
1444 * configure: Regenerate.
1445 * config.in: Regenerate.
1446 * po/ld.pot: Regenerate.
1447
1448 * ldint.texinfo: Remove CVS revision marker - it foils local
1449 comparisons.
1450
1451 * emultempl/ticoff.em: Remove extraneous comma.
1452
1453 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1454
1455 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1456 to stub section flags.
1457 (hppa_for_each_input_file_wrapper): New.
1458 (hppa_lang_for_each_input_file): New.
1459 (lang_for_each_input_file): Define to call above.
1460 (multi_subspace): New.
1461 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1462 (PARSE_AND_LIST_PROLOGUE): Define.
1463 (PARSE_AND_LIST_LONGOPTS): Define.
1464 (PARSE_AND_LIST_OPTIONS): Define.
1465 (PARSE_AND_LIST_ARGS_CASES): Define.
1466 (hppaelf_finish): Call elf32_hppa_set_gp.
1467 (hppaelf_set_output_arch): Remove.
1468 (LDEMUL_SET_OUTPUT_ARCH): Remove.
1469
1470 * emulparams/hppalinux.sh (ELFSIZE): Define.
1471 (MACHINE): Define.
1472 (OTHER_READONLY_SECTIONS): Define.
1473 (DATA_PLT): Define.
1474 (GENERATE_SHLIB_SCRIPT): Define.
1475
1476 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
1477 to const throughout. Change `void *' to `PTR' throughout.
1478 (lang_memory_default): Function is local to file, add `static'.
1479
1480 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1481 (ehppalinux.c): Likewise.
1482 (earmelf.c): Likewise.
1483 (earmelf_linux.c): Likewise.
1484 (earmelf_linux26.c): Likewise.
1485 * Makefile.in: Regenerate.
1486
1487 * ld.h (ld_config_type): Add unique_orphan_sections.
1488 * lexsup.c (OPTION_UNIQUE): Define.
1489 (ld_options): Add "--unique".
1490 (parse_args): Handle it.
1491 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1492 search for an existing output section if unique_orphan_sections is
1493 set. Make use of bfd_get_unique_section_name rather than
1494 duplicating code here.
1495 * ld.texinfo: Describe --unique.
1496
1497 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1498 optional arg to split-by-file.
1499 (parse_args): Handle them.
1500 * ld.texinfo: Update description of these options.
1501 * ldwrite.c (clone_section): Pass in the section name. Replace
1502 local code with bfd_get_unique_section_name.
1503 (split_sections): Tidy code and comments. Use a list traversal
1504 more appropriate to the list construction. Handle cooked section
1505 sizes. Split when split_by_reloc reached rather than exceeded.
1506 Track section size and split when split_by_file reached. Fix
1507 link_order_tail (even though it's not used).
1508 (ldwrite): Modify condition for calling split_sections to suit
1509 changed split_by_reloc and split_by_file.
1510 * ldmain.c (main): Init config.split_by_reloc and
1511 config.split_by_file to -1.
1512 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1513 Change split_by_file to bfd_size_type.
1514
1515 2000-09-02 Nick Clifton <nickc@redhat.com>
1516
1517 * configure.in: Increase version number to 2.10.91.
1518 * NEWS: Mention new ability to support removal of duplicate DWARF2
1519 debug information.
1520 * configure: Regenerate.
1521 * aclocal.m4: Regenerate.
1522 * config.in: Regenerate.
1523
1524 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1525
1526 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1527 sections.
1528 * scripttempl/elf32avr.sc: Ditto.
1529 * scripttempl/elfd10v.sc: Ditto.
1530 * scripttempl/elfd30v.sc: Ditto.
1531 * scripttempl/elfi370.sc: Ditto.
1532 * scripttempl/elfm68hc11.sc: Ditto.
1533 * scripttempl/elfm68hc12.sc: Ditto.
1534 * scripttempl/elfi386beos.sc: Ditto.
1535 * scripttempl/v850.sc: Ditto.
1536
1537 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1538
1539 * acinclude.m4: Include libtool and gettext macros from the
1540 top level.
1541 * aclocal.m4, configure: Rebuilt.
1542
1543 2000-08-25 Nick Clifton <nickc@redhat.com>
1544
1545 * ldlang.c (open_output): When choosing the target for a
1546 particular endianness, do nothing if the target is not
1547 supported.
1548
1549 2000-08-25 H.J. Lu <hjl@gnu.org>
1550
1551 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1552 check -rpath nor LD_RUN_PATH for cross link.
1553 * ld.texinfo: Document the change.
1554
1555 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
1556
1557 * NEWS: Mention support for CRIS.
1558
1559 2000-08-23 H.J. Lu <hjl@gnu.org>
1560
1561 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1562 the current runpath list from bfd_elf_get_runpath_list ()
1563 before search.
1564
1565 2000-08-22 H.J. Lu <hjl@gnu.org>
1566
1567 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1568 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1569 LD_LIBRARY_PATH for native linker. Display the needed DSO if
1570 trace_file_tries is non-zero.
1571 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1572 if trace_file_tries is non-zero.
1573
1574 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1575 * NEWS: Mention it.
1576
1577 2000-08-14 Jason Eckhardt <jle@cygnus.com>
1578
1579 * NEWS: Mention i860 support.
1580
1581 2000-08-14 Andreas Schwab <schwab@suse.de>
1582
1583 * scripttempl/elf.sc: Fix last change to use correct comment
1584 syntax.
1585
1586 2000-08-10 Geoff Keating <geoffk@cygnus.com>
1587
1588 * scripttempl/elf.sc: Add a comment giving the correspondence
1589 between sections, per-datum sections, and linkonce sections. Make
1590 the comment true even for .bss, .sdata, .sdata2, .sbss, and
1591 .sbss2.
1592
1593 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1594
1595 * emulparams/elf32_i860.sh: New file.
1596 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1597 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1598 (eelf32_i860.c): New rule.
1599 * Makefile.in: Regenerate.
1600
1601 2000-08-10 Nick Clifton <nickc@cygnus.com>
1602
1603 * emulparams/mipspe.sh (ENTRY): Add definition.
1604
1605 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
1606
1607 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1608 in error message.
1609
1610 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1611
1612 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1613 the final size of .bss section.
1614 * scripttempl/elfm68hc12.sc: Likewise.
1615
1616 2000-08-04 Alan Modra <alan@linuxcare.com.au>
1617
1618 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1619 gld${EMULATION_NAME}_parse_args for consistency. Combine
1620 lastoptind and prevoptind vars, and keep track of last optind.
1621 (gld_${EMULATION_NAME}_list_options): Rename to
1622 gld${EMULATION_NAME}_list_options.
1623
1624 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
1625
1626 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1627 (i586-sco-sysv5uw7.1.0).
1628
1629 2000-07-27 H.J. Lu <hjl@gnu.org>
1630
1631 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1632 (PARSE_AND_LIST_PROLOGUE): New.
1633 (PARSE_AND_LIST_LONGOPTS): Likewise.
1634 (PARSE_AND_LIST_OPTIONS): Likewise.
1635 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1636 (PARSE_AND_LIST_EPILOGUE): Likewise.
1637
1638 2000-07-28 Alan Modra <alan@linuxcare.com.au>
1639
1640 * emultempl/armelf.em: Elide functions common to elf32.em,
1641 ie. most of the file.
1642 (arm_elf_after_open): New. Do arm specific things then call
1643 gld${EMULATION_NAME}_after_open.
1644 (arm_elf_before_allocation): New. Call
1645 gld${EMULATION_NAME}_before_allocation then do arm specifics.
1646 (PARSE_AND_LIST_PROLOGUE): Define.
1647 (PARSE_AND_LIST_SHORTOPTS): Define.
1648 (PARSE_AND_LIST_LONGOPTS): Define.
1649 (PARSE_AND_LIST_OPTIONS): Define.
1650 (PARSE_AND_LIST_ARGS_CASES): Define.
1651 (LDEMUL_AFTER_OPEN): Define.
1652 (LDEMUL_BEFORE_ALLOCATION): Define.
1653 (LDEMUL_BEFORE_PARSE): Define.
1654 (LDEMUL_FINISH): Define.
1655
1656 * emultempl/hppaelf.em: Similarly zap most of this file.
1657 (hppaelf_add_stub_section): Prototype.
1658 (hppaelf_layaout_sections_again): Prototype.
1659 (hook_in_stub): Prototype.
1660 (LDEMUL_SET_OUTPUT_ARCH): Define.
1661 (LDEMUL_FINISH): Define.
1662 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1663
1664 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1665 (EXTRA_EM_FILE): New.
1666 * emulparams/armelf_linux.sh: Likewise.
1667 * emulparams/armelf_linux26.sh: Likewise.
1668 * emulparams/hppalinux.sh: Likewise.
1669 * emulparams/hppaelf.sh: Likewise.
1670 (NOP): Define.
1671
1672 * emultempl/elf32.em: Fix formatting.
1673 (EXTRA_EM_FILE): Source it.
1674 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1675 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1676 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1677 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1678 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1679 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1680 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1681 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1682 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
1683 allow functions in this file to be overridden.
1684 (PARSE_AND_LIST_SHORTOPTS): Handle it.
1685
1686 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1687
1688 * emultempl/elf32.em: Reorganize file.
1689
1690 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
1691
1692 * emulparams/elf64alpha.sh: Implement "-taso" emulation
1693 specific option to fit 64-bit executable in the lower
1694 31-bit address range. This is done by changing start
1695 address of .interp (the very first section of executable)
1696 and then setting EF_ALPHA_32BIT elf header flag.
1697
1698 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1699
1700 * emultempl/m68kcoff.em: New file.
1701 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1702 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1703 generic.em.
1704 * Makefile.in: Regenerate.
1705
1706 2000-07-20 H.J. Lu <hjl@gnu.org>
1707
1708 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1709 and "disable-new-dtags" to stop getopt from treating -d/-e as
1710 abbreviations for these options.
1711
1712 2000-07-20 H.J. Lu <hjl@gnu.org>
1713
1714 * ld.texinfo: Add documentation for --disable-new-dtags and
1715 --enable-new-dtags.
1716
1717 * ldmain.c (main): Initialize link_info.new_dtags to false.
1718
1719 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1720 --disable-new-dtags and --enable-new-dtags.
1721 (gld_${EMULATION_NAME}_list_options): Likewise.
1722
1723 2000-07-05 Kenneth Block <krblock@computer.org>
1724
1725 * lexsup.c: Add optional style to demangle switch
1726 * ld.texinfo: Document optional style to demangle switch.
1727
1728 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1729
1730 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1731 ecrislinux.o.
1732 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1733 Regenerate dependencies.
1734 * Makefile.in: Rebuild.
1735 * configure.tgt (cris-*-*): New target.
1736 * emulparams/crisaout.sh, emulparams/criself.sh,
1737 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1738 * po/POTFILES.in, po/ld.pot: Regenerate.
1739
1740 2000-07-20 H.J. Lu <hjl@gnu.org>
1741
1742 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1743 Print out ignored -z options.
1744
1745 2000-07-19 H.J. Lu <hjl@gnu.org>
1746
1747 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1748 (PARSE_AND_LIST_PROLOGUE): New.
1749 (PARSE_AND_LIST_LONGOPTS): Likewise.
1750 (PARSE_AND_LIST_OPTIONS): Likewise.
1751 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1752
1753 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1754
1755 * lexsup.c (ld_options): Comment out 'z'.
1756 (parse_args): Likewise.
1757
1758 * emultempl/elf32.em: Include "elf/common.h".
1759 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1760 options.
1761 (gld_${EMULATION_NAME}_list_options): Likewise.
1762
1763 * ld.texinfo: Add documentation for the recognized -z options.
1764
1765 2000-07-19 H.J. Lu <hjl@gnu.org>
1766
1767 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1768 bfd_elf_set_dt_needed_soname ().
1769
1770 2000-07-18 DJ Delorie <dj@cygnus.com>
1771
1772 * pe-dll.c (pe_dll_id_target): check object target name also
1773
1774 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
1775
1776 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1777 ${INIT_END} if relocating.
1778 (.fini): Likewise ${FINI_START} and ${FINI_END}.
1779
1780 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
1781
1782 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1783 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1784 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1785 errors introduced by the old dynamic lib search order.
1786
1787 2000-07-17 DJ Delorie <dj@cygnus.com>
1788
1789 * pe-dll.c (process_def_file): auto-export data items also
1790 (pe_process_import_defs): also see if _imp_ form needed
1791
1792 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
1793
1794 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1795 for dll import libraries
1796
1797 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
1798
1799 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1800 gcc 2.95.2 and later.
1801
1802 2000-07-11 Kazu Hirata <kazu@hxi.com>
1803
1804 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1805 message.
1806
1807 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1808
1809 * ldemul.h (struct lang_input_statement_struct): Remove forward
1810 declaration.
1811 (struct search_dirs): Likewise.
1812 * ldfile.h (struct lang_input_statement_struct): Likewise.
1813 Protect file from multiple inclusion.
1814 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1815 declaration from macro to file scope.
1816
1817 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1818 * ldgram.y: Likewise here.
1819 * ldlang.c: And here.
1820 * ldmain.c: And here.
1821 * mpw-elfmips.c: And here.
1822 * mpw-eppcmac.c: And here.
1823 * emultempl/aix.em: And here.
1824 * emultempl/armcoff.em: And here.
1825 * emultempl/armelf.em: And here.
1826 * emultempl/armelf_oabi.em: And here.
1827 * emultempl/beos.em: And here.
1828 * emultempl/elf32.em: And here.
1829 * emultempl/hppaelf.em: And here.
1830 * emultempl/linux.em: And here.
1831 * emultempl/lnk960.em: And here.
1832 * emultempl/pe.em: And here.
1833 * emultempl/sunos.em: And here.
1834 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1835 * mpw-idtmips.c: Ditto.
1836 * emultempl/generic.em: Ditto.
1837 * emultempl/gld960.em: Ditto.
1838 * emultempl/gld960c.em: Ditto.
1839 * emultempl/mipsecoff.em: Ditto.
1840 * emultempl/ticoff.em: Ditto.
1841 * emultempl/vanilla.em: Ditto.
1842
1843 * pe-dll.c: Include ldfile.h
1844 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1845
1846 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1847 arguments to bfd_elf32_size_dynamic_sections call.
1848 (gldelf32ebmip_place_orphan): Add missing arguments to
1849 lang_leave_output_section_statement call.
1850
1851 2000-07-10 H.J. Lu <hjl@gnu.org>
1852
1853 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1854 DLL_SUPPORT.
1855 (strhash): Likewise.
1856 (compute_dll_image_base): Likewise.
1857 (pe_undef_found_sym): Likewise.
1858 (pe_undef_cdecl_match): Likewise.
1859 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1860 argument "arch" with ATTRIBUTE_UNUSED.
1861
1862 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1863
1864 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1865
1866 From Ryan Bradetich <rbradetich@uswest.net>
1867 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1868
1869 2000-07-09 Alan Modra <alan@linuxcare.com.au>
1870
1871 Changes to create multiple linker stubs, positioned immediately
1872 before the section where they are required.
1873 * emultempl/hppaelf.em: Include elf32-hppa.h.
1874 (stub_sec, file_chain): Delete.
1875 (hppaelf_create_output_section_statements): Don't make a stub
1876 section here.
1877 (hook_stub_info): New struct.
1878 (hook_in_stub): New function.
1879 (hppaelf_add_stub_section): New function.
1880 (hppaelf_finish): Do nothing for relocateable links. Modify the
1881 call to elf32_hppa_size_stubs. Move code for updating section
1882 layout from here...
1883 (hppaelf_layaout_sections_again): ..to here, a new function.
1884
1885 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1886 broken list handling. Pass in a pointer to the list.
1887 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1888 for above changes.
1889 (hppaelf_before_parse): Prototype.
1890 (hppaelf_set_output_arch): Prototype.
1891 (hppaelf_create_output_section_statements): Prototype.
1892 (hppaelf_delete_padding_statements): Prototype.
1893 (hppaelf_finish): Prototype.
1894
1895 Merge from elf32.em
1896 * emultempl/hppaelf.em: Include ctype.h.
1897 (struct orphan_save): New.
1898 (gld${EMULATION_NAME}_place_orphan): New.
1899 (output_rel_find): New.
1900 (hppaelf_get_script): Update from elf32.em.
1901 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1902 Change emulation_name field to "${EMULATION_NAME}". Add
1903 gld${EMULATION_NAME}_place_orphan.
1904
1905 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
1906 ehppalinux.o, sort it. Regenerate dependencies.
1907 (ehppalinux.c): Depend on hppaelf.em
1908 * Makefile.in: Regenerate.
1909
1910 * configure.tgt: targ_emul=hppalinux for hppa*linux
1911
1912 * emulparams/hppalinux.sh: New.
1913 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1914
1915 2000-07-08 Alan Modra <alan@linuxcare.com.au>
1916
1917 * lexsup.c (parse_args): Copy section name.
1918
1919 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
1920
1921 * emultempl/pe.em: institute the following search order for
1922 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1923 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
1924 static lib (libfoo.a) if none of the above are found.
1925
1926 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
1927
1928 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1929 (longopts): New --{enable,disable}-auto-image-base options.
1930 (gld_${EMULATION_NAME}_list_options): Document.
1931 (gld_${EMULATION_NAME}_parse): Handle.
1932 (strhash): New static function.
1933 (compute_dll_image_base): New static function.
1934 (gld_${EMULATION_NAME}_set_symbols): Use.
1935
1936 2000-07-05 DJ Delorie <dj@redhat.com>
1937
1938 * MAINTAINERS: new
1939
1940 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
1941
1942 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1943 * emulparams/elf32btsmip.sh: New file.
1944 * Makefile.am: Add traditional mips target.
1945 * Makefile.in: Rebuild.
1946
1947 2000-07-01 H.J. Lu <hjl@gnu.org>
1948
1949 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1950 automake to use YLWRAP.
1951 * Makefile.in: Rebuild.
1952
1953 2000-07-01 Alan Modra <alan@linuxcare.com.au>
1954
1955 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1956 (CLEANFILES): Add DEPA.
1957 * Makefile.in: Regenerate.
1958
1959 2000-06-30 Timothy Wall <twall@ppc>
1960
1961 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1962 the page in the upper octet of the address.
1963
1964 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1965
1966 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1967
1968 2000-06-24 Alan Modra <alan@linuxcare.com.au>
1969
1970 * NEWS: arm-elf does --gc-sections too.
1971
1972 2000-06-22 Alan Modra <alan@linuxcare.com.au>
1973
1974 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1975 find one.
1976 * Makefile.in: Regenerate.
1977
1978 2000-06-21 H.J. Lu <hjl@gnu.org>
1979
1980 * Makefile.am: Rebuild dependency.
1981 * Makefile.in: Rebuild.
1982
1983 2000-06-20 H.J. Lu <hjl@gnu.org>
1984
1985 * Makefile.am: Rebuild dependency.
1986 * Makefile.in: Rebuild.
1987
1988 2000-06-20 Timothy Wall <twall@cygnus.com>
1989
1990 * scripttempl/tic54xcoff.sc: New.
1991 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1992 * gen-doc.texi: Add flag for TI COFF.
1993 * ld.texinfo: Add documentation for TI COFF handling switches.
1994 * emultempl/ticoff.em: New. TI COFF handling.
1995 * configure.tgt: Add tic54x target.
1996 * Makefile.am: Add tic54x target.
1997 * Makefile.in: Ditto.
1998
1999 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2000
2001 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2002 checking for backslashes.
2003
2004 2000-06-19 Alan Modra <alan@linuxcare.com.au>
2005
2006 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2007
2008 2000-06-18 Alan Modra <alan@linuxcare.com.au>
2009
2010 * NEWS: Update list of targets supporting --gc-sections.
2011
2012 * scripttempl/elf.sc: KEEP .eh_frame contents.
2013 * scripttempl/elfd30v.sc: Same here.
2014
2015 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2016
2017 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2018 and m68hc11 (elf).
2019 * Makefile.in: Rebuild.
2020 * configure.tgt: Recognize m68hc12 and m68hc11.
2021 * scripttempl/elfm68hc12.sc: New file.
2022 * emulparams/m68hc12elfb: New emulation.
2023 * emulparams/m68hc12elf: New emulation.
2024 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2025 (includes a memory.x script to define the ROM and RAM banks).
2026 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2027 New configuration files for support of Motorola 68hc11
2028
2029 2000-06-15 Alan Modra <alan@linuxcare.com.au>
2030
2031 * ldmain.c (main): Only change SEC_READONLY for final link.
2032
2033 2000-06-13 H.J. Lu <hjl@gnu.org>
2034
2035 * configure: Regenerate.
2036
2037 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2038
2039 * configure.in (VERSION): Update to show this is the CVS mainline.
2040
2041 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2042
2043 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2044 input objects to be ECOFF.
2045 (check_sections): einfo takes %B, not %P, to print a BFD name.
2046
2047 2000-06-05 Michael Matz <matz@ifh.de>
2048
2049 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
2050 version scripts.
2051
2052 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
2053
2054 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
2055
2056 * emulparams/avr1200.sh (STACK): Define as 0.
2057 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2058 * emulparams/avr4433.sh (STACK): Likewise.
2059 * emulparams/avr44x4.sh (STACK): Likewise.
2060 * emulparams/avr85xx.sh (STACK): Likewise.
2061 * emulparams/avrmega103.sh (STACK): Likewise.
2062 * emulparams/avrmega161.sh (STACK): Likewise.
2063 * emulparams/avrmega603.sh (STACK): Likewise.
2064 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2065 (__stack): Define from ${STACK} for main().
2066
2067 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2068
2069 * Makefile.am: Update dependencies with "make dep-am"
2070 * Makefile.in: Regenerate.
2071
2072 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2073
2074 * ldmain.c: Include filenames.h.
2075 (set_scripts_dir): Support backslashes in program name.
2076
2077 2000-05-22 Igor Shevlyakov <igor@windriver.com>
2078
2079 * ldmain.c (main): When deciding if ".text" section should be
2080 read-only, don't forget to reset SEC_READONLY because it
2081 could be already set.
2082
2083 2000-05-22 Thomas de Lellis <tdel@windriver.com>
2084
2085 * ld.1: Add documentation for new command line option:
2086 --section-start <sectionname>=<sectionorg>
2087 This is a generic version of -Ttext etc. which accepts
2088 any section name as a parameter instead of just text/data/
2089 bss.
2090 * ld.texinfo: More docs.
2091 * NEWS: More docs.
2092 * lexsup.c: (parse_args): Recognize new command line option.
2093 (ld_options): Add new option.
2094
2095 2000-05-18 H.J. Lu <hjl@gnu.org>
2096
2097 * lexsup.c (parse_args): `i' == `r', not `q'.
2098
2099 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
2100
2101 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2102
2103 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2104 Rick Gorton <gorton@scrugs.lkg.dec.com>
2105
2106 Add support for '-q' == '--emit-relocs' switch.
2107 * ldmain.c (main): Default to false.
2108 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2109 * NEWS: Describe the emitrelocations switch.
2110 * ld.texinfo: Describe the emitrelocations switch.
2111
2112 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
2113
2114 * emultempl/pe.em (_open_dynamic_archive): New function: Search
2115 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2116 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2117 link options.
2118
2119 2000-05-15 David O'Brien <obrien@FreeBSD.org>
2120
2121 * lexsup.c (parse_args): Update the year in the copyright notice.
2122
2123 2000-05-13 Alan Modra <alan@linuxcare.com.au>
2124
2125 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2126 Replace defines with those from intl/libgettext.h to quieten gcc
2127 warnings.
2128
2129 2000-05-10 H.J. Lu <hjl@gnu.org>
2130
2131 * ldlang.c (open_input_bfds): Don't load the same file within
2132 a group again if the whole archive has been loaded already.
2133
2134 2000-05-03 Alan Modra <alan@linuxcare.com.au>
2135
2136 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2137 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2138 strtoul.
2139
2140 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
2141
2142 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2143
2144 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2145 host "ia64-*-linux-gnu*".
2146
2147 2000-04-29 Andreas Jaeger <aj@suse.de>
2148
2149 * ld.h: Correctly check GCC version.
2150
2151 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
2152
2153 * Makefile.am: Add PA64 support. Add missing dependencies for
2154 PA32 elf support.
2155 * Makefile.in: Rebuilt.
2156 * configure.tgt: Add PA64 support (currently disabled).
2157
2158 2000-04-25 Alan Modra <alan@linuxcare.com.au>
2159
2160 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2161 (output_rel_find): New function.
2162 (hold_section, hold_use): Delete.
2163 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2164 hold_interp): Make local to place_orphan.
2165 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2166 rather than place_section to find possible previous use of orphan.
2167 Similarly find the place-holder output sections. Use returned
2168 value from lang_enter_output_section_statement rather than calling
2169 lang_output_section_statement_lookup.
2170 * emultempl/armelf.em: Same here.
2171 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2172
2173 * ldlang.c (lang_enter_output_section_statement): Return output
2174 section statement.
2175 * ldlang.h (lang_enter_output_section_statement): Change
2176 declaration too.
2177
2178 * ldlang.h (lang_output_section_statement): Export it.
2179 * ldlang.c (lang_output_section_statement): Ditto.
2180
2181 2000-04-24 Nick Clifton <nickc@cygnus.com>
2182
2183 * ld.texinfo (Output Section Data): Add note that section data
2184 commands cannot appear outside of section directives.
2185
2186 2000-04-2 Matthew Green <mrg@cygnus.com>
2187
2188 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2189
2190 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2191 David Mosberger <davidm@hpl.hp.com>
2192
2193 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2194 (eelf64_ia64.c): New rule.
2195 * Makefile.in: Rebuild.
2196 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2197 * emulparams/elf64_ia64.sh: New file.
2198
2199 2000-04-21 Richard Henderson <rth@cygnus.com>
2200
2201 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2202
2203 2000-04-19 Alan Modra <alan@linuxcare.com.au>
2204
2205 * dep-in.sed: Match space at start of file name, not at end.
2206
2207 2000-04-18 H.J. Lu <hjl@gnu.org>
2208
2209 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2210 lang_leave_output_section_statement () after calling
2211 lang_enter_output_section_statement ().
2212 * emultempl/armelf.em: Likewise.
2213
2214 2000-04-18 Alan Modra <alan@linuxcare.com.au>
2215
2216 * emultempl/elf32.em (struct orphan_save): Add section field.
2217 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2218 better order, and place first orphan section as we did before the
2219 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2220 Don't call make_bfd_section here, let wild_doit do the job for us.
2221 Don't build a statement list when we'll only throw it away.
2222 * emultempl/armelf.em: Ditto.
2223 * emultempl/pe.em: Similarly.
2224
2225 2000-04-14 Geoff Keating <geoffk@cygnus.com>
2226
2227 * scripttempl/elfppc.sc: Remove.
2228 * emulparams/elf32ppc.sh: Use elf.sc.
2229 * emulparams/elf32lppc.sh: Use elf.sc.
2230 * emulparams/elf32ppclinux.sh: Use elf.sc.
2231 * emulparams/elf32ppcsim.sh: New file.
2232 * emulparams/elf32lppcsim.sh: New file.
2233 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
2234 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2235 * Makefile.in: Regenerate.
2236 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2237
2238 2000-04-14 Alan Modra <alan@linuxcare.com.au>
2239
2240 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
2241 ~SEC_ALLOC sections too. Init start address of debug sections.
2242 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2243 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2244 Also set all relocateable section start addresses.
2245
2246 2000-04-13 Geoff Keating <geoffk@cygnus.com>
2247
2248 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2249 Add new BSS_PLT variable for when .plt need not be contained in
2250 the file. Move _etext so that it is also after .fini, and provide
2251 both etext and _etext with a leading underscore. Mark the start
2252 and end of .sbss.
2253
2254 2000-04-12 Alan Modra <alan@linuxcare.com.au>
2255
2256 * emultempl/elf32.em (struct orphan_save): New.
2257 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2258 hold_interp): Make them struct orphan_save.
2259 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2260 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2261 the end of the relevant section list. Also add associated section
2262 statements to the end of any previous orphan statements.
2263 * emultempl/armelf.em: Similarly.
2264 * emultempl/pe.em: Similarly.
2265
2266 2000-04-11 Alan Modra <alan@linuxcare.com.au>
2267
2268 * ld.texinfo (Simple Example): Remove extraneous paragraph.
2269
2270 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
2271
2272 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
2273 --enable-build-warnings option.
2274 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2275 * Makefile.in, configure: Re-generate.
2276
2277 2000-04-04 Alan Modra <alan@linuxcare.com.au>
2278
2279 * po/ld.pot: Regenerate.
2280
2281 * lexsup.c (help): Restore translated part of bug string.
2282
2283 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2284 (DEP): Quote when passing vars to sub-make. Add warning message
2285 to end.
2286 (DEP1): Rewrite for "gcc -MM".
2287 (CLEANFILES): Add DEP2.
2288 Update dependencies.
2289 * Makefile.in: Regenerate.
2290
2291 2000-04-03 Alan Modra <alan@linuxcare.com.au>
2292
2293 * ld.h: #include "bin-bugs.h"
2294 * lexsup.c (help): Use REPORT_BUGS_TO.
2295
2296 2000-03-27 Denis Chertykov <denisc@overta.ru>
2297
2298 * configure.tgt (avr-*-*): New target support.
2299 * Makefile.am: Likewise.
2300 * scripttempl/elf32avr.sc: New script file.
2301 * emulparams/avr1200.sh: New file.
2302 * emulparams/avr23xx.sh: New file.
2303 * emulparams/avr4433.sh New file.
2304 * emulparams/avr44x4.sh New file.
2305 * emulparams/avr85xx.sh New file.
2306 * emulparams/avrmega103.sh New file.
2307 * emulparams/avrmega161.sh New file.
2308 * emulparams/avrmega603.sh New file.
2309 * Makefile.in: Regenerate.
2310
2311 2000-03-09 Andreas Jaeger <aj@suse.de>
2312
2313 * Makefile.am (check-DEJAGNU): Also unset LANG.
2314 * Makefile.in: Rebuild.
2315
2316 2000-03-06 Ian Lance Taylor <ian@zembu.com>
2317
2318 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
2319 archive.
2320
2321 2000-03-02 H.J. Lu <hjl@gnu.org>
2322
2323 * emulparams/elf32mcore.sh: Include "getopt.h".
2324
2325 2000-03-01 Ian Lance Taylor <ian@zembu.com>
2326
2327 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
2328
2329 2000-03-01 H.J. Lu <hjl@gnu.org>
2330
2331 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
2332 * emulparams/shpe.sh: Likewise.
2333
2334 2000-03-01 Nick Clifton <nickc@cygnus.com>
2335
2336 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
2337 to unused parameters.
2338
2339 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
2340 functions only used by DLL code.
2341 (_place_orphan): Initialise 'dollar'.
2342
2343 2000-03-01 H.J. Lu <hjl@gnu.org>
2344
2345 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
2346 indicate if the undefined symbol is a fatal error or not.
2347 Don't delete the output file if "fatal" is false.
2348
2349 2000-02-29 H.J. Lu <hjl@gnu.org>
2350
2351 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
2352 Set LC_COLLATE and LC_ALL to null and export them. It is for
2353 sort which expects the C locale.
2354 Add $(LIBS) to all $(HOSTING_LIBS).
2355 * Makefile.in: Rebuild.
2356
2357 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
2358
2359 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
2360 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
2361 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
2362 (ld_emulation_xfer_struct): Add missing NULL initialiser for
2363 find_potential_libraries.
2364
2365 2000-02-28 Jim Blandy <jimb@redhat.com>
2366
2367 * ldgram.y (exclude_name_list): Don't require a comma to separate
2368 list entries; the lexer considers commas to be valid part of a
2369 filename, so in something like `foo, bar' the comma is considered
2370 part of the first filename, `foo,'.
2371 * ld.texinfo: Update section on EXCLUDE_FILE lists.
2372
2373 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
2374
2375 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2376 host "i[3456]86-*-freebsdelf*".
2377
2378 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
2379
2380 * scripttempl/i386go32.sc: Move misplaced semicolons.
2381
2382 2000-02-25 Ian Lance Taylor <ian@zembu.com>
2383
2384 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
2385 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
2386 (eelf64hppa.c, ehppaelf.c): Remove targets.
2387 * Makefile.in: Rebuild.
2388
2389 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2390
2391 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
2392 GNU/Linux/sparc, but keep the default as 32.
2393
2394 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
2395 it default if sparcv9 or sparc64.
2396
2397 2000-02-24 Nick Clifton <nickc@cygnus.com>
2398
2399 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2400 * Makefile.in: Regenerate.
2401 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2402
2403 * ldemul.h (ld_emulation_xfer_struct): Add new field:
2404 find_potential_libraries.
2405 * ldemul.c (ldemul_find_potential_libraries): New function.
2406
2407 * ldfile.c (ldfile_open_file_search): Allow function to be
2408 exported.
2409 (ldfile_open_file): Call ldemul_find_potential_libraries.
2410 * ldfile.h: Add prototype for ldfile_open_file_search.
2411
2412 * pe-dll.c: Add support for ARM, MIPS and SH targets.
2413
2414 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
2415 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
2416
2417 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2418 (gld_X_find_potential_libraries): New function. Search for
2419 libraries called "*.lib".
2420
2421 * scripttempl/pe.sc: Add .pdata section.
2422
2423 2000-02-23 Richard Henderson <rth@cygnus.com>
2424
2425 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2426 Add and use memory regions.
2427
2428 2000-02-23 Linas Vepstas (linas@linas.org)
2429
2430 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2431
2432 * Makefile.am: Add support for Linux/IBM 370.
2433 * configure.tgt: Likewise.
2434
2435 * Makefile.in: Regenerate.
2436
2437 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
2438
2439 * ldlang.c (print_input_section, print_data_statement,
2440 print_reloc_statement, print_padding_statement, insert_pad,
2441 size_input_section, lang_check_section_addresses,
2442 lang_size_sections, lang_do_assignments, lang_set_startof,
2443 lang_one_common): Change `opb' to unsigned.
2444 (lang_do_assignments): Also change `size' to unsigned.
2445
2446 2000-02-16 Richard Henderson <rth@cygnus.com>
2447
2448 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2449
2450 2000-02-16 Timothy Wall <twall@cygnus.com>
2451
2452 * mri.c (mri_draw_tree): Add default LMA region argument to call
2453 to lang_leave_output_section_statement.
2454 * ldlang.h: Update prototypes with LMA region arguments.
2455 * ldlang.c (lang_size_sections): Encapsulate region bounds
2456 checking in os_check_region call.
2457 (os_check_region): New function.
2458 (lang_output_section_statement_lookup): Initialize lma_region.
2459 (lang_leave_output_section_statement): Add LMA region argument.
2460 (lang_leave_overlay): Ditto.
2461 * ldgram.y: Handle LMA region syntax.
2462 * ld.texinfo (Output Section Description): Describe LMA region usage.
2463 * emultempl/armelf.em (gld$place_orphan): Add default value for
2464 lma region in call to lang_leave_output_section_statement.
2465 * emultempl/elf32.em (gld$place_orphan): Add default value for
2466 lma region in call to lang_leave_output_section_statement.
2467 * emultempl/pe.em (gld$place_orphan): Add default value for
2468 lma region in call to lang_leave_output_section_statement.
2469
2470
2471 2000-02-04 Timothy Wall <twall@redhat.com>
2472
2473 * ldlang.c (lang_check_section_addresses): Use bytes instead of
2474 octets when calculating section end addresses.
2475
2476 2000-02-04 Timothy Wall <twall@redhat.com>
2477
2478 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2479
2480 2000-02-03 Timothy Wall <twall@redhat.com>
2481
2482 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2483 octet count.
2484 * ldlang.c (print_input_section, print_data_statement,
2485 print_reloc_statement, print_padding_statement): Print target
2486 address values and section sizes as bytes, not octets.
2487 (insert_pad) Calculate padding size in octets, and adjust "dot"
2488 by bytes.
2489 (size_input_section) Always adjust "dot" by bytes, not octets.
2490 (lang_check_section_addresses, lang_do_assignments) Adjust
2491 "dot" by bytes, not octets. Use the larger of the directive size
2492 or octets_per_byte for the number of octets actually allocated in
2493 the output section.
2494 (lang_set_startof) Make sure STARTOF returns a target address.
2495 (lang_one_common) Record size changes in octets.
2496 (lang_abs_symbol_at_end_of) Section end symbol's value is
2497 recorded in target bytes.
2498 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
2499 to be clear about behavior when an octet is smaller than one byte.
2500
2501 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
2502
2503 * ldcref.c (output_cref): Don't pass message strings to printf
2504 as format arg.
2505 Update copyright.
2506
2507 * ldmisc.c (vfinfo): Same here.
2508 Update copyright.
2509
2510 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2511
2512 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2513 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2514 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2515 Add missing NULL initialisers, and comments.
2516
2517 * testsuite/ld-srec/sr3.cc (__rethrow): New.
2518
2519 2000-01-21 Nick Clifton <nickc@cygnus.com>
2520
2521 * ldlang.c (lang_size_sections): Fix typo in comment.
2522
2523 2000-01-18 H.J. Lu <hjl@gnu.org>
2524
2525 * ldlang.c (lang_size_sections): Also update the current
2526 address of a region if the SEC_NEVER_LOAD bit is not set.
2527
2528 2000-01-10 Philip Blundell <pb@futuretv.com>
2529
2530 * configure.tgt (arm*-*-conix*): New target.
2531
2532 2000-01-07 Nick Clifton <nickc@cygnus.com>
2533
2534 * ld.texinfo (Options): Remind users to preceed linker command
2535 line switches with -Wl, (or whatever is appropriate) if it is
2536 being invoked by a comnpiler driver program.
2537 Fix description of the behaviour of the -n command line switch.
2538
2539 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
2540
2541 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
2542 (name_list): New.
2543 * ld.texinfo (EXCLUDE_FILE): Update documentation.
2544 * ldgram.y (wildcard_spec): Support a list of excluded_files.
2545 (exclude_name_list): New.
2546 ldlang.c (walk_wild_section): Support list of excluded files.
2547 (print_wild_statement): Likewise.
2548 (lang_add_wild): Likewise.
2549 * ldlang.h (lang_wild_statement_type): Likewise.
2550 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2551
2552 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2553
2554 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2555 (process_def_file): Use.
2556 (pe_dll_compat_implib): New variable.
2557 (make_one): Use.
2558
2559 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2560 pe_dll_compat_implib.
2561
2562 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2563 compat-implib options.
2564 (gld_${EMULATION_NAME}_list_options): List new options.
2565 (gld_${EMULATION_NAME}_parse_args): Handle.
2566
2567 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2568 dll.
2569
2570 * deffilep.y (opt_name): Allow "." in name.
2571
2572 For older changes see ChangeLog-9899
2573 \f
2574 Local Variables:
2575 mode: change-log
2576 left-margin: 8
2577 fill-column: 74
2578 version-control: never
2579 End:
This page took 0.081744 seconds and 5 git commands to generate.