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