Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2
3 * ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
4
5 Fri Jun 6 23:47:42 1997 Ian Lance Taylor <ian@cygnus.com>
6
7 * scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
8 the import list.
9
10 Thu May 29 13:13:22 1997 Ian Lance Taylor <ian@cygnus.com>
11
12 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Don't
13 crash if an output section has no BFD section.
14
15 Fri May 23 15:23:25 1997 Fred Fish <fnf@cygnus.com>
16
17 * lexsup.c (ld_options): Add entry for the new "task-link" option.
18 (parse_args): Handle the "task-link" option.
19 (OPTION_TASK_LINK): Add define.
20
21 Wed May 21 17:44:15 1997 Ian Lance Taylor <ian@cygnus.com>
22
23 * ldmain.c (main): Correct check of fclose return value when
24 handling --force-exe-suffix.
25
26 Thu May 15 11:35:29 1997 Nick Clifton <nickc@cygnus.com>
27
28 * ldlang.c (lang_check): Add test of the return value from the
29 call to bfd_merge_private_bfd_data().
30
31 Mon May 12 23:22:58 1997 Ian Lance Taylor <ian@cygnus.com>
32
33 * scripttempl/elfmips.sc: Remove.
34 * scripttempl/elf.sc: Set ENTRY based on target. Permit
35 TEXT_DYNAMIC to control .dynamic segment. Permit
36 SHLIB_TEXT_START_ADDR to set start of shared object. Support
37 INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put
38 .gnu.linkonce.t* in .text when relocating. Support
39 OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as
40 DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
41 * emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
42 (DATA_ADDR): Don't set.
43 (INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
44 (OTHER_TEXT_SECTIONS): Set.
45 (OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
46 (MACHINE): Set to empty string.
47 * emulparams/elf32l4300.sh: Likewise.
48 * emulparams/elf32ebmip.sh: Likewise.
49 * emulparams/elf32elmip.sh: Likewise.
50 * emulparams/elf32bmip.sh: Likewise. Also:
51 (TEXT_DYNAMIC): Set.
52 * emulparams/elf32lmips.sh: Likewise.
53 * Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
54 elfmips.sc.
55 (eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
56
57 Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
58
59 * scripttempl/elf.sc: Don't align the data segment on the next 8
60 byte boundary, instead let the linker use whatever the individual
61 sections require.
62
63 Fri May 9 17:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
64
65 * configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
66
67 Tue May 6 13:21:19 1997 Ian Lance Taylor <ian@cygnus.com>
68
69 From Sean McNeil <sean@mcneil.com>:
70 * emultempl/pe.em (sort_by_file_name): Sort by archive name
71 first.
72 (sort_sections): Sort all sections, not just sections in the same
73 archive.
74
75 Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
76
77 * configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
78 targets.
79
80 start-sanitize-tic80
81 Fri May 2 15:54:28 1997 Mike Meissner <meissner@cygnus.com>
82
83 * scripttempl/tic80coff.sc (.text): Add a leading underscore to
84 __{D,C}TOR_{LIST,END}__ definations. Rearrange the order of items
85 in the .text section. Move .const, .ctors, .dtors into separate
86 sections.
87
88 end-sanitize-tic80
89 Wed Apr 30 12:23:21 1997 Manfred Hollstein <manfred@s-direktnet.de>
90
91 * scripttempl/m88kbcs.sc (__.initp.end, _etext): Added whitespace
92 around assignment of current location pointer.
93
94 Thu Apr 17 13:07:18 1997 Ian Lance Taylor <ian@cygnus.com>
95
96 * ldctor.c (ldctor_build_sets): Make sure the set is aligned
97 appropriately.
98
99 Tue Apr 15 13:19:26 1997 Ian Lance Taylor <ian@cygnus.com>
100
101 * Makefile.in (INSTALL): Set to @INSTALL@.
102 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
103 (install): Depend upon ld.new and installdirs. Use
104 $(program_transform_name) directly, rather than using
105 $(INSTALL_XFORM) and $(INSTALL_XFORM1).
106 (installdirs): New target.
107 (install-info): Run mkinstalldirs.
108
109 Mon Apr 14 12:06:15 1997 Ian Lance Taylor <ian@cygnus.com>
110
111 * Makefile.in (INSTALL): Change install.sh to install-sh.
112
113 From Thomas Graichen <graichen@rzpd.de>:
114 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
115 * configure: Rebuild.
116
117 Fri Apr 4 11:42:41 1997 Ian Lance Taylor <ian@cygnus.com>
118
119 * emultempl/pe.em: Include "libiberty.h".
120 (sort_sections_1): Use xmalloc rather than alloca.
121
122 * ldlex.l: Recognize SQUAD.
123 * ldgram.y (length): Add SQUAD.
124 * ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
125 reloc.
126 * ldlang.c (print_data_statement): Handle SQUAD.
127 (lang_size_sections, lang_do_assignments): Likewise.
128 * ldexp.c (exp_print_token): Add SQUAD to table.
129 * ldwrite.c (build_link_order): Handle SQUAD.
130 * ld.texinfo (Section Data Expressions): Document SQUAD.
131
132 Thu Apr 3 13:19:40 1997 Ian Lance Taylor <ian@cygnus.com>
133
134 * ldver.c (ld_program_version): Set to 2.8.1.
135
136 * Branched binutils 2.8.
137
138 Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
139
140 * mpw-idtmips.c: Rename from mpw-emipsidt.c.
141 * mpw-elfmips.c: Rename from mpw-emipself.c.
142 * mpw-config.in: Update accordingly.
143
144 * ldlang.c (lang_process): Call lang_check immediately after
145 opening the input files, rather than at the end of the link.
146
147 Mon Mar 31 23:44:00 1997 Ian Lance Taylor <ian@cygnus.com>
148
149 * emultempl/pe.em (init): Fully bracket initializer.
150 (set_pe_stack_heap): Remove locals begin_commit and end.
151 (gld_${EMULATION_NAME}_after_open): Remove unused local i.
152 (gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
153
154 Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
155
156 * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
157
158 Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
159
160 Contributed by David S. Miller <davem@caip.rutgers.edu>:
161 * configure.tgt (sparc*-*-linuxaout*): New target.
162 (sparc*-*-linux*): New target.
163 * emulparams/sparclinux.sh: New file.
164 * Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
165 (esparclinux.c): New target.
166
167 Fri Mar 28 14:30:12 1997 Ian Lance Taylor <ian@cygnus.com>
168
169 From Ralf Baechle <ralf@gnu.ai.mit.edu>:
170 * configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
171 mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
172 elf32elmip.
173
174 Thu Mar 27 17:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
175
176 * lexsup.c (parse_args): Update copyright date in version
177 message.
178
179 Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
180
181 * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
182
183 Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
184
185 * Makefile.in: Rebuild dependencies.
186
187 * emultempl/aix.em: Include "obstack.h".
188
189 Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
190
191 * ldlang.c: Include "obstack.h".
192
193 Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
194
195 * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
196
197 Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
198
199 * ldemul.h (ldemul_list_emulations): Use full prototype.
200 * ldlang.c (print_one_symbol): Add declaration.
201 * ldlang.h (dprint_statements): Declare.
202 * ldmain.c (remove_output): Declare.
203 * ldmisc.c (vfinfo): Declare.
204 * ldwrite.c (clone_section): Declare.
205 (split_sections): Make static. Declare.
206 * mri.c: Include libiberty.h.
207 (strdup): Don't declare.
208 (mri_alias): Use xstrdup rather than strdup.
209
210 Fri Mar 14 21:30:06 1997 Ian Lance Taylor <ian@cygnus.com>
211
212 * scripttempl/elfmips.sc: Change handling of data area when
213 generating a shared library to not skip a large block of memory.
214 From Per Fogelstrom <pefo@cvs.openbsd.org>.
215
216 Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
217
218 * ldmain.c (multiple_definition): Only skip the warning if the
219 output section is absolute when the input section is not
220 absolute.
221
222 * ldlex.l: Accept whitespace in VERS_START state. Warn about
223 invalid characters in VERS_* states.
224
225 Tue Mar 11 13:51:31 1997 Ian Lance Taylor <ian@cygnus.com>
226
227 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
228 trailing space lead us to think that there is a zero address.
229
230 Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
231
232 * ldgram.y (vers_node): Correct typo of '(' for '{'.
233
234 start-sanitize-tic80
235 Fri Mar 7 18:40:12 1997 Fred Fish <fnf@cygnus.com>
236
237 * scripttempl/tic80coff.sc (ENTRY): Entry symbol is __start
238 rather than _start.
239 (__edata): Define this rather than "edata".
240 (__end): Define this rather than "end".
241
242 Tue Mar 4 17:18:35 1997 Michael Meissner <meissner@cygnus.com>
243
244 * configure.tgt (tic80-*-*): Allow dropping of -coff.
245
246 end-sanitize-tic80
247 Sun Mar 2 22:59:49 1997 Fred Fish <fnf@cygnus.com>
248
249 * Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
250 as TEXINPUTS. Needed for building in separate build dir.
251 * ldint.texinfo (SCRIPT_NAME): Fix typo.
252 start-sanitize-tic80
253 * emulparams/tic80coff.sh: Rewrite to include internal documentation
254 about each shell variable that is set (or not set).
255 * scripttempl/tic80coff.sc: Complete rewrite.
256 end-sanitize-tic80
257
258 Fri Feb 28 17:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
259
260 * ldmain.c (main): Call bfd_set_default_target.
261 * Makefile.in (ldmain.o): Define TARGET when compiling.
262
263 Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
264
265 * ldmain.c (main): Don't initialize link_info.lprefix or
266 link_info.lprefix_len.
267 * emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
268
269 * emultempl/m88kbcs.em: Remove.
270 * emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
271 * Makefile.in (em88kbcs.c): Depend upon generic.em rather than
272 m88kbcs.em.
273
274 * mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
275 to lang_enter_output_section_statement. From Mark Rasin
276 <mark.rasin@telrad.co.il>.
277
278 Wed Feb 26 11:51:44 1997 Ian Lance Taylor <ian@cygnus.com>
279
280 * ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
281 section.
282
283 Tue Feb 25 20:38:11 1997 Stan Shebs <shebs@andros.cygnus.com>
284
285 * configure.tgt (mips*-*-lnews*): New target.
286 * Makefile.in (emipslnews.c): New target.
287 * emulparams/mipslnews.sh: New file.
288
289 Tue Feb 25 16:04:09 1997 Ian Lance Taylor <ian@cygnus.com>
290
291 * emultempl/elf32.em (hold_interp): New static variable.
292 (gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
293 after hold_interp. Choose a unique output section name.
294 (gld${EMULATION_NAME}_place_section): Don't set hold_use if the
295 SEC_LOAD or SEC_ALLOC flags differ. Set hold_interp.
296
297 Mon Feb 24 18:16:09 1997 Ian Lance Taylor <ian@cygnus.com>
298
299 From Eric Youngdale <eric@andante.jic.com>:
300 * ldlex.l (V_TAG, V_IDENTIFIER): New macros.
301 (VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
302 information.
303 (ldlex_version_script, ldlex_version_file): New functions.
304 * ldlex.h (enum input_enum): Add input_version_script.
305 (ldlex_version_script): Declare.
306 (ldlex_version_file): Declare.
307 * ldgram.y (%union): Add deflist, versyms, and versnode.
308 (VERS_TAG, VERS_IDENTIFIER): New terminals.
309 (GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
310 (file): Accept INPUT_VERSION_SCRIPT.
311 (ifile_p1): Accept version.
312 (version_script_file): New nonterminal.
313 (version, vers_nodes, vers_node): Likewise.
314 (verdep, vers_tag, ver_defns): Likewise.
315 * ldlang.c (lang_elf_version_info): New global variable.
316 (lang_new_vers_regex): New function.
317 (lang_new_vers_node): New function.
318 (version_index): New static variable.
319 (lang_register_vers_node): New function.
320 (lang_add_vers_depend): New function.
321 * ldlang.h (lang_elf_version_info): Declare.
322 (lang_new_vers_regex, lang_new_vers_node): Declare.
323 (lang_add_vers_depend, lang_register_vers_node): Declare.
324 * lexsup.c (OPTION_VERSION_SCRIPT): Define.
325 (ld_options): Add "version-script".
326 (parse_args): Handle OPTION_VERSION_SCRIPT.
327 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
328 Pass lang_elf_version_info to size_dynamic_sections.
329 * scripttempl/elf.sc: Add .gnu.version sections.
330 * ld.texinfo: Document symbol versioning.
331
332 start-sanitize-d30v
333 Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
334
335 * Makefile.in (ed30velf.c): New target.
336 * configure.tgt (d30v-*-*): New target.
337 * emulparams/d30velf.sh: New file.
338 * scripttempl/elfd30v.sc: New file.
339
340 end-sanitize-d30v
341 Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
342
343 * ld.texinfo (Option Commands): Document the INCLUDE command.
344
345 Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
346
347 * configure.in: Call BFD_NEED_DECLARATION on getenv.
348 * acconfig.h (NEED_DECLARATION_GETENV): New macro.
349 * sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
350 * ldemul.c (ld_emul_default_target): Do not cast getenv return
351 value.
352 * ldmain.c (get_emulation): Likewise.
353 * configure, config.in: Rebuild.
354
355 Tue Feb 11 15:34:26 1997 Ian Lance Taylor <ian@cygnus.com>
356
357 * scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
358 .mips16.call.* in .text.
359
360 start-sanitize-r5900
361 Fri Feb 7 13:16:53 1997 Gavin Koch <gavin@cygnus.com>
362
363 * configure.tgt: add r5900.
364
365 end-sanitize-r5900
366 start-sanitize-tic80
367 Sun Feb 9 18:09:13 1997 Fred Fish <fnf@cygnus.com>
368
369 * emulparams/tic80coff.sh: New (dummy) file for TIc80.
370 * scripttempl/tic80coff.sc: New (dummy) file for TIc80.
371 * Makefile.in (etic80coff.c): Add target and rule to build it.
372 * configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
373
374 end-sanitize-tic80
375 Fri Jan 31 13:16:53 1997 Ian Lance Taylor <ian@cygnus.com>
376
377 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
378 ".so" in the name, not ".so.".
379 (gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
380
381 * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
382 <alan@spri.levels.unisa.edu.au>.
383
384 Thu Jan 30 11:31:52 1997 Ian Lance Taylor <ian@cygnus.com>
385
386 * emultempl/sunos.em: Include <ctype.h>.
387 (gld${EMULATION_NAME}_find_so): Skip the directory name when
388 searching for ".so.".
389 (gld${EMULATION_NAME}_search_dir): Make sure that the library name
390 has a version number, and that only version numbers follow .so.
391
392 Wed Jan 29 18:15:00 1997 Geoffrey Noer <noer@cygnus.com>
393
394 * scripttempl/pe.sc:
395 * scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
396 section so Win32 executables are valid.
397
398 Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
399
400 * scripttempl/elf.sc: Put linkonce reloc section in other
401 appropriate reloc sections.
402 * scripttempl/elfmips.sc: Add linkonce support.
403 * scripttempl/elfppc.sc: Likewise.
404
405 Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
406
407 * emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
408 stack up to 0x80000.
409 * emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
410
411 Tue Jan 21 12:11:10 1997 Doug Evans <dje@seba.cygnus.com>
412
413 * emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
414 to define `_stack'.
415
416 Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
417
418 * ld.h (args_type): Rename auxiliary_filter_shlib to
419 auxiliary_filters, and make it char **.
420 * lexsup.c (parse_args): Handle -f by setting up an array.
421 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
422 new name of auxiliary_filters.
423
424 * ld.texinfo (Options): Improve documentation of --filter and
425 --auxiliary.
426
427 Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
428
429 * ld.texinfo (Options): Clarify that the normal usage is -T.
430 (Commands): Likewise.
431
432 Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
433
434 * scripttempl/armcoff.sc: Correct mask used for .data address.
435
436 Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
437
438 * emultempl/pe.em: make default executable a.exe instead of
439 a.out
440
441 Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
442
443 * scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
444 shifting .plt back. Rumour has it that the NetBSD ld.so depends
445 on .dynamic being after .got, so we leave that.
446
447 Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
448
449 * Makefile.in (clean): Don't remove configdoc.texi.
450 (maintainer-clean): Do remove configdoc.texi.
451
452 * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
453 to avoid confusing texi2roff.
454
455 start-sanitize-v850
456 Fri Jan 3 11:27:02 1997 Michael Meissner <meissner@tiktok.cygnus.com>
457
458 * scripttempl/v850.sc (.zdata): Add .zcommon section.
459 (.tdata): Add .tcommon and .tcommon_byte sections.
460
461 end-sanitize-v850
462 Thu Jan 2 18:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
463
464 * configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
465 * scripttempl/elfmips.sc: Use __start as the entry address for
466 mips*-*-linux*.
467
468 Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
469
470 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
471
472 * ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
473 fields.
474 * lexsup.c (parse_args): Recognize --auxiliary/-f and
475 --filter/-F.
476 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
477 Pass filter_shlib and auxiliary_filter_shlib to
478 size_dynamic_sections.
479 * ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
480
481 start-sanitize-v850
482 Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
483
484 * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
485
486 end-sanitize-v850
487 Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
488
489 * mpw-make.sed: Use NewFolderRecursive for installation.
490
491 start-sanitize-v850
492 Fri Dec 13 14:08:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
493
494 * scripttempl/v850.sc: Make sure __{e,g}p start relative to the
495 {s,t}data sections. Do not emit any linker generated symbols if
496 -r. Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
497 where the different sections go. Change some whitespace.
498
499 * emulparams/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
500 appropriately. Remove crud not used anymore.
501
502 end-sanitize-v850
503 Fri Dec 13 10:19:57 1996 Jeffrey A Law (law@cygnus.com)
504
505 * Makefile.in (emn10200.c): Add dependencies.
506 * configure.tgt: Handle mn10200.
507 * emulparms/mn10200.sh: New file.
508
509 Thu Dec 12 17:04:55 1996 Ian Lance Taylor <ian@cygnus.com>
510
511 * emultempl/gld960c.em: Include <ctype.h>.
512 (gld960_set_output_arch): Get the machine type from the -A option
513 if there is one, rather than always using core.
514
515 Sat Dec 7 10:07:51 1996 Jeffrey A Law (law@cygnus.com)
516
517 * emulparms/mn10300.sh: Handle leading underscores.
518
519 Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
520
521 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
522 set hold_rel if SEC_ALLOC is set.
523
524 Tue Dec 3 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
525
526 * ldlang.c (section_already_linked): Set the output_offset as well
527 as the output_section when only reading symbols from a file.
528
529 Mon Dec 2 11:43:50 1996 Ian Lance Taylor <ian@cygnus.com>
530
531 * emulparams/*.sh: Make sure that each set of parameters which
532 uses the elf.sc script sets MACHINE.
533
534 Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
535
536 * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
537
538 * scripttempl/elfd10v.sc: Likewise.
539 start-sanitize-v850
540 * scripttempl/v850.sc: Likewise.
541 end-sanitize-v850
542
543 Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
544
545 * configure: Rebuild with autoconf 2.12.
546
547 Mon Nov 25 12:17:55 1996 Jim Wilson <wilson@cygnus.com>
548
549 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
550 for bfd_vma to init loop.
551
552 Mon Nov 25 09:55:07 1996 Jeffrey A Law (law@cygnus.com)
553
554 * emulparms/mn10300.sh: Remove bogus '_' prefix for
555 entry symbol and ctor/dtor stuff.
556
557 Fri Nov 15 13:00:18 1996 Jeffrey A Law (law@cygnus.com)
558
559 * Makefile.in (emn10300.c): Add dependencies.
560 * configure.tgt: Handle mn10300.
561 * emulparms/mn10300.sh: New file.
562
563 Tue Nov 5 10:57:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
564
565 * emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
566 (EMBEDDED): Define.
567
568 Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
569
570 * ld.texinfo: Add section on reporting bugs.
571
572 * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
573 symbols are correctly aligned.
574
575 start-sanitize-v850
576 Thu Oct 31 09:28:59 1996 Jeffrey A Law (law@cygnus.com)
577
578 * scriptempl/v850.sc (zdata): Handle reszdata, romzdata and
579 romzbss too.
580
581 end-sanitize-v850
582 Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
583
584 * emulparams/d10velf.sh: Changes needed for D10V-EVA board.
585 Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
586 0x2000000.
587
588 * scripttempl/elfd10v.sc: Fix calculation of .text. Change
589 .stack to start at 0x2007ffe.
590
591 Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
592
593 * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
594
595 start-sanitize-v850
596 Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
597
598 * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
599
600 * scriptempl/v850.sc (zdata): Make sure this stays
601 in lo-memory.
602
603 Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
604
605 * scripttempl/v850.sc (__ep): Put it at the start
606 of the tda section.
607
608 * scriptempl/v850.sc: Move all "normal" sections into
609 the external memory region (0x100000 - 0x200000).
610
611 end-sanitize-v850
612 Mon Oct 21 17:16:59 1996 Michael Meissner <meissner@wogglebug.tiac.net>
613
614 * scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
615 0x10000, so that is more room for data.
616
617 * emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
618 (READONLY_START_ADDR): Now 0x0.
619 (SCRIPT_NAME): Now elfd10v.
620
621 * Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
622
623 Fri Oct 18 22:12:49 1996 Doug Evans <dje@canuck.cygnus.com>
624
625 * emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
626
627 Fri Oct 18 15:43:38 1996 Ian Lance Taylor <ian@cygnus.com>
628
629 * Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
630 (ALL_64_EMULATIONS): New variable.
631 * configure.in: Accept --enable-64-bit-bfd option. If it is set
632 with --enable-targets=all, include ALL_64_EMULATIONS in
633 EMULATION_OFILES.
634 * configure: Rebuild.
635
636 start-sanitize-v850
637 Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
638
639 * scripttempl/v850.sc (__gp, __ep): Define.
640
641 end-sanitize-v850
642 Thu Oct 17 18:14:07 1996 Ian Lance Taylor <ian@cygnus.com>
643
644 * ld.texinfo: Try to consistently use a single or a double dash
645 for each option.
646
647 Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
648
649 * emulparams/m32relf.sh (EMBEDDED): Define.
650
651 start-sanitize-v850
652 Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
653
654 * scripttempl/v850.sc (.zdata): Add this before .text.
655 (.sdata): Also include .rosdata as part of the .sdata.
656 (.tdata): Include this just before .sdata.
657
658 * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
659 * scripttempl/v850.sc: Wrap script with a "cat << EOF".
660
661 Wed Oct 16 23:10:01 1996 Jeffrey A Law (law@cygnus.com)
662
663 * scripttempl/v850.sc: New linker script for the V850.
664 * Makefile.in: Use it.
665
666 end-sanitize-v850
667 Thu Oct 10 17:57:00 1996 Ian Lance Taylor <ian@cygnus.com>
668
669 * emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
670 OTHER_READWRITE_SECTIONS.
671 * emulparams/elf32l4300.sh: Likewise.
672
673 Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
674
675 * ld.h (ld_config_type): Add warn_section_align field.
676 * lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
677 (ld_options): Add --warn-section-align.
678 (parse_args): Handle --warn-section-align.
679 * ldlang.c (lang_size_sections): If warn_section_align, warn if
680 the start of a section changes due to alignment.
681 * ld.texinfo, ld.1: Document --warn-section-align.
682 * ld.texinfo: Change some single dashes to double dashes.
683
684 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
685 subsystem type. Ifdef out os2 type. Recognize a version number.
686
687 Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
688
689 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
690 to windows, set the entry point.
691
692 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
693
694 Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
695
696 * ld.texinfo (Options): Mention .so extensions for shared
697 libraries.
698
699 Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
700
701 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
702
703 Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
704
705 * scripttempl/m68kcoff.sc: Only set the address of .text if
706 RELOCATING.
707
708 Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
709
710 * emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
711 * scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
712 (OUTPUT_FORMAT): Support bi-endian targets.
713
714 Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
715
716 * fnmatch.h, fnmatch.c: Remove (now in libiberty).
717 * Makefile.in: Rebuild dependencies.
718 (CFILES): Remove fnmatch.c.
719 (HFILES): Remove fnmatch.h.
720 (OFILES): Remove fnmatch.o.
721
722 Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
723
724 * Makefile.in (mostlyclean): Move config.log to distclean.
725
726 Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
727
728 * emultmpl/pe.em: increase size of stack reserve to 0x2000000
729 (necessary in order to compile parse.c in gcc sources under NT)
730
731 Wed Oct 2 14:49:10 1996 Ian Lance Taylor <ian@cygnus.com>
732
733 * lexsup.c (ld_options): Fix typo in --rpath-link description.
734 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
735 --rpath if a needed library is not found.
736
737 Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
738
739 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
740
741 Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
742
743 * ld.texinfo (Options): Give more detail on -l option.
744
745 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
746 elf.sc does, so that glibc works better.
747
748 * ldver.c (ld_program_version): New variable.
749 (ldversion): Use it.
750 * ldver.h (ld_program_version): Declare.
751 * lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
752 --version. Change --version handling to match current GNU
753 standards.
754 (help): Print bug report address.
755
756 Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
757
758 * Makefile.in (em32relf.c): Add rule for.
759 * configure.tgt (m32r-*-*): Recognize.
760 * emulparams/m32relf.sh: New file.
761
762 Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
763
764 * mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
765 * mpw-config.in: Add mips-*-* case as mips-elf, and use more
766 wildcards in matching.
767 * mpw-emipself.c: New file, pregenerated mips elf emulation.
768
769 Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
770
771 * ldint.texinfo: Rewrote.
772
773 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
774
775 Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
776
777 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
778 syntax error on __end__ line.
779
780 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
781 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
782
783 start-sanitize-v850
784 Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
785
786 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
787
788 end-sanitize-v850
789 Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
790
791 * emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
792 stack at top of simulator memory.
793
794 Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
795
796 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
797
798 Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
799
800 * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
801
802 Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
803
804 * ldlang.c (section_already_linked): Accept a lang_input_statement
805 as the PTR argument. If the file is symbols only, discard all
806 input sections.
807 (ldlang_add_file): Pass entry to bfd_map_over_sections.
808
809 Wed Sep 4 15:53:43 1996 Ian Lance Taylor <ian@cygnus.com>
810
811 * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
812 <fila@ibi.com>.
813
814 start-sanitize-v850
815 Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
816
817 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
818
819 Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
820
821 * emulparms/v850.sh: Set EMBEDDED.
822
823 Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
824
825 * emulparms/v850.sh: Entry symbol is "_start", tweak
826 ctor/dtor support.
827
828 end-sanitize-v850
829 Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
830
831 * configure.tgt (sh-*-elf*): New target.
832 * emulparams/shelf.sh: New file.
833 * emulparams/shlelf.sh: New file.
834 * Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
835 (eshelf.c, eshlelf.c): New targets.
836 * scripttempl/elf.sc: If EMBEDDED is defined, then don't add
837 SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
838 around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
839 OTHER_RELOCATING_SECTIONS if RELOCATING.
840
841 Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
842
843 * configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
844 pro.
845
846 Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
847
848 * ldgram.y (section): Add opt_nocrossrefs; pass value to
849 lang_enter_overlay.
850 (opt_nocrossrefs): New nonterminal.
851 * ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
852 * ldlang.c (overlay_nocrossrefs): New static variable.
853 (lang_enter_overlay): Add nocrossrefs parameter.
854 (lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
855 is set. Initialize overlay_nocrossrefs.
856 * ldlang.h (lang_enter_overlay): Update declaration.
857 * ld.texinfo (Overlays): Update documentation.
858
859 * ldver.c (ldversion): Print GNU ld in the version message.
860
861 Thu Aug 22 17:10:40 1996 Ian Lance Taylor <ian@cygnus.com>
862
863 * configure.host: Set HLDENV.
864 * configure.in: Substitute HLDENV.
865 * configure: Rebuild.
866 * Makefile.in (HLDENV): New variable.
867 ($(LD_PROG)): Use $(HLDENV).
868
869 start-sanitize-v850
870 Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
871
872 * Makefile.in (ev850.c): New target.
873 * configure.tgt (v850-*-*): New target.
874 * emulparams/v850.sh: New file.
875
876 end-sanitize-v850
877 Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
878
879 * mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
880
881 Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
882
883 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
884 containing sections.
885
886 Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
887
888 * fnmatch.c: Include sysdep.h.
889
890 Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
891
892 * genscripts.sh: Undo 8/16 change.
893
894 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
895
896 Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
897
898 * genscripts.sh: Explicitly reset any shell variables set or used
899 by the various .sc scripts to allow inadvertant use of these
900 names as normal environment variables by the person running
901 configure.
902
903 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
904
905 Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
906
907 * scripttempl/armcoff.sc (__bss_start__, __bss_end__,
908 __data_start__, __data_end__): Added to keep in sync. with the
909 default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
910
911 Thu Aug 8 14:24:56 1996 Ian Lance Taylor <ian@cygnus.com>
912
913 * ldcref.c (check_reloc_refs): If info->same, look for any symbol
914 defined in info->defsec, not just the section symbol.
915
916 Wed Aug 7 14:40:48 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
917
918 * configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
919 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
920 (NEED_DECLARATION_SBRK): New macro.
921 * configure, config.in: Rebuild.
922 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
923 * ldmain.c (sbrk): Declare if HAVE_SBRK and
924 NEED_DECLARATION_SBRK.
925
926 * ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
927
928 Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
929
930 * ldlex.l: Recognize OVERLAY.
931 * ldgram.y: Add section_phdr field to %union.
932 (section): Handle phdr_opt result. Add OVERLAY case.
933 (opt_exp_without_type): New nonterminal.
934 (phdr_opt): Return list of phdrs.
935 (overlay_section): New nonterminal.
936 * ldlang.c: Include <ctype.h>.
937 (lang_leave_output_section_statement): Add phdrs parameter.
938 Change all callers.
939 (lang_section_in_phdr): Remove.
940 (overlay_vma, overlay_lmn, overlay_max): New static variables.
941 (struct overlay_list): Define.
942 (overlay_list): New static variable.
943 (lang_enter_overlay, lang_enter_overlay_section): New functions.
944 (lang_leave_overlay_section, lang_leave_overlay): New functions.
945 * ldlang.h (lang_leave_output_section_statement): Update
946 declaration for new parameter.
947 (lang_section_in_phdr): Don't declare.
948 (lang_enter_overlay, lang_enter_overlay_section): Declare.
949 (lang_leave_overlay_section, lang_leave_overlay): Declare.
950 * ld.texinfo (Overlays): New node under SECTIONS, documenting
951 overlays.
952
953 * ldlex.l: Recognize MAX and MIN.
954 * ldgram.y (MAX, MIN): New terminals.
955 (exp): Recognize MAX and MIN.
956 * ldexp.c (fold_binary): Handle MAX and MIN.
957 * ld.texinfo (Arithmetic Functions): Document MAX and MIN.
958
959 * ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
960 index entries.
961
962 * ldgram.y (SIZEOF, ADDR): Do not specify type.
963
964 * ldcref.c (check_nocrossref): Skip symbols with no output
965 sections.
966
967 Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
968
969 * ldgram.y (LOADADDR): New terminal.
970 (exp): Handle LOADADDR.
971 * ldlex.l: Recognize LOADADDR.
972 * ldexp.c (exp_print_token): Add LOADADDR.
973 (fold_name): Implement LOADADDR.
974 * ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
975 * ld.texinfo (Arithmetic Functions): Document LOADADDR.
976
977 Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
978
979 * ld.h (check_nocrossrefs): Declare.
980 * ldlang.h (struct lang_nocrossref): Define.
981 (struct lang_nocrossrefs): Define.
982 (nocrossref_list): Declare.
983 (lang_add_nocrossref): Declare.
984 * ldlex.l: Recognize NOCROSSREFS keyword.
985 * ldgram.y (%union): Add nocrossref field.
986 (NOCROSSREFS): New terminal.
987 (ifile_p1): Recognize NOCROSSREFS.
988 (nocrossref_list): New nonterminal.
989 * ldlang.c (nocrossref_list): Define.
990 (lang_add_nocrossref): New function.
991 * ldmain.c (main): If nocrossref_list is not NULL, call
992 check_nocrossrefs.
993 (warning_callback): Free symbols if there is no place to store
994 them.
995 (notice): Call add_cref if nocrossref_list is not NULL.
996 * ldcref.c: Include "ldexp.h" and "ldlang.h".
997 (check_nocrossrefs): New function.
998 (check_nocrossref): New static function.
999 (struct check_refs_info): Define.
1000 (check_refs, check_reloc_refs): New static functions.
1001 * Makefile.in: Rebuild dependencies.
1002 * ld.texinfo (Option Commands): Document NOCROSSREFS.
1003
1004 * ld.texinfo (Section Placement): Improve the wording of the
1005 wildcard documentation. Mention that wildcards are only searched
1006 for on the command line, not in the file system.
1007
1008 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
1009 definition of lib_path inside condition where it is used.
1010
1011 Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1012
1013 * emulparams/d10velf.sh: Now works with elf.sc.
1014
1015 Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1016
1017 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
1018
1019 Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
1020
1021 * ldlang.c (lang_size_sections): Add the section VMA to the result
1022 value when computing the address of a section.
1023
1024 * ld.h (args_type): Add cref field.
1025 * lexsup.c (parse_args): Set command_line.cref.
1026 * ldmain.c (main): Check command_line.cref rather than
1027 link_info.notice_all.
1028 (notice): Likewise.
1029
1030 * ldcref.c (output_one_cref): Don't crash if a symbol is defined
1031 in a section without an owner.
1032
1033 Mon Jul 29 17:23:33 1996 Ian Lance Taylor <ian@cygnus.com>
1034
1035 * fnmatch.h, fnmatch.c: New files.
1036 * ldlex.l: Remove unused definition of FILENAME. Add definition
1037 of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
1038 NAME.
1039 * ldgram.y (file_NAME_list): Accept '*' and '?' specially.
1040 (input_section_spec): Accept '?' specially.
1041 (statement): Change exp to mustbe_exp in length and FILL cases.
1042 (section): Call ldlex_script before section statements, and call
1043 ldlex_popstate after them.
1044 * ldlang.c: Include "fnmatch.h".
1045 (wildcardp): New static function.
1046 (wild_section): Permit the section name to be a wildcard.
1047 (wild_file): New static function, broken out of wild.
1048 (wild): Call wild_file. Permit the file name to be a wildcard.
1049 (open_input_bfds): Don't call lookup_name for a wildcard pattern.
1050 * Makefile.in: Rebuild dependencies.
1051 (CFILES): Add fnmatch.c.
1052 (HFILES): Add fnmatch.h.
1053 (OFILES): Add fnmatch.o.
1054 * ld.texinfo: Document that file and section names can now be
1055 wildcard patterns.
1056
1057 * ldlang.c (lang_place_orphans): Correct condition: place a common
1058 section if not relocateable or if common definitions are forced.
1059
1060 Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1061
1062 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
1063
1064 Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
1065
1066 * configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
1067
1068 Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1069
1070 * Makefile.in (ed10velf.c): New target.
1071 * configure.tgt (d10v-*-elf*): New target.
1072 * emulparams/d10velf.sh: New file.
1073
1074 Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
1075
1076 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
1077 <ANDREWG@microlise.co.uk>.
1078
1079 * configure.host: Change irix5 to irix[56]*.
1080 * configure.tgt: Likewise.
1081
1082 Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
1083
1084 * emultempl/pe.em (sort_sections): Pay attention to return code.
1085
1086 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
1087
1088 Mon Jul 15 11:49:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1089
1090 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
1091 the value of __start_SECNAME to the alignment required by the
1092 section to be placed.
1093
1094 Tue Jul 9 12:09:02 1996 Ian Lance Taylor <ian@cygnus.com>
1095
1096 * configure.tgt (mips*el-*-elf*): Use elf32elmip.
1097 (mips*-*-elf*): Use elf32ebmip.
1098 * emulparams/elf32bmip.sh (EMBEDDED): Don't define.
1099 * emulparams/elf32lmip.sh (EMBEDDED): Don't define.
1100 * emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
1101 EMBEDDED defined.
1102 * emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
1103 EMBEDDED defined.
1104 * emulparams/elf32b4300.sh (EMBEDDED): Define.
1105 * emulparams/elf32l4300.sh (EMBEDDED): Define.
1106 * Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
1107 (eelf32ebmip.c, eelf32elmip.c): New targets.
1108
1109 Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
1110
1111 * ldver.c (ldversion): Set version to cygnus-2.7.1.
1112
1113 * Released binutils 2.7.
1114
1115 * emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
1116 System V file name limitations.
1117 * configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
1118 pc532macha rather than pc532machaout.
1119 * Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
1120 epc532macha.o.
1121 (epc532macha.c): Rename target from epc532machaout.c.
1122
1123 Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
1124
1125 * ldlang.c (print_padding_statement): Use %u, not %x, to print
1126 fill value.
1127
1128 Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1129
1130 * mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
1131
1132 Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
1133
1134 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
1135 file just before the .so file, rather than just after.
1136
1137 * configure.host: Use -print-file-name=FILE rather than piping
1138 -print-libgcc-file-name through sed.
1139 (i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
1140 crtend.o files, in case gcc doesn't use them.
1141 * Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
1142
1143 Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
1144
1145 * configure.tgt (mips*-dec-osf*): New target.
1146
1147 Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1148
1149 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1150 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1151 (docdir): Removed.
1152 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1153 (AC_PROG_INSTALL): Added.
1154 * configure: Rebuilt.
1155
1156 Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1157
1158 * scripttempl/elfppc.sc (_GLOBAL_OFFSET_TABLE_): Don't do a
1159 PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
1160 non-fixed location.
1161
1162 Mon Jun 24 17:55:31 1996 Jouke Numan <jnuman@bazis.nl>
1163
1164 * ldlang.h (enum section_type): Define.
1165 (lang_output_section_statement_type): Remove loadable field. Add
1166 sectype field.
1167 (lang_enter_output_section_statement): Change flags parameter in
1168 prototype to sectype.
1169 * ldgram.y (typebits): Remove.
1170 (sectype): New static variable.
1171 (opt_at): Use sectype rather than typebits.
1172 (type): Set sectype rather than typebits.
1173 (atype): Likewise.
1174 * ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
1175 EXPRESSION mode.
1176 * ldlang.c (lang_output_section_statement_lookup): Set sectype
1177 field rather than loadable field.
1178 (wild_doit): Check sectype rather than loadable.
1179 (lang_record_phdrs): Likewise.
1180 (lang_enter_output_section_statement): Rename flags parameter to
1181 sectype. Set sectype field rather than loadable field. Set flags
1182 field based on sectype.
1183
1184 Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
1185
1186 * scripttempl/elf.sc: Force .stab* and .comment sections to start
1187 at 0.
1188
1189 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
1190 using shared libraries.
1191 * configure: Rebuild with autoconf 2.10.
1192
1193 Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
1194
1195 * configure.tgt: Add support for *-*-rtems* configurations.
1196
1197 Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
1198
1199 * configure.tgt (alpha-*-linuxecoff*): New target.
1200 (alpha-*-linux*): Use elf64alpha.
1201 * emulparams/elf64alpha.sh: New file.
1202 * emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
1203 ${ELFSIZE} rather than 32 when calling BFD routines.
1204 (hold_rodata): New static variable.
1205 (gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
1206 readonly section that is not code.
1207 (gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
1208 a .rel section unless its bfd_section field is not NULL.
1209 * Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
1210 (eelf64alpha.c): New target.
1211
1212 Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
1213
1214 * ldmisc.c (vfinfo): Correct handling of 0 in %W case.
1215
1216 Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
1217
1218 Add enough support to understand the gcc svr3.ifile script:
1219 * ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
1220 BIND keyword.
1221 * ldgram.y: Add BIND token.
1222 (section): Recognize GROUP.
1223 (opt_ext_with_type): Recognize a couple of cases of BIND.
1224 * ldlang.c (init_os): Don't do anything if section is already
1225 initialized. Call exp_init_os on addr_tree field.
1226 (exp_init_os): New static function.
1227 (map_input_to_output_sections): Call exp_init_os on assignment
1228 expression.
1229 (lang_place_orphans): Check for common sections by name COMMON
1230 rather than by common_section field. Don't warn about absence of
1231 [COMMON] command.
1232
1233 * ldlang.h (lang_input_statement_type): Remove useless fields
1234 common_section, common_output_section, and complained, as well as
1235 all references to them.
1236
1237 * ldexp.c: Reindent a lot of code.
1238 (exp_fold_tree): Call FAIL rather than einfo in default case.
1239
1240 Wed Jun 19 11:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
1241
1242 * configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
1243 <randall.hron@medaphis.com>.
1244
1245 Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1246
1247 * scripttempl/h8300s.sc: New file for H8/S.
1248 * emulpararms/h8300s.sh: New file for H8/S.
1249 * Makefile.in (ALL_EMULATIONS): Add H8/S.
1250 (e_h8300s.c): Add dependencies.
1251 * configure.tgt: Add H8/S to targ_extra_emuls.
1252
1253 Tue Jun 18 17:55:39 1996 Ian Lance Taylor <ian@cygnus.com>
1254
1255 * configure.tgt (i[345]86*-*-isc*): New target. From
1256 <uddeborg@carmen.se>.
1257
1258 Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
1259
1260 * lexsup.c: Include "libiberty.h".
1261 (parse_args): Copy the -Y argument into memory.
1262 (set_default_dirlist): Don't put the ':' back into the directory
1263 list.
1264
1265 Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
1266
1267 * emultempl/sunos.em: Include libiberty.h.
1268 (gld${EMULATION_NAME}_set_symbols): New static function to add
1269 LD_LIBRARY_PATH to the list of search directories.
1270 (ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
1271
1272 Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
1273
1274 * emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
1275 rather than . when computing _gp value. From Per Fogelstrom.
1276 * emulparams/elf32lmip.sh (OTHER_GOT_SYMBOLS): Likewise.
1277
1278 * ldmain.c (main): Don't close and unlink the file on error, since
1279 remove_output will do it anyhow.
1280 * ldlang.c (open_output): Set boolean variable to true, not 1.
1281
1282 Wed Jun 5 18:34:14 1996 James G. Smith <jsmith@cygnus.co.uk>
1283
1284 * emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
1285 elfmips instead of elf.
1286
1287 Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
1288
1289 * ldcref.c: New file.
1290 * ld.h (add_cref, output_cref): Declare.
1291 * ldmain.c (main): Initialize notice_all field. If it is set at
1292 end of link, call output_cref.
1293 (notice): Rename from notice_ysym. Check notice_all.
1294 * ldmisc.c (finfo): Make globally visible.
1295 * ldmisc.h (finfo): Declare.
1296 * lexsup.c (OPTION_CREF): Define.
1297 (ld_options): Add "cref".
1298 (parse_args): Handle OPTION_CREF.
1299 * Makefile.in: Rebuild dependencies.
1300 (CFILES): Add ldcref.c.
1301 (OFILES): Add ldcref.o.
1302 * ld.texinfo, ld.1: Document --cref.
1303
1304 Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
1305
1306 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
1307
1308 Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
1309
1310 * emultempl/pe.em (sort_sections): Don't assume that a
1311 wild_statement has a section name.
1312
1313 Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
1314
1315 * scripttempl/elfmips.sc: Quote test -z argument.
1316
1317 * ld.texinfo: Clarify the CONSTRUCTORS command.
1318
1319 Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
1320
1321 * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
1322 file, not impfile.
1323
1324 Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
1325
1326 * ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
1327 if final link.
1328 * emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
1329 (sort_by_section_name, sort_sections_1): New functions.
1330 (sort_sections): Only sort by file name sections in .idata.
1331 Add "Grouped Sections" support.
1332 (gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
1333 Sections.
1334 (gld${EMULATION_NAME}_place_section): Delete.
1335 * scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
1336 (.CRT,.rsrc): Rewrite to use Grouped Section support.
1337
1338 Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
1339
1340 * mpw-eppcmac.c: Update to reflect changes to aix.em.
1341
1342 Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
1343
1344 * ldlang.c (dprint_statement): Stop printing at end of list.
1345
1346 Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
1347
1348 Support for --force-exe-suffix
1349 * ld.h (args_type): Add force_exe_suffix.
1350 * ld.texinfo: Add documentation.
1351 * ldmain.c (main): Add support for option.
1352 * lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
1353 (ld_options, parse_args): Add support for option.
1354
1355 Wed May 15 12:50:25 1996 Jim Wilson <wilson@chestnut.cygnus.com>
1356
1357 * emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
1358
1359 Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1360
1361 * scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
1362 referenced but not defined.
1363
1364 Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1365
1366 * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
1367 Set a new variable to signify if the final target is an embedded
1368 system.
1369 * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
1370 .text for an embedded system.
1371
1372 Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
1373
1374 * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
1375 (gld${EMULATION_NAME}_place_section): New function.
1376 (hold_{section,use,text,rdata,data}): New static locals.
1377 (ld_${EMULATION_NAME}_emulation): Update orphan field.
1378 * scripttempl/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
1379 (INIT,FINI): Delete, unused.
1380 (.text): Document orphan .text.foo sections.
1381 (.rdata): Document orphan .rdata.foo sections.
1382 (.data): Document orphan .data.foo sections.
1383
1384 Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
1385
1386 * scripttempl/h8300.sc: Place ".tiny" sections right
1387 after ".data" sections.
1388 * scripttempl/h8300h.sc: Place ".tiny" sections into
1389 the "tiny" memory region, 0xff8000 through 0xffff00.
1390
1391 * scripttempl/h8300.sc: Set the entry point to the value of
1392 "_start" rather than the start of the text segment.
1393 * scripttempl/h8300h.sc: Likewise.
1394
1395 * scripttempl/h8300.sc: Place .rodata sections before .text
1396 sections in main ram.
1397 * scripttempl/h8300h.sc: Likewise.
1398
1399 Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
1400
1401 * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
1402 8-bit region and 8-bit sections.
1403
1404 Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
1405
1406 * ldlang.c (section_already_linked): Fix typos.
1407
1408 Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
1409
1410 * scripttempl/pe.sc (.endjunk): Define __end__.
1411
1412 Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
1413
1414 * ldlang.c (longest_section_name): Remove.
1415 (SECTION_NAME_MAP_LENGTH): Define.
1416 (print_size, print_alignment, print_fill, print_section): Remove.
1417 (print_flags): Remove.
1418 (lang_map): Rewrite.
1419 (print_output_section_statement): Rewrite.
1420 (print_assignment): Rewrite.
1421 (print_one_symbol): Rewrite.
1422 (print_input_section): Rewrite.
1423 (print_fill_statement): Rewrite.
1424 (print_data_statement): Rewrite.
1425 (print_address_statement): New static function.
1426 (print_reloc_statement): Rewrite.
1427 (print_padding_statement): Rewrite.
1428 (print_wild_statement): Rewrite.
1429 (print_statement_list): Clean up.
1430 (print_statement): Clean up. Some minor output changes.
1431 (print_statements): Clean up.
1432 (load_symbols): Put another - before -whole-archive.
1433 * ldexp.c (exp_print_tree): Change etree_value and etree_rel to
1434 print 0x and to omit leading zeroes. For etree_rel, use %B to
1435 print the BFD. For etree_assign, remove the space after the
1436 destination name.
1437 * ldwrite.c: Include "libiberty.h".
1438 (clone_section): Call xstrdup, not strdup.
1439 (ldwrite): Don't print any map information.
1440 (print_symbol_table, print_file_stuff, print_symbol): Remove.
1441 * ldmain.c (main): Call lang_map when appropriate.
1442 * ldmisc.c (vfinfo): Add support for %W.
1443 (print_address): Remove.
1444 * ldmisc.h (print_address): Don't declare.
1445 * Makefile.in: Rebuild dependencies.
1446
1447 Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1448
1449 * configure.host (m68*-*-linux*): Add -dynamic-linker to
1450 HOSTING_CRT0. Search -lgcc both before and after -lc in
1451 HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
1452 at first.
1453 (i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
1454 directory at first.
1455
1456 Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
1457
1458 * ldmisc.h (demangle): Declare.
1459 * ldmisc.c: Include "libiberty.h". Include demangle.h with "",
1460 not <>.
1461 (demangle): Make non-static. Remove remove_underscore paramter.
1462 Always return an allocated string.
1463 (vfinfo): Free result of demangle. Add case 'G'. Use %T to print
1464 functionname, rather than calling demangle. Print a colon between
1465 the BFD(section+offset) and the line number.
1466 * ldmain.c (add_archive_element): Improve format of archive
1467 information in map file.
1468 (constructor_callback): Don't print anything to the map file.
1469 * ldlang.c (lang_one_common): Improve format of common symbol
1470 information in map file.
1471 * ldctor.c (ldctor_build_sets): If producing a map file, print set
1472 information.
1473 * ldwrite.c (print_symbol_table): Print a newline before the
1474 header in the map file.
1475 * Makefile.in: Rebuild dependencies.
1476
1477 * ldmisc.c (vfinfo): Reindent.
1478
1479 Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
1480
1481 * ldlang.c (lang_size_sections): If _cooked_size is not 0, then
1482 don't clobber it when not relaxing.
1483
1484 * ld.h (ld_config_type): Remove traditional_format field.
1485 * ldmain.c (main): Use link_info.traditional_format rather than
1486 config.traditional_format.
1487 * ldlang.c (ldlang_open_output): Likewise.
1488 * lexsup.c (parse_args): Likewise.
1489 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
1490 * mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
1491
1492 * ldlang.c (wild_doit): Discard debugging sections if we are
1493 stripping debugging information.
1494
1495 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
1496
1497 Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
1498
1499 * ldexp.c (fold_binary): Correct handling of subtraction with
1500 absolute values.
1501 (fold_name): Permit symbols in lang_allocating_phase_enum.
1502
1503 * scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
1504 accidental changes in last patch.
1505
1506 Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1507
1508 * configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
1509 (powerpcle*-*-{sysv,solaris}): Ditto.
1510
1511 Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1512
1513 * scripttempl/aout.sc: Add PROVIDE (__stack = 0) so I can use it
1514 in m68k/crt0.S without things blowing up.
1515
1516 Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1517
1518 * scripttempl/m68kcoff.sc: Remove default address for .data so
1519 .text, .data, and .bss are all sequential.
1520
1521 Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
1522
1523 * scripttempl/m68kcoff.sc: Remove regions and simplify.
1524
1525 Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
1526
1527 * scripttempl/h8300.sc: Add the "8-bit area" in the upper 256
1528 bytes of the address space. Put data from the ".eight" sections
1529 into the 8-bit area.
1530 * scripttempl/h8300h.sc: Likewise.
1531
1532 Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
1533
1534 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
1535 Pass $ARCH to ldfile_set_output_arch instead of setting
1536 ldfile_output_architecture directly.
1537
1538 Tue Apr 9 14:22:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1539
1540 * scripttempl/elfppc.sc (.init,.fini): Put .init, .fini section
1541 next to .text. Put _etext after .text, .init, .fini, and
1542 .rodata{,2} sections.
1543
1544 Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
1545
1546 * ld.texinfo: Rearrange option documentation.
1547
1548 * lexsup.c (ld_options): New static array.
1549 (parse_args): Build shortopts and longopts from ld_options array.
1550 (help): New static function.
1551 * ldver.h (help): Don't declare.
1552 * ldver.c (ldversion): Reindent.
1553 (help): Remove.
1554
1555 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
1556
1557 Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
1558
1559 * emultempl/elf32.em: When checking for a native emulation, check
1560 that the current emulation is the default emulation.
1561 * emultempl/sunos.em: Likewise.
1562
1563 * configure.in: Permit --enable-shared to specify a list of
1564 directories.
1565 * configure: Rebuild.
1566
1567 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
1568 for HP/UX compatibility.
1569
1570 Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
1571
1572 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
1573 static function, if ${host} = ${target}.
1574 (gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
1575 needed shared library if ${host} = $[target}.
1576
1577 * configure.host (i[345]86-*-linux*): Add -dynamic-linker to
1578 HOSTING_CRT0. Search -lgcc both before and after -lc in
1579 HOSTING_LIBS.
1580
1581 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
1582 Polstra <jdp@polstra.com>.
1583
1584 Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
1585
1586 * emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
1587 architecture number.
1588 * scripttempl/elf.sc: Use $MACHINE definition if present.
1589 * configure.tgt (targ_extra_emuls): Force 4100 build to use same
1590 template as 4300.
1591
1592 Mon Apr 1 17:35:40 1996 Ian Lance Taylor <ian@cygnus.com>
1593
1594 * ldlang.c (lang_size_sections): Change region check to handle
1595 regions which end at the highest possible address correctly.
1596 From Roland Weber <roweber@ira.uka.de>.
1597
1598 * ldlang.c (section_already_linked): New static function.
1599 (wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
1600 relocateable link. Don't worry about section being NULL, since it
1601 never should be. Don't call init_os unless the section is going
1602 to be added.
1603 (ldlang_add_file): Call section_already_linked for each section.
1604 * ldmain.c (multiple_definition): Don't warn about multiple
1605 definitions in sections which are being discarded.
1606
1607 Sun Mar 31 00:30:47 1996 steve chamberlain <sac@slash.cygnus.com>
1608
1609 * scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
1610 * emultempl/pe.em (init): Remove special case PPC code.
1611
1612 Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
1613
1614 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
1615 so as not to overwrite the magic syscall entry at 0xc4.
1616 * scripttempl/h8300h.sc: Likewise.
1617
1618 Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
1619
1620 * configure.tgt (sparc64-*-solaris2*): Delete.
1621 Stick with sparc-*-solaris2*.
1622
1623 Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
1624
1625 * ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
1626 * ldlang.c (init_os): Fail on an attempt to initialize any section
1627 named DISCARD_SECTION_NAME.
1628 (wild_doit): Discard input sections assigned to an output section
1629 named DISCARD_SECTION_NAME.
1630 * ld.texinfo: Document use of /DISCARD/.
1631
1632 * ldlang.c: Fix some indentation and comments.
1633
1634 Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
1635
1636 * ldmain.c (main): Call bfd_set_error_program_name.
1637
1638 Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
1639
1640 * ld.texinfo: Fix a couple of indexing entries. Mention that
1641 --verbose displays builtin linker scripts.
1642
1643 * ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
1644 and the local symbol name does not match the filename, print the
1645 filename as well.
1646
1647 Patches from John Polstra <jdp@polstra.com> for FreeBSD ELF:
1648 * lexsup.c (parse_args): -Bshareable is a synonym for -shared.
1649 * emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
1650 as TEXT_START_ADDR.
1651
1652 Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1653
1654 * ld.texinfo: Fix typos. Use @pxref only inside parentheses.
1655
1656 Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
1657
1658 * ldmain.c (add_wrap): New function.
1659 * ldmain.h (add_wrap): Declare.
1660 * lexsup.c (parse_args): Call add_wrap.
1661
1662 Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
1663
1664 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
1665
1666 Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
1667
1668 * scripttempl/h8300.sc: Change name of page zero memory
1669 from "null" to "vectors". Create an output section for
1670 vectors. Add comments on how to explicitly place items
1671 in the vector table.
1672 * scripttempl/h8300h.sc: Likewise.
1673
1674 Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
1675
1676 * emultempl/lnk960.em (machine_table): Add jx and hx.
1677
1678 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
1679 support it.
1680
1681 Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
1682
1683 * ld.h (ld_config_type): Add warn_multiple_gp field.
1684 * lexsup.c (parse_args): Handle --warn-multiple-gp.
1685 * ldmain.c (warning_callback): Suppress multiple gp values warning
1686 if --warn_multiple_gp was not used.
1687 * ld.texinfo, ld.1: Document --warn-multiple-gp.
1688
1689 Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
1690
1691 * lexsup.c (parse_args): Handle --wrap.
1692 * ldmain.c (main): Initialize link_info.wrap_hash.
1693 * ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
1694 and NAME cases.
1695 * ld.texinfo, ld.1: Document --wrap.
1696
1697 * configure: Rebuild with autoconf 2.8.
1698
1699 Don't do SunOS style dynamic linking for sparc-aout:
1700 * configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
1701 (sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
1702 (sparc*-wrs-vxworks*): Likewise.
1703 * emulparams/sparcaout.sh: New file.
1704 * Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
1705 (esparcaout.c): New target.
1706
1707 Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1708
1709 * scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
1710 in a different manner to work around differences in shell variable
1711 expansion.
1712
1713 Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
1714
1715 * ldemul.h (ldemul_unrecognized_file): Declare.
1716 (ldemulation_xfer_type): Add unrecognized_file field.
1717 * ldemul.c (ldemul_unrecognized_file): New function.
1718 * ldlang.c (load_symbols): If a file can not be recognized, call
1719 ldemul_unrecognized_file before trying it as a linker script.
1720 * aix.em (gld${EMULATION_NAME}_unrecognized_file): New static
1721 function.
1722 (gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
1723 (ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
1724
1725 Mon Mar 4 14:11:17 1996 Ian Lance Taylor <ian@cygnus.com>
1726
1727 * ldlang.c (wild): Handle foo.a(.text) by mapping each included
1728 member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
1729
1730 Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1731
1732 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
1733 Search trinary.cond rather than searching trinary.lhs twice.
1734
1735 Tue Feb 27 15:08:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1736
1737 * mpw-make.sed: Edit out shared library support.
1738 (@TDIRS@): Edit out, can't use genscripts.
1739
1740 Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1741
1742 * configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
1743 * emulparams/m68klinux.sh: New file.
1744 * emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
1745 Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
1746 bfd_linux_size_dynamic_sections.
1747 * Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
1748 (em68klinux.c): New target.
1749 * configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
1750
1751 Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
1752
1753 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
1754 Fill in missing entries.
1755
1756 * lexsup.c (parse_args): Recognize --no-whole-archive.
1757 * ldlang.h (lang_input_statement_type): Add whole_archive field.
1758 * ldlang.c (new_afile): Set whole_archive field.
1759 (load_symbols): Check input file specific whole_archive field
1760 rather than global variable.
1761 * ld.texinfo, ld.1: Document --no-whole-archive.
1762
1763 Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
1764
1765 * configure.tgt: Correct gldi960 to gld960.
1766
1767 Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
1768
1769 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
1770 the SONAME if it is available.
1771 (gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
1772 filename, when checking for conflicting library versions. Don't
1773 assume that the suffix is only numbers and dots.
1774
1775 * ld.texinfo: Mention that -R can be used for -rpath.
1776
1777 Sun Feb 18 15:05:17 1996 Ian Lance Taylor <ian@cygnus.com>
1778
1779 * configure.host: Check for 'do not mix' from native linker before
1780 trying to use -rpath.
1781
1782 Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
1783
1784 * configure.in: Remove explicit substitution of CFLAGS; autoconf
1785 does it anyhow.
1786 * configure: Rebuild.
1787 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
1788
1789 * configure.in: Call AC_PROG_CC before configure.host.
1790 * configure: Rebuild.
1791 * configure.host: Remove go32 host, since it should no longer be
1792 necessary. Don't set CC for romp host.
1793
1794 * scripttempl/elf.sc: Don't skip a page in virtual memory space if
1795 the text segment ends exactly on a page boundary.
1796
1797 * configure.in: Substitute RPATH_ENVVAR.
1798 * configure: Rebuild.
1799 * configure.host: Set RPATH_ENVVAR.
1800 * Makefile.in (RPATH_ENVVAR): New variable.
1801 (check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
1802
1803 Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
1804
1805 * configure.in: Redo emulation handling so that each emulation
1806 searches the correct tool directory, based on the target alias.
1807 For example, "configure --enable-targets=m68k-coff i386-linux"
1808 will search /usr/local/i386-linux/lib for linux and
1809 /usr/local/m68k-coff/lib for m68k-coff.
1810 * configure: Rebuild.
1811 * configure.tgt: Add special tdir settings for Linux.
1812 * Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
1813 for each eEMUL.c target.
1814 * genscripts.sh: Accept specific alias as 9th argument, and use it
1815 in LIB_PATH.
1816
1817 Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
1818
1819 * ldlang.c (lang_set_startof): Don't do anything for a
1820 relocateable link.
1821
1822 * ldgram.y (mri_script_file): Call mri_draw_tree.
1823 * mri.c (mri_draw_tree): Make globally visible. Don't bother to
1824 create memory regions.
1825 (mri_load): Don't call mri_draw_tree.
1826 * mri.h (mri_draw_tree): Declare.
1827
1828 * configure.tgt (m68*-*-psos): New target.
1829 * emulparams/m68kpsos.sh: New file.
1830 * scripttempl/psos.sc: New file.
1831 * Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
1832 (em68kpsos.c): New target.
1833
1834 Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
1835
1836 * configure.tgt (*-*-ieee*): New target; use vanilla.
1837
1838 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
1839 `:foo' from ${ARCH}.
1840
1841 Tue Feb 13 15:58:58 1996 Bryan Ford <baford@snake.cs.utah.edu>
1842
1843 * scripttempl/i386msdos.sc: Don't pad the .text section. Put
1844 .rodata in .data.
1845
1846 Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
1847
1848 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
1849
1850 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
1851 it looks like we might be linking in two different versions of the
1852 same shared library. Based on a patch from H J Lu <hjl@zoom.com>.
1853
1854 Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
1855
1856 * ldlang.c (lang_size_sections): Increment the section size when a
1857 padding statement is encountered.
1858
1859 Wed Feb 7 14:01:33 1996 Ian Lance Taylor <ian@cygnus.com>
1860
1861 * configure.in: Look for --enable-shared. Change the value of
1862 BFDLIB when linking against a shared library on SunOS.
1863 * configure: Rebuild.
1864 * configure.host: If using a shared BFD library, try to pass a
1865 reasonable -rpath option when linking.
1866 * Makefile.in (BFDLIB): Set to @BFDLIB@.
1867
1868 Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
1869
1870 * emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
1871 * emultempl/generic.em: Strip `:foo' from ${ARCH}.
1872
1873 Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
1874
1875 Support for building bfd and opcodes as shared libraries, based on
1876 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
1877 * configure.in (HLDFLAGS): New substitution.
1878 * configure: Rebuild.
1879 * configure.host: Set HLDFLAGS on SunOS.
1880 * Makefile.in (HLDFLAGS): New variable.
1881 (BFDDEP): New variable.
1882 (BFDLIB): Change to -L../bfd -lbfd.
1883 ($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
1884 $(HLDFLAGS) in link.
1885 (check): Set LD_LIBRARY_PATH in the environment.
1886
1887 Fri Feb 2 19:26:25 1996 Michael Meissner <meissner@wogglebug.tiac.net>
1888
1889 * scripttempl/elfppc.sc (.sdata2, .sbss2): Put .sdata2 and .sbss
1890 in the read-only section, not read/write unless we are making a
1891 shared library.
1892 (.debug*): Add dwarf debug sections.
1893 (.rela.{sdata*,sbss*}): Add sections.
1894
1895 Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
1896
1897 * configure: Regenerate.
1898
1899 Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
1900
1901 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
1902 for SVR4 compatibility.
1903
1904 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
1905
1906 Wed Jan 31 17:30:19 1996 Steve Chamberlain <sac@slash.cygnus.com>
1907
1908 * configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
1909 * emultempl/pe.em (definfo init): Make the default stack reserve
1910 of a PPC larger.
1911
1912 Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
1913
1914 * configure.tgt (m68*-apple-aux*): New target.
1915 * emulparams/m68kaux.sh: New file.
1916 * scripttempl/m68kaux.sc: New file.
1917 * Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
1918 (em68kaux.c): New target.
1919
1920 Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
1921
1922 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
1923 -bnoentry, since the right thing tends to happen anyhow.
1924
1925 Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
1926
1927 * ld.texinfo, ld.1: Document -export-dynamic.
1928
1929 Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1930
1931 * emultempl/sunos.em: Check for native compile by comparing
1932 ${target} and ${host}.
1933
1934 Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1935
1936 * emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
1937 TEXT_START_ADDR to allow use on IDT and PMON systems.
1938
1939 Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
1940
1941 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
1942 correct spelling.
1943
1944 Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
1945
1946 * configure.tgt (sparc64-*-solaris2*): New configuration.
1947 (sparc64-*-aout*): Renamed from sparc64*.
1948
1949 Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1950
1951 * Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
1952 * genscripts.sh: Set host, target and target_alias variables.
1953 Check for native compile by comparing ${target} and ${host}.
1954 * emultempl/elf32.em: Likewise.
1955 * scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
1956
1957 Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1958
1959 * scripttempl/elfppc.sc: Refine eabi support to better support
1960 .sdata, .sdata2, .sbss, etc. sections.
1961
1962 Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
1963
1964 * ldgram.y (%union): Add phdr field.
1965 (phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
1966 (phdr_qualifiers): New nonterminal. Add support for FLAGS.
1967 (opt_hdrs, hdr): Remove.
1968 (phdr_val): New nonterminal.
1969 * ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
1970 and phdrs parameters. Add flags parameter.
1971 (lang_record_phdrs): Update for changes to lang_phdr. Pass flags
1972 to bfd_record_phdr.
1973 * ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
1974 phdrs fields. Add flags field.
1975 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
1976 (lang_new_phdr): Update declaration.
1977 * ld.texinfo: Document FLAGS.
1978
1979 Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
1980
1981 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
1982 Don't make a shared library because of an undefined reference to
1983 __GLOBAL_OFFSET_TABLE_.
1984
1985 Add some Irix 5 support, mostly from Kazumoto Kojima
1986 <kkojima@info.kanagawa-u.ac.jp>:
1987 * emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
1988 (SHLIB_TEXT_START_ADDR): Define.
1989 (OTHER_GOT_SYMBOLS): Define.
1990 (OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
1991 (EXECUTABLE_SYMBOLS): Don't define.
1992 (DYNAMIC_LINK): Don't define.
1993 * emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
1994 * scripttempl/elfmips.sc: New file.
1995 * configure.host (mips*-dec-bsd*): Change mips to mips*.
1996 (mips*-sgi-irix4*): Likewise.
1997 (mips*-sgi-irix5*): New entry.
1998 * Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
1999 elf.sc.
2000 (eelf32lmip.c): Likewise.
2001
2002 Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2003
2004 * scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
2005 .rela.got.neg section.
2006
2007 Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
2008
2009 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
2010
2011 * ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
2012 ANSI_PROTOTYPES is defined. Remove special handling of
2013 WINDOWS_NT. Various indendation fixes.
2014 (vfinfo): Change fmt parameter to const char *.
2015 (info_msg): Write <stdarg.h> version.
2016 (einfo, minfo, finfo): Likewise.
2017 (info_assert): Change file parameter to const char *.
2018 * ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
2019 defined, use a real prototype.
2020 (info_assert): Change first parameter to be const char *.
2021
2022 Fri Jan 12 13:29:55 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2023
2024 * scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
2025 in old support that 2.7.2 needs, but the current compiler does
2026 not.
2027
2028 * Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
2029 correct Linker script template.
2030
2031 * emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
2032 not 0x400000.
2033 (DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
2034
2035 Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
2036
2037 * scripttempl/alpha.sc: Put .rconst right after .rdata.
2038
2039 Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
2040
2041 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
2042 sort using right pointer.
2043
2044 Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2045
2046 * scripttempl/elfppc.sc: Remove support for creating special
2047 labels for eabi section begin/end here. The compiler now uses
2048 crt{i,n}.o to create these symbols.
2049
2050 Thu Jan 4 17:08:58 1996 Ian Lance Taylor <ian@cygnus.com>
2051
2052 * configure.host: Change existing Linux HOSTING_CRT0 to be used
2053 for a.out only, and put in appropriate HOSTING_CRT0 and
2054 HOSTING_LIBS values for Linux ELF.
2055
2056 Thu Jan 4 12:02:05 1996 Doug Evans <dje@canuck.cygnus.com>
2057
2058 * scripttempl/h8300.sc: Use all 64K for ram.
2059 * scripttempl/h8300h.sc: Define 256K ram size.
2060
2061 Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
2062
2063 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
2064 export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
2065 was used, regardless of whether -bE was used.
2066
2067 Tue Dec 19 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
2068
2069 * emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
2070 relocateable before calling ldctor_build_sets if the output file
2071 is in an XCOFF format.
2072
2073 Fri Dec 15 16:34:36 1995 Ian Lance Taylor <ian@cygnus.com>
2074
2075 * ldwrite.c (build_link_order): When handling a data statement, if
2076 the endianness of the output file is unknown, use the endianness
2077 of the input file.
2078
2079 Tue Dec 12 13:55:41 1995 Stan Shebs <shebs@andros.cygnus.com>
2080
2081 * mpw-config.in: Recognize mips-*-* as equivalent to
2082 mips-idt-ecoff.
2083 * mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
2084 * mpw-ld.r: Add version resources.
2085 (cfrg): Use symbolic instead of literal name for executable.
2086
2087 Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
2088
2089 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
2090
2091 Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
2092
2093 * ldlang.c (print_statement{,s}): Delete duplicate prototype.
2094 (print_statement_list): Renamed from print_statement. All callers
2095 updated.
2096 (print_statement): New function to print just one statement.
2097 (print_{data,reloc,padding}_statement): Don't crash if
2098 output_section == NULL.
2099 (dprint_statement): New function.
2100
2101 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
2102 call to sort_sections.
2103
2104 Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
2105
2106 * emultempl/aix.em (unix_ld): New static variable.
2107 (gld${EMULATION_NAME}_parse_args): Handle -unix.
2108 (gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
2109 gc as false and export_defineds as true to size_dynamic_sections.
2110
2111 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
2112 phase if the current section is abs_output_section.
2113
2114
2115 Tue Dec 5 09:49:39 1995 Doug Evans <dje@canuck.cygnus.com>
2116
2117 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
2118 to sort_sections.
2119
2120 Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
2121
2122 * ldgram.y (PHDRS): New token.
2123 (ifile_p1): Accept phdrs.
2124 (section): Accept phdr_opt at the end of the section definition.
2125 (phdr_op): New nonterminal.
2126 (phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
2127 * ldlex.l: Accept PHDRS.
2128 * ldlang.h (struct lang_output_section_phdr_list): Define.
2129 (lang_output_section_statement_type): Add phdrs field.
2130 (struct lang_phdr): Define.
2131 (LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
2132 (lang_new_phdr): Declare.
2133 * ldlang.c (lang_phdr_list): New static variable.
2134 (lang_output_section_statement_lookup): Initialize phdrs field.
2135 (lang_process): Call lang_record_phdrs.
2136 (lang_new_phdr): New function.
2137 (lang_section_in_phdr): New function.
2138 (lang_record_phdrs): New static function.
2139 * ld.texinfo: Document PHDRS.
2140
2141 Thu Nov 30 13:14:30 1995 Kim Knuttila <krk@cygnus.com>
2142
2143 * scripttempl/ppcpe.sc: Moved .edata into its own section to
2144 expose it.
2145
2146 Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2147
2148 * configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
2149 HOSTING_LIBS for testing.
2150 (m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
2151 testing.
2152
2153 Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
2154
2155 * lexsup.c (parse_args): Set config.dynamic_link to false for -N
2156 and -n.
2157
2158 Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
2159
2160 * configure: Rebuild with autoconf 2.7.
2161
2162 Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
2163
2164 * scripttempl/pe.sc: Two .junk's is too much junk.
2165
2166 Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
2167
2168 * configure.in: Use BFD_NEED_DECLARATION.
2169 * acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
2170 * configure, config.in: Rebuild with autoconf 2.6.
2171
2172 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
2173 being unsupported if this is not a relocateable link and the input
2174 BFD supports it, since ldctor_build_sets can cope with that case.
2175
2176 Fri Nov 17 16:23:15 1995 Stan Shebs <shebs@andros.cygnus.com>
2177
2178 * configure.tgt (powerpc-*-macos*): New target.
2179 * emulparams/ppcmacos.sh: New file, PowerMac emulation.
2180 * Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
2181 (eppcmacos.c): New target.
2182 * mpw-eppcmacos.c: Update.
2183 * mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
2184
2185 Fri Nov 17 10:37:27 1995 Ian Lance Taylor <ian@cygnus.com>
2186
2187 * Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
2188 $(host_canonical) and $(target_canonical).
2189 (CXX_FOR_TARGET): Likewise.
2190
2191 Thu Nov 16 11:23:42 1995 Doug Evans <dje@canuck.cygnus.com>
2192
2193 * scripttempl/pe.sc (.endjunk): Move definition of `end' to here
2194 so the malloc heap begins at a sane place.
2195
2196 Thu Nov 16 03:09:32 1995 Ken Raeburn <raeburn@cygnus.com>
2197
2198 Version 2.6 released.
2199 * ldver.c (ldversion): Update to 2.6.
2200
2201 * Makefile.in (mostlyclean): Delete ldemul-list.h here, but not
2202 $(GENERATED_*FILES), since they need to be retained by distclean.
2203 (maintainer-clean, realclean): Delete them here.
2204
2205 Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
2206
2207 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
2208 base file with FOPEN_WB, not "w".
2209
2210 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
2211 environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
2212 were used.
2213 (gld${EMULATION_NAME}_before_allocation): Use the environment
2214 variable LD_RUN_PATH if -rpath was not used.
2215 * ld.texinfo, ld.1: Document LD_RUN_PATH.
2216
2217 Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
2218
2219 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
2220 -bl and -bloadmap options.
2221
2222 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
2223 report a better error.
2224
2225 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
2226 new local variable special_sections, and pass it to
2227 size_dynamic_sections. Look through the results, and move the
2228 sections around in the mapping so that they are defined correctly.
2229
2230 Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
2231
2232 * ldemul.c (ldemul_default_target): Cast getenv return value.
2233
2234 Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
2235
2236 * emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
2237 Executable support.
2238 * scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
2239 support.
2240
2241 * configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
2242 * Makefile.in (ALL_EMULATIONS): Added eppcpe.o target.
2243
2244 * emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
2245 (gld_$_before_allocation): added hooks for toc construction based
2246 on the above macro.
2247
2248 Tue Nov 7 11:47:23 1995 Ian Lance Taylor <ian@cygnus.com>
2249
2250 * ld.texinfo: The linker does not use _main as an entry point.
2251
2252 Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2253
2254 * scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
2255 0x2000 not 0x200.
2256
2257 Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
2258
2259 * configure.in: Add test for whether free must be declared.
2260 * sysdep.h: Declare free if necessary. Include "ansidecl.h".
2261 * acconfig.h: Explain NEED_DECLARATION_FREE.
2262 * configure, config.in: Rebuild.
2263
2264 * lexsup.c (parse_args): Take B:: out of shortopts.
2265
2266 Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
2267
2268 * emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
2269 for now, as with m68k4kbsd, until shared library support gets
2270 done.
2271
2272 * configure.host: For i386 BSD variants, crt0.o lives in
2273 /usr/lib. (True for NetBSD at least, unconfirmed for others.)
2274
2275 Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2276
2277 * Makefile.in (ALL_EMULATIONS): Add edelta68.o.
2278 (edelta68.c): New target.
2279 * configure.tgt (m68*-motorola-sysv*): New target.
2280 * emulparams/delta68.sh: New file.
2281 * scripttempl/delta68.sc: New file.
2282
2283 * scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
2284 addresses.
2285
2286 Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
2287
2288 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
2289 ALIGN and ALIGNMOD statements.
2290
2291 * emultempl/aix.em: Include ldgram.h.
2292 (gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
2293 AIX 4.1.
2294 * Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
2295
2296 Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
2297
2298 * configure.host (alpha-*-linux*): New host.
2299 * configure.tgt (alpha-*-linux*): New target.
2300
2301 Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
2302
2303 * emultempl/aix.em (export_files): Remove.
2304 (import_files): Make static.
2305 (struct export_symbol_list): Define.
2306 (export_symbols): New static variable.
2307 (gld${EMULATION_NAME}_parse_args): Handle an initial -b option
2308 correctly. Call read_file for an export file.
2309 (gld${EMULATION_NAME}_before_allocation): Call
2310 bfd_xcoff_export_symbol for each export symbol, rather than
2311 calling read_file for each export file.
2312 (gld${EMULATION_NAME}_read_file): For an export file, make the
2313 exported symbols undefined, and store them on the export_symbols
2314 list.
2315
2316 Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
2317
2318 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
2319 Don't hang if last option is unrecognised.
2320 (gld_${EMULATION_NAME}_set_symbols): Insert created
2321 symbols into ABS output section.
2322
2323 Fri Oct 27 18:03:17 1995 Niklas Hallqvist <niklas@appli.se>
2324
2325 * Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
2326 m68k4k arch.
2327 (em68k4knbsd.c): New rule.
2328
2329 * configure.tgt: Added support for the NetBSD m68k4k arch.
2330
2331 * genscripts.sh, ldint.texinfo,
2332 emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
2333 gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
2334 hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
2335 i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
2336 m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
2337 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
2338 st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
2339 PAGE_SIZE to TARGET_PAGE_SIZE.
2340
2341 * emulparams/m68knbsd.h: Ditto.
2342 (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
2343 (EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
2344 being.
2345
2346 * emulparams/m68k4knbsd.sh: New file.
2347
2348 * scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
2349
2350 Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
2351
2352 * emultempl/aix.em: Include ldctor.h.
2353 (gld${EMULATION_NAME}_after_open): New static function.
2354 (gld${EMULATION_NAME}_before_allocation): Call find_relocs.
2355 (gld${EMULATION_NAME}_find_relocs): New static function.
2356 (gld${EMULATION_NAME}_find_exp_assignment): New static function.
2357 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
2358 * scripttempl/aix.sc: Use CONSTRUCTORS in .data.
2359 * ldctor.c (struct set_info): Move definition into ldctor.h.
2360 (struct set_element): Likewise.
2361 (sets): Make non-static.
2362 (ldctor_add_set_entry): Add name parameter. Save it in the new
2363 set element.
2364 (ldctor_build_sets): Avoid being called twice. Pass set element
2365 name to lang_add_reloc.
2366 * ldctor.h (struct set_info): Move definition here from ldctor.c.
2367 (struct set_element): Likewise. Add new field name.
2368 (sets): Declare.
2369 (ldctor_add_set_entry): Declare new name parameter.
2370 * ldwrite.c (build_link_order): Don't insist that either name or
2371 section be NULL in a lang_reloc_statement.
2372 * ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
2373 new name parameter.
2374 (constructor_callback): Pass name to ldctor_add_new_set_entry for
2375 new name parameter.
2376
2377 * ldmisc.c (demangle): Fix indentation. Remove a leading period.
2378
2379 Thu Oct 26 22:22:49 1995 Stan Shebs <shebs@andros.cygnus.com>
2380
2381 * mpw-config.in: Add PowerMac target support, generate config.h.
2382 * mac-ld.r: New file, Mac resources.
2383 * mpw-make.sed: New file, edits Makefile.in into MPW syntax.
2384 * mpw-make.in: Remove.
2385 * mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
2386
2387 Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
2388
2389 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
2390 -static as a synonym for -bnso.
2391
2392 * scripttempl/aix.sc: Move special symbols inside sections.
2393 Always start .data at 0.
2394
2395 Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
2396
2397 * Makefile.in (diststuff): Also make info.
2398 (maintainer-clean realclean): Also delete *.info*.
2399
2400 Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
2401
2402 * emultempl/aix.em: Add support for various AIX linker options,
2403 for AIX import and export files, and for AIX shared objects.
2404 * scripttempl/aix.sc: Add .pad. Put .ds just before the TOC.
2405
2406 * ldmain.c (main): Initialize new field link_info.static_link.
2407
2408 * ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
2409 (constructor_callback): Likewise.
2410 * ldmisc.c (vfinfo): Likewise.
2411 * ldwrite.c (build_link_order): Likewise.
2412
2413 * ld.texinfo: The MRI ALIGN directive is supported.
2414
2415 Mon Oct 23 11:46:43 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
2416
2417 * emulparams/elf32vr4300.sh: Deleted.
2418 * emulparams/elf32vr4300el.sh: Deleted.
2419 * emulparams/elf32b4300.sh: Added.
2420 * emulparams/elf32l4300.sh: Added.
2421 * configure.tgt, Makefile.in: Updated the build to use the
2422 new 8.3 unique names.
2423
2424 Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
2425
2426 * ldlang.c (entry_symbol): Make non-static.
2427 * ldlang.h (entry_symbol): Declare.
2428
2429 * ldlex.l: Treat PROVIDE as a keyword in expression state.
2430
2431 Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
2432
2433 * scripttempl/pe.sc (.bss): Move to be after .text
2434
2435 Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
2436
2437 * emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
2438 Search trinary.cond rather than searching trinary.lhs twice. From
2439 linli@ihp.PHys.ethz.CH.
2440
2441 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
2442 directory searching code into gld${EMULATION_NAME}_search_dir.
2443 (gld${EMULATION_NAME}_search_dir): New static function, extracted
2444 from gld${EMULATION_NAME}_find_so.
2445 (global_needed, global_found): New static variables.
2446 (gld${EMULATION_NAME}_after_open): New static function.
2447 (gld${EMULATION_NAME}_search_needed): New static function.
2448 (gld${EMULATION_NAME}_try_needed): New static function.
2449 (gld${EMULATION_NAME}_check_needed): New static function.
2450 (ld_${EMULATION_NAME}_emulation): Use new after_open function.
2451 * ld.texinfo, ld.1: Mention -rpath-link on SunOS.
2452
2453 * Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
2454 (eelf32lppc.c): Likewise.
2455 * emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
2456 (GENERATE_SHLIB_SCRIPT): Define as yes.
2457
2458 Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
2459
2460 * emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
2461 bfd_link_needed-list; make appropriate changes.
2462
2463 * configure.tgt (powerpc-*-aix*): New target; use aixppc.
2464 (rs6000-*-aix*): New target; use aixrs6.
2465 * emulparams/aixppc.sh, emulparams/aixrs6.sh: New files.
2466 * emultempl/aix.em: New file.
2467 * scripttempl/aix.sc: New file.
2468 * Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
2469 (eaixppc.c, eaixrs6.c): New targets.
2470
2471 Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
2472
2473 * scripttemp/pe.sc (.reloc): Move to the end.
2474
2475 Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
2476
2477 * ldlang.c (lang_finish): Don't try to use an entry_symbol from a
2478 section which was not linked into the final output.
2479
2480 Tue Oct 10 10:17:22 1995 steve chamberlain <sac@slash.cygnus.com>
2481
2482 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
2483 fatal typos.
2484
2485 Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
2486
2487 * ld.h (args_type): Add rpath_link field.
2488 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
2489 required dependencies in rpath_link path. Only search
2490 LD_LIBRARY_PATH when configured native.
2491 * lexsup.c (parse_args): Recognize -rpath-link.
2492 * ld.1, ld.texinfo: Document -rpath-link.
2493
2494 Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
2495
2496 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2497 bother searching for needed libraries unless doing a final link.
2498
2499 Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
2500
2501 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2502
2503 * ld/ld.1: Fix formatting bugs.
2504
2505 Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
2506
2507 * ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
2508 * ldexp.h (exp_get_abs_int): Update declaration.
2509 * ldlang.c (print_output_section_statement): Use fprintf_vma to
2510 print return value of exp_get_abs_int.
2511
2512 Mon Oct 2 13:56:09 1995 Ian Lance Taylor <ian@cygnus.com>
2513
2514 * emultempl/elf32.em (global_stat): New file static variable.
2515 (gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
2516 that the file has not already been included under another name.
2517 (gld${EMULATION_NAME}_stat_needed): New static function.
2518
2519 Fri Sep 29 12:00:18 1995 Doug Evans <dje@deneb.cygnus.com>
2520
2521 * scripttempl/armcoff.sc: Start .text at 0x8000.
2522 Start .data at 0x40000.
2523
2524 Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
2525
2526 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
2527 command_line.rpath is set, use it, rather than the -L options, to
2528 build the rules section.
2529 * ld.texinfo: Document this use of -rpath.
2530
2531 * lexsup.c (parse_args): Don't set link_info.shared for -assert
2532 pure-text. Pass true, not 1, to lang_add_entry.
2533 * emultempl/sunos.em (find_assign): New static variable.
2534 (found_assign): New static variable.
2535 (gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
2536 If not a relocateable link, and no start symbol was specified on
2537 the command line, and there are any undefined symbols, set
2538 link_info.shared. If link_info.shared is set, set the address of
2539 the .text section to 0x20.
2540 (gld${EMULATION_NAME}_find_assignment): Rename from
2541 gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
2542 set, then just set found_assign based on whether an assignment is
2543 found to find_assign.
2544 (gld${EMULATION_NAME}_get_script): Don't use a special script when
2545 producing a shared library.
2546 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
2547 * scripttempl/aout.sc: Remove CREATE_SHLIB tests.
2548 * ldlang.c (entry_from_cmdline): New global variable.
2549 (lang_add_entry): Change cmdline parameter from int to boolean.
2550 Use global entry_from_cmdline rather than function static
2551 from_cmdline.
2552 * ldlang.h (entry_from_cmdline): Declare.
2553 (lang_add_entry): Change declaration of second parameter from int
2554 to boolean.
2555 * ldgram.y: Pass false, not 0, to lang_add_entry.
2556
2557 Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
2558
2559 * ld.h (parsing_defsym): Declare.
2560 * ldlex.h (lex_string): Declare.
2561 * ldlex.l (lex_string): Define.
2562 * lexsup.c (parsing_defsym): Define.
2563 (parse_args): In OPTION_DEFSYM case, set lex_string before calling
2564 lex_redirect, and clear it after calling yyparse. Set
2565 parsing_defsym around call to yyparse.
2566 * ldmain.c (main): Set lex_string before calling lex_redirect, and
2567 clear it after calling yyparse.
2568 * ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
2569 in linker scripts correctly.
2570
2571 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
2572 COFF targets, allowing for the leading underscore used on SPARC
2573 COFF.
2574
2575 * lexsup.c (parse_args): Handle -assert.
2576 * emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
2577 * emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
2578 shared library script when appropriate.
2579 * scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
2580 section at SIZEOF_HEADERS.
2581
2582 Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
2583
2584 * Makefile.in (earmcoff.c): Build.
2585 * configure.tgt (arm-*-coff): New target
2586 * emulparms/armcoff.sh: New file.
2587 * scripttempl/armcoff.sc: New file.
2588
2589 Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
2590
2591 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
2592
2593 Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
2594
2595 * ldfile.c (ldfile_set_output_arch): Make arch const.
2596
2597 Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2598
2599 * scripttempl/elfppc.sc: Correctly locate __bss_start at the
2600 beginning of the .bss area, not at the end of data. Add
2601 __sbss_{start,end} symbols.
2602
2603 Wed Sep 20 12:29:36 1995 Ian Lance Taylor <ian@cygnus.com>
2604
2605 * Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
2606 (CXX_FOR_TARGET, install): Likewise.
2607
2608 Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
2609
2610 Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
2611 * Makefile.in (CC_FOR_TARGET): Remove brokensed stuff.
2612 (CXX_FOR_TARGET): Likewise.
2613 (install): Likewise.
2614 (GENERATED_HFILES): Remove config.h.
2615 (.dep): Depend upon config.h.
2616
2617 Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
2618
2619 * configure.tgt (mips*-dec-netbsd*): New target.
2620
2621 Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
2622
2623 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
2624
2625 Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
2626
2627 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
2628
2629 Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
2630
2631 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
2632 Start .text section on the right boundary. Always align
2633 stabs.
2634
2635 Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
2636
2637 * Makefile.in (maintainer-clean): New target.
2638
2639 * ldmain.c (struct warning_callback_info): Define.
2640 (warning_callback): Add new parameter symbol. Call
2641 warning_find_reloc to try to find the section and VMA.
2642 (warning_find_reloc): New static function.
2643 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2644 Pass NULL as symbol parameter to warning callback.
2645
2646 * ld.texinfo: Clarify -L option.
2647
2648 * ldlang.c (lang_one_common): Add cast to avoid warning.
2649 (topower): Likewise. Also, reindent.
2650 * ldwrite.c (clone_section): Change i to unsigned int.
2651 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
2652 cast to avoid warning.
2653
2654 Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
2655
2656 * Makefile.in (config.status): Depend upon configure.tgt.
2657
2658 * ldemul.h (ldemul_set_symbols): Declare.
2659 (ldemul_parse_args): Declare.
2660 * ldemul.c (ldemul_parse_args): Fix indentation.
2661
2662 * configure.in: Call AC_HEADER_DIRENT.
2663 * configure, config.in: Rebuild.
2664 * emultempl/sunos.em: Use autoconf recommend mechanism to define
2665 DIR and struct dirent.
2666
2667 * configure.tgt (mips*-*-bsd*): New case.
2668
2669 * configure.host (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
2670 New case.
2671 * configure.tgt (i[345]86-*-ptx*): New case.
2672
2673 Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
2674
2675 * config.in: Rename from config.h.in.
2676 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2677 Check for config.h:config.in when creating stamp-h.
2678 * configure: Rebuild.
2679 * Makefile.in (stamp-h): Depend upon config.in rather than
2680 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
2681 calling config.status.
2682
2683 * Makefile.in (distclean): Remove config.h and stamp-h.
2684
2685 * configure.host (sparc-*-sunos64*): Remove.
2686 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
2687
2688 * ldexp.c (exp_fold_tree): Don't warn about moving the location
2689 counter backward in the absolute section.
2690
2691 Wed Sep 6 14:42:11 1995 Ian Lance Taylor <ian@cygnus.com>
2692
2693 * configure.in: Rewrite to use autoconf.
2694 * configure.host: New file.
2695 * configure.tgt: New file.
2696 * aclocal.m4: New file.
2697 * configure: New file, built by autoconf.
2698 * acconfig.h: New file.
2699 * config.h.in: New file, built by autoheader.
2700 * sysdep.h: New file.
2701 * ld.h: Incorporate old contents of config.h.
2702 * config.h: Remove.
2703 * Makefile.in: Various changes for new configure script. Also:
2704 (CC_FOR_BUILD): Remove.
2705 (ldmain.o): Don't bother to ensure that EMUL is non-empty.
2706 (dep.sed): Use @SRCDIR@, not @srcdir@.
2707 * dep-in.sed: Use @SRCDIR@, not @srcdir@.
2708 * genscripts.sh: Create ldscripts if it does not exist.
2709 * ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
2710 * mpw-esh.c, emultemp/*.em: Likewise.
2711 * ldmain.c: Likewise. Include <ctype.h>. Don't try to set
2712 HAVE_SBRK here.
2713 * config/*.mt, config/*.mh: Remove.
2714
2715 Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
2716
2717 * configure.in: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
2718 ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
2719
2720 Fri Sep 1 22:29:52 1995 Doug Evans <dje@canuck.cygnus.com>
2721
2722 * scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
2723
2724 Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
2725
2726 * ldmain.c (warning_callback): Add abfd, section, and address
2727 parameters.
2728 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2729 Change call to warning accordingly.
2730
2731 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
2732 relocateable and not shared, put .gnu.warning.SYMBOL sections into
2733 the .text section.
2734
2735 Fri Sep 1 08:35:16 1995 James G. Smith <jsmith@beauty.cygnus.com>
2736
2737 * configure.in: Added mips*vr4300-idt-elf* and
2738 mips*vr4300el-idt-elf* targets.
2739 * Makefile.in: Added eelf32vr4300* targets.
2740 * emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
2741 * config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
2742
2743 Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
2744
2745 * scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
2746 <brendan@cygnus.com>.
2747
2748 Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
2749
2750 * ldemul.c (ldemul_parse_args): New.
2751 * ldemul.h (ld_emulation_xfer_struct): Add parse_args.
2752 * lexsup.c (all pe stuff): Moved into pe.em
2753 (parse_args): Call emulation arg parser.
2754 * emultempl/pe.em (parse_args): handle PE specfic args.
2755
2756 Thu Aug 31 17:01:37 1995 Ian Lance Taylor <ian@cygnus.com>
2757
2758 * ldlang.c (lang_memory_region_lookup): Don't use the first region
2759 as the default region. Create a new region instead.
2760
2761 Tue Aug 29 14:21:41 1995 steve chamberlain <sac@slash.cygnus.com>
2762
2763 * ldemul.c (ldemul_set_symbols): New function.
2764 * ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
2765 * ldmain.c (main): Add call to ldemul_set_symbols.
2766 * lexsup.c (set_pe_value): New args.
2767 (set_pe_name): New.
2768 (parse_args): Cope with new set_pe_value args.
2769 * emultempl/pe.em (set_symbols): New function.
2770 (ld_emulation_xfer_struct): Add set_symbols.
2771 * scripttempl/pe.sc: Use new symbols.
2772
2773 Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
2774
2775 * lexsup.c (parse_args): Don't call set_default_dirlist for -O.
2776 For -Y, ignore a leading `P,', and only call set_default_dirlist
2777 after processing all the other arguments.
2778
2779 Tue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
2780
2781 * scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
2782 * emulparams/armpe.sh: Run PE script.
2783
2784 Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
2785
2786 * ldmain.c (main): Remove PE stuff.
2787 * lexsup.c (options): Load more PE options.
2788 (set_pe_value): New function.
2789
2790 Thu Aug 17 13:35:49 1995 steve chamberlain <sac@slash.cygnus.com>
2791
2792
2793 * emultempl/{armpe.sc, i386pe.sc}: Deleted.
2794 * emultempl/pe.sc: New file performs generic PE support and sorts
2795 archive members.
2796 * emulparams/{armpe.sh,i386pe.sh}: Use new file.
2797 * scripttempl/{armpe.sc, i386pe.sc}: Deleted
2798 * scripttempl/pe.sc: New.
2799 * Makefile.in: Use new files.
2800
2801 Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
2802
2803 * scripttempl/h8500s.sc (.rdata): All data must go in data segment.
2804 (.strings,.ctors,.dtors): Likewise.
2805
2806 Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
2807
2808 * scripttempl/armpe.sc: Always start code at 0x401000, even
2809 if -r.
2810 * ldwrite.c (strdup): New extern declaration.
2811 * ldgram.y (atype): New rule to clarify type parsing.
2812 * ldlang.c (init_os): Remove commented out code.
2813 (lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
2814 unless told not to by the link script.
2815
2816 Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
2817
2818 * ldlang.c (lang_set_startof): New static function.
2819 (lang_process): Call it.
2820
2821 * ldgram.y: Tweak casesymlist to avoid bison errors.
2822
2823 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
2824 Solaris compatibility.
2825
2826 Tue Aug 15 17:31:16 1995 Ian Lance Taylor <ian@cygnus.com>
2827
2828 * ldgram.y (YYDEBUG): If not defined, define as 1.
2829 (CASE, EXTERN, START): New tokens.
2830 (mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
2831 (casesymlist): New nonterminal.
2832 (extern_name_list): New nonterminal.
2833 * ldlex.l: Accept lower case trailing base specifiers. Don't
2834 ignore the first digit when the base is a suffix. Accept many
2835 EXPRESSION state tokens in MRI state. Support MRI continuation
2836 lines and MRI semicolon comments. Accept all MRI keywords in
2837 lower case. Add CASE, EXTERN, and START MRI keywords.
2838
2839 Tue Aug 8 19:14:58 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
2840
2841 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
2842 instead of alloca.
2843
2844 Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2845
2846 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
2847 $r/../gcc/xgcc unless it is present.
2848
2849 Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
2850
2851 * scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
2852 when CONSTRUCTING.
2853 * scripttempl/m68klynx.sc: Likewise.
2854 * scripttempl/nw.sc: Likewise.
2855 * scripttempl/sa29200.sc: Likewise.
2856 * scripttempl/sparclynx.sc: Likewise.
2857
2858 Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
2859
2860 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
2861
2862 Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
2863
2864 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
2865
2866 Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
2867
2868 * scripttempl/i386pe.sc: Cope with constructors.
2869 * scripttempl/z8ksim.sc: Deleted.
2870 * scripttempl/z8000.sc: Resurrected as this, but
2871 can handle z8001 and z8002 formats.
2872 * emulparams/z8ksim.sh: Deleted.
2873 * emulparams/{z8001.sh, z8002.sh}: New files.
2874 * config/z8ksim.mt: Deleted
2875 * config/z8k-coff.mt: New, generates both emulations.
2876
2877 Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
2878
2879 * ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
2880 %B, in case it is in an archive.
2881
2882 Mon Jul 24 15:23:39 1995 Ian Lance Taylor <ian@cygnus.com>
2883
2884 * ldlang.c (lang_process): Call reset_memory_regions for each
2885 relaxation pass.
2886
2887 Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
2888
2889 * scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
2890 _SDA_BASE.
2891
2892 Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
2893
2894 * ldmain.c (constructor_callback): Allocate set_name in stack
2895 frame, rather than always calling alloca with a fixed size.
2896
2897 Wed Jul 19 16:21:43 1995 Doug Evans <dje@canuck.cygnus.com>
2898
2899 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
2900 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
2901
2902 Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
2903
2904 * ldwrite.c (clone_section): Set the alignment of the clone
2905 section to that of the section being cloned.
2906
2907 * ldwrite.c (split_sections): Don't split the first input section
2908 into a new output section.
2909
2910 Sat Jul 15 00:26:35 1995 Michael Meissner <meissner@cygnus.com>
2911
2912 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
2913 (GENERATE_SHLIB_SCRIPT): Define as yes.
2914
2915 Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
2916
2917 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
2918
2919 * ldver.c (help): Update list of options to match currently
2920 supported list.
2921
2922 Thu Jul 13 13:52:10 1995 Ian Lance Taylor <ian@cygnus.com>
2923
2924 * emultempl/lnk960.em (ld_lnk960_emulation): Initialize
2925 after_open field.
2926
2927 * ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
2928 it takes a size_t anyhow.
2929 (exp_binop): Likewise.
2930 (exp_trinop): Likewise.
2931 (exp_unop): Likewise.
2932 (exp_nameop): Likewise.
2933 (exp_assop): Likewise.
2934 * ldlang.c (lang_memory_region_lookup): Likewise.
2935 (init_os): Likewise.
2936 (ldlang_add_undef): Likewise.
2937 (insert_pad): Likewise.
2938 * ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
2939 bfd_size_type.
2940
2941 * Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
2942
2943 Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
2944
2945 * ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
2946 declaration.
2947 (ld_emulation_xfer_type): Add search parameter to
2948 open_dynamic_archive entry point.
2949 * ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
2950 * ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
2951 make non-static. Change all callers to use new name.
2952 (ldfile_open_file_search): Make static. If entry is dynamic, call
2953 ldemul_open_dynamic_archive.
2954 (ldfile_open_file): Don't call ldemul_open_dynamic_archive.
2955 * ldfile.h (ldfile_open_file_search): Don't declare.
2956 (ldfile_try_open_bfd): Declare.
2957 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
2958 Accept search parameter. Don't search for a library, just look in
2959 a single place.
2960 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
2961 Likewise.
2962
2963 Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
2964
2965 * ldmain.c (set_scripts_dir): Don't base script directory on
2966 current directory.
2967
2968 Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
2969
2970 * ldmisc.c (vfinfo): Don't print the line number if it isn't
2971 meaningful.
2972
2973 Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
2974
2975 * ld.h (ld_config_type): Add field warn_constructors.
2976 * ldmain.c (add_to_set): Warn if config.warn_constructors.
2977 (constructor_callback): Likewise.
2978 * lexsup.c (parse_args): Handle -warn-constructors.
2979 * ld.texinfo, ld.1: Document -warn-constructors.
2980
2981 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
2982 get confused by directory names if we searched for the file.
2983
2984 Based on patches from H.J. Lu <hjl@nynexst.com>:
2985 * ldlang.h (lang_input_statement_type): Add new field dynamic.
2986 * ldlang.c (new_afile): Set dynamic from config.dynamic_link.
2987 * ldfile.c: Include bfdlink.h.
2988 (ldfile_open_file): Check dynamic field of entry, not global
2989 dynamic_link field. Don't do a dynamic search when doing a
2990 relocateable link.
2991 * ldmain.c (main): Don't warn about dynamic_link for a
2992 relocateable link.
2993 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
2994 dynamic is false.
2995 (gld${EMULATION_NAME}_create_output_section_statements): Always
2996 loop over input files.
2997 * Makefile.in: Rebuild dependencies.
2998
2999 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
3000 -shared.
3001
3002 Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
3003
3004 * ldmain.c (main): Set link_info.symbolic to false.
3005 * lexsup.c (parse_args): Handle -Bsymbolic.
3006
3007 Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
3008
3009 * ldmain.c (HAVE_SBRK): Define for everything except
3010 specific systems that are known to not support sbrk.
3011 (main): Use HAVE_SBRK to decide whether or not to use sbrk.
3012
3013 Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
3014
3015 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
3016 Handle etree_provide.
3017
3018 * emultempl/elf32.em (global_needed): New static variable.
3019 (global_found): Likewise.
3020 (gld${EMULATION_NAME}_after_open): New static function.
3021 (gld${EMULATION_NAME}_search_needed): Likewise.
3022 (gld${EMULATION_NAME}_try_needed): Likewise.
3023 (gld${EMULATION_NAME}_check_needed): Likewise.
3024 (ld_${EMULATION_NAME}_emulation): Replace after_open_default with
3025 gld${EMULATION_NAME}_after_open.
3026
3027 Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
3028
3029 * configure.in (i386-*-win32): New target.
3030
3031 Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
3032
3033 * lexsup.c (parse_args): Let -G either set the small data size or
3034 be equivalent to --shared, depending on the next argument. Accept
3035 and ignore -z for Solaris compatibility.
3036
3037 Sun Jul 2 17:52:34 1995 Ian Lance Taylor <ian@cygnus.com>
3038
3039 * lexsup.c (parse_args): Cast fopen result to PTR before storing
3040 it in link_info.base_file. Fix indentation.
3041
3042 Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
3043
3044 * ldmain.c (main): Always initialize PE info in link_info.
3045 * lexsup.c (OPTION_BASE_FILE): New option.
3046 (parse_args): Handle new option.
3047 * emulparams/armpe.sh: Output pei.
3048 * emultempl/i386pe.em: Add newline to end.
3049 * scripttempl/armpe.sc: Change output and quote the $s.
3050 * scripttempl/i386pe.sc: Change output and quote the $s.
3051
3052 Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
3053
3054 Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
3055
3056 * configure.in (i386-*-msdos*, i386-*-moss*): New targets.
3057 * Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
3058 (i386msdos.o): New target.
3059 * config/i386-msdos.mt: Created.
3060 * emulparams/i386msdos.sh: Created.
3061 * scripttempl/i386msdos.sc: Created.
3062
3063 Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3064
3065 * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
3066 that contains pointers to be relocated.
3067
3068 Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
3069
3070 * mpw-esh.c: New file, modified for MPW from esh.c.
3071 * scripttempl/sh.sc: Reformatted to simplify MPWification,
3072 use *() to concat stab sections instead of [].
3073
3074 Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
3075
3076 * scripttempl/armpe.sc: Add constructor support.
3077
3078 Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
3079
3080 * ldlang.c (lang_size_sections): Any section with a DATA
3081 statement has contents.
3082
3083 Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
3084
3085 * emulparams/m68kelf.sh (NOP): Define.
3086 (DYNAMIC_LINK): Don't define.
3087 (TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
3088 will come from the linker script.
3089
3090 Thu Jun 8 14:17:33 1995 Steve Chamberlain <sac@slash.cygnus.com>
3091
3092 * emulparams/armpe.sh, scriptempl/armpe.sc: Add end and stack.
3093
3094 Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
3095
3096 * configure.in (i[345]86-*-gnu*): Use GNU elf config.
3097
3098 Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3099
3100 From Andrew Cagney <cagney@highland.com.au>
3101 * Makefile.in: Fixup more gotchas from renaming elf32ppcle to
3102 elf32lppc.
3103
3104 Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
3105
3106 Add support for ARM-PE.
3107 * Makefile.in (ALL_EMULATIONS): Add armpe.o
3108 * configure.in: Recognize armpe.
3109 * config/arm-pe.mt: New file.
3110 * emulparams/armpe.sh: New file.
3111 * scripttempl/armpe.sc: New file.
3112
3113
3114 Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
3115
3116 * configure.in (h8300h-*-hms): Deleted
3117 * config/cf-h8300h.mt: Deleted.
3118
3119 Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
3120
3121 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
3122
3123 From David Taylor (dtaylor@armltd.co.uk)
3124 * Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
3125 * configure.in: Recognize arm{,e[lb]-*-aout.
3126 * config/arm[lb]-aout.mt: New files.
3127 * emulparams/armaout[lb].sh: New files.
3128 * scripttempl/armaout.sc: New file.
3129
3130 Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3131
3132 * config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
3133 be unique in 8 characters for DOS.
3134
3135 * emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
3136 * emulparams/elf32ppcle.sh: Deleted.
3137
3138 Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
3139 Tom Griest <griest@cs.yale.edu>
3140
3141 Initial support for PE executables (eg NT, win32)
3142
3143 * Makefile.in (configure.in, ei386pe): Add support.
3144 * ldmain.c (main): Initialize PE argument info.
3145 * ldwrite.c (print_file_stuff): Don't print out .drectve
3146 and .debug section info.
3147 * lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
3148 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
3149 Handle new arguments.
3150 * config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
3151 New files
3152
3153 Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
3154
3155 * scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
3156 segment. This allows ld -r to preserve unwind sections.
3157
3158 Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3159
3160 * configure.in: Add little endian PowerPC support.
3161
3162 * Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
3163 (eelf32ppcle.c): Support for little endian PowerPC.
3164
3165 * config/ppcle-elf32.mt: New file for little endian PowerPC.
3166 * emulparams/elf32ppcle.sh: Ditto.
3167
3168 Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
3169
3170 * ldlang.c (print_output_section_statement): Check
3171 subsection_alignment, instead of checking section_alignment twice.
3172 Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
3173
3174 Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
3175
3176 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
3177
3178 Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
3179
3180 * ldwrite.c (ldwrite): Before doing anything, reset the error
3181 code. If bfd_final_link returns an error, but the error code is
3182 unset, don't issue an extra message. Assume a correct error
3183 message was already set.
3184
3185 Fri Apr 14 16:31:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
3186
3187 * Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
3188 (em68kelf.o): New target.
3189 * config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
3190 * configure.in: Use them for m68*-*-elf.
3191
3192 Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
3193
3194 Merge in support for Mac MPW as a host.
3195 (Old change descriptions retained for informational value.)
3196
3197 * mpw-config.in (i386-unknown-aout): Change to i386-unknown-go32.
3198 (i386-unknown-coff): Remove.
3199 (sh-hitachi-hms): New target.
3200 (emulation_ofiles): Set correctly for each target.
3201 (version, TDEFINES): Add to makefile fragment.
3202 * mpw-make.in (BISON): Use byacc instead of bison.
3203 (em_*.c): Replace with e*.c everywhere.
3204 (ldgram.h): Separate action from ldgram.c generation.
3205 (LD_PROG): Depend on Version.r.
3206 (Version.r): generate from version info.
3207 * mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
3208
3209 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
3210 i386-unknown-aout, i386-unknown-coff): New targets.
3211 (m68k-aout, m68k-coff): Remove targets.
3212 (mk.tmp): Add definition of EMUL.
3213
3214 * mpw-config.in (emulname): Set based on target.
3215 (ldemul-list.h): Construct.
3216 * mpw-make.in (install-only): New target.
3217 (install): Depend on install-only.
3218
3219 * mpw-make.in (bindir): Fix pathname.
3220 (install): Move here from mpw-build.in.
3221
3222 * mpw-config.in: New file, MPW configuration fragment.
3223 * mpw-make.in: New file, MPW makefile fragment.
3224 (This file is semi-automatically generated from Makefile.in.)
3225 * ldfile.c (slash): If MPW, set to `:'.
3226 * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
3227 prevent redefinition errors.
3228
3229 start-sanitize-arc
3230 Thu Apr 6 20:38:36 1995 Doug Evans <dje@chestnut.cygnus.com>
3231
3232 * emulparams/arcelf.sh (ENTRY): Define.
3233 end-sanitize-arc
3234
3235 Tue Apr 4 17:55:18 1995 Steve Chamberlain <sac@bang.hack.com>
3236
3237 * ldwrite.c (clone_section): Align clone sections on even
3238 boundaries.
3239
3240 Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
3241
3242 * configure.in: Change linux to default to elf. Using
3243 i[345]86-*-linuxaout will build a linker which defaults to a.out.
3244 * config/i386-laout.mt: Rename from old config/i386-linux.mt.
3245 * config/i386-linux.mt: Rename from old config/i386-lelf.mt.
3246 * config/i386-lelf.mt: Remove.
3247
3248 Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
3249
3250 * ldmain.c (main): If opening the map file fails, call
3251 bfd_set_error before calling einfo.
3252
3253 * ld.texinfo, ld.1: Document the -no-keep-memory option.
3254
3255 Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
3256
3257 * ldmain.c (main): Revert patch of March 10, since the SVR4 linker
3258 does mark shared libraries as executable.
3259
3260 Tue Mar 21 15:15:38 1995 Ian Lance Taylor <ian@cygnus.com>
3261
3262 * ldlang.c (lang_common): Change power to int. Pass larger values
3263 before smaller values.
3264 (lang_one_common): Treat info as int *. Don't bother to check for
3265 last value, since it is now zero.
3266
3267 Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
3268
3269 * ldlang.c (load_symbols): An empty archive is OK.
3270
3271 Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
3272
3273 * ldmain.c (progress.h): Include.
3274 (main): Call START_PROGRESS and END_PROGRESS.
3275
3276 Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
3277
3278 * scripttempl/elfppc.sc: Move _GOT2_END_ after the .ctors and
3279 .dtors sections, so that these pointers get relocated also.
3280 Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
3281 and end of the constructors/destructors.
3282
3283 Thu Mar 16 13:59:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3284
3285 * ldlang.c (load_symbols): If whole_archive is true and ENTRY
3286 describes an archive, call bfd_link_add_symbols on each member.
3287 * ldmain.c (whole_archive): New variable.
3288 (main): Initialize it to false.
3289 * ldmain.h: Declare whole_archive.
3290 * lexsup.c (parse_args): Grok --whole-archive switch.
3291 * ld.texinfo, ld.1: Document --whole-archive.
3292
3293 Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
3294
3295 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
3296 using the default emulation.
3297
3298 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
3299 LDEMULATION.
3300 * config/hppaelf.mh (HOSTING_EMU): Likewise.
3301
3302 Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
3303
3304 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
3305 for -lc.N. From H.J. Lu <hjl@nynexst.com>.
3306
3307 Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
3308
3309 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
3310
3311 * ldlex.l: Return -lFILENAME as the token LNAME.
3312 * ldgram.y: Add token LNAME.
3313 (input_list): Treat LNAME like NAME, but pass it to
3314 lang_add_input_file as lang_input_file_is_l_enum.
3315 * ld.texinfo: Document using -lFILENAME in INPUT.
3316
3317 Thu Mar 9 12:21:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3318
3319 * ldlang.c (lang_check): If the architectures are compatible call
3320 bfd_merge_private_bfd_data to let the backend do additional
3321 checks.
3322
3323 start-sanitize-arc
3324 Tue Mar 7 21:10:28 1995 Doug Evans <dje@chestnut.cygnus.com>
3325
3326 * emulparams/arcelf.sh (OUTPUT_FORMAT): Change to elf32-littlearc.
3327 (LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
3328 end-sanitize-arc
3329
3330 Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
3331
3332 * ldemul.c (ldemul_choose_mode): If emulation not recognized, list
3333 all supported emulations.
3334
3335 Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
3336
3337 * ldemul.c (ldemul_list_emulations): New function.
3338 * ldemul.h (ldemul_list_emulations): Declare.
3339 * ldver.c (help): List supported targets and emulations.
3340
3341 Fri Mar 3 15:40:36 1995 Doug Evans <dje@canuck.cygnus.com>
3342
3343 * scripttempl/elf.sc (.debug): Relocate to address 0.
3344 (.debug_srcinfo, .debug_aranges, .debug_pubnames,
3345 .debug_sfnames, .line): Likewise.
3346
3347 Fri Mar 3 17:07:14 1995 Ian Lance Taylor <ian@cygnus.com>
3348
3349 * emultempl/elf32.em (hold_rel): New static variable.
3350 (gld${EMULATION_NAME}_place_orphan): Place readonly sections with
3351 contents whose names begin with ".rel" after hold_rel. Remove the
3352 assertion which checked for unplaced .rel sections. Don't try to
3353 sort the section into place if place->bfd_section is NULL.
3354 (gld${EMULATION_NAME}_place_section): Set hold_rel to the first
3355 section beginning with ".rel".
3356
3357 Thu Mar 2 14:34:43 1995 Ian Lance Taylor <ian@cygnus.com>
3358
3359 Doc note from pierre@phi.la.tce.com (Pierre Willard):
3360 * ld.texinfo: -X and -x work even if -s or -S are not specified.
3361 * ld.1: Similar change.
3362
3363 Wed Mar 1 13:51:16 1995 Ian Lance Taylor <ian@cygnus.com>
3364
3365 * emulparams/gld960coff.sh (COFF_CTORS): Define.
3366 * scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
3367
3368 Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
3369
3370 * configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
3371 (i[345]86-*-gnuelf*): New target. Use i386-gelf.
3372 * config/i386-lelf.mt: New file.
3373 * config/i386-gelf.mt: New file.
3374
3375 Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
3376
3377 * configure.in: Match on mips-ecoff, and default to the IDT
3378 configuration.
3379
3380 Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
3381
3382 * scripttempl/elfppc.sc: Add support for .got1 and .got2 sections.
3383 Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
3384 to double the size of the table.
3385
3386 start-sanitize-arc
3387 Thu Feb 9 19:03:25 1995 Doug Evans <dje@canuck.cygnus.com>
3388
3389 * emulparms/arcelf.sh (TEMPLATE_NAME): Comment out.
3390 end-sanitize-arc
3391
3392 Thu Feb 9 18:29:43 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
3393
3394 * Makefile.in (distclean): Do recursive deletion, since ldscripts
3395 is a directory.
3396
3397 Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
3398
3399 * ldmain.c (main): If trace_file_tries is true, and we are using
3400 an internal linker script, print out the script.
3401 * ldfile.c (try_open): Reindent function. Make the messages about
3402 opening script files more informative.
3403
3404 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
3405 * ld.texinfo, ld.1: Update accordingly.
3406
3407 Wed Feb 8 17:34:45 1995 Ian Lance Taylor <ian@cygnus.com>
3408
3409 * ldlang.c (lang_one_common): Adjust references to common symbol
3410 information for new structure.
3411
3412 Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
3413
3414 * ldmain.c (undefined_symbol): Handle section being NULL.
3415
3416 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
3417 * ldexp.c (fold_name): Likewise.
3418 * ldlang.c (print_one_symbol): Likewise.
3419 (lang_finish): Likewise.
3420 * ldmain.c (multiple_common): Likewise.
3421 * ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
3422 renamed to bfd_link_hash_undefweak.
3423
3424 * scripttempl/alpha.sc: Set address of .data section correctly
3425 when -n or -N is used. Patch from Chris G Demetriou
3426 <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
3427 * scripttempl/mips.sc: Similar change.
3428
3429 Tue Jan 31 16:20:52 1995 Doug Evans <dje@canuck.cygnus.com>
3430
3431 * ldlang.c (lang_size_sections): Clarify error message when user
3432 specified start addr conflicts with region. Fix resetting of
3433 region pointer.
3434
3435 Tue Jan 31 12:37:09 1995 Ian Lance Taylor <ian@cygnus.com>
3436
3437 * ldexp.c (fold_name): In case NAME, permit an absolute symbol
3438 in lang_allocating_phase_enum.
3439
3440 Mon Jan 30 11:33:25 1995 Ian Lance Taylor <ian@cygnus.com>
3441
3442 * Makefile.in (distclean): Depend upon clean. Don't bother to
3443 remove files which will be removed by clean. From patch by
3444 alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
3445
3446 Fri Jan 27 16:27:34 1995 Ian Lance Taylor <ian@cygnus.com>
3447
3448 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
3449 a MIPS target, clobber the size of all but the first input
3450 .reginfo section to be 0, so that lang_size_sections sets the
3451 correct size for the output .reginfo section.
3452
3453 Thu Jan 26 19:53:37 1995 Ian Lance Taylor <ian@cygnus.com>
3454
3455 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3456 Remove unused variable is.
3457
3458 Thu Jan 26 12:33:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3459
3460 * configure.in: Add support for powerpc-*-eabi.
3461
3462 * scripttempl/elfppc.sc: New file for PowerPC embedded ABI
3463 support.
3464
3465 * emulparams/elf32ppc.sh (SCRIPT_NAME): Use elfppc.sc instead of
3466 elf.sc, which defines some new symbols PowerPC elf needs.
3467
3468 Tue Jan 24 10:32:15 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
3469
3470 * ldctor.c (ldctor_add_set_entry): Don't dump core if a
3471 constructor entry is in the absolute section.
3472
3473 Mon Jan 23 13:58:13 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
3474
3475 * configure.in (i[345]86-*-gnu*): Set ld_target to i386-gnu.
3476 * config/i386-gnu.mt: New file. Include ELF support.
3477
3478 Thu Jan 19 16:22:11 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
3479
3480 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
3481 there are any input sections named .gnu.warning, treat them as
3482 containing a warning message to be printed by the linker, and
3483 clobber the size so that the message is not copied into the output
3484 file.
3485 * scripttempl/elf.sc: Put .gnu.warning sections into the .text
3486 section.
3487
3488 Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
3489
3490 * configure.in (w65-*-*): New target.
3491 * Makefile.in: Update.
3492 * scripttempl/w65.sc: New.
3493 * config/coff-w65.mt: New.
3494
3495 Thu Jan 12 01:32:25 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
3496
3497 * ldlang.c (lang_place_orphans): Don't ignore files with
3498 just_syms_flag set. Instead, put all their sections in
3499 bfd_abs_section_ptr, using the section VMA as the output_offset.
3500
3501 Wed Jan 11 22:59:09 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
3502
3503 * ldctor.c (ldctor_build_sets): Don't use `const' with typedef
3504 name `reloc_howto_type', since it's now defined to be const.
3505 * ldlang.c (lang_add_reloc): Ditto.
3506 * ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
3507
3508 Wed Jan 11 11:24:45 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
3509
3510 * ldexp.c (fold_binary): Adding or subtracting an absolute value
3511 to a relative value does not require forcing the relative value to
3512 be absolute. Also, reindent function.
3513
3514 Wed Dec 28 22:05:52 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3515
3516 * ldwrite.c (clone_section): Create a symbol with the
3517 same name as the section.
3518
3519 Mon Dec 19 14:02:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3520
3521 * ld.h (split_by_reloc, split_by_file): New flags.
3522 * ldwrite.c (clone_section, split_sections): New functions.
3523 * lexsup.c (parse_args): Understand new split options.
3524
3525 start-sanitize-arc
3526 Tue Dec 13 16:45:18 1994 Doug Evans <dje@canuck.cygnus.com>
3527
3528 * configure.in (arc-elf): New target.
3529 * Makefile.in (earcelf.c): New target.
3530 * config/arc-elf.mt: New file.
3531 * emulparms/arcelf.sh: New file.
3532 end-sanitize-arc
3533
3534 Fri Dec 9 17:22:55 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3535
3536 * scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
3537 .data segment. They must be writable when creating a shared
3538 library. From H.J. Lu <hjl@nynexst.com>.
3539
3540 Fri Dec 2 14:09:00 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
3541
3542 * emultempl/miposecoff.em: New file.
3543 * emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
3544 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
3545 * scripttempl/mips.sc: Put .rel.sdata sections in .text, and
3546 provide __runtime_reloc_start and __runtime_reloc_stop if they are
3547 used. Align _fdata to a 16 byte boundary.
3548 * Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
3549 generic.em.
3550 (emipsidtl.c): Likewise.
3551 (check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
3552
3553 * ld.h (args_type): Add new field embedded_relocs.
3554 * ldemul.h (ldemul_after_open, after_open_default): Declare.
3555 (ld_emulation_xfer_struct): Add new field after_open.
3556 * ldemul.c (ldemul_after_open): New function.
3557 (after_open_default): New function.
3558 * ldlang.c (lang_process): Call ldemul_after_open.
3559 * lexsup.c (parse_args): Handle --embedded-relocs.
3560 * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
3561 new after_open field to after_open_default.
3562 * emultempl/generic.em, emultempl/gld960.em: Likewise.
3563 * emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
3564 * emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
3565 * emultempl/sunos.em, emultempl/vanilla.em: Likewise.
3566 * ld.texinfo, ld.1: Mention -embedded-relocs.
3567
3568 Wed Nov 23 22:04:47 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3569
3570 * Makefile.in: Add eshl.o.
3571 * config/coff-sh.mt: Add shl emulation.
3572
3573 Tue Nov 22 11:55:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3574
3575 * scripttempl/elf.sc: Fill .text section with NOPS. From Eric
3576 Youngdale <eric@aib.com>.
3577
3578 Thu Nov 17 14:39:48 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3579
3580 Patches from pirker@eiunix.tuwien.ac.at (Martin Pirker).
3581 * config/i386linux.mh: New file; set HOSTING_CRT0.
3582 * genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
3583 /usr/lib, since that is already in LIB_PATH.
3584
3585 Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
3586
3587 * scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
3588 address.
3589 (.data, .bss): If "-N", then place the data/bss just after the end
3590 of the .text section rather than at the default 0x40000000.
3591
3592 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
3593 text segment.
3594
3595 Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3596
3597 Patches from Eric Youngdale <eric@aib.com>:
3598 * ldlang.c (lang_finish): Don't warn if entry symbol not found
3599 when generating a shared library.
3600 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
3601 attempting to place an orphaned relocation section when generating
3602 a dynamically linked object.
3603
3604 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
3605 _start.
3606
3607 Fri Nov 11 14:27:23 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3608
3609 * ld.h (args_type): Add field export_dynamic.
3610 * lexsup.c (parse_args): Recognize --export-dynamic.
3611 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3612 Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
3613
3614 Wed Nov 9 12:47:11 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3615
3616 * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
3617 we allocate common symbols.
3618
3619 Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com)
3620
3621 * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and
3622 .rela.fini to the list of .rel* sections.
3623
3624 Tue Nov 8 17:47:45 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3625
3626 * ldlang.c (load_symbols): Add new argument place. Only accept
3627 linker scripts if place is not NULL. Put commands found in an
3628 assumed linker script into place.
3629 (lookup_name): Pass NULL as place argument to load_symbols.
3630 (open_input_bfds): In lang_input_statement_enum case, pass a place
3631 argument to load_symbols, and store any new statements after the
3632 current one.
3633
3634 Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3635
3636 * ldver.c (ldversion): Bump to 2.5.3.
3637
3638 Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3639
3640 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
3641
3642 Thu Nov 3 19:35:44 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3643
3644 * Makefile.in (check): Add missing "else true" clause.
3645
3646 * emulparams/vax.sh (OUTPUT_FORMAT): Use "a.out".
3647
3648 * scripttempl/go32coff.sc: Changes from DJ Delorie: Change default
3649 entry point to "start". Align at end of each section to 0x200.
3650 Start .text section 0x1000 later. Add _etext, _edata, _end
3651 symbols.
3652
3653 Wed Nov 2 12:17:49 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3654
3655 * ldctor.c (ldctor_add_set_entry): Don't permit a set to be
3656 composed of different object file formats.
3657 (ldctor_build_sets): If the output format does not support the
3658 reloc, and we are not generating a relocateable link, try getting
3659 the reloc from the input format.
3660
3661 Tue Nov 1 10:30:19 1994 J.T. Conklin (jtc@rtl.cygnus.com)
3662
3663 * Makefile.in (ALL_EMULATIONS): Added em68knbsd.o.
3664 (em68knbsd.c): New target.
3665
3666 * config/m68k-nbsd.mt: New file.
3667 * emulparams/m68knbsd.sh: New file.
3668 * configure.in (m68*-*-netbsd*): Use above configs.
3669
3670 Mon Oct 31 19:35:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3671
3672 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
3673 appropriately named static library, stop the search at that
3674 directory.
3675
3676 Wed Oct 26 13:59:12 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
3677
3678 * Makefile.in (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
3679 and esparcnbsd.o; sorted entries.
3680 (ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
3681
3682 * config/netbsd532.mt: Removed.
3683 * emulparams/netbsd532.sh: Removed.
3684
3685 * config/{i386-nbsd.mt,ns32k-nbsd.mt,sparc-nbsd.mt}: New files.
3686 * emulparams/{i386nbsd.sh,ns32knbsd.sh,sparcnbsd.sh}: New files.
3687 * configure.in (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
3688 sparc*-*-netbsd*): Use above configs.
3689
3690 Tue Oct 25 11:47:10 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3691
3692 * ldmain.c (multiple_common): One of the types may now be
3693 bfd_link_hash_indirect. The old BFD argument may be NULL.
3694
3695 Thu Oct 20 22:01:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3696
3697 * configure.in: Add * at the end of m68k-hp-hpux.
3698
3699 Tue Oct 18 15:58:39 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3700
3701 * ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
3702 YY_CHAR *.
3703
3704 Mon Oct 17 14:53:16 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
3705
3706 * scripttempl/nw.sc: Gather constructors and destructors and
3707 define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
3708
3709 Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
3710
3711 * Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
3712 (ei386nw.c, eppcnw.c): New targets.
3713
3714 * config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
3715 scripttempl/nw.sc: New files, for i386 and powerpc netware.
3716
3717 * configure.in: Changed netware ld_target name to be {i386,ppc}-nw
3718 instead of {i386,ppc}-elf.
3719
3720 * configure.in (sparc*-*-netware): Removed. There is no such
3721 thing anymore.
3722
3723 * ldint.texinfo: Move misplaced `@end iftex'.
3724
3725 Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
3726
3727 * scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
3728 .rela.dtors to the list of .rel* sections.
3729
3730 Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3731
3732 * ldver.c (ldversion): Update to version 2.5.
3733 * Version 2.5 released.
3734
3735 * configure.in (all_targets): Handle i386-linux*.
3736
3737 Thu Oct 13 11:24:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3738
3739 * scripttempl/aout.sc: Set _etext and __etext to ., not
3740 ${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
3741 will not break any other system. From Eric Valette
3742 <ev@chorus.fr>.
3743
3744 Wed Oct 12 16:22:58 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
3745
3746 * lexsup.c (parse_args): Change -V to be a synonym for -v. Add
3747 --verbose to get the old -V behaviour.
3748 * ld.1, ld.texinfo: Document this change.
3749
3750 Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3751
3752 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
3753 assertion, since it could fail with a user defined linker script.
3754
3755 * ldexp.c (fold_name): For DEFINED case, don't try to look up the
3756 name in the hash table during the first phase--the hash table does
3757 not even exist at that point, much less have the right value.
3758
3759 * Makefile.in (CC): Define.
3760 (CXX): Move definition, change from g++ to gcc.
3761 (EXPECT, RUNTEST): Copy definitions from top level Makefile.in.
3762 (RUNTEST_CC, RUNTEST_CFLAGS): Remove.
3763 (RUNTEST_CXX, RUNTEST_CXXFLAGS): Remove.
3764 (CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level Makefile.in.
3765 (.cc.o): Comment out.
3766 (testdir): Remove.
3767 (site.exp): Don't create testdir or set tmpdir.
3768 (check): Run checks even if not running native. Use CC_FOR_TARGET
3769 instead of RUNTEST_CC, and likewise for CXX.
3770 (cdtest targets): Comment out.
3771 * config/solaris2.mh (HOSTING_LIBS): Only mention crtend.o once.
3772 * cdtest-bar.cc, cdtest-foo.cc, cdtest-foo.h: Remove.
3773 * cdtest-main.cc, cdtest.exp: Remove.
3774
3775 Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3776
3777 * emulparams/elf32bmip.sh: Rename from elf32mipb.sh to avoid DOS
3778 file naming problems.
3779 * emulparams/elf32lmip.sh: Rename from elf32mipl.sh.
3780 * Makefile.in (ALL_EMULATIONS): Rename eelf32mipb.o to
3781 eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
3782 (eelf32bmip.c): Rename from eelf32mipb.c. Use elf32bmip.sh.
3783 (eelf32lmip.c): Rename from eelf32mipl.c. Use elf32lmip.sh.
3784 * config/mipsb-elf32.mt (EMUL): Use elf32bmip, not elf32mipb.
3785 * config/mipsl-elf32.mt (EMUL): Use elf32lmip, not elf32mipl.
3786
3787 * genscripts.sh: Always search /usr/local/TARGET/lib.
3788
3789 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
3790
3791 Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3792
3793 * configure.in: Handle i386-bsdi* targets like i386-bsd.
3794
3795 Fri Sep 23 00:06:59 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3796
3797 * lexsup.c (parse_args): Add support for -a for HP/UX
3798 compatibility.
3799
3800 * lexsup.c (parse_args): -c takes an argument.
3801
3802 Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3803
3804 * ld.h (args_type): Add new field endian.
3805 * lexsup.c (parse_args): Handle -EB and -EL by setting
3806 command_line.endian.
3807 * ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
3808 * ldlang.c (lang_add_output_format): Add arguments big and little.
3809 If command_line.endian is set, use it to select big or little
3810 rather than the default. Changed all callers.
3811 * ldlang.h (lang_add_output_format): Update declaration.
3812 * emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
3813 LITTLE_OUTPUT_FORMAT.
3814 * emulparams/elf32mipl.sh: Likewise.
3815 * emulparams/mipsbig.sh: Likewise.
3816 * emulparams/mipsbsd.sh: Likewise.
3817 * emulparams/mipsidt.sh: Likewise.
3818 * emulparams/mipsidtl.sh: Likewise.
3819 * emulparams/mipslit.sh: Likewise.
3820 * scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
3821 LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
3822 OUTPUT_FORMAT.
3823 * scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
3824 LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
3825 * scripttempl/mipsbsd.sc: Likewise.
3826
3827 * Makefile.in (ldgram.h): Make separate target from ldgram.c,
3828 depending upon ldgram.c, so that a parallel make does not try to
3829 build both at once.
3830
3831 * configure.in (mips*el-elf*): New target.
3832 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
3833 (eelf32mipl.c): New target.
3834
3835 * config/mipsl-elf32.mt: New file.
3836 * emulparams/elf32mipl.sh: New file.
3837
3838 Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3839
3840 * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
3841 ld -r -S -x.
3842
3843 Thu Sep 15 13:05:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3844
3845 * ldmisc.c (vfinfo): Print BFD file name as well as file name
3846 returned by find_nearest_line, in case the file name is something
3847 unhelpful such as a .h file. Handle %u.
3848
3849 Wed Sep 14 12:49:12 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3850
3851 * ldlang.c (lang_do_assignments): Make sure output statement
3852 has an attached bfd_section before trying to dereference it.
3853
3854 Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3855
3856 * ld.h (ld_config_type): Add new field warn_once.
3857 * ldmain.c (undefined_symbol): Handle -warn-once.
3858 * lexsup.c (parse_args): Recognize -warn-once.
3859 * ld.texinfo (Options): Document -warn-once.
3860 * ld.1: Likewise.
3861
3862 * ldmisc.c (vfinfo): Handle %D as %C, but never print the function
3863 name. For %C, print the function name on a separate line, to keep
3864 the length of error messages under control.
3865 * ldmain.c (multiple_definition): Use %D for ``first defined
3866 here.''
3867 (undefined_symbol): Use %D for ``more undefined references
3868 follow''.
3869
3870 * ldmisc.c (multiple_warn): Remove; no longer used.
3871 * ldmisc.h (multiple_warn): Don't declare.
3872
3873 Tue Sep 13 20:47:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3874
3875 * ldlang.c (print_output_section_statement): Print all lines
3876 to the map file.
3877
3878 Tue Sep 13 16:30:11 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3879
3880 * ldlang.c (load_symbols): Check for archive before object. Use
3881 bfd_check_format_matches, and, if ambiguous, print a list of
3882 matching formats. If file format is not recognized, treat file as
3883 a linker script.
3884 * ldgram.y (yyerror): If assuming an object file is a script,
3885 mention that. Tweak the format of the error messages.
3886 * ldlex.l (lex_warn_invalid): If assuming an object is a script,
3887 guess that this is not actually a script, and just report that the
3888 file format was not recognized.
3889 * ld.texinfo (Options): Admit that -( may be used more than once.
3890 Add note that unrecognized object files are now treated as linker
3891 scripts.
3892
3893 * ldfile.c (ldfile_input_filename): Make const.
3894 (ldfile_assumed_script): New variable.
3895 (try_open): Change arguments types to const.
3896 (ldfile_find_command_file): Likewise.
3897 (ldfile_open_command_file): Likewise. Also, set lineno to 1.
3898 * ldfile.h: Update declarations for ldfile.c changes.
3899 * ldlex.l: Include <ctype.h>.
3900 (file_name_stack): Change to be const char *.
3901 (lineno_stack): New static variable.
3902 (<<EOF>>): Set lineno as well as ldfile_input_filename.
3903 (lex_push_file): Make name argument const. Initialize
3904 lineno_stack entry.
3905 (lex_redirect): Initialize lineno_stack entry.
3906 (lex_warn_invalid): Handle non printable characters nicely.
3907 * ldlex.h (lex_push_file): Declare second argument as const.
3908
3909 * ldgram.y (ifile_p1): Recognize GROUP.
3910 * ldlex.l: Recognize GROUP.
3911 * ld.texinfo (Option Commands): Document GROUP.
3912
3913 Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3914
3915 * config/m68klynx.mh: New file.
3916
3917 Mon Sep 12 01:50:03 1994 Jeff Law (law@snake.cs.utah.edu)
3918
3919 * emultempl/hppaelf.em: Add newlines to the error messages.
3920
3921 Sat Sep 10 16:05:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3922
3923 * config/i386lynx.mh: New file.
3924 * scripttempl/i386lynx.sc: Don't put .ctors and .dtors in .text
3925 unless CONSTRUCTING.
3926
3927 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3928
3929 * emulparams/elf32mipb.sh (TEMPLATE_NAME): Define as elf32.
3930 (GENERATE_SHLIB_SCRIPT): Define as yes.
3931 (DYNAMIC_LINK): Define as false.
3932 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
3933 Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
3934 (gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
3935 * Makefile.in (eelf32mipb.c): Depend upon elf32.em rather than
3936 generic.em.
3937
3938 Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3939
3940 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
3941
3942 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3943
3944 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
3945 .got section is now explicitly handled in elf.sc.
3946
3947 Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3948
3949 * scripttempl/alpha.sc: Redo script to set . outside of sections
3950 and not bother to explicitly specify section addresses.
3951 Explicitly place .sdata section.
3952
3953 Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3954
3955 * scripttempl/m68kcoff.sc: Put .bss in data segment.
3956
3957 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
3958 0, and to only be marked as NOLOAD if relocating.
3959 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
3960 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
3961 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
3962 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
3963 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
3964 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
3965 * scripttempl/sparclynx.sc: Likewise.
3966
3967 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
3968
3969 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
3970 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
3971 New files.
3972
3973 Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
3974
3975 * ld.h (args_type): Add field soname.
3976 * lexsup.c (parse_args): Handle -soname argument.
3977 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
3978 pass soname.
3979 * ld.texinfo: Document -soname.
3980
3981 Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3982
3983 * ldlang.c (lang_check): Don't try to set the architecture if the
3984 input and output files are incompatible. Just warn.
3985
3986 Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3987
3988 * configure.in: Change i[34]86 to i[345]86.
3989
3990 Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3991
3992 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
3993
3994 Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3995
3996 Make the ELF linker handle orphaned sections reasonably. Also,
3997 define __start_SECNAME and __stop_SECNAME around sections whose
3998 names can be represented in C, for the benefit of symbol sets in
3999 glibc.
4000 * ldemul.h (ldemul_place_orphan): Declare.
4001 (ld_emulation_xfer_type): Add place_orphan field.
4002 * ldemul.c (ldemul_place_orphan): New function.
4003 * ldlang.h (wild_doit): Declare.
4004 * ldlang.c (wild_doit): Make nonstatic.
4005 (lang_place_orphans): Call ldemul_place_orphan.
4006 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
4007 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
4008 static variables.
4009 (gld${EMULATION_NAME}_place_orphan): New static function.
4010 (gld${EMULATION_NAME}_place_section): New static function.
4011 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
4012
4013 Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
4014
4015 * scripttempl/aout.sc: Add .linux-dynamic after .data.
4016
4017 Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4018
4019 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
4020 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
4021
4022 Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4023
4024 * ldexp.h (exp_get_abs_int): Declare.
4025
4026 Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4027
4028 * ldlang.c (lang_do_assignments): Handle complex AT's better.
4029 * ldexp.c (exp_get_abs_int): New function.
4030
4031 Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
4032
4033 * configure.in: add i960-nindy-coff support.
4034
4035 Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4036
4037 * ldlex.l (yy_create_string_buffer): Handle change to internal
4038 interface in flex 2.4.7.
4039
4040 Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
4041
4042 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
4043 New function; add 0x20 to any use of -Ttext.
4044 (gld${EMULATION_NAME}_create_output_section_statements): New
4045 function.
4046 (ld_${EMULATION_NAME}_emulation): Use the new function
4047 gld${EMULATION_NAME}_create_output_section_statements.
4048
4049 Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4050
4051 * scripttempl/mips.sc: Redo script to set . outside of sections
4052 and not bother to explicitly specify section addresses.
4053
4054 Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4055
4056 * scripttempl/elf.sc: Copy several more relocation sections into
4057 the output. Put .got.plt sections into .got.
4058
4059 Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4060
4061 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
4062
4063 Add a new script operator, PROVIDE, to define a symbol only if it
4064 is needed.
4065 * ldgram.y (PROVIDE): New token.
4066 (assignment): Accept PROVIDE.
4067 * ldlex.l (PROVIDE): New token.
4068 * ldexp.h (node_type): Add etree_provide to node_class enum.
4069 (exp_provide): Declare.
4070 * ldexp.c (exp_fold_tree): Handle etree_provide.
4071 (exp_provide): New function.
4072 (exp_print_tree): Handle etree_provide.
4073 * ld.texinfo: Document PROVIDE.
4074
4075 * ldlang.c (lang_common): Pass desired alignment to
4076 lang_one_common as power of two.
4077 (lang_one_common): Get common symbol alignment from linker hash
4078 table entry. Treat desired alignment as a power of two.
4079
4080 * ldlang.c (wild_section): Attach all section with the given name,
4081 not just the first one. If there is no name, attach all sections
4082 even if the SEC_IS_COMMON flag is set.
4083
4084 Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4085
4086 * ld.h (args_type): Add field rpath.
4087 * lexsup.c (S_ISDIR): Define if not already defined.
4088 (parse_args): Add support for -rpath. If -R is used to name a
4089 directory, treat it as -rpath for Solaris compatibility.
4090 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4091 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
4092 * ldmain.c (main): Initialize command_line.rpath to NULL.
4093 * ld.texinfo: Document -rpath option.
4094
4095 Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
4096
4097 * emulparams/pc532machaout.sh: New file. Pc532 mach script
4098 parameters.
4099
4100 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
4101
4102 * config/pc532mach.mt: New file. Pc532 mach target support.
4103
4104 * config/pc532mach.mh: New file. Pc532 mach host support.
4105
4106 * config/netbsd532.mt: New file. Netbsd 532 target support.
4107
4108 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
4109
4110 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
4111 dependency.
4112
4113 Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4114
4115 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
4116 bfd_abs_section_ptr, not &bfd_abs_section.
4117
4118 * lexsup.c (parse_args): Changed "retain-symbols-file" from
4119 no_argument to required_argument. From djm.
4120
4121 Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4122
4123 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
4124 sections to force a VMA of 0; needed for ELF backends which have
4125 not been converted to the new linker style.
4126
4127 Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
4128
4129 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
4130 it was for the HPUX dynamic loader's use and it creates problems
4131 with ELF GDB.
4132
4133 Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
4134
4135 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
4136 * ldlang.h (lang_do_assignments): Put external decl here.
4137 * emultempl/hppaelf.em: Minor cleanups throughout file.
4138 (hppa_elf_create_output_section_statements): Rewrite.
4139 (hppaelf_finish): Rewrite.
4140
4141 Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4142
4143 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
4144
4145 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
4146 accept plain -B.
4147 * ld.texinfo: -Bstatic is not ignored.
4148
4149 Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
4150
4151 * ldlex.l: Recognize \r the same as \n.
4152
4153 Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4154
4155 Preliminary support for generating shared libraries, from Eric
4156 Youngdale <ericy@cais.cais.com>.
4157 * genscripts.sh: If the emulation parameter file sets
4158 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
4159 CREATE_SHLIB defined.
4160 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
4161 link_info.shared is set, use the .xs script file.
4162 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
4163 .interp section, and don't include TEXT_START_ADDR in the starting
4164 address of the first section.
4165 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
4166 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
4167
4168 Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4169
4170 * configure.in: Change --with-targets to --enable-targets.
4171
4172 Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4173
4174 * lexsup.c (parse_args): Add support for new options -( -) with
4175 synonyms --start-group --end-group.
4176 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
4177 (lang_group_statement_type): Define new struct.
4178 (lang_statement_union_type): Add group_statement field.
4179 (lang_enter_group, lang_leave_group): Declare.
4180 * ldlang.c (lang_for_each_statement_worker): Handle
4181 lang_group_statement_enum.
4182 (map_input_to_output_sections, print_statement): Likewise.
4183 (lang_size_sections, lang_do_assignments): Likewise.
4184 (open_input_bfds): Completely rewrite. Now does its own looping,
4185 rather than using lang_for_each_statement. Handle groups.
4186 (lang_process): Update call to open_input_bfds.
4187 (print_group): New static function.
4188 (lang_enter_group, lang_leave_group): New static functions.
4189 * ldfile.c (ldfile_open_file): If the file has already been
4190 opened, just return rather than taking an assertion failure.
4191 * ldver.c (help): Mention new options.
4192 * ld.texinfo: Document new options.
4193
4194 * ldlang.c (end_of_data_section_statement_list): Don't define.
4195 (lang_leave_output_section_statement): Don't set obsolete variable
4196 end_of_data_section_statement_list.
4197
4198 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
4199 ALIGN.
4200
4201 * ldlang.c (lang_size_sections): Adjust current region address
4202 even for sections with an explicit address. From
4203 ralphc@pyramid.com (Ralph Campbell).
4204
4205 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
4206 From jrs@world.std.com (Rick Sladkey).
4207
4208 * scripttempl/mipsbsd.sc: Let sections align to their natural
4209 boundaries.
4210
4211 Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4212
4213 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
4214 &bfd_abs_section.
4215 (lang_abs_symbol_at_beginning_of): Likewise.
4216 (lang_abs_symbol_at_end_of): Likewise.
4217 (lang_size_sections): Use bfd_is_abs_section to check for the
4218 absolute section. Don't try to set the VMA or output_offset or
4219 size of the absolute section.
4220 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
4221 undefined section.
4222
4223 Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
4224
4225 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
4226 when generating relocatable objects.
4227
4228 Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
4229
4230 * emultempl/linux.em: New file providing support for linking
4231 against Linux shared libraries.
4232 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
4233 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
4234
4235 Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4236
4237 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
4238 * ldmain.c (main): Initialize link_info.shared to false. Give
4239 error if link_info.relocateable and link_info.shared are both set.
4240
4241 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
4242 it as naming an emulation to be added to EMULATION_OFILES.
4243 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
4244
4245 * Makefile.in: Rebuilt dependencies.
4246 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
4247 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
4248 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
4249 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
4250 (ei386linux.c): Remove; now in Makefile.in.
4251 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
4252 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
4253 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
4254 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
4255 (eelf64_sparc.c): Remove; now in Makefile.in.
4256 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
4257 (eelf32_sparc.c): Remove; now in Makefile.in.
4258
4259 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
4260 no owner--it might be bfd_abs_section. From Eric Youngdale
4261 <ericy@cais.cais.com>.
4262
4263 * scripttempl/aout.sc: Let sections align to their natural
4264 boundaries.
4265
4266 Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4267
4268 * ldemul.h (ldemul_open_dynamic_archive): Declare.
4269 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
4270 * ldemul.c: Include ldexp.h and ldlang.h.
4271 (ldemul_open_dynamic_archive): New function.
4272 * ldfile.h (ldfile_open_file_search): Declare.
4273 * ldfile.c: Include ldemul.h.
4274 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
4275 argument, not bfd *. Change all callers.
4276 (ldfile_open_file_search): Rename from open_a. Return boolean
4277 argument, not bfd *. Clean up. Change all callers.
4278 (ldfile_open_file): If doing a dynamic link, call
4279 ldemul_open_dynamic_archive rather than assuming the extension of
4280 a dynamic object is ".so".
4281 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
4282 New function.
4283 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
4284 field.
4285 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
4286
4287 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
4288 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
4289 Accept -static as a synonym for -non_shared.
4290
4291 Let the user change the dynamic linker used by ELF code.
4292 * ld.h (args_type): Add new field interpreter.
4293 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
4294 handle it.
4295 * ldmain.c (main): Initialize command_line.interpreter to NULL.
4296 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
4297 the ELF backend to return the .interp section. If
4298 command_line.interpreter is not NULL, set the contents of .interp
4299 to it.
4300 * ld.texinfo: Mention -dynamic-linker.
4301
4302 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
4303 generic.em.
4304
4305 * lexsup.c (parse_args): Sort out the option macros and change the
4306 definitions to make it easier to add a new option.
4307
4308 * scripttempl/aout.sc: Define __etext and __edata to go along with
4309 _etext and _edata.
4310
4311 * ld.h (ld_config_type): Add new field traditional_format.
4312 * lexsup.c (parse_args): Add traditional-format to longopts, and
4313 handle it.
4314 * ldmain.c (main): Initialize config.traditional_format to false.
4315 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
4316 flags of output_bfd according to config.traditional_format.
4317 * ldver.c (help): Mention -traditional-format.
4318 * ld.texinfo: Document -traditional-format.
4319
4320 Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4321
4322 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
4323 they are encountered.
4324
4325 Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
4326
4327 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
4328 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
4329
4330 Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4331
4332 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
4333 _FTEXT, _ETEXT and _FDATA. Dont define _END.
4334
4335 * ldfile.c (open_a): If this is not an archive, try to open it in
4336 the current directory before searching for it.
4337
4338 * lexsup.c (parse_args): Treat -i as a synonym for -r.
4339
4340 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
4341 BLOCK works in a section address as documented.
4342
4343 * ldgram.y (YYDEBUG): Don't define.
4344
4345 Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4346
4347 * emultempl/gld960.em: Pass false for new argument to
4348 ldfile_add_library_path.
4349 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
4350
4351 * emultempl/sunos.em: Only look for .so files if doing a dynamic
4352 link.
4353
4354 Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
4355
4356 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
4357
4358 Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
4359
4360 * Makefile.in (check): Delete ld.new dependency so that a regression
4361 test doesn't trigger a rebuild of the linker.
4362
4363 Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4364
4365 * ldlang.c (map_input_to_output_sections): For lang_address, call
4366 init_os if it hasn't already been called.
4367
4368 Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4369
4370 Add support for SunOS shared libraries.
4371 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
4372 shared library support code.
4373 * emultempl/sunos.em: New file.
4374 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
4375 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
4376 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
4377 (esun3.c): Likewise.
4378
4379 * ldlang.c: Minor formatting cleanups.
4380 (lang_for_each_input_file): New function.
4381 * ldlang.h (lang_for_each_input_file): Declare.
4382
4383 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
4384 field.
4385 (search_head): Declare.
4386 (ldfile_add_library_path): Add new cmdline argument in prototype.
4387 * ldfile.c (search_head): Make non-static.
4388 (search_dirs_type): Move to ldfile.h.
4389 (ldfile_add_library_path): Accept cmdline argument, and save it.
4390 * lexsup.c (parse_args): Pass true for new cmdline argument of
4391 ldfile_add_library_path.
4392 (set_default_dirlist): Likewise.
4393 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
4394 argument of ldfile_add_library_path.
4395 * ldgram.y (ifile_p1): Likewise.
4396
4397 Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4398
4399 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
4400 total_size, superfile and chain.
4401 * ldfile.c (open_a): Don't clear search_dirs_flag.
4402 (ldfile_open_file): Don't try to open superfile. Assert that file
4403 has not already been opened.
4404 * ldlang.c (new_afile): Don't initialize superfile.
4405 * ldmain.c (add_archive_element): Don't initialize subfiles or
4406 chain or superfile. Initialize search_dirs_flag to false.
4407
4408 Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4409
4410 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
4411
4412 Changes from binutils-2.4 release:
4413
4414 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
4415 variables, use whitespace, so scripts don't break.
4416
4417 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
4418
4419 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
4420
4421 * cdtest-bar.cc: Renamed from cdtest-func.cc.
4422 * Makefile.in: Noted change.
4423
4424 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
4425 don't know where that's supposed to come from, or why it's
4426 necessary.
4427
4428 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
4429
4430 * configure.bat: update to latest makefile.in
4431 * emulpara/go32.sh: set to coff-go32 not aout
4432 * emultemp/generic.em: strength-reduce the structure of
4433 this shell script, since the only available shell for
4434 DOS can't handle complex syntax.
4435 * emultemp/stringify.sed: for "sed -f" instead of inline.
4436 * makefile.in: depend on stringify.sed as well as genscripts.sh
4437 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
4438 * genscripts.sh: empty variables aren't always considered "set",
4439 so set them to "y" instead.
4440
4441 Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4442
4443 * ldlang.c (entry_symbol): Make static.
4444 (lang_add_entry): Add cmdline argument.
4445 * ldlang.h (lang_add_entry): Change prototype.
4446 * ldgram.y (statement_anywhere): Change lang_add_entry call.
4447 * lexsup.c (parse_args): Likewise.
4448
4449 Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4450
4451 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
4452 .reginfo an address.
4453 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
4454 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
4455 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
4456
4457 Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4458
4459 Add support for ELF shared libraries.
4460 * ld.h (ld_config_type): Add field dynamic_link.
4461 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
4462 on attempts to use -r with -relax, -call_shared or -s.
4463 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
4464 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
4465 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
4466 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
4467 OPTION_NON_SHARED by setting dynamic_link field accordingly.
4468 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
4469 -r and -Ur.
4470 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
4471 opening a file with a .so extension first.
4472 * emultempl/elf32.em: New file.
4473 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
4474 (NONPAGED_TEXT_START_ADDR): Likewise.
4475 (TEMPLATE_NAME): Define as elf32.
4476 (DATA_PLT): Define.
4477 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
4478 * scripttempl/elf.sc: Add placement for new dynamic sections.
4479 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
4480 outside of any section. Don't use ALIGN(8); just let one section
4481 VMA follow another. Put .dynbss in .bss. Don't mention debugging
4482 sections; they'll be handled correctly anyhow.
4483 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
4484
4485 Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
4486
4487 * Makefile.in (install): Redirect output of ln to /dev/null.
4488
4489 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
4490
4491 * emultempl/hppaelf.em: Change all references of
4492 .hppa_linker_stubs to .PARISC.stubs.
4493 * scripttempl/hppaelf.sc: Likewise.
4494
4495 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4496
4497 * ldlang.c (print_output_section_statement): Change ``no attached
4498 output section'' message slightly.
4499 (lang_do_assignments): Don't recurse down if there is no real
4500 section.
4501
4502 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
4503 match corresponding change in emulation templates.
4504 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
4505 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
4506
4507 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4508
4509 * ldver.c (ldversion): Updated version number.
4510
4511 * cdtest-foo.cc: Use explicit "#pragma implementation".
4512 * cdtest-bar.cc: Renamed from cdtest-func.cc.
4513 * Makefile.in: References to cdtest-func.o changed to
4514 cdtest-bar.o.
4515
4516 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4517
4518 Don't create unnecessary output sections.
4519 * ldlang.c (out_bfd_get_section_by_name): Remove.
4520 (wild_section): Call bfd_get_section_by_name rather than
4521 our_bfd_get_section_by_name. Don't call wild_doit if there is no
4522 section.
4523 (lang_create_output_section_statements): Remove.
4524 (map_input_to_output_sections): For several cases, call init_os if
4525 it has not already been called.
4526 (lang_size_sections): If output section was not created, skip it.
4527 (lang_process): Don't call lan_create_output_section_statements.
4528 (lang_place_orphans): Skip files with just_syms_flags set to true.
4529 * ld.texinfo: Document change.
4530
4531 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4532
4533 * ldlang.c (wild_doit): Don't bother initializing the vma and
4534 section size. Don't special case SEC_SHARED_LIBRARY.
4535 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
4536 specially.
4537
4538 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
4539
4540 * config/go32.mh : New file for Xgo32X.
4541
4542 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4543
4544 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
4545 before calling einfo, since we are reporting an fopen failure.
4546 From jrs@world.std.com (Rick Sladkey).
4547
4548 * configure.in: Use "e" rather than "em_" as prefix for
4549 emulations.
4550
4551 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
4552
4553 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
4554 filename.
4555 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
4556 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
4557 Ditto.
4558 * Makefile.in: Changed all generated file names.
4559 (ldemul-list.h): Depend on Makefile, not config.status. Changed
4560 sed patterns to handle new filenames.
4561
4562 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
4563 * configure.in: Adjusted.
4564
4565 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4566
4567 * Makefile.in (install-info): Don't use "$<*", it doesn't always
4568 work. Instead, check build dir and $srcdir explicitly, and use
4569 `echo' to get all the filenames.
4570
4571 * configure.in (h8300h-*-hms): Changed ld_target name to
4572 cf-h8300h.
4573 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
4574 unique in 8.3.
4575
4576 * config/i960coff.mt: New file.
4577 * emulparams/gld960coff.sh: New file.
4578 * emultempl/gld960c.em: New file.
4579 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
4580 i960coff configuration.
4581 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
4582
4583 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
4584 code isn't included in FSF releases, and it can still be
4585 explicitly selected.
4586 (distclean): Remove site.bak and tmpdir.
4587 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
4588 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
4589
4590 Patches from Ralph Campbell:
4591 * config/mipsbsd.mh: New file.
4592 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
4593 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
4594 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
4595 instead of `aout'.
4596
4597 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
4598
4599 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4600
4601 * config/m68k.mt (EMUL): Set to m68kaout.
4602 * emulparams/m68kaout.sh: New file.
4603 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
4604 (em_m68kaout.c): New target.
4605
4606 * ldlang.c (lang_size_sections): If dot moves because of an
4607 assignment, don't try to insert a pad into the absolute output
4608 section, just change the address of the default memory region
4609 instead.
4610
4611 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
4612 cdtest-ur.out, and cdtest-ur.tmp.
4613
4614 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4615
4616 * scripttempl/sa29200.sc: Align all sections to four byte
4617 boundaries.
4618
4619 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
4620
4621 * Makefile.in, configure.in: Support for go32 coff.
4622 * config/i386-go32.mt: New file
4623 * emulparams/i386go32.sh: New file
4624 * scripttempl/i386go32.sc: New file
4625
4626 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
4627
4628 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
4629 Lynx-specific script templates.
4630 * configure.in (sparclite*-*-coff): Use coff-sparc.
4631 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
4632 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
4633 (ENTRY): Set to __main.
4634 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
4635 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
4636 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
4637
4638 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4639
4640 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
4641 byte boundary, in case the global constructors do not take up an
4642 even 16 bytes.
4643
4644 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
4645 exist, get crtbegin based on gcc -print-libgcc-file-name.
4646 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
4647
4648 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4649
4650 * ldlang.c (lang_size_sections): When no address is given for a
4651 section, align it according to its requirements.
4652
4653 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4654
4655 * Makefile.in (clean, distclean): Remove configdoc.texi.
4656
4657 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
4658
4659 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
4660
4661 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4662
4663 * ldlang.c (lang_size_sections): When relaxing, adjust the
4664 position of a padding statement, and adjust dot accordingly.
4665
4666 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
4667
4668 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
4669
4670 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4671
4672 * scripttempl/i386coff.sc: If relocating, don't put .init and
4673 .fini sections into .text; keep them separate.
4674 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
4675 exist, get crtbegin based on gcc -print-libgcc-file-name.
4676 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
4677
4678 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
4679
4680 * Makefile.in (check): Set TCL_LIBRARY for runtest.
4681
4682 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4683
4684 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
4685 manufacturer.
4686
4687 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
4688 if building a final executable.
4689
4690 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4691
4692 * ldmain.c (main): Check the return value of bfd_close.
4693
4694 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4695
4696 * scripttempl/alpha.sc: Clean up section alignment to ensure that
4697 sections never overlap when using -r.
4698
4699 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4700
4701 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
4702 changes: get_symtab_upper_bound renamed and returns long,
4703 bfd_canonicalize_symtab returns long, check for error indications.
4704
4705 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4706
4707 * ldlang.c (print_input_section): For section size, use
4708 _cooked_size if it is non-zero, size otherwise.
4709 (size_input_section): Likewise.
4710 (lang_do_assignments): Likewise (case lang_input_section_enum).
4711
4712 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4713
4714 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
4715 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
4716 (lang_add_input_file): Pass true to new_afile for add_to_list.
4717 (lookup_name): Remove force_load argument. Changed all callers.
4718 Pass false to new_afile for add_to_list. Split loading of symbols
4719 out into separate function.
4720 (load_symbols): New function split out of lookup_name. Don't load
4721 the symbols if they are already loaded.
4722 (open_input_bfds): For lang_input_statement_enum call load_symbols
4723 rather than lookup_name.
4724 (lang_process): Pass abs_output_section rather than NULL to
4725 lang_size_sections.
4726 (lang_startup): Set real field of first_file to true.
4727
4728 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4729
4730 * ldlang.c (had_relax): Removed.
4731 (relax_again): New static variable.
4732 (lang_size_sections): Change call to bfd_relax_section to
4733 correspond to BFD changes. Set relax_again appropriately.
4734 (lang_process): Remove #if 0 code. When relaxing, keep calling
4735 lang_do_assignments and lang_size_sections until relax_again
4736 becomes false.
4737
4738 * emultemp/gld960.em: Include libiberty.h
4739 (gld960_before_parse): Pass NULL as final argument to concat.
4740
4741 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4742
4743 * scripttempl/aout.sc: Force _end and __end to be aligned to a
4744 four byte boundary.
4745
4746 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
4747 building a bfd_data_link_order, rather than by setting the section
4748 contents immediately.
4749
4750 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4751
4752 Changes to make -Ur work again.
4753 * ldmain.c (add_to_set): Now takes reloc argument rather than
4754 bitsize. Check config.build_constructors here. If an new hash
4755 table entry is created, mark it as undefined.
4756 (constructor_callback): No longer takes bitsize argument. Pass
4757 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
4758 BFD backend supports it.
4759 (reloc_overflow): Handle a NULL abfd argument.
4760 (reloc_dangerous, unattached_reloc): Likewise.
4761 * ldctor.c: Include ldmain.h.
4762 (struct set_info): Change bitsize field to reloc.
4763 (ldctor_add_set_entry): Now takes reloc argument rather than
4764 bitsize. Don't bother to check config.build_constructors here.
4765 (ldctor_build_sets): Get the size from the reloc howto. If
4766 generating relocateable output, call lang_add_reloc rather than
4767 lang_add_data.
4768 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
4769 instead of bitsize.
4770 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
4771 (lang_reloc_statement_type): New structure.
4772 (lang_statement_union_type): Add reloc_statement field.
4773 (lang_add_reloc): Declare new function.
4774 * ldlang.c (lang_for_each_statement_worker): Handle
4775 lang_reloc_statement_enum.
4776 (map_input_to_output_sections, print_statement): Likewise.
4777 (lang_size_sections, lang_do_assignments): Likewise.
4778 (print_reloc_statement): New function.
4779 (lang_add_reloc): New function.
4780 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
4781
4782 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
4783 (cdtest-ur, cdtest-ur.out): New targets.
4784 (check-cdtest): Now also check that -Ur works correctly.
4785
4786 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
4787
4788 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4789
4790 * ldlang.c (lang_process): Move lang_common call before
4791 map_input_to_output_sections, to ensure that any alignment
4792 constraints set by common symbols are copied over to the output
4793 sections.
4794
4795 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4796
4797 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
4798 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
4799 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
4800 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
4801 needed for ELF.
4802
4803 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4804
4805 * config/i386bsd.mh: New file.
4806
4807 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4808
4809 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
4810 defined.
4811 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
4812 (DATA_START_SYMBOLS): Define _fdata.
4813
4814 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
4815
4816 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
4817
4818 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4819
4820 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
4821 works again. Attach some output symbols to the stub file bfd.
4822
4823 * emultempl/hppaelf.em: Include elf32-hppa.h.
4824 (file_chain): Add decl.
4825 (hppa_look_for_stubs_in_section): Delete decl.
4826 (hppaelf_finish): Reenable code. Do not pass symbols
4827 down to hppa_look_for_stubs_in_section.
4828
4829 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
4830
4831 * ldmain.c (write_map): Don't define. Removed all references.
4832 Just use map_file or map_filename instead.
4833 (add_archive_element): Use minfo to write map information, not
4834 info_msg.
4835 (constructor_callback): Use fprintf to write map information, not
4836 info_msg.
4837 * ldmain.h (write_map): Don't declare.
4838 * ldgram.y (mri_script_command): Removed reference to write_map.
4839 * ldlang.c (lang_one_common): Likewise.
4840 * lexsup.c (parse_args): Likewise.
4841
4842 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
4843
4844 * scripttempl/elf.sc: Force all sections to be aligned.
4845
4846 * ldgram.y (section): Reverse the order of memspec_opt and
4847 fill_opt to avoid an ambiguity when both are used.
4848 * ld.texinfo: Changed accordingly.
4849
4850 * ldgram.y: Move include of ldlex.h back with other includes.
4851 * ldlex.h (input_type): Don't initialize enum constants to
4852 particular values.
4853 * ldlex.l: Use a switch to return the right token based on
4854 input_type, rather than knowing that input_type has a value based
4855 on a token type.
4856
4857 * ldgram.y (dirlist_ptr): Removed; not used.
4858 * lexsup.c: Include ldver.h.
4859 * Makefile.in: Rebuilt dependencies.
4860
4861 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
4862
4863 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
4864 (ldlang_add_file): call it here instead.
4865
4866 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4867
4868 * ldgram.y: Include ldlex.h after %token decls, for byacc.
4869
4870 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4871
4872 * emultempl/hppaelf.em: First attempt to clean this file up.
4873 Add comments in several functions as to their purpose and
4874 how they function (or my current best guess). Clean up horrible
4875 spacing and indention that never should have been accepted in the
4876 first place. Add FIXMEs for issues which need to be resolved.
4877 Disable linker-stub generation until it gets fixed. This allows
4878 the linker to at least work on simple code for testing purposes.
4879
4880 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
4881 it via hppaelf_finish). Prototype moved into ldlang.h.
4882 (lang_process): Move problematic extra call to lang_size_sections
4883 into the PA ELF specific code.
4884 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
4885 lang_size_sections moved here.
4886
4887 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
4888
4889 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
4890 * config/ppc-elf32.mt: New file.
4891 * emulparams/elf32ppc.sh: New file.
4892 * emultempl/ppc.em: New file.
4893 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
4894 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
4895 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
4896
4897 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4898
4899 * lexsup.c (parse_args): Use symbolic numbers for long options.
4900 Fix misunderstanding in -Y and -call_shared et al.
4901
4902 Use getopt instead of lex and yacc to parse the command line.
4903
4904 * ld.texinfo (Options): Document changes to option syntax.
4905 * Makefile.in: Update dependencies.
4906 * ldver.c (help): Tweak dashes in usage message.
4907 * ldgram.y (%union): Remove unused members.
4908 Remove %tokens for command line options; add ones for input types.
4909 (command_line): Rules removed.
4910 (file): Instead of command line, recognize an
4911 input type indicator, then use the nonterminal for that type.
4912 (defsym_expr): New nonterminal from code formerly in command_line.
4913 * ldlex.h: Declare parser input type enum and variable.
4914 Don't declare parse_line.
4915 * ldlex.l: Remove unused variables. Make some used ones static
4916 and comment them.
4917 (COMMAND): Start state and its rules removed.
4918 At start of yylex, return input state token if at start of input.
4919 (lex_redirect): Don't need to set yyout.
4920 (ldlex_command): Function removed.
4921 * ldmain.c (main): Instead of calling parse_line, set up the
4922 redirections and call yyparse directly.
4923 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
4924 "command line".
4925 * lexsup.c: Remove #if 0'd code.
4926 (parse_line): Function removed.
4927 (parse_args): Rewrite to use getopt_long_only.
4928 (set_default_dirlist): New function from code formerly in
4929 ldgram.y:command_line.
4930 (set_section_start): New function.
4931 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
4932 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
4933 compiled-in link scripts in "{" and "}", as the grammar no longer
4934 wants them to be.
4935
4936 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
4937
4938 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
4939 require that it be in $(srcdir).
4940
4941 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
4942
4943 * ldlang.c (lang_size_sections): Only align section to alignment
4944 required by linker script, not to maximum alignment of input
4945 sections.
4946
4947 * ldlang.h (largest_section): Don't declare.
4948 * ldlang.c (largest_section): Don't define.
4949 (size_input_section): Don't set largest_section; not used.
4950
4951 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
4952
4953 * ldlang.c (new_afile): Pass NULL as last argument to concat.
4954
4955 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4956
4957 * ldlang.c, ldmain.c: Include libiberty.h.
4958
4959 * ldmisc.h (concat): Don't declare.
4960 * ldmisc.c (concat): Don't define; just use the one in libiberty.
4961
4962 * ld.h (as_output_section_statement): Removed; not used.
4963
4964 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4965
4966 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
4967 bfd_set_error and new error names.
4968
4969 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
4970
4971 * ldwrite.c (build_link_order): If the cooked size of the section
4972 has been set, use it, for determining link_order size.
4973 (ldwrite): In the error message displayed if bfd_final_link fails,
4974 indicate that it was in fact the final link step that failed.
4975
4976 * ldlang.c (lang_size_sections): Clear bfd_error before calling
4977 bfd_relax_section, in case it returns false but doesn't flag an
4978 error. If an error is returned, indicate which one it is in the
4979 error message.
4980
4981 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
4982 it'll get picked up from $(srcdir) if appropriate.
4983
4984 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4985
4986 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
4987 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
4988
4989 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4990
4991 * ldlex.l (comment): Increment line number when newline is read.
4992
4993 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4994
4995 * ldlang.c (lookup_name): Take new argument, force_load. If true,
4996 reload the file even if it is already loaded.
4997 (wild): Call lookup_name with force_load argument of 0.
4998 (open_input_bfds): Call lookup_name with force_load argument of 1.
4999 (print_symbol): Remove declaration of non-existent function.
5000 (print_one_symbol): Return true rather than falling off end.
5001
5002 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5003
5004 * ldmain.c (main): Use %ld when printing long values.
5005
5006 * scripttempl/elf.sc: Move _edata after the .sdata section.
5007 Permit OTHER_BSS_SYMBOLS to be defined.
5008 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
5009
5010 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5011
5012 * Rename all "hppaosf" files to "hppaelf".
5013 * Change all "osf" references to "elf" in hppaelf files.
5014 * Makefile.in: Likewise.
5015 * configure.in: Likewise.
5016
5017 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5018
5019 * ldmain.c (main): Call xatexit, not atexit.
5020 Call xmalloc_set_program_name.
5021
5022 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
5023 bfd_errno.
5024
5025 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5026
5027 * emultempl/lnk960.em (append), emultempl/hppaosf.em
5028 (hppaosf_finish): Call xmalloc, not ldmalloc.
5029 * ldmain.c (preserve_output): Function removed.
5030 (main): Do it here instead.
5031
5032 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5033
5034 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
5035 GNU C specific macros.
5036
5037 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
5038 call to LANG_FOR_EACH_INPUT_SECTION.
5039
5040 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5041
5042 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
5043 deleted; will use libiberty versions instead.
5044 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
5045 mri.c Makefile.in: Change callers.
5046
5047 * ldmisc.c (vfinfo): Remove cleanup code.
5048 * ldmain.c (remove_output): Put it here (new function).
5049 (preserve_output): New function.
5050 (main): Register remove_output and preserve_output with atexit.
5051 * ldmain.c ldgram.y: Call xexit instead of exit.
5052 * ldmisc.h: Declare xexit.
5053
5054 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
5055
5056 * Makefile.in: Lots of new H8/500 memory models.
5057
5058 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5059
5060 * ldlex.l: Removed duplicate rules.
5061 (yywrap): Provide default definition, needed with some versions of
5062 flex.
5063
5064 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5065
5066 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
5067 the archive filename too.
5068
5069 * ldlex.l: Add rule to catch invalid input characters instead of
5070 printing them. Include "ldmain.h" for program_name decl.
5071 (lex_warn_invalid): New function.
5072 * Makefile.in: Add dependency.
5073
5074 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
5075
5076 * Makefile.in (check): Don't bother running any tests of
5077 cross-linker until the test suite no longer assumes native mode.
5078
5079 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5080
5081 * ldlang.c (print_one_symbol, print_input_section): Print
5082 global symbols in symbol table again.
5083
5084 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5085
5086 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
5087 exit successfully instead of complaining if no input files are
5088 given.
5089
5090 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
5091
5092 * Makefile.in: Format variable definitions consistently.
5093 (LD_PROG): Remove unnecessary variables from link command,
5094 change variable LOADLIBES to EXTRALIBS.
5095
5096 * ldmain.c (main): Compute and display total execution time.
5097 * ld.texinfo (-stats): Document the option.
5098
5099 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5100
5101 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
5102 arguments.
5103
5104 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
5105 after opening BFD.
5106
5107 * ldlang.c (relaxing): Removed global variable.
5108 (lang_size_sections): If the canonical symbols have not already
5109 been read in, read them in before relaxing.
5110 * ldlang.h (relaxing): Removed declaration.
5111
5112 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5113
5114 * ldlang.c (new_afile): Initialize loaded field to false.
5115 (lookup_name): If file was already loaded, don't call the
5116 add_symbols entry point again.
5117
5118 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5119
5120 * ld.texinfo: Clarify what -T option does.
5121
5122 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
5123
5124 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
5125 for a.out.
5126
5127 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5128
5129 * ldmain.c (add_archive_element): If trace_files or
5130 trace_file_tries, print file name.
5131 * ldlang.c (lookup_name): Likewise.
5132 (ldlang_add_file): Don't put files on input_bfds list in reverse
5133 order.
5134
5135 * scripttempl/elf.sc: Correct typo.
5136
5137 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5138
5139 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
5140 their arguments optional, for compatibility with the old GNU ld.
5141
5142 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5143
5144 * scripttempl/elf.c: Define __bss_start before the .sbss section.
5145
5146 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5147
5148 * ldmain.c (add_to_set): Add bitsize argument.
5149 (constructor_callback): New function.
5150 (link_callbacks): Add constructor_callback.
5151 * ldctor.c (struct set_info): Add bitsize field.
5152 (ldctor_add_set_entry): Add bitsize argument.
5153 (ldctor_build_sets): Base the size of the elements of the set on
5154 the bitsize, rather than always using LONG.
5155 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
5156
5157 * ld.h (QUAD_SIZE): Define.
5158 * ldgram.y (QUAD): New token.
5159 (length): Handle it.
5160 * ldlex.l: Return QUAD.
5161 * lexsup.c (keywords): Add QUAD.
5162 * ldwrite.c (build_link_order): Handle QUAD.
5163 * ldlang.c (print_data_statement): Handle QUAD.
5164 (lang_size_sections): Likewise.
5165 (lang_do_assignments): Likewise.
5166 * ldexp.c (exp_print_token): Add QUAD to table.
5167 * ld.texinfo: Describe QUAD.
5168
5169 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
5170 since the Alpha doesn't use them.
5171
5172 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5173
5174 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
5175
5176 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
5177
5178 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
5179 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
5180
5181 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5182
5183 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
5184 needed for i386mach. (Should be a no-op on other systems.)
5185
5186 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
5187 (PAGE_SIZE): Don't define; not used.
5188
5189 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5190
5191 * ldgram.y (yyerror): Make argument const char *, and actually
5192 print it out rather than assuming it is a syntax error.
5193 * ldmisc.h: Change declaration of yyerror.
5194 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
5195
5196 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5197
5198 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
5199 exec header offset, since the exec header isn't loaded.
5200 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
5201
5202 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5203
5204 A major rewrite to move the bulk of the linker into BFD so that
5205 more efficient backend code can be written for specific object
5206 files.
5207 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
5208 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
5209 * ldctor.c, ldctor.h: Complete rewrite.
5210 * ldwrite.c, ldwrite.h: Complete rewrite.
5211 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
5212 link_info.strip instead. Changed all uses.
5213 (discard_locals_type, discard_locals): Removed. Use
5214 link_info.discard instead. Changed all uses.
5215 (ld_config_type): Removed relocateable_output field; use
5216 link_info.relocateable instead; changed all uses. Added stats
5217 field.
5218 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
5219 set_loader_symbol): Removed.
5220 * ldexp.h (node_class): Added etree_rel.
5221 (etree_type): Added rel field.
5222 * ldexp.c (exp_print_token): Bracketed table initialization.
5223 (exp_relop): New function.
5224 (fold_name): Use linker hash table rather than ldsym functions.
5225 (exp_fold_tree): Likewise. Also, handle etree_rel case.
5226 (exp_print_tree): Handle etree_rel.
5227 * ldgram.y (strip_symbols, discard_locals): Removed.
5228 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
5229 (REL): New token. Does not appear in grammar, but needed for
5230 expression code.
5231 (file): Don't call lang_final; it's called by main anyhow.
5232 * ldlex.l: Accept -stats and -no-keep-memory options.
5233 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
5234 * ldlang.c: Consistently use fill_type for fill argument.
5235 (lang_init_script_file, script_file): Removed.
5236 (create_object_symbols): Removed. Use
5237 link_info.create_object_symbols_section instead. Changed all
5238 uses.
5239 (lang_add_keepsyms_file): Removed.
5240 (lookup_name): Call bfd_link_add_symbols instead of
5241 ldmain_open_file_read_symbol.
5242 (wild): Don't iterate over script_file.
5243 (open_output): Create link hash table.
5244 (lang_place_undefineds): Rewrote.
5245 (lang_size_sections): Handle relaxing (doesn't work yet).
5246 (lang_relocate_globals): Removed.
5247 (lang_finish): Use link hash table rather than ldsym functions.
5248 (lang_common): Rewrote.
5249 (lang_one_common): New function.
5250 (ldlang_add_file): Add file to link_info.input_bfds list. Set
5251 usrdata.
5252 (create_symbol): Removed.
5253 (lang_process): Don't call lang_init_script_file. Call
5254 ldctor_build_sets rather than find_constructors. Don't call
5255 lang_relocate_globals.
5256 (lang_abs_symbol_at_beginning_of): Rewrote.
5257 (lang_abs_symbol_at_end_of): Rewrote.
5258 * ldmain.c (had_y): Removed.
5259 (lprefix, lprefix_len): Removed; use link_info fields instead.
5260 Changed all uses.
5261 (multiple_def_count, commons_pending, undefined_global_sym_count,
5262 total_symbols_seen, total_files_seen): Removed.
5263 (link_callbacks, link_info): New variables.
5264 (main): Initialize link_info. Don't call init_bfd_error_vector or
5265 ldsym_init. Don't set now unused variables. Handle -stats.
5266 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
5267 (add_ysym): Rewrote.
5268 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
5269 search_library, gnu960_check_format, decode_library_subfile,
5270 linear_library, symdef_library, clear_syms, subfile_wanted_p):
5271 Removed.
5272 (add_keepsyms_file, add_archive_element, multiple_definition,
5273 multiple_common, add_to_set, warning_callback, undefined_symbol,
5274 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
5275 New functions.
5276 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
5277 require symbols for %C; look them up instead.
5278 * emultempl/hppaosf.em: Pass link_info to
5279 hppa_look_for_stubs_in_section.
5280 * Makefile.in: Rebuilt dependencies.
5281 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
5282 relax.c.
5283 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
5284 relax.h.
5285 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
5286 ldlang.h and ldctor.h.
5287
5288 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
5289 declarations of free and malloc from flex output. Change malloc
5290 to ldmalloc in flex output.
5291
5292 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5293
5294 * ldmain.c (lprefix): Change default from a char to a string
5295 with only one character.
5296 (lprefix_len): Set default to one.
5297
5298 * ldmain.h (lprefix_len): Declare.
5299
5300 * ldsym.c (write_file_locals): Use strncmp rather than a character
5301 comparison for lprefix.
5302
5303 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
5304 correctly.
5305
5306 * emultmpl/hppaosf.em: Include ldexp.h.
5307 (before_parse): Set lprefix and lprefix_len correctly.
5308
5309 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5310
5311 * ldlex.h: Don't declare yywrap if it is a macro.
5312 * ldlex.l: Include sysdep.h.
5313 * ldlang.c (lang_for_each_statement_worker,
5314 lang_for_each_statement): Forgot to use PARAMS.
5315
5316 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5317
5318 * Makefile.in: Added .PHONY targets where appropriate. Added some
5319 comments. Also:
5320 (gcclibdir, version): Removed unused variables.
5321 (DEP): New variable, set to mkdep.
5322 (ALL_CFLAGS): New variable. Used in .c.o target.
5323 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
5324 variables.
5325 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
5326 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
5327 mostly obsolete variables. Adjusted remaining uses.
5328 (DEF_EMUL): Removed variable.
5329 (ldmain.o): Handle undefined EMUL error correctly.
5330 (ldemul-list.h): Depend on config.status rather than Makefile.
5331 Create via temporary file.
5332 (ver960.c, roll, make): Removed obsolete targets.
5333 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
5334 dependencies.
5335 * dep-in.sed: New file, used when rebuilding dependencies.
5336
5337 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
5338
5339 Made many changes to eliminate gcc warnings. Made various
5340 cosmetic changes, declared various things in header files, removed
5341 various extern declarations from .c files. No substantive
5342 changes.
5343
5344 * ldlang.c (lang_process): Ifdef out final call to
5345 lang_size_sections again (reverting change of Nove 2), since it
5346 breaks the Sun4 linker.
5347
5348 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5349
5350 * configure.in (alpha-*-netware*): New target; use alpha.
5351
5352 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
5353
5354 * configure.in: Group targets by CPU. Merge some m68k target
5355 entries with different CPU specs that use the same ld_target
5356 values.
5357
5358 * configure.in: Add sparc*-*-coff.
5359 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
5360 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
5361 (em_coff_sparc.c): Add dependencies and build rules.
5362
5363 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
5364
5365 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5366
5367 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
5368 New tokens.
5369 (command_line_option): Accept and ignore them (for now).
5370 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
5371 where n is a number.
5372
5373 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5374
5375 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
5376 not in bfd_com_section, create the section in the BFD so that it
5377 can be placed in the right output section.
5378
5379 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5380
5381 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
5382 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
5383 (OTHER_READONLY_SECTIONS): Define for .reginfo.
5384 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
5385 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
5386 Move OTHER_READONLY_SECTIONS after all the other readonly
5387 sections. Don't use DATA_ADDR twice.
5388
5389 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
5390 p is in a common section, make sure the BFD has a section of that
5391 name.
5392
5393 * ldlang.c (lang_common): Add newline to error message.
5394
5395 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
5396
5397 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
5398 Lynx-specific script instead of m68kcoff.
5399 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
5400 (ENTRY): Define as __main.
5401 (TEXT_START_ADDR): Define as 0.
5402 (PAGE_SIZE): Define as 0x1000.
5403 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
5404 * scripttempl/m68klynx.sc: New file.
5405
5406 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5407
5408 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
5409 arguments rather than treating them as emulation names.
5410
5411 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
5412
5413 * configure.in: Support x86 unixware and netware plus generic netware.
5414
5415 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5416
5417 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
5418 Correct values (?).
5419
5420 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
5421
5422 * Makefile.in (distclean): Don't delete dvi or info files.
5423 (ld.info): Update dependency list.
5424 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
5425
5426 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5427
5428 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
5429 Set output_filename instead of creating a new node.
5430 (open_output): Don't set output_filename.
5431 (lang_final): Create the new node here.
5432 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
5433
5434 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5435
5436 From Pete Hoogenboom (hoogen@cs.utah.edu):
5437
5438 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
5439 edata, _edata, end): Add definitions of these symbols.
5440 (__end): Remove definition of this symbol.
5441 (__data_start): Move definition of this symbol.
5442
5443 * emultempl/hppaosf.em: Various fixes and support for linker stub
5444 generation.
5445 (hppaosf_finish, hppaosf_search_for_padding_statements,
5446 hppaosf_create_output_section_statements): New functions in
5447 support of linker stub generation.
5448 (ld_hppaosf_emulation): Redefine to include new
5449 emulation-specific routines.
5450
5451 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
5452 Pass abs_output_section rather than NULL to avoid invalidating
5453 absolute symbols.
5454
5455 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5456
5457 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
5458 (em_i386mach.c): New rule.
5459 * configure.in (i[34]86-*-mach*): New case.
5460 * config/i386-mach.mt: New file.
5461 * emulparams/i386mach.sh: New file.
5462
5463 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5464
5465 * ld.h (flag_is_*): Removed macros.
5466 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
5467 Consistently check the BFD symbol flags directly, rather than
5468 using file_is_* macros.
5469
5470 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
5471
5472 * configure.in (sparc*-*-lynxos*): New target.
5473 * Makefile.in: Add rule for em_sparclynx.c.
5474 (ALL_EMULATIONS): Add Lynx emulations.
5475 * config/sparc-lynx.mt: New file.
5476 * emulparams/sparclynx.sh: New file.
5477 * scripttempl/sparccoff.sc: New file.
5478
5479 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5480
5481 * Makefile.in: Add dependency for $(EMULATION_OFILES).
5482
5483 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5484
5485 * relax.c (write_relax): Check return value of bfd_seclet_link.
5486
5487 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
5488
5489 * ldlang.c (delete_output_file_on_failure): New variable.
5490 (open_output): Set it after bfd open succeeds.
5491 * ldmisc.c (vfinfo): Test it.
5492
5493 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
5494
5495 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
5496 symbols.
5497
5498 * ldemul.c: Support was added to allow emulation-specific
5499 processing to occur. This support was added primarily for linker
5500 stub generation in the elf32-hppa gld.
5501 (ldemul_finish, ldemul_create_output_section_statements): New
5502 functions.
5503 * ldemul.h: Support was added to allow emulation-specific
5504 processing to occur. (As described above.) Added finish and
5505 create_output_section_statements fields to
5506 ld_emulation_xfer_struct structure.
5507 * ldlang.c: Add calls to emulation-specific routines.
5508 (lang_process): Add call to
5509 ldemul_create_output_section_statements function.
5510 (lang_process): Add call to a emulation-specific routine (and
5511 some processing after the call).
5512
5513 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5514
5515 * configure.in: mips*- instead of mips-, mips*el changes
5516
5517 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5518
5519 * configure.in (alpha-*-osf*): New target; use alpha.mt.
5520 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
5521 (em_alpha.c): New target; use alpha.sh and alpha.sc.
5522 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
5523 * config/alpha.mt: New file.
5524 * emulparams/alpha.sh: New file.
5525 * scripttempl/alpha.sc: New file.
5526
5527 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
5528
5529 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
5530 types of different sizes (eg: 64 and 32 bits), so coerce.
5531 * ld.h (ALIGN_N): Add warning about usage.
5532
5533 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5534
5535 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
5536 which we already have a definition, rather than checking in
5537 several different places whether the symbol is weak.
5538
5539 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5540
5541 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
5542 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
5543 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
5544 expanded within them.
5545 * config/mipsb-elf32.mt: New file.
5546 * emulparams/elf32mipb.sh: New file.
5547 * Makefile.in (em_elf32mipb.c): New target.
5548
5549 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
5550
5551 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
5552 lang_input_file_is_search_file_enum so objects brought in using
5553 INPUT() do a path lookup.
5554
5555 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
5556
5557 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
5558 instead of {i386,m68k}-coff.
5559 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
5560 * config/i386-lynx.mt: New file.
5561 * config/m68k-lynx.mt: New file.
5562 * emulparams/i386lynx.sh: New file.
5563 * emulparams/m68klynx.sh: New file.
5564
5565 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
5566 but defaulting to _start.
5567
5568 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
5569 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
5570 LynxOS libc.
5571
5572 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
5573
5574 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
5575 HOSTING_LIBS for testing.
5576
5577 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5578
5579 Finish up support for i386-sysv4 (without shared libraries):
5580 * ld.h (flag_is_weak): Define.
5581 * ldlang.c (print_symbol): Mention whether symbol is weak.
5582 (print_input_section): Print weak symbols as globals.
5583 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
5584 (enter_global_ref): Do not warn if a weak symbol redefines a
5585 global symbol. Do not let a weak symbol redefine a common symbol.
5586 (enter_file_symbols): Treat weak symbols as global symbols.
5587 (subfile_wanted_p): Do not pull in an object file from a archive
5588 just to resolve an undefined weak symbol.
5589 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
5590 error; the error might be that malloc has run out of space.
5591 * ldsym.c (write_file_locals): Treat weak symbols as global.
5592 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
5593 use i386-elf.
5594 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
5595 * config/i386-elf.mt: New file; set EMUL to elf_i386.
5596 * emulparams/elf_i386.sh: New file.
5597 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
5598 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
5599 (ALL_EMULATIONS): Add em_elf_i386.o.
5600 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
5601 (em_elf_i386.c): New target, like other em_*.c targets.
5602 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
5603 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
5604 nonempty, and configured for native, add it to LIB_PATH.
5605
5606 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
5607
5608 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
5609 Added statements to pass stab and stabstr sections through and
5610 mark them as NOLOAD, which makes GDB happier.
5611
5612 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
5613
5614 * configure.in: Accept m68k-lynx-lynxos config.
5615
5616 * Makefile.in: Use $(SHELL) to run genscripts.sh.
5617
5618 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
5619
5620 * config/coff-h8300.mt: Add EMUL=h8300h.
5621
5622 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
5623
5624 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
5625
5626 * Makefile.in: Changed CXX back to g++.
5627
5628 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
5629
5630 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
5631
5632 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5633
5634 * Makefile.in (TAGS): Use shell wildcards.
5635
5636 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
5637
5638 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
5639
5640 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
5641
5642 * ld.texinfo: re-enable included config file; conditionalize doc
5643 for -oformat to interact properly with SingleFormat doc config
5644 var; rename @up/@down to @raisesections/@lowersections.
5645
5646 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5647
5648 * configure.in: recognize m88110.
5649
5650 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5651
5652 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
5653 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
5654 ELF emulation is "elf32-hppa" not "elf-big".
5655 (hppaosf_before_parse): Remove unneeded processing of environment
5656 variables.
5657 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
5658 .text segment of output file.
5659 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
5660
5661 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5662
5663 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
5664 longer in bfd.h.
5665
5666 * ldlang.c, ld.h: updated copyright.
5667
5668 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5669
5670 * ldlang.c (open_output, lang_check): Check return value of
5671 bfd_set_arch_mach.
5672
5673 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
5674
5675 * scripttempl/h8500.sc: Start all sections in a different segment.
5676 * scripttempl/z8ksim.sc: Handle constructors
5677
5678 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
5679
5680 * Makefile.in: revert earlier changes back to execute runtest
5681 with make check. cdtest and bootstrap now function as they
5682 did within the Makefile.
5683
5684 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5685
5686 * Makefile.in: Update dependencies.
5687
5688 * configure.in: Set EMULATION_OFILES in Makefile based on
5689 --with-targets option.
5690
5691 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
5692
5693 * Makefile.in: check targets reimplemented to old way.
5694
5695 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
5696
5697 * config/i386v.mh, config/irix4.mh: Use gcc
5698 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
5699 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
5700 bfd/configure.host change.
5701
5702 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5703
5704 * scripttempl/elf.sc: Handle .line and .debug* sections.
5705
5706 * ldlex.l: Use bfd_scan_vma, not strtoul.
5707
5708 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5709
5710 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
5711 Remove inital caps in some error messages, change "can't" to
5712 "cannot", add missing colons.
5713 * ldmisc.c (vfinfo): Print "%%" as a single %.
5714 For '%' followed by unrecognized character, print them both
5715 verbatim instead of expecting a char * arg.
5716 For '%C', don't put the function name in parens.
5717
5718 * ldexp.c (invalid): Pass "%%", not "% ".
5719
5720 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5721
5722 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
5723 (BSS_VAR): Removed; now always define _fbss.
5724 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
5725 Removed.
5726
5727 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
5728
5729 * configure.in: z8k-coff is the same as z8k-sim
5730
5731 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
5732
5733 * testsuite/lib/ld.exp: new file
5734 * testsuite/config/unix-ld.exp: new file
5735 * testsuite/ld.bootstrap/bootstrap.exp: new file
5736 * Makefile.in: add dejagnu support for make check
5737
5738 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5739
5740 * ldlex.l (comment): Add missing newline in message.
5741 * ldindr.c (add_indirect): Ditto.
5742 * ldexp.c (exp_fold_tree): Ditto.
5743
5744 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5745
5746 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
5747 into externs.
5748
5749 * ldmisc.c (multiple_warn): New function.
5750 * ldmisc.h: Declare it.
5751 * ldmain.c (enter_global_ref): Call it.
5752 * ld.h (ld_config_type): Add warn_common.
5753 * ldlex.l, ldgram.y: Set it with -warn-common option.
5754 * ldver.c (help): Document it.
5755
5756 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5757
5758 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
5759 target-specific sections, and for changing data section vma.
5760
5761 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
5762
5763 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
5764 terminals, for Solaris.
5765 (dirlist_ptr): New static variable.
5766 (command_line_option): Accept new options.
5767
5768 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
5769 "-YP,...".
5770
5771 * config/sun4sol2.mt: Pass emulation name without ".sh".
5772
5773 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
5774 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
5775
5776 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5777
5778 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
5779 .dtors, .data1, .rodata1 sections, instead of combining them into
5780 other sections. For `-r', set all section start addresses to
5781 zero.
5782
5783 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
5784 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
5785 (MAXPAGESIZE): Renamed from PAGE_SIZE.
5786
5787 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5788
5789 * genscripts.sh: If this is the default emulation, set
5790 COMPILE_IN.
5791 * emultempl/*.em: Use it to determine whether to compile in the
5792 scripts.
5793
5794 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
5795 genscripts.sh. Pass the current emulation name without ".sh" on
5796 the end.
5797 * genscripts.sh: Take an default emulation arg.
5798 Use the current emulation name as EMULATION_NAME.
5799 Make default lib path for cross-compiling ':', not null.
5800 * emulparams/*.sh: Don't set EMULATION_NAME.
5801 * ldemul.c (ldemul_get_script): Take isfile arg.
5802 Pass it to emulation's get_script function.
5803 * ldemul.h: Adjust get_script prototypes.
5804 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
5805 No longer static.
5806 * ldfile.h: Declare it.
5807 * ldgram.y: Accept a script on the command line again,
5808 for parsing compiled-in scripts.
5809 * ldmain.c (main): If ld script is a file, parse it as a -T
5810 option, otherwise parse it directly.
5811 * emultempl/*.em (*get_script): Return the scripts themselves if
5812 this is the default emulation; otherwise return their file names.
5813 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
5814 generic.em.
5815 * emulparams/m88kbcs.sh: Use it.
5816
5817 * ld.h (ld_config_type::unix_relocate): Remove unused element.
5818
5819 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5820
5821 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
5822 there's no change log entry yet, tsk tsk) from the list of
5823 emulations compiled in until Mark gets around to checking in
5824 emulparams/i386linux.sh.
5825 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
5826 changed, this file gets updated.
5827
5828 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
5829
5830 * ldgram.y (OPTION_Lfile): New token.
5831 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
5832 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
5833
5834 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
5835
5836 * configure.in: h8/300h support needs own .mt file.
5837 config/coff-h8300h.mt: New file.
5838
5839 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5840
5841 * ldmain.c: Don't include sys/stat.h; it already got included
5842 somewhere along the way.
5843
5844 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
5845
5846 * Makefile.in: Add h8300h support.
5847 emulparams/h8300h.sh: New file.
5848 scripttempl/h8300h.sc: New file.
5849
5850 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5851
5852 * ldfile.c (ldfile_open_file): In error message, use the name the
5853 user gave (e.g., "-lc"), rather than the base file name.
5854
5855 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
5856
5857 * ldmain.[ch]: Remove initial Q_ from function names.
5858 * ldexp.c, ldindr.c, ldlang.c: Change callers.
5859
5860 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
5861
5862 * ldlang.c (lang_process): Move loading of default script from
5863 here to main. Add a "/" to start of script name to prevent
5864 finding it in "." first.
5865
5866 * ldmain.c (set_scripts_dir): Don't look in "." first.
5867
5868 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
5869 option_longmap.
5870
5871 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
5872
5873 * Makefile.in (em_m88kbcs.c): Correct dependency.
5874 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
5875 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
5876 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
5877
5878 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5879
5880 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
5881 main.c (main): Print the errno string in the error message.
5882
5883 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
5884
5885 * configure.in: Accept h8300h for target cpu.
5886
5887 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
5888 present (demangle is smart enough to know whether to do it or not).
5889
5890 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5891
5892 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
5893 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
5894
5895 * ldlang.c (lang_process): Use sizeof instead of magic constant.
5896
5897 * ldmain.c (get_emulation, check_for_scripts_dir,
5898 set_scripts_dir): New functions.
5899 (main): Call them.
5900
5901 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
5902
5903 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
5904 Create symbol "end" instead of "__end". Comment out some parts
5905 that may not be needed (yet) for elf.
5906
5907 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
5908
5909 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5910
5911 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
5912
5913 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
5914 when no prototype is being supplied.
5915 (ldmalloc, ldrealloc): Size argument is now size_t.
5916
5917 * ldmisc.c (finfo): New function, accepts FILE* argument.
5918 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
5919 without leading zeros.
5920 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
5921 bfd_vma value, instead of fprintf(%x) which won't hold a long long
5922 value.
5923 (concat, buystring): String lengths are size_t.
5924 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
5925
5926 * ldlang.c (new_statement): Size argument is now size_t. Added
5927 forward declaration with prototype.
5928
5929 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5930
5931 * ldgram.y (OPTION_v): Don't turn on verbose output.
5932
5933 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5934
5935 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
5936 bfd.h instead.
5937
5938 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
5939
5940 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
5941 collect2 doesn't look for gld any more anyhow.
5942
5943 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
5944
5945 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
5946 now have a non NULL srefs_chain.
5947
5948 * config/hp300hpux.mt: Use emulation hp3hpux rather than
5949 hp300hpux, since the latter does not exist.
5950
5951 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5952
5953 * genscripts.sh: Put the scripts in the ldscripts directory, not
5954 emulations.
5955 * configure.in (ldscripts): Make, instead of emulations.
5956 * Makefile.in (scriptdir): Take off the "ld" part.
5957 (install, clean, distclean): Use ldscripts, not emulations.
5958 In tests, don't pass -Lemulations.
5959 Don't pass tooldir/lib to genscripts.sh.
5960 * genscripts.sh: Don't take tooldir/lib arg.
5961 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
5962 default script file.
5963
5964 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
5965
5966 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
5967
5968 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
5969
5970 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
5971
5972 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5973
5974 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
5975 run in parallel without colliding on yacc's static file names.
5976 Without the stub rule, make will try to start two yacc's
5977 concurrently which fails because of yacc's static file names.
5978
5979 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
5980
5981 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
5982 symbols.
5983
5984 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5985
5986 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
5987 different from libdir.
5988
5989 * Makefile.in (scriptdir): Base on tooldir, not datadir.
5990
5991 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5992
5993 * ldver.c (help): New function.
5994 * ldver.h: Declare it.
5995 * ldlex.l, ldgram.y: Recognize new options --help and --version.
5996
5997 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
5998
5999 * Makefile.in (INCLUDES): Don't need ../include any more.
6000
6001 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6002
6003 * ldlex.l, ldgram.y: Support new -oformat option.
6004 Remove attempt at supporting script fragments on the command line.
6005 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
6006 * mri.c (mri_format), ldgram.y: Change callers.
6007 * ldlang.h: Change prototype.
6008
6009 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
6010
6011 * Makefile.in: canonicalize install.sh; for use within
6012 this directory (and subdirs)
6013
6014 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6015
6016 * ldgram.y: Tweak grammar to make reporting of invalid options work.
6017
6018 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
6019 and .cc.o rule.
6020
6021 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6022
6023 * ldfile.c (ldfile_open_command): Don't try .ld extension.
6024 It wasn't documented (or likely used) and wastes time.
6025 (try_open): If EXTEN is empty, don't try it.
6026
6027 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
6028 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
6029 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
6030 with normal function declarations.
6031
6032 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
6033 Move *.sc-sh to scripttempl/*.sc.
6034 * {emultempl,emulparams,scripttempl}/README: New files.
6035 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
6036 removed, replaced with generic.em.
6037 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
6038 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
6039
6040 * *.em (*_get_script): Return script name instead of script contents.
6041 * ldlang.c (lang_process): Change caller.
6042
6043 * ldlex.l, ldgram.y: Recognize -m option.
6044 Check for input files after *all* options in grammar.
6045 * ldmain.c (main): Check for -m options. Add default directory
6046 for -m.
6047
6048 * mkscript.c: File removed.
6049 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
6050 to add to the default LIB_PATH.
6051 Look for input files in the new subdirectories.
6052 Create the scripts in emulations subdirectory and don't filter
6053 them through mkscript.
6054 * configure.in: Make the emulations subdirectory.
6055
6056 * Makefile.in: Account for all of the above changes.
6057 Remove unused .SUFFIXES. Get libgcc.a path with gcc
6058 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
6059 Put CFLAGS last in the compilation rules.
6060 Add -I../bfd to INCLUDES so sysdep.h is found.
6061
6062 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6063
6064 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
6065
6066 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
6067 dependent on RELOCATING, not RELOCATION.
6068 * hp3hpux.sh (SHLIB_PATH): Define it.
6069
6070 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6071
6072 * ldfile.c (try_open): If opening without the extension fails,
6073 try with the extension even if -v or -V was given.
6074 had_script is imported (from ldgram.y), not exported.
6075
6076 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
6077
6078 * Makefile.in: remove parentdir support, use INSTALL_XFORM
6079
6080 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
6081
6082 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
6083 * ldgram.y (statement_list_opt): New nonterminal, either empty or
6084 statement_list.
6085 (section): Use statement_list_opt, not statement_list.
6086 * m68kcoff.sc-sh: Gather constructors and destructors and define
6087 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
6088 * sa29200.sc-sh: Gather constructors and destructors and define
6089 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
6090
6091 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
6092
6093 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
6094 * configure.in: No longer need to configure to get sysdep.h.
6095
6096 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6097
6098 * Makefile.in: remove install:all and install-info:info
6099 dependencies (these cause some spurious rebuilds at 'make install'
6100 time)
6101
6102 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
6103
6104 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
6105 (mips-idt-ecoff*): Added trailing '*'.
6106 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
6107 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
6108 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
6109
6110 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
6111 incorrect definitions.
6112
6113 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
6114
6115 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
6116 symbols, unless stripping.
6117
6118 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
6119
6120 * Makefile.in: configure looks for ####, so remove lines with many
6121 '#' characters.
6122 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
6123 and HOSTING_LIBS correctly so that ``make check'' will work.
6124
6125 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
6126
6127 * mips.sc-sh: Define _etext, _edata, and _end, in addition
6128 to etext, edata, and end. Needed for IRIX 4.0.5F.
6129 Patch from mwp@iconix.oz.au (Michael Paddon).
6130
6131 * Version 2.2.1 released.
6132
6133 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6134
6135 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
6136 * mipsbsd.sh (EMULATION_NAME): Use new file name.
6137
6138 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6139
6140 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
6141 properly right now.
6142
6143 * Version 2.2 released.
6144
6145 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
6146
6147 * ldver.c (ldversion): Bump version number to 2.2.
6148
6149 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
6150
6151 * NEWS: New file.
6152
6153 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
6154
6155 * mips.sc-sh: Don't define BSS_VAR unless relocating.
6156
6157 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
6158
6159 * Makefile.in (mkscript.o, mkscript): Build mkscript via
6160 mkscript.o, rather than directly from mkscript.c.
6161
6162 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6163
6164 * configure.in: Look for ${target_makefile_frag} relative to
6165 ${srcdir}, not relative to build directory.
6166
6167 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
6168 * configure.in: Recognize hppa*-hp-osf.
6169 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
6170 (em_hppaosf.c): Build it.
6171 * config/hppaosf.mh, hppaosf.mt: New files.
6172
6173 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
6174 some system header files. All uses changed.
6175
6176 * configure.in: Recognize i386-aix configurations as i386-coff
6177 targets.
6178
6179 * configure.in: Recognize m68*-*-hpux.
6180 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
6181 the value of STACKZERO.
6182 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
6183 (em_hp3hpux.c): Build it.
6184 * hp3hpux.sh, config/hp300hpux.mt: New files.
6185
6186 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
6187
6188 * mips.sc-sh: Put constructors in the .data section.
6189 * Makefile.in (cdtest): Added dependency on ld.new.
6190
6191 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
6192
6193 * Makefile.in: Change definition of $(tooldir) to match FSF.
6194 * vax.sh, config/vax.mt, configure.in, Makefile.in:
6195 Support VAX Ultrix and BSD.
6196
6197 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6198
6199 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
6200
6201 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
6202
6203 * ldlang.h (struct memory_region): Change `length' and
6204 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
6205 * ldlang.c, mri.c: Corresponding changes, plus lint.
6206
6207 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
6208
6209 * configure.in: For all i386 targets, accept i486 as well.
6210
6211 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
6212
6213 * ldlang.c (wild_doit): Preserve all flags for a
6214 SEC_SHARED_LIBRARY section.
6215 (size_input_section): Consider any SEC_HAS_CONTENTS section when
6216 computing largest_section.
6217
6218 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
6219
6220 * ldlang.c (lang_output_section_statement_lookup): Initialize all
6221 fields of newly created structure.
6222
6223 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
6224
6225 * ldmain.c (g_switch_value): New variable.
6226 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
6227 (command_line_option): Accept -G and set g_switch_value.
6228 * ldlex.l (COMMAND): Accept -G.
6229 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
6230
6231 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6232
6233 Support for linking and loading at different places:
6234
6235 * ldlex.l: Add "AT" keyword.
6236 * ldgram.y: Cleanup, and parse AT.
6237 * ldlang.c (print_output_section_statement): Print output address
6238 of section in map. (lang_size_sections): Fill sections' lma with
6239 load address.
6240 * ldlang.h (lang_output_section_statement_type): Add load_base
6241 information.
6242
6243 * ldindr.c (add_indirect): Keep more information in the alias
6244 symbol chain.
6245 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
6246 attribute from an input section.
6247 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
6248 default. (Q_enter_file_symbos): Indirect symbols now are known by
6249 their section, not a special symbol flag.
6250 * ldsym.c (write_file_locals): Indirect symbols aren't local.
6251 (write_file_globals): Write the mapping for an indirect symbol.
6252 * relax.c (build_it): When forced to write a NEVER_LOAD section,
6253 fill it with zeros.
6254
6255 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
6256
6257 * ld.texinfo: changes for q1
6258
6259 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6260
6261 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
6262
6263 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6264
6265 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
6266
6267 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
6268
6269 * mips.sc-sh: Added variables which may be overridden by a
6270 specific emulation.
6271 * mipsidt.sh: New file; emulation for IDT MIPS board.
6272 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
6273 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
6274 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
6275 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
6276
6277 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
6278
6279 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
6280 ralphc@pyramid.com.
6281 * i386bsd.sh, config/i386bsd.mt: New files.
6282 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
6283
6284 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
6285
6286 * mri.c: Add extern declaration of strdup.
6287 * ldsym.c (KEEP macro): Add spaces around '=' for the
6288 sake of old (e.g. PCC) compilers.
6289
6290 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
6291
6292 * ldver.c: Bump to version 2.1.
6293
6294 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6295
6296 * ldgram.y: allow section types without address expressions.
6297 * ldlang.c (lang_relocate_globals): avoid possible hang with
6298 undefined but unreferenced symbols.
6299 * relax.c (relax_section): don't complain if the script file isn't
6300 relaxable but -relax is set
6301
6302 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6303
6304 * configure.in: go32 is the 3rd part of the triple, not the 2nd
6305
6306 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
6307
6308 * mipsbig.sh: New file. Big endian MIPS emulation.
6309 * config/mips-big.mt: New file. Use mipsbig emulation.
6310 * configure.in (mips-sgi-irix*): Use target mips-big.
6311 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
6312 (em_mipsbig.c): New target. Uses mipsbig.sh.
6313
6314 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
6315
6316 * mips.sc-sh: Put .scommon sections into .sbss section.
6317
6318 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
6319 rather than always putting them in bfd_com_section.
6320 * ldlang.c (lang_common): If a common symbol is not in
6321 bfd_com_section, put in a section of the same name, rather than
6322 always putting it in section COMMON.
6323
6324 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
6325
6326 * ldmain.c (subfile_wanted_p): If we already have a common
6327 definition of a symbol, don't necessarily pull in an object file
6328 that provides a non-common definition.
6329
6330 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
6331 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
6332 linker.
6333 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
6334 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
6335
6336 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
6337
6338 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
6339 the link to it.
6340
6341 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
6342
6343 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
6344 checking for equality to bfd_com_section.
6345
6346 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
6347
6348 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
6349 targets, linker script.
6350 * mipslit.sh: New file. Little endian MIPS emulation.
6351 * config/mips-lit.mt: New file. Use mipslit emulation.
6352 * configure.in (mips-dec-ultrix*): Use target mips-lit.
6353 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
6354 (em_mipslit.c): New target. Uses mipslit.sh.
6355
6356 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
6357
6358 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
6359 $(tooldir)/bin/gld, so that gcc can find it with or without
6360 collect2.
6361
6362 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6363
6364 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
6365 write_norel. All linking is now done via write_relax. Call
6366 ldsym_write before calling write_relax.
6367 * relax.c: Added copyright.
6368 (write_relax): Renamed from write_relaxnorel. Added relocateable
6369 argument. seclet_dump renamed to bfd_seclet_link.
6370 * relax.h: Added copyright.
6371
6372 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6373
6374 * ldmain.c (decode_library_subfile): Patch from
6375 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
6376
6377 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6378
6379 * config/vxworks960.mt renamed to config/i960.mt
6380
6381 * configure.in: sparc-aout emulates a sun4, as does
6382 sparc*-vxworks, i960-nindy uses gld960 emulation
6383
6384 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6385
6386 Fix support for NOLOAD, add INCLUDE
6387 * ldfile.c (ldfile_open_command_file): pass file name to
6388 lex_push_file.
6389 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
6390 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
6391 attribute.
6392
6393 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6394
6395 * Makefile.in, config.h: no more default emulation. Make the lack
6396 of emulation a compile time error
6397
6398 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6399
6400 * configure.in: recognise all sparclite variants, not just 'sparclite'
6401
6402 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
6403
6404 * m68kcoff.sc-sh: define _end as well as end, for consistency with
6405 aout.sc-sh.
6406
6407 * configure.in: accept *-ericsson-ose for any m68k CPU.
6408
6409 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
6410 for each output section.
6411
6412 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
6413
6414 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
6415 macro bfd_asymbol_bfd as appropriate.
6416 * Makefile.in: Un-duplicate ldlex.c dependency.
6417 * condigure.in: Replace my_host case table by sourcing
6418 ../bfd/configure.host. Allow std-host as the default.
6419 * ldmisc.c: Change logic for C++ name demangling: There is
6420 no initial '_' to remove from stab-derived function names.
6421
6422 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6423
6424 * ldlang.c (lang_init_script_file): don't attach the output file
6425 sections to the script file.
6426
6427 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6428 * ldlang.c (wild): run expansion loop over command line bfd too.
6429 (lang_ini_script_file): initialize more parts of the command line
6430 bfd.
6431 * ldlex.l: fix DEFINED start states.
6432
6433 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6434 -y support
6435 * ld.texinfo: new doc.
6436 * ldgram.y, ldlex.l: understand -y<symbol>
6437 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
6438 print info. (add_ysym): new function.
6439 * ldsym.h: (ldsym_type): new define SYM_Y.
6440
6441 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
6442
6443 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
6444 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
6445 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
6446 macros with PARAMS. Recreational cleanup. Update copyrights.
6447
6448 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6449
6450 * Makefile.in: pass down the bfd source directory for includes
6451
6452 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
6453
6454 * ldlang.c (lang_size_sections): don't change size and address for
6455 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
6456 sections.
6457
6458 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6459
6460 * relax.c (build_it): re-enable the processing of data_statements
6461 in scripts, makes counted contructor lists work again.
6462
6463 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
6464
6465 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
6466
6467 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
6468
6469 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
6470 and end.
6471
6472 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
6473
6474 * Support for i386-sysv.
6475 configure.in: check for i386-*-sysv* and i386-*-sco*.
6476 i386coff.sc-sh: rewrote to support SVR3 by default.
6477 ldctor.c (find_constructors): preserve stat_ptr.
6478 ldlang.c (wild_doit): initialize vma and size of new output
6479 section to corresponding input section. This is required for
6480 shared library support.
6481 (lang_size_sections): don't modify vma and size of sections which
6482 are never loaded (for shared libraries).
6483 ldwrite.c (copy_and_relocate): copy the contents of any section
6484 which has contents, not just sections which are loaded (for shared
6485 libraries).
6486
6487 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6488
6489 * ldlang.c (size_input_section): count the sizes of all sections
6490 we allocate.
6491
6492 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6493
6494 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
6495 to demangle symbols better
6496
6497 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
6498
6499 * ldlang.c (lang_finish): don't warn if -e start symbol does not
6500 exist when linking with -r.
6501
6502 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
6503
6504 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
6505 .bss segment.
6506
6507 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6508
6509 * ldmain.c (linear_library): don't even think about processing
6510 an object file if it's already been done
6511
6512 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6513
6514 * configure.in: the hp9000/300 config file is now hp300
6515
6516 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6517
6518 * config/z8ksim.mt: new file
6519
6520 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
6521
6522 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
6523 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
6524
6525 * ld.h (strip_symbols_type): Add value STRIP_SOME.
6526 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
6527 * ldlang.c (lang_add_keepsyms_file): New function.
6528 * ldlex.l: Handle "-retain-symbols-file".
6529 * ldsym.c (keepsyms_file, kept_syms): New vars.
6530 (process_keepsyms): New functihon; reads file, marks symbols for
6531 saving.
6532 (write_file_locals): File symbols should always be kept.
6533 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
6534 and "-s". Process retain-symbols file before setting symtab.
6535 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
6536 (keepsyms_file, kept_syms): Declare them.
6537
6538 * ldmain.c (main): Non-fatal errors should still cause non-zero
6539 exit status even with -r.
6540
6541 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6542
6543 Added initial support for the z8k
6544 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
6545 * configure.in, Makefile.in: modified to reflect above
6546
6547 * ldlang.c (lang_check): when linking conflicting architectures,
6548 make the output file reflect at least one of the bad inputs.
6549
6550 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
6551
6552 * Makefile.in (install): if $(tooldir) exists, install ld in
6553 $(tooldir)/bin.
6554
6555 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6556
6557 * Makefile.in, configure.in: modified to support i386-coff
6558 * i386coff.sh: new file
6559
6560 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
6561
6562 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
6563 added m68k-coff emulation mode, stolen from a29k emulation.
6564 Almost certainly wrong, but perhaps better than sun3.
6565
6566 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
6567
6568 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
6569 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
6570 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
6571 This is one character shorter, and lets people build on
6572 SVR3 system. (ld__h8300xray.[co] was the killer there;
6573 h8300xray.sc-sh is also overlong, but seems harmless.)
6574 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
6575 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
6576 * configure.in: Add host isc.
6577
6578 * ldver.c: Call it version 2.0.
6579
6580 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
6581
6582 * ldver.c: Bump to version 0.98.
6583 * TODO: New file.
6584
6585 * Makefile.in: Added mostlyclean, distclean, realclean rules.
6586
6587 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
6588
6589 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
6590 * ldlex.l: Moved comment() to end, since some compilers
6591 otherwise have problems with input() used before it is defined.
6592
6593 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6594
6595 * configure.in: added Solaris 2 and Irix 4 host support.
6596
6597 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6598
6599 * Makefile.in: remove -S flag from the FLEX definition
6600
6601 * configure.in: rewrote, using new style case statement. use
6602 m68k.mt for m68k-aout systems
6603
6604 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
6605
6606 * Makefile.in: map "ld" through program_transform_name when
6607 installing.
6608
6609 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
6610
6611 * cplus-dem.c: Removed. Use the version in libiberty now.
6612 * ldmisc.c: Use new libiberty version of cplus_demangle().
6613
6614 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
6615
6616 * gld960.em (gld960_choose_target): default to little endian, not
6617 big endian.
6618
6619 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6620
6621 * ldlang.c (lang_process): don't pass null pointers when
6622 abs_output_section is what is required.
6623 * ldwrite.c (ldwrite): use malloc to allocate the largest space
6624 used, and pass that down.
6625 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
6626 than alloca.
6627
6628 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
6629
6630 * configure.in, config/ose68.mt: renamed OSE to ose.
6631
6632 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
6633
6634 * ldsym.c (write_file_locals): Reorder check for common or
6635 undefined symbols so that it works.
6636
6637 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
6638
6639 * configure.in: accept all m68K family members.
6640
6641 * Makefile.in: always create installation directories.
6642
6643 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6644
6645 * ldlex.l: now parses comment correctly, added ~ to acceptable
6646 chars in filenames
6647
6648 * ldexp.c (exp_unop): pass down abs_output_section - now can have
6649 unary -ve constants.
6650
6651 * ldlang.c (lang_finish): warn when an entry symbol supplied on
6652 the command line can't be found.
6653
6654 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6655
6656 * ldlang.h: add new field "loadable" to output_section_statement.
6657 * ldlang.c (lang_output_section_statement_lookup): initilize new
6658 field. (wild_doit): if new field is not set, then stop output
6659 section from being loadable.
6660 (lang_enter_output_section_statement): set the field from the
6661 NOLOAD keyword
6662 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
6663 * h8300hms.sc-sh, h8300hms.em: get -r right.
6664
6665 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
6666
6667 * ldint.texinfo: New internals manual (beginnings thereof).
6668 * PORTING: Removed, merged into ldint.texinfo.
6669
6670 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
6671
6672 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
6673 cdtest.exp: A test program (copied from libg++/test-install)
6674 that tests that constructor and destructors are handled
6675 corrrectly.
6676
6677 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6678
6679 * Makefile.in (install): install from ld.new, renaming during the
6680 copy, or else the next 'make install' needs to re-link ld.
6681
6682 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
6683
6684 * configure.in: generalise hp recognition (from sef).
6685
6686 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6687
6688 * configure.in: recognize bsd and hpux hppa configurations.
6689 error messages echo to stderr, not stdout
6690
6691 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6692
6693 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
6694 ldmisc.c: removed rcsid's.
6695
6696 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6697
6698 * ldlang.c (lang_map): print changes in sizes due to relaxing
6699 (size_input_section): maintain the delta information.
6700 * ldlang.h: add new field to struct to contain delta info.
6701 * relax.c (relax_section): complain if input not relaxable.
6702 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
6703 start of a filename
6704
6705 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6706
6707 * ldmain.c(main): prevent -r and -relax from being on at the same
6708 time.
6709
6710 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6711
6712 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
6713 aliasing problems
6714
6715
6716 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6717
6718 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
6719 * ldexp.c: lint
6720 * ldlang.c(open_output): set the target arch and machine as soon
6721 as we can. (lang_size_sections): use new macros for setting vma
6722 * ldwrite.c: lint
6723
6724 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
6725
6726 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
6727 Also deleted an unreachable path to wrs.
6728
6729 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
6730
6731 * Makefile.in (install): use -d test for $tooldir before
6732 installing ld there so that $tooldir can be inherited from
6733 top-level Makefile.
6734
6735 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
6736
6737 * ldlang.c: Two non-substantial changes for the sake of
6738 the old Portable C Compiler.
6739
6740 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6741
6742 * ldgram.y, ldlex.l: parse ABSOLUTE
6743 * ldexp.c: add support for ABSOLUTE
6744
6745 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
6746
6747 * Makefile.in: Added default definitions for HOSTING_CRT0,
6748 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
6749 * config/*.mh: Miscellaneous clean-up: Removed definitions
6750 of YACC (since it is not longer used in the Makefile).
6751 Remove HOSTING_* definitions that are subsumed by the
6752 ones added to Makefile.in. Removed most definitions of CC.
6753 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
6754 These are no longer needed.
6755
6756 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
6757
6758 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
6759 rules, since these are used when building a distribution.
6760 * Makefile.in (ldlex.c): Don't re-direct output, since that
6761 leaves a bogus output files if it fails.
6762
6763 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
6764 * ldlex.c: Fix some unnecessary flex-specific-isms.
6765
6766 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6767
6768 * ldgram.y: move spurious semicolon
6769 * ldexp.h: fix prototype
6770
6771 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6772
6773 * ld.texinfo: references to linker now say "ld" not "gld".
6774
6775 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6776
6777 changed calling convention for Q_enter_global_ref
6778 * ldexp.c, ldlang.c, ldmain.c: reflect this
6779 * ldver.c: bump version to 1.97.1
6780 * ldindr.c (add_indirect): when an edict declaring an indirect
6781 symbol is found, make sure that any ideas about the symbol being
6782 common are changed if it now known to be defined.
6783 * ldmain.c (linear_library): complain once if archive isn't
6784 ranlibbed.
6785 * ldlang.h, ldlang.c: make room for and initialize the complain
6786 once field.
6787
6788 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6789
6790 * Makefile.in: use flex & bison from ../ if they exist.
6791
6792 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6793
6794 * relax.c (build_it): don't allocate space in the output file for
6795 stuff if -R flag applys to it.
6796 * ldfile.c: merge in VMS filename support
6797 * ldmain.c (main): take out ./ from library path, and close file
6798 before unlinking. Make multiple defs of a symbol create an
6799 unexecable file.
6800 * ldmisc.c: fatal errosrs delete output file
6801
6802 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
6803
6804 * ldver.c: Increase version number to 1.97, for consistency
6805 with ../binutils.
6806
6807 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
6808
6809 * Makefile.in: FLEX -> LEX.
6810
6811 * ld.texinfo: {} -> @{@}.
6812
6813 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
6814
6815 * ld.texinfo: describe alternate, MRI-compatible linker scripts
6816 (and associated change in -c option, now used for these scripts)
6817
6818 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6819
6820 * ldver.c: Bumped version to 1.96 - new release, resync with the
6821 bfd too #.
6822 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
6823 rather than with raw malloc, makes it easier to track where memory
6824 is going.
6825 * ldsym.h, ldsym.c: create obstack for all global symbols too.
6826 * ldwrite.c (ldwrite): moved malloc so only used when needed.
6827 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
6828
6829
6830 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
6831
6832 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
6833
6834 * Makefile.in: use bootstrap for check.
6835
6836 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6837
6838 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
6839 PUBLIC.
6840 * Makefile.in: now use flex, not lex
6841 * ldlex.l, ldlang.c, ldctor.c: lint
6842
6843 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6844
6845 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
6846 different sorts of filenames on the command line than in a script.
6847
6848 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6849
6850 * Makefile.in: rework CFLAGS so that they can be passed on the
6851 make command line. Remove MINUS_G. Default CFLAGS to -g.
6852
6853 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6854
6855 * relax.c: added handling for new "padding" seclet type, used to
6856 fill out gaps between section.
6857 * ldgram.y, ldlex.l: now -defsym on the command line is done
6858 properly.
6859
6860 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6861
6862 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
6863
6864 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6865
6866 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
6867 scripts.
6868
6869 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
6870
6871 * Makefile.in (install): Install second copy in $(tooldir)/bin
6872 without $(program_prefix), since that's what gcc expects.
6873
6874 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6875
6876 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
6877 * h8300*: fix bit rot and add support for h8300xray target
6878 * go32.sh: target emulation for go32.
6879
6880 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
6881
6882 * gld960.em, i960.sc-sh. Fix i960 bit rot
6883
6884 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
6885
6886 * Makefile.in: install man page.
6887
6888 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6889
6890 * config/mt-<foo> renamed to <foo>.mt
6891 * config/mh-<foo> renamed to <foo>.mt
6892 * configure.in changed to reflect this
6893 * genscripts.sh now make .xbn files rather than .xN files
6894
6895 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
6896
6897 * ldver.h: fix decl of ldversion.
6898
6899 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
6900
6901 * Makefile.in: added check target.
6902
6903 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6904
6905 * ldmain.c (Q_enter_file_symbols): now aliases work again
6906
6907 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
6908
6909 * Makefile.in: added clean-info target.
6910
6911 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6912
6913 * ldexp.c (exp_print_tree): don't try and follow null pointers
6914 around.
6915 * ldgram.y: remove 11 shift reduce errors
6916
6917 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6918
6919 * Makefile.in: added tooldir and program_prefix.
6920
6921 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
6922
6923 * ldlang.c (size_input_section): don't move absolute sections
6924 around!
6925
6926
6927 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
6928
6929 * cplus-dem.c: yet another copy of this - maybe it should go into
6930 libiberty ?
6931 * ldgram.y: now -V and -v have different actions
6932 * ldver.c: if -V, prints list of emulations compiled in
6933 * ldmisc.c: support for cplus demangling
6934
6935
6936 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
6937
6938 * Makefile.in, configure.in: removed traces of namesubdir,
6939 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
6940 copyrights to '92, changed some from Cygnus to FSF.
6941
6942 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
6943
6944 * Makefile.in: Change mkscript rule into one for ./mkscript
6945 (for the sake of makes that don't realize they're the same).
6946 * PORTING: Add more details.
6947 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
6948
6949 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
6950
6951 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
6952 config/mt-hp300bsd: New port to hp300 running BSD.
6953
6954 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
6955
6956 Major rewrite of how ld is configured. The major idea
6957 is to use shell scripts to generate everything.
6958 * generic.em replaces ldtemplate.
6959 * Other *.em files replace various *.c files.
6960 A *.em file is a shell script that generates the corresponding
6961 ld__*.c file that implements an emulation. This is usually
6962 a straight 'cat' of a here-document, possibly with substitutions.
6963 * Script files (*.sc) are places by *.sc-sh scripts.
6964 Again, these are simple shell scripts that 'cat'
6965 here-documents, usually with some substitutions.
6966 The output a *.sc-sh is a script file.
6967 * Each emulation is defined by a short shell script with
6968 extension *.sh that specifies the emulation-specific
6969 parameters (such as the name of the *.sh-sc and *.em
6970 files to use).
6971 * genscript.sh is the master shell script used to generate
6972 an emulation. It is passed various argument, including
6973 the name a the emulation-speciic *.sh file that it
6974 "sources" to set variables to emulation-specifc parameters.
6975 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
6976 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
6977 * config/mh-foo: Rename LDEMULATION names as appropriate
6978 (usually 'gldfoo' -> plain 'foo').
6979 * ldwrite.c: Fixed a typo in a comment.
6980 * Makefile.in: Major changes. Removed some the sed
6981 magic to converts scripts, since that is now handled
6982 by genscripts.sh and the *.sc-sh scipt generators.
6983 * config.h: Remove a bunch of macros defining emulations
6984 and targets. This becomes one less file to edit when
6985 adding emulations or targets.
6986 * ldemul.h (struct ld_emulation_xfer_struct): Add
6987 emulation_name and target_name fields.
6988 * ldemul.c, ldemul.h: Define some default functions used
6989 by most emulations (and remove from the *.em scripts).
6990 * ldemul.c (ldemul_choose_target): Search the new
6991 ld_emulations array using a loop (instead of a hardwired
6992 nested if statement).
6993 Define the ld_emulation from the automatically-geenrated
6994 ldemul-list.h. This means you no longer have to edit ldemul.c
6995 to add a new emulation.
6996 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
6997 their expansions, since the former no longer exist.
6998 * PORTING: A very rough first draft of a porting guide.
6999
7000 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
7001 to be terminated by a new-line (instead of requiring a semicolon).
7002
7003 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7004
7005 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
7006 tests for NULL pointers all over the place.
7007 * ldlang.c (lang_process): remember to relocate global symbols
7008 *after* relaxing has done it stuff.
7009
7010 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7011
7012 * config/mt-coff-h8300: use EMUL like everything else
7013 * ldlang.c: (print_padding_statement): print the right address.
7014 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
7015
7016
7017 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7018
7019 * ldlex.l: Put pack -noinhibit-exec and -sort-common
7020 * ldlang.c (print_data_statement): print the right address.
7021
7022 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
7023
7024 * Makefile.in: The rule for testing ld by re-linking itself
7025 via an intermediate -r link was moved to the ld1 rule
7026 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
7027 which allows the bootstrap rule to work.
7028 * ldctor.c (find_constructors): Don't create a constructor
7029 list if it is already defined (as would happen if ld is
7030 invoked by collect).
7031
7032 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7033
7034 * config/mh-sparc.h: now uses libgcc.a
7035 * ldmain.c: quit using exit
7036 * *sc: use *(COMMON) rather than [COMMON]
7037 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
7038 to allow preprocessing of .l file.
7039 * Makefile.in: New ldlex.l mangling
7040 * ldexp.c (fold_binary): perform expressions with % and / in
7041 integer.
7042 * ldfile.c (open_a): open archives on VMS in a special way
7043
7044
7045 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7046
7047 * ldgram.y: map -M behave in the same way as -Map (sets file name
7048 to be "-".
7049 * ldsym.c, ldlang.c: remember that size of a section is dependent on
7050 whether or not relaxing has been done.
7051 * ldmain.c: don't open a map file if it doesn't have a name
7052 * relax.c: all the brains have moved into bfd.
7053 * ldwrite.c: ammend comment
7054
7055 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7056
7057 * Makefile.in: added relax, also made three stage go through a
7058 partial link stage.
7059 * relax.c : added
7060 * config.h: if GNU960 defined, then default emulation mode is
7061 GLD960
7062 * ldexp.h, ldexp.c: map to file hooks
7063 * ldlang.c: map to file hooks
7064 * ldgram.y: added -Map -relax
7065 * ldlex.l: added -relax, -Map
7066 * ldmain.c: open map file
7067 * ldmisc.c: support for map file
7068 * ldwrite.c: new relax magic
7069
7070 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
7071
7072 * Makefile.in, config/tm-*.h: Clean up make output, only
7073 pass DEFAULT_EMULATION to ldmain.c.
7074
7075 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
7076
7077 * ldver.c: Bump to version 1.94.
7078
7079 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
7080
7081 * Makefile.in: infodir belongs in datadir.
7082
7083 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
7084
7085 * Makefile.in: Pass -y to bison. (Again;
7086 accidentally deleted by Rich.)
7087 * news.sc, ldgld68k.sc: Define __end as well as _end.
7088
7089 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
7090
7091 * ldindr.h: added to contain prototypes of ldindr.c
7092 * ldfile.c: include ctype.h
7093 * ldmain.c: include the requried prototype headers
7094 * ldwrite.c: get_reloc_upper_bound has been renamed
7095 bfd_get_reloc_upper_bound
7096
7097 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
7098
7099 * Makefile.in: punt "fundamental" mode because it breaks my emacs
7100 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
7101 spaces following hyphens, bsd make can't cope. added
7102 standards.text support and made it look like all the other
7103 makefiles.
7104
7105 * configure.in: configure now runs entirely in objdir so make file
7106 existence checks against ${srcdir}. Mark this directory as
7107 target dependent.
7108
7109 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
7110
7111 * Makefile.in: idestdir and ddestdir go away. Added copyrights
7112 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
7113 and mandir now keyed off datadir by default.
7114
7115 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
7116
7117 * ldver.c: Bumped version to 1.93.
7118 * Makefile.in: Pass -y to bison.
7119
7120 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
7121
7122 * config.h: h8 is now coff, not ieee
7123 * h8300hds.sc: reflect the same
7124
7125 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
7126
7127 * ldver.c (ldversion()): Update to 1.92.
7128 * ldctor.c: There are two places constructor sets
7129 can be defined. One of them checked for an existing
7130 duplicate, the other didn't. Unfortunately, the latter
7131 was called after the former ...
7132 So, factor out code for inserting a new element into
7133 constructor_name_list (after checking for a duplicate)
7134 into a new function add_constructor_name, and call
7135 it from both aforementioned places (ldlang_add_constructor
7136 and ldlang_check_for_constructors).
7137
7138 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
7139
7140 * Makefile.in: Rename .c files generated from ldtemplate
7141 to have names starting with ld__. This helps 'make clean'.
7142
7143 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
7144
7145 * Makefile.in: Take out the version number for install
7146 * m88kbcs.sc: put in contructor blocks.
7147
7148 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
7149
7150 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
7151 parameter, a format, and an arg pointer, and rename it to
7152 vfinfo(). Write info() in terms of new vfinfo().
7153 New einfo() is the same as info(), except it writes to stderr.
7154 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
7155 ldmisc.c: Replace "error" calls to info() by new einfo().
7156
7157 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
7158
7159 * ldlex.l ldgram.y: made -V option do same as -v
7160 * Makefile.in: Added $(MINUS_G) flag so debugging can be
7161 turned off
7162
7163 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
7164 i386 aout changes from Bob Kukura
7165 * Makefile.in, config.h: added i386aout support
7166 * configure.in: fixed /h-{myhost} typo
7167 * ldgram.y: -MM now gives more boring map.
7168 * ldlang.c: now does D_PAGED flag the right way.
7169 * ldsym.c: -MM flags does the right thing.
7170
7171 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
7172
7173 * configure.in: Fixed typo. Also, a fix for hp300bsd.
7174 * ldlang.c (init_os): Compensate for BFD change,
7175 where bfd_make_section now returns NULL for a duplicate
7176 section request, instead of the old section.
7177
7178 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
7179
7180 * ldver.c: Bump to version 1.91 (consistent with binutils).
7181
7182 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
7183
7184 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
7185 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
7186 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
7187 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
7188 Add or update copyright notices.
7189
7190 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
7191
7192 * README: New file.
7193 * Makefile.in: Changed installation directory name scheme
7194 to be consistent with gcc. Also changed 'install'.
7195
7196 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
7197
7198 * Makefile.in: new targets ld.mm, ld.me
7199
7200 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
7201
7202 * Makefile.in, ldtemplate: Need to use separate scripts
7203 for -n and -N options. Yet more complication.
7204
7205 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
7206
7207 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
7208 work). Add some lines to avoid Sun Make VPATH bugs.
7209
7210 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
7211
7212 * news.sc: Add alignment for data segment.
7213 * ldtemplate: Add (yet another) script to get for -n or -N
7214 options. (These need different alignment than ZMAGIC files.)
7215 * Makefile.in: Add stuff for new foo.xn scripts.
7216 These are generated by replacing "ALIGN(0x...00)" by ".".
7217
7218 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
7219
7220 * Makefile.in: new targets ld.ms, ld-index.ms
7221 ld.texinfo: remove tabs, other cleanups for texi2roff
7222
7223 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
7224
7225 * ldmain.c (main): Make config.magic_demand_paged be true
7226 by default. Don't the WP_TEXT and D_PAGED flags of
7227 output_bfd here; it's too late, so set it when output_bfd
7228 is created (in ldlang.c). Also fix setting of EXEC_P flag
7229 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
7230 * ldlang.c: Remove some duplicate extern declarations.
7231 * ldgram.y: Fixes to -N and -n options.
7232 * Makefile.in: Recognize upper case letters in sed script
7233 to remove assignments from script files.
7234 * ldtemplate: Don't assukme that -N or -n options
7235 imply use of -r script.
7236 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
7237
7238 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
7239
7240 * ldtemplate: include bfd.h before sysdep.h.
7241
7242 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
7243
7244 Restructure configuration scheme for bfd, binutils, ld.
7245
7246 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
7247 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
7248 Change some config names to match other dirs.
7249 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
7250 get defined first.
7251 * config/: Rename some config files to match up h-*.h names.
7252 Remove all the HOST_SYS definitions from the config files.
7253
7254 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
7255
7256 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
7257 * ldtemplate: Remove ldfile_add_library_path calls;
7258 just use the SEARCH_DIR commands in the script files.
7259 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
7260 the SEARCH_DIR commands in the scripts (using ugly sed magic).
7261 This is primarily intended for cross-linking, where you would
7262 place libaries in a different place than native libraries.
7263 Also, emulations made from ldtemplate now use $(srcdir).
7264 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
7265 form; people can use the Makefile's LIB_PATH to override.
7266
7267 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
7268
7269 * Makefile.in: fix target ld.dvi, add target ld.info
7270 ld.texinfo: make info filename ld.info
7271
7272 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
7273
7274 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
7275 Make).
7276 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
7277 few BFD types & enums.
7278
7279 \f
7280 Local Variables:
7281 mode: change-log
7282 left-margin: 8
7283 fill-column: 74
7284 version-control: never
7285 End:
This page took 0.169343 seconds and 5 git commands to generate.