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