Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
02fbf070
ILT
1Mon 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
94d8217d
ILT
5Fri 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
10Thu 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
15Fri 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
b4a4a6dc
ILT
21Wed 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
26Thu May 15 11:35:29 1997 Nick Clifton <nickc@cygnus.com>
27
94d8217d 28 * ldlang.c (lang_check): Add test of the return value from the
b4a4a6dc
ILT
29 call to bfd_merge_private_bfd_data().
30
1a7f2a86
ILT
31Mon 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
3d046499
ILT
57Mon 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
f7f90eaa
ILT
63Fri 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
1ba1da86
ILT
67Tue 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
a59a42ae
ILT
75Mon 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
df184f82
MM
80start-sanitize-tic80
81Fri 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
f1687b6f
MM
85 in the .text section. Move .const, .ctors, .dtors into separate
86 sections.
df184f82
MM
87
88end-sanitize-tic80
89Wed 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
cfa7c448
ILT
94Thu 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
ba69384d
ILT
99Tue 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
21d83d1c
ILT
109Mon Apr 14 12:06:15 1997 Ian Lance Taylor <ian@cygnus.com>
110
ba69384d
ILT
111 * Makefile.in (INSTALL): Change install.sh to install-sh.
112
21d83d1c
ILT
113 From Thomas Graichen <graichen@rzpd.de>:
114 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
115 * configure: Rebuild.
116
ab83171d
ILT
117Fri Apr 4 11:42:41 1997 Ian Lance Taylor <ian@cygnus.com>
118
4507afd0
ILT
119 * emultempl/pe.em: Include "libiberty.h".
120 (sort_sections_1): Use xmalloc rather than alloca.
121
ab83171d
ILT
122 * ldlex.l: Recognize SQUAD.
123 * ldgram.y (length): Add SQUAD.
4507afd0
ILT
124 * ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
125 reloc.
ab83171d
ILT
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
6f4b1d31
ILT
132Thu 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
dc696002
ILT
138Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
139
c6cfcb7f
ILT
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
dc696002
ILT
144 * ldlang.c (lang_process): Call lang_check immediately after
145 opening the input files, rather than at the end of the link.
146
147Mon 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
88ddffaf
ILT
154Mon Mar 31 16:35:51 1997 Joel Sherrill <joel@oarcorp.com>
155
156 * configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
157
158Fri 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
2032ade9
ILT
167Fri 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
5fd92ccd
ILT
174Thu 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
6d4314e0
ILT
179Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
180
7aef7107 181 * emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
6d4314e0 182
d7a48b6d
ILT
183Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
184
6d4314e0
ILT
185 * Makefile.in: Rebuild dependencies.
186
d7a48b6d
ILT
187 * emultempl/aix.em: Include "obstack.h".
188
cadddcea
ILT
189Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
190
191 * ldlang.c: Include "obstack.h".
192
b87ff07d
FF
193Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
194
195 * configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
196
c5a0d31a
ILT
197Sat 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
2adb092c
ILT
210Fri 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
d7339c87
ILT
216Wed 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
225Tue 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
998f2b67
ILT
230Sun Mar 9 23:06:35 1997 Eric Youngdale <eric@andante.jic.com>
231
232 * ldgram.y (vers_node): Correct typo of '(' for '{'.
233
81fb245d 234start-sanitize-tic80
98ee67d8
FF
235Fri 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
81fb245d
MM
242Tue Mar 4 17:18:35 1997 Michael Meissner <meissner@cygnus.com>
243
244 * configure.tgt (tic80-*-*): Allow dropping of -coff.
245
246end-sanitize-tic80
247Sun 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.
252start-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.
256end-sanitize-tic80
257
22f9f902
ILT
258Fri 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
24293f27
ILT
263Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
264
9ae9e582
ILT
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
24293f27
ILT
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
d73d49a4
ILT
278Wed 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
283Tue 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
289Tue 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
dc25aca0
ILT
297Mon 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.
d73d49a4 330 * ld.texinfo: Document symbol versioning.
dc25aca0 331
232e8702
MH
332start-sanitize-d30v
333Fri 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
340end-sanitize-d30v
c6c7035c
MM
341Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
342
343 * ld.texinfo (Option Commands): Document the INCLUDE command.
344
345Thu 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
e7886d4b
ILT
355Tue 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
276c2d7d
GRK
360start-sanitize-r5900
361Fri Feb 7 13:16:53 1997 Gavin Koch <gavin@cygnus.com>
362
363 * configure.tgt: add r5900.
364
365end-sanitize-r5900
11effa69
FF
366start-sanitize-tic80
367Sun 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
374end-sanitize-tic80
93d7eb0f
ILT
375Fri Jan 31 13:16:53 1997 Ian Lance Taylor <ian@cygnus.com>
376
966be348
ILT
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
93d7eb0f
ILT
381 * Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
382 <alan@spri.levels.unisa.edu.au>.
383
e87b950c
ILT
384Thu 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
0fc327a3
GN
392Wed 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
f5f212fb
ILT
398Mon 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
da1ba4b0
JL
405Fri 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
c57cd823
DE
411Tue 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
cc28f8fb
ILT
416Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
417
3391c0a5
ILT
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
cc28f8fb
ILT
424 * ld.texinfo (Options): Improve documentation of --filter and
425 --auxiliary.
426
f9c5c231
ILT
427Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
428
cc28f8fb
ILT
429 * ld.texinfo (Options): Clarify that the normal usage is -T.
430 (Commands): Likewise.
f9c5c231 431
24bc58bc
ILT
432Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
433
434 * scripttempl/armcoff.sc: Correct mask used for .data address.
435
4ba1b439
GN
436Wed 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
6243aa73
ILT
441Fri 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
feb20cfb
ILT
447Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
448
5e7127d7
ILT
449 * Makefile.in (clean): Don't remove configdoc.texi.
450 (maintainer-clean): Do remove configdoc.texi.
451
feb20cfb
ILT
452 * ld.texinfo (Operators): Remove '@' from @smallexmple in comment
453 to avoid confusing texi2roff.
454
731828cb
MM
455start-sanitize-v850
456Fri 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
461end-sanitize-v850
09342753
ILT
462Thu 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
de220cbd
ILT
468Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
469
6ded6615
ILT
470 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
471
de220cbd
ILT
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
c43452b0
MM
481start-sanitize-v850
482Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
483
484 * scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
485
486end-sanitize-v850
7885e8b3
SS
487Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
488
489 * mpw-make.sed: Use NewFolderRecursive for installation.
490
93f8f531
MM
491start-sanitize-v850
492Fri 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
502end-sanitize-v850
10e31c75
JL
503Fri 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
d0d5edba
ILT
509Thu 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
515Sat Dec 7 10:07:51 1996 Jeffrey A Law (law@cygnus.com)
516
517 * emulparms/mn10300.sh: Handle leading underscores.
518
12436407
ILT
519Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
520
c3f9e754
ILT
521 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
522 set hold_rel if SEC_ALLOC is set.
12436407
ILT
523
524Tue 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
529Mon 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
037f6a23
JM
534Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
535
93f8f531
MM
536 * scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
537
93f8f531 538 * scripttempl/elfd10v.sc: Likewise.
93f8f531
MM
539start-sanitize-v850
540 * scripttempl/v850.sc: Likewise.
541end-sanitize-v850
037f6a23 542
0e809bba
ILT
543Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
544
545 * configure: Rebuild with autoconf 2.12.
546
547Mon 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
9e73a716
JL
552Mon 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
96e34542
JL
557Fri 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
96e34542
JL
563Tue 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
e6b743a2
ILT
568Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
569
9fde46a4
ILT
570 * ld.texinfo: Add section on reporting bugs.
571
e6b743a2
ILT
572 * scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
573 symbols are correctly aligned.
574
e740228d
JL
575start-sanitize-v850
576Thu 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
581end-sanitize-v850
2f19ce78
MH
582Tue 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
56f8bcd1
DE
591Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
592
593 * configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
594
06c5b0fc 595start-sanitize-v850
4ad9452c
JL
596Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
597
e740228d 598 * scriptempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
56f8bcd1 599
4ad9452c
JL
600 * scriptempl/v850.sc (zdata): Make sure this stays
601 in lo-memory.
602
06c5b0fc
JL
603Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
604
5549ebed
JL
605 * scripttempl/v850.sc (__ep): Put it at the start
606 of the tda section.
607
06c5b0fc
JL
608 * scriptempl/v850.sc: Move all "normal" sections into
609 the external memory region (0x100000 - 0x200000).
610
611end-sanitize-v850
36cf21ce
MM
612Mon 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
e20f0dbd
DE
623Fri 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
30bddd33
ILT
627Fri 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
b502879f
JL
636start-sanitize-v850
637Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
638
639 * scripttempl/v850.sc (__gp, __ep): Define.
640
641end-sanitize-v850
a5377d48
ILT
642Thu 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
a5c1ebec
DE
647Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
648
649 * emulparams/m32relf.sh (EMBEDDED): Define.
a5c1ebec 650
d27d34c3 651start-sanitize-v850
2b8cd389
JL
652Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
653
c23b6a6b
JL
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
2b8cd389
JL
658 * emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
659 * scripttempl/v850.sc: Wrap script with a "cat << EOF".
660
d27d34c3
JL
661Wed 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
666end-sanitize-v850
f6f2b36e
ILT
667Thu 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
961d5893
ILT
673Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
674
458fc056
ILT
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
961d5893
ILT
684 * emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
685 subsystem type. Ifdef out os2 type. Recognize a version number.
686
40d53fdf
ILT
687Tue Oct 8 12:07:13 1996 Ian Lance Taylor <ian@cygnus.com>
688
d0d63887
ILT
689 * emultempl/pe.em (set_pe_subsystem): When setting the subsystem
690 to windows, set the entry point.
691
40d53fdf
ILT
692 * Makefile.in (ldlex.c): Don't pass any options to $(LEX).
693
4164f2d5
ILT
694Mon 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
9193c60b
JM
699Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
700
701 * scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
702
0063d3a1
ILT
703Fri 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
afb8f218
DE
708Fri 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
3fac4887
ILT
714Thu 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
bdec6bdb
JM
722Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
723
724 * Makefile.in (mostlyclean): Move config.log to distclean.
725
417fe276
GN
726Wed 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
30e23a1c
ILT
731Wed 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
6e9efeaf
ILT
737Tue Oct 1 16:17:33 1996 Joel Sherrill <joel@oarcorp.com>
738
739 * configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
740
9cfdc91a
ILT
741Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
742
b61364cc
ILT
743 * ld.texinfo (Options): Give more detail on -l option.
744
4fc7ca82
ILT
745 * scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
746 elf.sc does, so that glibc works better.
747
9cfdc91a
ILT
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
79e9dc20
DE
756Mon 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.
79e9dc20
DE
761
762Thu 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
4dfa8848
ILT
769Tue Sep 17 12:18:21 1996 Ian Lance Taylor <ian@cygnus.com>
770
79e9dc20
DE
771 * ldint.texinfo: Rewrote.
772
4dfa8848
ILT
773 * configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
774
df6b92ed
ILT
775Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
776
190de8a7
ILT
777 * scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
778 syntax error on __end__ line.
779
df6b92ed
ILT
780 * scripttempl/armcoff.sc: For -N or -n, don't align .data. From
781 Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
782
9d879ade
JL
783start-sanitize-v850
784Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
785
786 * emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
787
788end-sanitize-v850
3e925696
MA
789Sun 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
deb2a145
ILT
794Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
795
796 * ldlex.l (SYMBOLCHARN): Add $, _, and ~.
797
8ae650ea
ILT
798Wed 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
ee0523d5
ILT
802Thu 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
31cadbf4
ILT
809Wed 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
7ab4a84a 814start-sanitize-v850
31cadbf4
ILT
815Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
816
817 * emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
818
819Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
820
821 * emulparms/v850.sh: Set EMBEDDED.
822
7ab4a84a
JL
823Fri 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
828end-sanitize-v850
efd48a6a
ILT
829Fri 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
841Thu 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
4c6856fa
ILT
846Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
847
efd48a6a
ILT
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
4c6856fa
ILT
859 * ldver.c (ldversion): Print GNU ld in the version message.
860
861Thu 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
04c17a75
JL
869start-sanitize-v850
870Thu 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
876end-sanitize-v850
82939527
SS
877Thu 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
18f0961e
ILT
881Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
882
8387e114
ILT
883 * scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
884 containing sections.
18f0961e 885
8b5b6ebd
ILT
886Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
887
888 * fnmatch.c: Include sysdep.h.
889
9099ec8f
MM
890Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
891
892 * genscripts.sh: Undo 8/16 change.
893
9099ec8f 894 * emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
9099ec8f
MM
895
896Fri 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
9099ec8f 903 * Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
9099ec8f 904
61e3ce74
JSC
905Fri 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
911Thu 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
27927278
ILT
916Wed 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
d22ec3b0
ILT
928Mon 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
5735ac9e
ILT
967Fri 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
b947ed2d
ILT
977Thu Aug 1 12:52:19 1996 Ian Lance Taylor <ian@cygnus.com>
978
582dd77f
ILT
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
b947ed2d
ILT
1008 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
1009 definition of lib_path inside condition where it is used.
1010
ed4820d7
MH
1011Wed Jul 31 13:17:10 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1012
1013 * emulparams/d10velf.sh: Now works with elf.sc.
1014
364ffcf5
MH
1015Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1016
1017 * emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
1018
cd09553a
ILT
1019Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
1020
72df7117
ILT
1021 * ldlang.c (lang_size_sections): Add the section VMA to the result
1022 value when computing the address of a section.
1023
cd09553a
ILT
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
86bc0974
ILT
1033Mon 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
364ffcf5 1060Wed Jul 24 12:16:38 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
ebaf6370
MH
1061
1062 * emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
1063
c5b89620
MM
1064Wed 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
e9525d96
MH
1068Tue 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
71cd1bb6
ILT
1074Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
1075
73a66e7a
ILT
1076 * configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
1077 <ANDREWG@microlise.co.uk>.
1078
71cd1bb6
ILT
1079 * configure.host: Change irix5 to irix[56]*.
1080 * configure.tgt: Likewise.
1081
611a763f
KK
1082Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
1083
2154656e
KK
1084 * emultempl/pe.em (sort_sections): Pay attention to return code.
1085
611a763f
KK
1086 * ldmisc.c (demangle): Remove all prefix '.'s from a name.
1087
888b0b2f
ILT
1088Mon 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
719de0ea
ILT
1094Tue 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
45c85bcb
ILT
1109Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
1110
e44c2b1c
ILT
1111 * ldver.c (ldversion): Set version to cygnus-2.7.1.
1112
45c85bcb
ILT
1113 * Released binutils 2.7.
1114
1ab4cd57
ILT
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
4702444f
ILT
1123Wed 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
bfac208d
SS
1128Sun 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
2ea93eb9
ILT
1132Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
1133
bfac208d
SS
1134 * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
1135 file just before the .so file, rather than just after.
1136
2ea93eb9
ILT
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
90c1d8f7
ILT
1143Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
1144
1145 * configure.tgt (mips*-dec-osf*): New target.
1146
f14a5192
JM
1147Tue 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
1156Mon 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
d7b5386f
ILT
1162Mon 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
8530ae8e
ILT
1184Mon Jun 24 12:00:32 1996 Ian Lance Taylor <ian@cygnus.com>
1185
d7b5386f
ILT
1186 * scripttempl/elf.sc: Force .stab* and .comment sections to start
1187 at 0.
1188
8530ae8e
ILT
1189 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
1190 using shared libraries.
1191 * configure: Rebuild with autoconf 2.10.
1192
817ef338
ILT
1193Fri Jun 21 17:40:56 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
1194
1195 * configure.tgt: Add support for *-*-rtems* configurations.
1196
539ae61d
ILT
1197Fri 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
a475297c
ILT
1212Fri 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
55745b34
ILT
1216Thu 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
1240Wed 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
55745b34
ILT
1245Tue 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
2e71dfc0
ILT
1253Tue 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
1258Wed 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
b72b1a0c
ILT
1265Fri 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
39e6bc33
ILT
1272Thu Jun 6 11:50:31 1996 Ian Lance Taylor <ian@cygnus.com>
1273
1760b4ae
ILT
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
39e6bc33
ILT
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
1282Wed 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
07acd23b
ILT
1287Tue 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
2c7aeec6
TT
1304Tue Jun 4 12:12:25 1996 Tom Tromey <tromey@csk3.cygnus.com>
1305
1306 * Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
1307
e5ca07bf
ILT
1308Fri 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
a1d393cf
ILT
1313Wed May 29 13:13:35 1996 Ian Lance Taylor <ian@cygnus.com>
1314
90557a6a
ILT
1315 * scripttempl/elfmips.sc: Quote test -z argument.
1316
a1d393cf
ILT
1317 * ld.texinfo: Clarify the CONSTRUCTORS command.
1318
64a37d3c
ILT
1319Thu 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
fe6e2957
DE
1324Wed 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
1338Tue 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
4242ac27
DE
1342Sun 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
de7c7482
SC
1346Sat 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
b3319029
JW
1355Wed 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
fb2a7661
MM
1359Fri 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
01d8a359
RS
1364Thu 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
7248b4e2
DE
1372Tue 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
d38d6b7a
JL
1384Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
1385
00e6a1b1
JL
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
12688490
JL
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.
d38d6b7a 1398
4015337e
JL
1399Mon 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
0a0d1bdd
DE
1404Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
1405
1406 * ldlang.c (section_already_linked): Fix typos.
1407
f2618f82
DE
1408Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
1409
1410 * scripttempl/pe.sc (.endjunk): Define __end__.
1411
0cacbcbe
ILT
1412Mon 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
df872c9e
ILT
1447Mon 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
f0f80b13
ILT
1456Fri Apr 26 14:42:27 1996 Ian Lance Taylor <ian@cygnus.com>
1457
efa6c497
ILT
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
f0f80b13
ILT
1477 * ldmisc.c (vfinfo): Reindent.
1478
14706a96
ILT
1479Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
1480
6799c638
ILT
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
6429ad7e
ILT
1492 * ldlang.c (wild_doit): Discard debugging sections if we are
1493 stripping debugging information.
1494
14706a96
ILT
1495 * emulparams/z8002.sh (ARCH): Set to z8002, not z8k.
1496
e3e69b13
ILT
1497Tue 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
56074c55
MM
1506Tue 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
10533b5b
RS
1511Mon 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
1516Fri Apr 12 16:40:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
07f48792
RS
1517
1518 * scripttempl/m68kcoff.sc: Remove default address for .data so
1519 .text, .data, and .bss are all sequential.
1520
aa59d90e
ILT
1521Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
1522
1523 * scripttempl/m68kcoff.sc: Remove regions and simplify.
1524
d26c498b
JL
1525Wed 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
b279f82e
DE
1532Tue 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
28ad0357
MM
1538Tue 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
7ec9d825
ILT
1544Tue Apr 9 12:18:57 1996 Ian Lance Taylor <ian@cygnus.com>
1545
517a7caf
ILT
1546 * ld.texinfo: Rearrange option documentation.
1547
1ffec9e6
ILT
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
7ec9d825
ILT
1555 * ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
1556
90ba7e65
ILT
1557Mon Apr 8 11:56:23 1996 Ian Lance Taylor <ian@cygnus.com>
1558
0c4d3f6f
ILT
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
b4cb4ea2
ILT
1563 * configure.in: Permit --enable-shared to specify a list of
1564 directories.
1565 * configure: Rebuild.
1566
90ba7e65
ILT
1567 * lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
1568 for HP/UX compatibility.
1569
8a42aa54
ILT
1570Fri Apr 5 14:30:14 1996 Ian Lance Taylor <ian@cygnus.com>
1571
6cc7365e
ILT
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
8a42aa54
ILT
1581 * configure.tgt: Add i[345]86-*-freebsdelf* target; from John
1582 Polstra <jdp@polstra.com>.
1583
4864a04f
JSC
1584Fri 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
09328690
ILT
1592Mon 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>.
23595ba5
ILT
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
ea461c67
SC
1607Sun 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
0e88ffa2
JL
1612Fri 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
bacc1703
DE
1618Thu 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
64664e69
ILT
1623Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
1624
cf2e4f5f
ILT
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
64664e69
ILT
1632 * ldlang.c: Fix some indentation and comments.
1633
28113e82
ILT
1634Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
1635
1636 * ldmain.c (main): Call bfd_set_error_program_name.
1637
8ef401e2
ILT
1638Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
1639
28113e82
ILT
1640 * ld.texinfo: Fix a couple of indexing entries. Mention that
1641 --verbose displays builtin linker scripts.
1642
4bcc5d32
ILT
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
8ef401e2
ILT
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
baaaf6f2
ILT
1652Wed 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
0f5898cc
ILT
1656Wed 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
60e42680
DE
1662Tue Mar 19 16:44:20 1996 Doug Evans <dje@canuck.cygnus.com>
1663
1664 * configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
1665
deddae66
JL
1666Wed 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
5cb57c2c
ILT
1674Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
1675
96704ebc
ILT
1676 * emultempl/lnk960.em (machine_table): Add jx and hx.
1677
5cb57c2c
ILT
1678 * genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
1679 support it.
1680
4b7d2399
ILT
1681Tue 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
02df835b
ILT
1689Tue Mar 12 12:02:21 1996 Ian Lance Taylor <ian@cygnus.com>
1690
e3d73386
ILT
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
ea2488ad
ILT
1697 * configure: Rebuild with autoconf 2.8.
1698
02df835b
ILT
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
1707Wed 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
6771b6e2
ILT
1713Wed 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
3d0c8fa1
ILT
1725Mon 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
16385918
ILT
1730Fri 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
e24b45a8
SS
1735Tue 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
228b04d2
ILT
1740Tue 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
3c8deccc
ILT
1751Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
1752
228b04d2
ILT
1753 * Makefile.in (ALL_EMULATIONS): Sort into alphabetical order.
1754 Fill in missing entries.
1755
3c8deccc
ILT
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
fc7b6582
ILT
1763Tue Feb 20 16:07:00 1996 Ian Lance Taylor <ian@cygnus.com>
1764
1765 * configure.tgt: Correct gldi960 to gld960.
1766
c653b370
ILT
1767Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
1768
169df8d5
ILT
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
c653b370
ILT
1775 * ld.texinfo: Mention that -R can be used for -rpath.
1776
9e2ef098
ILT
1777Sun 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
ad43e45b
ILT
1782Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
1783
c99fbc42
ILT
1784 * configure.in: Remove explicit substitution of CFLAGS; autoconf
1785 does it anyhow.
1786 * configure: Rebuild.
1787 * Makefile.in (LDFLAGS): Set to @LDFLAGS@.
1788
7e19f60e
ILT
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
22aa1302
ILT
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
ad43e45b
ILT
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
95d31c3c
ILT
1803Wed 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
307585f1
ILT
1817Wed 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
db3bfcd6
ILT
1834Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
1835
95d31c3c
ILT
1836 * configure.tgt (*-*-ieee*): New target; use vanilla.
1837
db3bfcd6
ILT
1838 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
1839 `:foo' from ${ARCH}.
1840
9cb8a981
ILT
1841Tue 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
62548927
ILT
1846Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
1847
b6acf084
ILT
1848 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
1849
62548927
ILT
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
708f7fbc
ILT
1854Thu 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
2e598345
ILT
1859Wed 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
1868Tue 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
f8d48971
ILT
1873Mon 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
1887Fri 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
ae9120f9
ILT
1895Fri Feb 2 16:50:21 1996 Ian Lance Taylor <ian@cygnus.com>
1896
1897 * configure: Regenerate.
1898
48766668
ILT
1899Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
1900
be54c2b6
ILT
1901 * emulparams/elf_i386.sh (TEXT_START_ADDR): Change to 0x8048000,
1902 for SVR4 compatibility.
1903
48766668
ILT
1904 * ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
1905
923b8e0c
SC
1906Wed 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
40ab9bb9
ILT
1912Wed 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
bc60f924
ILT
1920Tue 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
4bdd9722
ILT
1925Mon Jan 29 12:29:26 1996 Ian Lance Taylor <ian@cygnus.com>
1926
1927 * ld.texinfo, ld.1: Document -export-dynamic.
1928
1929Fri 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
de8d1609
JSC
1934Thu 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
1759ad4d
SC
1939Wed 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
b0cc94a1
DE
1944Wed 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
7df4ba26
ILT
1949Mon 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
4d99a950
MM
1957Mon 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
a411bea0
ILT
1962Tue 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
fe1379d4
ILT
1979Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
1980
0bc9a7d2
ILT
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
fe1379d4
ILT
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
be03dc3e
MM
2002Sat 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
23cb3b65
ILT
2007Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
2008
2afa4f21
ILT
2009 * scripttempl/sh.sc: Only build constructors when CONSTRUCTING.
2010
23cb3b65
ILT
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
4fe13b2b
MM
2022Fri 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
37e46b8b
ILT
2035Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
2036
2037 * scripttempl/alpha.sc: Put .rconst right after .rdata.
2038
d4279937
SC
2039Fri 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
9dee2948
MM
2044Fri 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
ed1f99e7
ILT
2050Thu 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
5c5e420c
DE
2056Thu 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
2061Thu 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
67cf6778
ILT
2067Tue 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
4fc151e9
ILT
2073Fri 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
d8d4a450
SS
2079Tue 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
9499591f
KK
2087Mon Dec 11 15:13:41 1995 Kim Knuttila <krk@cygnus.com>
2088
2089 * scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
2090
e8bb9a12
DE
2091Wed 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
95b3cb6b
DE
2101 * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
2102 call to sort_sections.
2103
04215033
ILT
2104Wed Dec 6 14:59:06 1995 Ian Lance Taylor <ian@cygnus.com>
2105
9430b933
ILT
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
04215033
ILT
2111 * ldexp.c (exp_fold_tree): Permit assignments to dot in the final
2112 phase if the current section is abs_output_section.
2113
d4279937
SC
2114
2115Tue 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
061e65f8
ILT
2120Fri 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
d611a82e
KK
2141Thu 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
e7f2e923
ILT
2146Thu 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
5aca4058
ILT
2153Tue 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
6a4667f4
ILT
2158Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
2159
2160 * configure: Rebuild with autoconf 2.7.
2161
d87e370b
DE
2162Fri 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
13eb3290
ILT
2166Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
2167
caf2a913
ILT
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
13eb3290 2172 * ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
6a4667f4 2173 being unsupported if this is not a relocateable link and the input
13eb3290
ILT
2174 BFD supports it, since ldctor_build_sets can cope with that case.
2175
2176Fri 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
dfc84b08
ILT
2185Fri 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
c4a14eef
DE
2191Thu 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
b218076e
KR
2196Thu 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
20406675
ILT
2205Tue Nov 14 17:08:06 1995 Ian Lance Taylor <ian@cygnus.com>
2206
b218076e
KR
2207 * emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
2208 base file with FOPEN_WB, not "w".
2209
20406675
ILT
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
97121c41
ILT
2217Thu Nov 9 13:09:29 1995 Ian Lance Taylor <ian@cygnus.com>
2218
20406675
ILT
2219 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
2220 -bl and -bloadmap options.
2221
7eb5ccf5
ILT
2222 * ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
2223 report a better error.
2224
97121c41
ILT
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
9d3d323a
ILT
2230Wed Nov 8 11:40:59 1995 Ian Lance Taylor <ian@cygnus.com>
2231
2232 * ldemul.c (ldemul_default_target): Cast getenv return value.
2233
b2306582
KK
2234Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
2235
9d3d323a
ILT
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.
b2306582
KK
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
9d3d323a
ILT
2245 (gld_$_before_allocation): added hooks for toc construction based
2246 on the above macro.
b2306582 2247
e2ce2da8
ILT
2248Tue 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
36b72df3
ILT
2252Tue 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
7ae3065c
ILT
2257Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
2258
92c71a0b
ILT
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
7ae3065c
ILT
2264 * lexsup.c (parse_args): Take B:: out of shortopts.
2265
bd329d41
KR
2266Sun 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
63982998
ILT
2275Wed 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.
92188bd2 2279 * configure.tgt (m68*-motorola-sysv*): New target.
63982998
ILT
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
2a80ec10
ILT
2286Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
2287
ef51e36a
ILT
2288 * ldgram.y (mri_script_command): Accept ',' as well as '=' in
2289 ALIGN and ALIGNMOD statements.
2290
2a80ec10
ILT
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
02a5d235
ILT
2296Tue 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
5666490b
ILT
2301Tue 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
2543860d
SC
2316Sat 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
d0ae7d95
NH
2323Fri 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,
2e71dfc0 2337 pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
d0ae7d95
NH
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
cf79773c
ILT
2350Fri 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
49af8a4e
SS
2379Thu 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
328e5a48
ILT
2387Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
2388
c7c8b500
ILT
2389 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
2390 -static as a synonym for -bnso.
2391
328e5a48
ILT
2392 * scripttempl/aix.sc: Move special symbols inside sections.
2393 Always start .data at 0.
2394
8a8965f1
PB
2395Wed 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
e54bf1c1
ILT
2400Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
2401
7d6439d9
ILT
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
e54bf1c1
ILT
2413 * ld.texinfo: The MRI ALIGN directive is supported.
2414
2415Mon 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
5e8e7e66
ILT
2424Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
2425
e54bf1c1
ILT
2426 * ldlang.c (entry_symbol): Make non-static.
2427 * ldlang.h (entry_symbol): Declare.
2428
5e8e7e66
ILT
2429 * ldlex.l: Treat PROVIDE as a keyword in expression state.
2430
9c284f3f
SC
2431Wed Oct 18 17:34:06 1995 steve chamberlain <sac@slash.cygnus.com>
2432
2433 * scripttempl/pe.sc (.bss): Move to be after .text
2434
03165292
ILT
2435Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
2436
5df68a88
ILT
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
235c6a67
ILT
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
03165292
ILT
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
b5f076d4
ILT
2458Mon 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
2471Fri Oct 13 14:00:37 1995 steve chamberlain <sac@slash.cygnus.com>
2472
2473 * scripttemp/pe.sc (.reloc): Move to the end.
2474
091824eb
ILT
2475Tue 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
ef1d2d2e
SC
2480Tue 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
5caef232
ILT
2485Tue 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
776f2590
ILT
2494Sat 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
80165535
KR
2499Fri 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
f054ce20
ILT
2505Wed 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
8055e7a8
ILT
2512Mon 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
0b0642d6
ILT
2519Fri 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
dd16b655
ILT
2524Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
2525
0b0642d6
ILT
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
dd16b655
ILT
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
5753006b
ILT
2557Thu Sep 28 12:34:13 1995 Ian Lance Taylor <ian@cygnus.com>
2558
630f4ac9
ILT
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
a69bb1fa
ILT
2571 * scripttempl/sparccoff.sc: Add .ctors/.dtors handling like other
2572 COFF targets, allowing for the leading underscore used on SPARC
2573 COFF.
2574
5753006b
ILT
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
132dd910
DE
2582Thu 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
ef898239
ILT
2589Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
2590
2591 * scripttempl/i386coff.sc: Remove .data2; no longer needed.
2592
8dd03673
ILT
2593Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
2594
2595 * ldfile.c (ldfile_set_output_arch): Make arch const.
2596
7453a753
MM
2597Thu 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
2603Wed 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
208bc89e
ILT
2608Mon 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
08879cde
ILT
2617Mon Sep 18 14:39:38 1995 Arne H. Juul <arnej@pvv.unit.no>
2618
2619 * configure.tgt (mips*-dec-netbsd*): New target.
2620
db8beef4
KR
2621Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
2622
2623 * configure.host (m88*-*-dgux*): Fix another shell syntax error.
2624
2625Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
2626
208bc89e 2627 * configure.host (i[345]86-*-bsd*): Fix shell syntax error.
db8beef4 2628
cf7f2f71 2629Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
20a753df
SC
2630
2631 * scripttemp/pe.sc: Allow both spellings of .ctors/.dtors.
2632 Start .text section on the right boundary. Always align
2633 stabs.
2634
b75d0928
ILT
2635Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
2636
4977f3b4
ILT
2637 * Makefile.in (maintainer-clean): New target.
2638
cf7f2f71
ILT
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
cca520b5
ILT
2646 * ld.texinfo: Clarify -L option.
2647
b75d0928
ILT
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
673f5b9f
ILT
2654Fri Sep 8 16:32:43 1995 Ian Lance Taylor <ian@cygnus.com>
2655
ed753c20
ILT
2656 * Makefile.in (config.status): Depend upon configure.tgt.
2657
62b4ac8b
ILT
2658 * ldemul.h (ldemul_set_symbols): Declare.
2659 (ldemul_parse_args): Declare.
2660 * ldemul.c (ldemul_parse_args): Fix indentation.
2661
b8345a37
ILT
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
d62ef165
ILT
2667 * configure.tgt (mips*-*-bsd*): New case.
2668
673f5b9f
ILT
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
9d325543
ILT
2673Thu Sep 7 10:48:26 1995 Ian Lance Taylor <ian@cygnus.com>
2674
ef346f1a
ILT
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
f40d9bc2
ILT
2683 * Makefile.in (distclean): Remove config.h and stamp-h.
2684
36ea6198
ILT
2685 * configure.host (sparc-*-sunos64*): Remove.
2686 * ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
2687
9d325543
ILT
2688 * ldexp.c (exp_fold_tree): Don't warn about moving the location
2689 counter backward in the absolute section.
2690
2691Wed 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
af0786b4
KR
2715Tue 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
2720Fri 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
f6feefe4
ILT
2724Fri 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
751b7dcc
JSC
2735Fri 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
4dd284fa
ILT
2743Fri 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
5f8ac7e7
SC
2748Thu 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
0b4fc03b
ILT
2756Thu 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
2761Tue 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
2773Thu 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
6fd48357
SC
2779Tue 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
011d93b3
SC
2784Mon 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.
6fd48357 2788 (set_pe_value): New function.
011d93b3 2789
eb7f87c5
SC
2790Thu 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
ed67cfa2
DE
2801Thu 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
22cd79c5
SC
2806Wed 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
80fd1f45
ILT
2816Wed Aug 16 11:45:11 1995 Ian Lance Taylor <ian@cygnus.com>
2817
1d169acc
ILT
2818 * ldlang.c (lang_set_startof): New static function.
2819 (lang_process): Call it.
2820
9b222190
ILT
2821 * ldgram.y: Tweak casesymlist to avoid bison errors.
2822
80fd1f45
ILT
2823 * lexsup.c (parse_args): Accept -h as a synonym for --soname, for
2824 Solaris compatibility.
2825
3a473096
ILT
2826Tue 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
52a55937
KR
2839Tue 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
65d22248
C
2844Tue 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
2849Thu 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
2858Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
2859
2860 * emulparams/{z8001.sh, z8002.sh}: Fix typo.
2861
cc298fb9
KR
2862Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
2863
2864 * configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
2865
2866Thu 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
2877Tue 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
59a0866d
ILT
2882Mon 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
2887Fri 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
d2c66084
KR
2892Thu 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
45bc7188
DE
2897Wed 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
242eee7a
ILT
2902Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
2903
45bc7188
DE
2904 * ldwrite.c (clone_section): Set the alignment of the clone
2905 section to that of the section being cloned.
2906
242eee7a
ILT
2907 * ldwrite.c (split_sections): Don't split the first input section
2908 into a new output section.
2909
c7950dcc
MM
2910Sat 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
8a0683c1
ILT
2915Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
2916
63e1380d
ILT
2917 * emultempl/mipsecoff.em (check_sections): Use %P, not %F.
2918
8a0683c1
ILT
2919 * ldver.c (help): Update list of options to match currently
2920 supported list.
2921
047e0fcd
ILT
2922Thu 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
395ccfce
ILT
2943Wed 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
2963Tue 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
917199fe
ILT
2968Tue 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
4551e108
ILT
2973Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
2974
917199fe
ILT
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
c16b92d2
ILT
2981 * emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
2982 get confused by directory names if we searched for the file.
2983
7213def7
ILT
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
4551e108
ILT
2999 * ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
3000 -shared.
3001
3002Mon 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
eac6290c
FF
3007Wed 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
7523be35
ILT
3013Tue Jul 4 12:55:48 1995 Ian Lance Taylor <ian@cygnus.com>
3014
7158d2b1
ILT
3015 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
3016 Handle etree_provide.
3017
7523be35
ILT
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
cb848d61
SC
3027Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
3028
3029 * configure.in (i386-*-win32): New target.
cb848d61 3030
22d3533c
ILT
3031Mon 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
243e7698
ILT
3037Sun 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
de71eb77
SC
3042Wed 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
3052Thu 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
d5131191
MM
3063Thu 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
0283d893
SS
3068Tue 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
3074Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
3075
3076 * scripttempl/armpe.sc: Add constructor support.
3077
935cd0dd
SC
3078Tue 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
74b3ead3
KR
3083Sun 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
ba0784fe
SC
3090Thu 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
3094Mon 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
3098Thu 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
28d0c3ce
SC
3104Wed 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
3114Mon 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
3119Thu 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
3130Tue 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
3138Fri 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
dea16e4d
SG
3153Wed 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
417ced0d
MM
3158Tue 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
fa9dea80
KR
3168Wed 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
55ac59da
JL
3174Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
3175
3176 * configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
3177
3178Mon 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
3185Fri 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
3192Tue 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
7e87eb13
DE
3229start-sanitize-arc
3230Thu Apr 6 20:38:36 1995 Doug Evans <dje@chestnut.cygnus.com>
3231
3232 * emulparams/arcelf.sh (ENTRY): Define.
3233end-sanitize-arc
3234
3235Tue 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
59b4c199
ILT
3240Thu 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
e920526d
ILT
3248Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
3249
7e87eb13
DE
3250 * ldmain.c (main): If opening the map file fails, call
3251 bfd_set_error before calling einfo.
3252
e920526d
ILT
3253 * ld.texinfo, ld.1: Document the -no-keep-memory option.
3254
a735edad
ILT
3255Mon 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
68233e44
ILT
3260Tue 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
f400bbbb
ILT
3267Sat Mar 18 01:49:14 1995 Ian Lance Taylor <ian@cygnus.com>
3268
4da1dcea 3269 * ldlang.c (load_symbols): An empty archive is OK.
f400bbbb
ILT
3270
3271Fri 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
86d0248d
MM
3276Thu 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
f2f55b16
ILT
3283Thu 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.
ee499d81 3291 * ld.texinfo, ld.1: Document --whole-archive.
f2f55b16 3292
cb5362c5
ILT
3293Thu Mar 16 11:38:48 1995 Ian Lance Taylor <ian@cygnus.com>
3294
171eb2f2
ILT
3295 * genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
3296 using the default emulation.
3297
cb5362c5
ILT
3298 * config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
3299 LDEMULATION.
3300 * config/hppaelf.mh (HOSTING_EMU): Likewise.
3301
e66fa842
ILT
3302Tue 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
01bc8f35
ILT
3307Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
3308
22c41f00
ILT
3309 * ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
3310
01bc8f35
ILT
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
3317Thu 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
17948aa1
DE
3323start-sanitize-arc
3324Tue 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.
3328end-sanitize-arc
3329
b939d1f4
ILT
3330Tue 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
b73b4131
ILT
3335Mon 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
3341Fri 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
30e12576
ILT
3347Fri 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
3357Thu 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
0b153077
ILT
3363Wed 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
882c80a7
ILT
3368Tue 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
decc32b7
RS
3375Tue 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
3380Fri 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
3386start-sanitize-arc
3387Thu Feb 9 19:03:25 1995 Doug Evans <dje@canuck.cygnus.com>
3388
3389 * emulparms/arcelf.sh (TEMPLATE_NAME): Comment out.
3390end-sanitize-arc
3391
4ad2d640
KR
3392Thu 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
1f59c7a7
ILT
3397Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
3398
be2213eb
ILT
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
1f59c7a7
ILT
3404 * lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
3405 * ld.texinfo, ld.1: Update accordingly.
3406
3565dee4
ILT
3407Wed 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
5039302a
ILT
3412Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
3413
23244cd6
ILT
3414 * ldmain.c (undefined_symbol): Handle section being NULL.
3415
484a0896 3416 * ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
8ed88239
ILT
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
5039302a
ILT
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
e802f0be
DE
3429Tue 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
1abb243d
ILT
3435Tue 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
3440Mon 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
50708d56
ILT
3446Fri 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
ae02b41c
ILT
3453Thu 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
5f16938d
MM
3458Thu 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
6ade1673
ILT
3468Tue 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
c1e128e5
ILT
3473Mon 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
3478Thu 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
506f4ede
SC
3488Sun 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
cc37d01d
ILT
3495Thu 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
cc38364d
KR
3501Wed 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
93a0630f
ILT
3508Wed 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
fa440b5a
SC
3514Wed 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
885ae6b9
SC
3519Mon 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
3525start-sanitize-arc
3526Tue 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.
3532end-sanitize-arc
3533
4e59f36d
ILT
3534Fri 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
3540Fri 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
e93e87cb
SC
3568Wed 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
18368f46
ILT
3573Tue 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
60822a36
ILT
3578Thu 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
831d7ac4
JL
3585Wed Nov 16 10:03:03 1994 Jeff Law (law@snake.cs.utah.edu)
3586
15ec1d5c
JL
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
831d7ac4
JL
3592 * scripttempl/hppaelf.sc (.text): Place unwind descriptors in the
3593 text segment.
3594
fd41732a
ILT
3595Sat Nov 12 15:55:56 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3596
831d7ac4
JL
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
fd41732a
ILT
3604 * scripttempl/elf.sc: Add ENTRY(${ENTRY}), and default ${ENTRY} to
3605 _start.
3606
5efddb2e
ILT
3607Fri 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
809391bd
ILT
3614Wed 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
cd1d4f83
ILT
3619Tue 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
6a02a973
ILT
3624Tue 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
3634Mon Nov 7 15:53:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3635
3636 * ldver.c (ldversion): Bump to 2.5.3.
3637
ca8f2f0d
KR
3638Fri Nov 4 15:11:26 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3639
3640 * Makefile.in (e*nbsd.c): Fix typo in dependencies.
3641
0128cbae
KR
3642Thu 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
52329a29
ILT
3653Wed 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
e574ddd4
C
3661Tue 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
fbf967b0
ILT
3670Mon 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
32286e08
C
3676Wed 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
fdfe873a
ILT
3690Tue 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
3286598f
ILT
3695Thu 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
81100e78
ILT
3699Tue 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
51bdfd9b
C
3704Mon 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
54d64846
C
3709Fri Oct 14 14:35:38 1994 J.T. Conklin (jtc@rtl.cygnus.com)
3710
0a1e63c4
KR
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,
51bdfd9b 3715 scripttempl/nw.sc: New files, for i386 and powerpc netware.
0a1e63c4
KR
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
54d64846
C
3723 * ldint.texinfo: Move misplaced `@end iftex'.
3724
81d191be
ILT
3725Fri 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
f608f62e
KR
3730Thu Oct 13 14:16:27 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3731
0a1e63c4
KR
3732 * ldver.c (ldversion): Update to version 2.5.
3733 * Version 2.5 released.
3734
f608f62e
KR
3735 * configure.in (all_targets): Handle i386-linux*.
3736
243f6d0d
ILT
3737Thu 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
a82ae15d
ILT
3744Wed 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
262c8763
ILT
3750Tue Sep 27 14:56:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3751
a82ae15d
ILT
3752 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
3753 assertion, since it could fail with a user defined linker script.
3754
aa61b923
ILT
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
262c8763
ILT
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
2150c3ee
ILT
3775Mon Sep 26 11:40:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3776
262c8763
ILT
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
38189778
ILT
3787 * genscripts.sh: Always search /usr/local/TARGET/lib.
3788
2150c3ee
ILT
3789 * scripttempl/elf.sc: If -N is set, force DATA_ADDR to be ".".
3790
3791Fri Sep 23 15:05:49 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
3792
3793 * configure.in: Handle i386-bsdi* targets like i386-bsd.
3794
a2eea823
ILT
3795Fri 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
f1781adc
ILT
3802Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3803
86037281
ILT
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
f1781adc 3831 * configure.in (mips*el-elf*): New target.
5ccef180
ILT
3832 * Makefile.in (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
3833 (eelf32mipl.c): New target.
86037281 3834
f1781adc
ILT
3835 * config/mipsl-elf32.mt: New file.
3836 * emulparams/elf32mipl.sh: New file.
3837
006ae0e4
ILT
3838Fri 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
7aa8f496
ILT
3843Thu 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
467a0380
SC
3849Wed 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
8bff41c1
ILT
3854Wed Sep 14 12:48:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3855
809ee7e0
ILT
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
cc23cc69
ILT
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
8bff41c1
ILT
3870 * ldmisc.c (multiple_warn): Remove; no longer used.
3871 * ldmisc.h (multiple_warn): Don't declare.
3872
3deb20fb
SC
3873Tue 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
0b3499f6
ILT
3878Tue 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
2fd87dbc
ILT
3913Mon Sep 12 17:04:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3914
3915 * config/m68klynx.mh: New file.
3916
cb2af5cf
JL
3917Mon 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
7b63ff76
ILT
3921Sat 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
dd37f215
ILT
3927Thu 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
fa3539fe
SC
3938Thu Sep 8 16:30:37 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3939
3940 * scripttempl/h8500b.sc: Put rdata stuff into own segment.
3941
a864a26e
ILT
3942Thu 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
3947Wed 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
82950a80
ILT
3953Tue 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
3967Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
318b02b6
KR
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
3b21918a
ILT
3973Tue 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
69927008
ILT
3981Mon 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
6d445436
ILT
3986Wed 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
3990Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3991
3992 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
3993
b400f56d
ILT
3994Thu 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
9e5a036f
ILT
4013Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
4014
4015 * scripttempl/aout.sc: Add .linux-dynamic after .data.
4016
c1a9aaa3
ILT
4017Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4018
9e5a036f
ILT
4019 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
4020 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
c1a9aaa3 4021
1fee94ec
ILT
4022Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4023
4024 * ldexp.h (exp_get_abs_int): Declare.
4025
4026Sat 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
28d1c6ec
JM
4031Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
4032
4033 * configure.in: add i960-nindy-coff support.
4034
63936abc
JMD
4035Thu 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
bb329c20
JMD
4040Tue 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
a1ed2435
ILT
4049Mon 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
b019d460
ILT
4054Tue 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
309c8153
ILT
4059Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4060
31ddb156
ILT
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
36c6e8c3
ILT
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
309c8153
ILT
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
a1ad915d
ILT
4084Wed 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
cdf71377
KR
4095Sun 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
db770dfa
ILT
4113Fri 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
4121Thu 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
aee611f5
JL
4127Mon 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
4133Fri 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
111b24d5
JMD
4141Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4142
03730624
JMD
4143 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
4144
111b24d5
JMD
4145 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
4146 accept plain -B.
4147 * ld.texinfo: -Bstatic is not ignored.
4148
1c883f34
SS
4149Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
4150
4151 * ldlex.l: Recognize \r the same as \n.
4152
4153Thu 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
1f8b3b57
DM
4168Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4169
4170 * configure.in: Change --with-targets to --enable-targets.
4171
3b7553e7
ILT
4172Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
4173
cf4245af
ILT
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
02b57980
ILT
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
62a4b36c
ILT
4198 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
4199 ALIGN.
4200
686739e2
ILT
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
7d56d4f1
ILT
4205 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
4206 From jrs@world.std.com (Rick Sladkey).
4207
3b7553e7
ILT
4208 * scripttempl/mipsbsd.sc: Let sections align to their natural
4209 boundaries.
4210
4211Tue 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
c4aa82c1
JL
4223Thu 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
08f20f66
ILT
4228Thu 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
952b6c2c
ILT
4235Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4236
64887de2
ILT
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
5d1ffb2f
ILT
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
bf82ab68
ILT
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
641fe79b
ILT
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
952b6c2c
ILT
4263 * scripttempl/aout.sc: Let sections align to their natural
4264 boundaries.
4265
c96386c4
ILT
4266Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4267
33b90e52
ILT
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
cbbf9608
ILT
4287 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
4288 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
42792411 4289 Accept -static as a synonym for -non_shared.
cbbf9608 4290
7fb9ca5f
ILT
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
bec7a138
ILT
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
66da6c84
ILT
4308 * scripttempl/aout.sc: Define __etext and __edata to go along with
4309 _etext and _edata.
4310
c96386c4 4311 * ld.h (ld_config_type): Add new field traditional_format.
605da7e2 4312 * lexsup.c (parse_args): Add traditional-format to longopts, and
c96386c4
ILT
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.
605da7e2 4317 * ldver.c (help): Mention -traditional-format.
c96386c4
ILT
4318 * ld.texinfo: Document -traditional-format.
4319
7fe331f1
ILT
4320Tue 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
39a00f7d
ILT
4325Tue 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
eb7edfa1
ILT
4330Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4331
23677217
ILT
4332 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
4333 _FTEXT, _ETEXT and _FDATA. Dont define _END.
4334
e845d289
ILT
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
3e1fd33d
ILT
4338 * lexsup.c (parse_args): Treat -i as a synonym for -r.
4339
f24078fd
ILT
4340 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
4341 BLOCK works in a section address as documented.
4342
eb7edfa1
ILT
4343 * ldgram.y (YYDEBUG): Don't define.
4344
f8015b85
ILT
4345Fri 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
9beeb5d9
ILT
4354Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
4355
4356 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
4357
64bb143c
BC
4358Thu 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
ef01a8a8
ILT
4363Thu 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
ed601bea
ILT
4368Thu 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.
f7e66391 4375 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
ed601bea 4376 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
f7e66391 4377 (esun3.c): Likewise.
ed601bea
ILT
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
210c52ac
ILT
4397Wed 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
c06e55d9
KR
4408Fri 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
29371b1f
ILT
4441Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4442
60e8a534
ILT
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.
29371b1f 4448
f49f58c6
ILT
4449Tue 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
2a9fa50c
ILT
4457Thu 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
188ce705
ILT
4485Wed 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
4bd5c39f
JL
4489Mon 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
439a3604
ILT
4495Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4496
269773c1
ILT
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
439a3604
ILT
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
82ebe9a2
KR
4507Wed 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
f9d3d71a
ILT
4516Wed 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
27f7237e
ILT
4531Tue 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
c1124600
ILT
4538Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
4539
4540 * config/go32.mh : New file for Xgo32X.
4541
f6671f28
ILT
4542Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4543
5acce559
ILT
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
f6671f28
ILT
4548 * configure.in: Use "e" rather than "em_" as prefix for
4549 emulations.
4550
6e1e82a0
KR
4551Fri 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
4565Thu 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
269ec825
ILT
4599Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4600
6e1e82a0
KR
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
269ec825
ILT
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
e6d84626
ILT
4614Wed 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
6c86b9ff
SC
4619Wed 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
028f8872
SS
4626Tue 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
cde73501
ILT
4638Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4639
c435aba8
ILT
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
cde73501
ILT
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
feaa9c4b
ILT
4648Mon 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
1e45c4c3
ILT
4653Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4654
4655 * Makefile.in (clean, distclean): Remove configdoc.texi.
4656
9ad75873
BC
4657Tue 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
9d87af56
ILT
4661Fri 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
ea68d58d
BC
4666Mon 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
4f2ee958
ILT
4670Mon 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
099c286e
BC
4678Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
4679
4680 * Makefile.in (check): Set TCL_LIBRARY for runtest.
4681
79f7de91
JL
4682Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4683
f39a73b1
JL
4684 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
4685 manufacturer.
4686
79f7de91
JL
4687 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
4688 if building a final executable.
4689
67d0e7ff
ILT
4690Tue 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
be9ffc1f
ILT
4694Thu 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
6c00b04f
ILT
4699Wed 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
f078dc7c
ILT
4705Fri 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
193c5f93
ILT
4712Thu 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
a2670c2f
ILT
4728Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4729
193c5f93
ILT
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
a2670c2f
ILT
4738 * emultemp/gld960.em: Include libiberty.h
4739 (gld960_before_parse): Pass NULL as final argument to concat.
4740
f3bc3ac3
ILT
4741Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4742
f7a26f1b
ILT
4743 * scripttempl/aout.sc: Force _end and __end to be aligned to a
4744 four byte boundary.
4745
f3bc3ac3
ILT
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
4fdbafb2
ILT
4750Mon 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
4788Thu 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
4795Fri 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
0071a731
DM
4803Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4804
4805 * config/i386bsd.mh: New file.
4806
7f0638d5
ILT
4807Mon 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
b897ed67
SS
4814Mon 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
2e39abdb
JL
4818Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4819
ff68559e
JL
4820 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
4821 works again. Attach some output symbols to the stub file bfd.
4822
2e39abdb
JL
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
b495c314
ILT
4829Sat 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
4725fb48
ILT
4842Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
4843
bff600cf
ILT
4844 * scripttempl/elf.sc: Force all sections to be aligned.
4845
27baca71
ILT
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
6232b6c4
ILT
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
4725fb48
ILT
4857 * ldgram.y (dirlist_ptr): Removed; not used.
4858 * lexsup.c: Include ldver.h.
4859 * Makefile.in: Rebuilt dependencies.
4860
fc1dfb71
ILT
4861Fri 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
ff33a8c1
DM
4866Fri 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
a62494c4
JL
4870Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4871
531a5bd1
JL
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
a62494c4
JL
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
c361ce46
ILT
4887Thu 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
d4e5e3c3
DM
4897Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
4898
d5b79a89
DM
4899 * lexsup.c (parse_args): Use symbolic numbers for long options.
4900 Fix misunderstanding in -Y and -call_shared et al.
4901
d4e5e3c3
DM
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
4936Thu 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
6b8929a1
ILT
4941Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
4942
a733e1d7
ILT
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
6b8929a1
ILT
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
ef76742f
ILT
4951Mon 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
42f62ead
ILT
4955Thu 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
5bcb7f28
DM
4964Thu 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
7ff6f2da
KR
4969Tue 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
4984Tue 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
09aaf97a
DM
4989Fri 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
c4e48be3
ILT
4993Fri 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
410945f1
ILT
5002Thu 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
f7d4f6f6
JL
5010Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5011
5012 * Rename all "hppaosf" files to "hppaelf".
410945f1
ILT
5013 * Change all "osf" references to "elf" in hppaelf files.
5014 * Makefile.in: Likewise.
5015 * configure.in: Likewise.
f7d4f6f6 5016
f4972135
DM
5017Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5018
6f671266
DM
5019 * ldmain.c (main): Call xatexit, not atexit.
5020 Call xmalloc_set_program_name.
5021
f4972135
DM
5022 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
5023 bfd_errno.
5024
52a8ebfe
DM
5025Sat 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
9dd7d585
JL
5032Fri 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
0b2f8d2e
DM
5040Fri 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
9e0f78c8
SC
5054Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
5055
5056 * Makefile.in: Lots of new H8/500 memory models.
5057
836dcbcf
KR
5058Sun 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
fb55f9b8
DM
5064Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5065
288897f4
DM
5066 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
5067 the archive filename too.
5068
fb55f9b8
DM
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
f3c6455f
KR
5074Fri 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
804c8601
SC
5079Thu 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
7b40f2b1
DM
5084Thu 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
8594f568
SS
5090Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
5091
74e6b793
SS
5092 * Makefile.in: Format variable definitions consistently.
5093 (LD_PROG): Remove unnecessary variables from link command,
5094 change variable LOADLIBES to EXTRALIBS.
5095
8594f568
SS
5096 * ldmain.c (main): Compute and display total execution time.
5097 * ld.texinfo (-stats): Document the option.
5098
755f42fe
ILT
5099Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5100
5dad4c97
ILT
5101 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
5102 arguments.
5103
de08b0b1
ILT
5104 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
5105 after opening BFD.
5106
755f42fe
ILT
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
5e6cd559
ILT
5112Fri 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
8de26d62
DM
5118Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
5119
5120 * ld.texinfo: Clarify what -T option does.
5121
a843c817
SC
5122Tue 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
901f3538
ILT
5127Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5128
8a432746
ILT
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
901f3538
ILT
5135 * scripttempl/elf.sc: Correct typo.
5136
c344d884
DM
5137Mon 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
267a3ab3
ILT
5142Fri 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
3107eb5b
ILT
5146Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5147
2f84ec0d
ILT
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
3107eb5b
ILT
5169 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
5170 since the Alpha doesn't use them.
5171
080d8af0
DM
5172Wed 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
5176Sat 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
34f9bf4b
DM
5181Sat 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;
23fdc6be 5184 needed for i386mach. (Should be a no-op on other systems.)
34f9bf4b
DM
5185
5186 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
5187 (PAGE_SIZE): Don't define; not used.
5188
1d166443
ILT
5189Fri 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
ae9c8007
DM
5196Fri 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
4a6afc88
ILT
5202Thu 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
5292Thu 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
498fbd3c
ILT
5309Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5310
553b0021
ILT
5311 * ldlex.h: Don't declare yywrap if it is a macro.
5312 * ldlex.l: Include sysdep.h.
498fbd3c
ILT
5313 * ldlang.c (lang_for_each_statement_worker,
5314 lang_for_each_statement): Forgot to use PARAMS.
5315
1400cdc5
ILT
5316Mon 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
2c6635a4
ILT
5337Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
5338
fcf276c4
ILT
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
2c6635a4
ILT
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
5348Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5349
5350 * configure.in (alpha-*-netware*): New target; use alpha.
5351
d05ac46b
KR
5352Wed 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
f651733a
ILT
5365Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5366
8e964b07
ILT
5367 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
5368 New tokens.
f651733a 5369 (command_line_option): Accept and ignore them (for now).
8e964b07
ILT
5370 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
5371 where n is a number.
f651733a
ILT
5372
5373Mon 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
2332114c
ILT
5379Fri 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
5395Thu 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
5406Mon 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
b11b3ace
DHW
5411Fri 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
2ccb88c0
DM
5415Fri 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
3c1af24d
KR
5420Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
5421
5422 * Makefile.in (distclean): Don't delete dvi or info files.
4ecfad79 5423 (ld.info): Update dependency list.
2ccb88c0 5424 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
3c1af24d 5425
3c292c5a
DM
5426Wed 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
97fbbaca
JL
5434Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
5435
f1f6b5e9
JL
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
5f62613e
JL
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
97fbbaca
JL
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
5455Thu 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
c3b34cfd
ILT
5463Fri 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
7b95fe96
SS
5470Thu 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
d17eb3db
ILT
5479Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5480
5481 * Makefile.in: Add dependency for $(EMULATION_OFILES).
5482
db4b5ad0
ILT
5483Mon 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
2fe6619e
KR
5487Mon 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
5513Fri 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
1c4b3cda
ILT
5517Tue 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
5527Fri 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
98b5caad
ILT
5533Wed 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
a71da760
ILT
5539Tue 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
a4aeaacf
RS
5549Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
5550
a4aeaacf
RS
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
5555Tue 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
5572Thu 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
9a467cb2
ILT
5577Fri 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
4f6d6db9
SS
5606Fri 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
5612Wed 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
1bff7c38
DE
5618Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
5619
4f6d6db9
SS
5620 * config/coff-h8300.mt: Add EMUL=h8300h.
5621
1bff7c38
DE
5622 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
5623
8a6665ae
JW
5624Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
5625
5626 * Makefile.in: Changed CXX back to g++.
5627
3a9149a7
JW
5628Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
5629
5630 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
5631
cbb5c2d1
DM
5632Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5633
5634 * Makefile.in (TAGS): Use shell wildcards.
5635
959eba20
JO
5636Tue 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
a0a55af6 5640Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
c1074477 5641
a0a55af6
RP
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.
c1074477
DE
5645
5646Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5647
5648 * configure.in: recognize m88110.
5649
4346166b
KR
5650Tue 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
b98bd3db
RP
5661Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5662
95a2b9d2
RP
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.
b98bd3db 5667
ddddcdf0
ILT
5668Tue 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
ea1c0ad2
SC
5673Tue 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
ea1c0ad2
SC
5678Thu 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
5684Thu 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
d301e438
JW
5691Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
5692
5693 * Makefile.in: check targets reimplemented to old way.
5694
75fe5471
ILT
5695Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
5696
d62026ad
ILT
5697 * config/i386v.mh, config/irix4.mh: Use gcc
5698 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
75fe5471
ILT
5699 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
5700 bfd/configure.host change.
5701
5702Mon 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
31f55aa5
DM
5708Fri 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
33536304
ILT
5720Fri 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
5727Thu 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
7c6a9e79
JW
5731Wed 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
8bf66be8
DM
5738Wed 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
2a28d8b0
DM
5744Tue 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
94f9d427
KR
5756Mon 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
6b93d764
KR
5761Mon 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
94f9d427
KR
5773 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
5774 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
5775
6b93d764
KR
5776Fri 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
a6152e39
DM
5787Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5788
d59e5a47
DM
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
a6152e39
DM
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.
d59e5a47 5798 Use the current emulation name as EMULATION_NAME.
a6152e39
DM
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.
18d9a9c5 5813 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
a6152e39
DM
5814 generic.em.
5815 * emulparams/m88kbcs.sh: Use it.
5816
18d9a9c5 5817 * ld.h (ld_config_type::unix_relocate): Remove unused element.
a6152e39 5818
0750b974
KR
5819Tue 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.
820c446c
KR
5825 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
5826 changed, this file gets updated.
0750b974 5827
fe619ced
ILT
5828Fri 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
dd8ca662
DE
5834Fri 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
922018a1
DM
5839Thu 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
4ab3a31f
DE
5844Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
5845
5846 * Makefile.in: Add h8300h support.
dd8ca662
DE
5847 emulparams/h8300h.sh: New file.
5848 scripttempl/h8300h.sc: New file.
4ab3a31f 5849
bbd2521f
DM
5850Thu 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
9edc5b2e
ILT
5871Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
5872
5873 * Makefile.in (em_m88kbcs.c): Correct dependency.
b0955bc9
ILT
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.
9edc5b2e 5877
cffdcde9
DM
5878Wed 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
ac2c0ee7
DE
5883Tue 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
d723cd17
DM
5890Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5891
f4208462
DM
5892 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
5893 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
5894
d723cd17
DM
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
e7affb09
KR
5901Mon 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
3cb61417
KR
5909Thu 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
de87cdb4
DM
5929Thu 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
49bfda2c
KR
5933Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
5934
3cb61417
KR
5935 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
5936 bfd.h instead.
49bfda2c 5937
e357065c
ILT
5938Wed 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
55636aa7
ILT
5943Mon 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
ff76a7db
DM
5951Fri 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.
a04f1d00 5958 In tests, don't pass -Lemulations.
ff76a7db
DM
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
7434d4e5
DE
5964Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
5965
5966 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
5967
5968Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
5969
5970 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
5971
559d7baf
RP
5972Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
5973
1e787898
RP
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.
559d7baf
RP
5978
5979Tue 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
59fb874e
DM
5984Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
5985
559d7baf
RP
5986 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
5987 different from libdir.
5988
59fb874e
DM
5989 * Makefile.in (scriptdir): Base on tooldir, not datadir.
5990
bf065bfd
DM
5991Sat 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
304b747a
KR
5997Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
5998
5999 * Makefile.in (INCLUDES): Don't need ../include any more.
6000
2b63dbfe
DM
6001Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6002
bf065bfd
DM
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.
2b63dbfe 6008
e9b991c6
DZ
6009Thu 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
565c93e9
DM
6014Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
6015
2de8edce
DM
6016 * ldgram.y: Tweak grammar to make reporting of invalid options work.
6017
565c93e9
DM
6018 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
6019 and .cc.o rule.
6020
8ddef552
DM
6021Wed 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
2a963f1a
KR
6062Tue 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
8ddef552
DM
6070Mon 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
c97b9003
DZ
6076Mon 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
6080Thu 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
7f2649bb
PB
6091Mon 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
91b3a2b6
DZ
6096Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6097
7f2649bb
PB
6098 * Makefile.in: remove install:all and install-info:info
6099 dependencies (these cause some spurious rebuilds at 'make install'
6100 time)
91b3a2b6 6101
559d1cff
ILT
6102Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
6103
98f3d1af
ILT
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
559d1cff
ILT
6110 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
6111 incorrect definitions.
6112
1cf91c69
PB
6113Tue 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
63545898
ILT
6118Tue 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
6125Thu 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
2a963f1a
KR
6131 * Version 2.2.1 released.
6132
5266c5ec
KR
6133Thu 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
6138Tue 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
6145Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
6146
6147 * ldver.c (ldversion): Bump version number to 2.2.
6148
bc3b479c
PB
6149Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
6150
6151 * NEWS: New file.
6152
6153Fri 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
6157Wed 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
b8fc168d
KR
6162Tue 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.
bc3b479c 6171 * config/hppaosf.mh, hppaosf.mt: New files.
b8fc168d
KR
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
ef868186
ILT
6186Tue 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
034351e3
PB
6191Mon 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
6197Mon 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
6201Wed 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
6207Thu 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
6211Mon 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
1b8a42f3
ILT
6218Fri 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
6223Wed 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
29f33467
SC
6231Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6232
9fce28ed
SC
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
29f33467
SC
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
6255Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
6256
6257 * ld.texinfo: changes for q1
6258
f20e9842
DZ
6259Tue 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
6263Mon 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
6267Thu 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
e637dcf0
KR
6277Sat 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
26483cc6
PB
6284Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
6285
e637dcf0 6286 * mri.c: Add extern declaration of strdup.
26483cc6
PB
6287 * ldsym.c (KEEP macro): Add spaces around '=' for the
6288 sake of old (e.g. PCC) compilers.
6289
05985c77
PB
6290Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
6291
6292 * ldver.c: Bump to version 2.1.
6293
067e2baa
SC
6294Fri 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
fb8ecc3d
DZ
6302Thu 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
067e2baa
SC
6306Wed 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
e193c31b
ILT
6314Tue 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
8a3efe67
ILT
6324Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
6325
f31cb329
ILT
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
8a3efe67
ILT
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
af6237a4
ILT
6336Thu 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
8a045e50
ILT
6341Tue 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
42b5c739
ILT
6346Fri 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
6356Thu 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
ac496d4f
ILT
6362Mon 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
0550e9f4
SC
6372Mon 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
6377Fri 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
dadd414a
SC
6384Fri 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
6393Thu 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
6398Wed 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
a70947c1
ILT
6402Mon 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
086c5e37
PB
6412Mon 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
6422Sun 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
6427Wed 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.
8ddef552 6432
85e38cfa
SC
6433Mon 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
e20873a7
JG
6441Sat 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
6448Tue 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
22292613
ILT
6452Thu 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
85c838d6
SC
6458Thu 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
6e94236a
JG
6463Thu 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
6467Tue 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
e9b63852
ILT
6472Mon 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
ba2c2b1c
SC
6487Thu 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
a385b38f
SC
6492Thu 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
81150d34
ILT
6497Tue 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
b5ddf942
ILT
6502Mon 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
f3739bc3
SC
6507Mon 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
6512Thu 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
ac0832f3
SC
6516Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6517
6518 * config/z8ksim.mt: new file
6519
f3b36ecb
KR
6520Fri 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.
ac0832f3 6527 * ldlang.c (lang_add_keepsyms_file): New function.
f3b36ecb
KR
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
22a78f0d
SC
6541Fri 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
56409445
ILT
6550Tue 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
99e6298a
SC
6555Fri 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
ab57b174
ILT
6560Wed 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
8e71a984
PB
6566Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
6567
ab57b174
ILT
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
8e71a984
PB
6578 * ldver.c: Call it version 2.0.
6579
6580Wed 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
c52bdfec
PB
6587Tue 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
2df68136
DZ
6593Tue 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
6597Mon 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
0bb95ac8
ILT
6604Sun 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
fe2b6209
PB
6609Sun 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
94cc1ee7
ILT
6614Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
6615
5f2d9799
ILT
6616 * gld960.em (gld960_choose_target): default to little endian, not
6617 big endian.
94cc1ee7 6618
cd1d8c6d
SC
6619Wed 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
afba2b22
ILT
6628Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
6629
6630 * configure.in, config/ose68.mt: renamed OSE to ose.
6631
571c4c26
KR
6632Thu 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
b189e892
ILT
6637Tue 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
6bf2e3a7
SC
6643Thu 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
ae475b39
SC
6654Fri 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
4b91c519
PB
6665Thu 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
917bffa7
PB
6670Tue 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
b40f9c73
DZ
6677Mon 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
6682Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
6683
6684 * configure.in: generalise hp recognition (from sef).
6685
6686Sat 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
ec467c83
RP
6691Fri 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
67cddd9f
SC
6696Tue 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
f7c76897
SC
6705Mon 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
28b6b1ab
SC
6710Wed 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
30d1a390
SC
6716Thu 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
5bdf878e
MT
6724Mon 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
6729Wed 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
6735Wed 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
5e81edb2
SC
6740Wed 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
7aacc9cc
PB
6745Wed 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
91e25b4f
PB
6756Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
6757
5ff21fa5
PB
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
91e25b4f
PB
6763 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
6764 * ldlex.c: Fix some unnecessary flex-specific-isms.
6765
6766Fri 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
82d1666a
RP
6771Thu 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
32846f9c
SC
6775Wed 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
bf3acf44
RP
6788Wed 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
9c99a57e
SC
6792Tue 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.
7153b2ff
SC
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
9c99a57e 6801
98377f31
PB
6802Tue 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
3f350eda
RP
6807Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
6808
813da1a5
RP
6809 * Makefile.in: FLEX -> LEX.
6810
3f350eda
RP
6811 * ld.texinfo: {} -> @{@}.
6812
e0047d49
RP
6813Mon 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
bfbdc80f
SC
6818Mon 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
d3451fe8
RP
6830Fri 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
dc4726c2
SC
6836Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6837
e14a43bf
SC
6838 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
6839 PUBLIC.
6840 * Makefile.in: now use flex, not lex
dc4726c2
SC
6841 * ldlex.l, ldlang.c, ldctor.c: lint
6842
ee0c4cf7
SC
6843Wed 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
77b19d3d
RP
6848Mon 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
119afd7b
RP
6853Fri 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
6860Wed 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
2e38b71d
SC
6864Wed 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
1900f884
KR
6869Thu 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
9d1fe8a4
SC
6874Sat 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
9d1fe8a4
SC
6880Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
6881
6882 * gld960.em, i960.sc-sh. Fix i960 bit rot
6883
f0280cd2
RP
6884Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
6885
6886 * Makefile.in: install man page.
6887
12fa72d4
SC
6888Fri 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
6895Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
6896
6897 * ldver.h: fix decl of ldversion.
6898
6899Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
6900
6901 * Makefile.in: added check target.
6902
fe563ffe
SC
6903Fri 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
12fa72d4
SC
6907Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
6908
6909 * Makefile.in: added clean-info target.
6910
fe563ffe
SC
6911Thu 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
d2861901 6916
12fa72d4
SC
6917Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6918
6919 * Makefile.in: added tooldir and program_prefix.
6920
fe563ffe
SC
6921Fri 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
6927Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
6928
d2861901
SC
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
12fa72d4
SC
6936Wed 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
d2861901
SC
6942Thu 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
1584d069
PB
6949Mon 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
7e5c1057
PB
6954Sat 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
7003Mon 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
7010Thu 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
aa34a7c3
SC
7017Tue 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
7022Thu 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
cbbdbb9f
SC
7032Wed 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
870f54b2
SC
7045Tue 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
2e2bf962
SC
7055Fri 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
7070Thu 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
7075Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
7076
7077 * ldver.c: Bump to version 1.94.
7078
7079Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
7080
7081 * Makefile.in: infodir belongs in datadir.
7082
e06ba18d
PB
7083Mon 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
7089Sat 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
818a192a
RP
7097Fri 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
7109Thu 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
7115Wed 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
7120Mon 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
7125Thu 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
7138Wed 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
092df318
SC
7143Tue 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
1c9e4b15
PB
7148Mon 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
550e87b5
SC
7157Mon 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
7163Sun 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
aeedc30e
PB
7171Sun 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
7178Thu 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
2d1a2445
PB
7182Wed 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,
3410447c 7187 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
2d1a2445
PB
7188 Add or update copyright notices.
7189
7190Mon 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
954ac2ea
RP
7196Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
7197
7198 * Makefile.in: new targets ld.mm, ld.me
7199
972e7b4b
PB
7200Mon 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
33ce0085
JG
7205Fri 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
b7e24eef
PB
7210Fri 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
b55e0948
RP
7218Fri 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
6719c75b
PB
7223Fri 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
8e10cea1
SC
7238Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
7239
7240 * ldtemplate: include bfd.h before sysdep.h.
7241
1f8fc34f
JG
7242Fri 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
7254Tue 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
8d317d2a
RP
7267Tue 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
558175fb
JG
7272Fri 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
de0abbfc
ILT
7279\f
7280Local Variables:
c6c7035c 7281mode: change-log
bf82ab68
ILT
7282left-margin: 8
7283fill-column: 74
de0abbfc
ILT
7284version-control: never
7285End:
This page took 0.607395 seconds and 4 git commands to generate.