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