* emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 Thu Sep 8 13:25:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2
3 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Don't define;
4 .got section is now explicitly handled in elf.sc.
5
6 Wed Sep 7 13:08:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
7
8 * scripttempl/alpha.sc: Redo script to set . outside of sections
9 and not bother to explicitly specify section addresses.
10 Explicitly place .sdata section.
11
12 Tue Sep 6 23:51:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
13
14 * scripttempl/m68kcoff.sc: Put .bss in data segment.
15
16 * scripttempl/h8300.sc: Change .stab and .stabstr to use a VMA of
17 0, and to only be marked as NOLOAD if relocating.
18 * scripttempl/h8500.sc, scripttempl/h8500b.sc: Likewise.
19 * scripttempl/h8500c.sc, scripttempl/h8500m.sc: Likewise.
20 * scripttempl/h8500s.sc, scripttempl/i386coff.sc: Likewise.
21 * scripttempl/i386go32.sc, scripttempl/i386lynx.sc: Likewise.
22 * scripttempl/m68kcoff.sc, scripttempl/m68klynx.sc: Likewise.
23 * scripttempl/sh.sc, scripttempl/sparccoff.sc: Likewise.
24 * scripttempl/sparclynx.sc: Likewise.
25
26 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
27
28 * Makefile.in, configure.in: Add support (disabled) the ARM/RISCiX.
29 * config/riscix.mt, emulparams/riscix.sh, scripttempl/riscix.sc:
30 New files.
31
32 Tue Aug 30 11:48:08 1994 Eric Youngdale (ericy@cais.cais.com)
33
34 * ld.h (args_type): Add field soname.
35 * lexsup.c (parse_args): Handle -soname argument.
36 * emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
37 pass soname.
38 * ld.texinfo: Document -soname.
39
40 Mon Aug 29 15:21:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
41
42 * ldlang.c (lang_check): Don't try to set the architecture if the
43 input and output files are incompatible. Just warn.
44
45 Wed Aug 24 12:52:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
46
47 * configure.in: Change i[34]86 to i[345]86.
48
49 Sun Aug 21 16:17:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
50
51 * emulparams/hp3hpux.sh: Define __DYNAMIC to be 0.
52
53 Thu Aug 18 15:37:45 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
54
55 Make the ELF linker handle orphaned sections reasonably. Also,
56 define __start_SECNAME and __stop_SECNAME around sections whose
57 names can be represented in C, for the benefit of symbol sets in
58 glibc.
59 * ldemul.h (ldemul_place_orphan): Declare.
60 (ld_emulation_xfer_type): Add place_orphan field.
61 * ldemul.c (ldemul_place_orphan): New function.
62 * ldlang.h (wild_doit): Declare.
63 * ldlang.c (wild_doit): Make nonstatic.
64 (lang_place_orphans): Call ldemul_place_orphan.
65 * emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
66 (hold_section, hold_use, hold_text, hold_data, hold_bss): New
67 static variables.
68 (gld${EMULATION_NAME}_place_orphan): New static function.
69 (gld${EMULATION_NAME}_place_section): New static function.
70 (ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
71
72 Tue Aug 16 00:17:20 1994 Eric Youngdale (ericy@cais.cais.com)
73
74 * scripttempl/aout.sc: Add .linux-dynamic after .data.
75
76 Tue Aug 16 00:08:22 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
77
78 * lexsup.c (parse_args) Treat --dll-verbose as --version, for
79 Linux compatibility. From hjl@nynexst.com (H.J. Lu).
80
81 Mon Aug 15 17:17:33 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
82
83 * ldexp.h (exp_get_abs_int): Declare.
84
85 Sat Aug 6 01:45:39 1994 Steve Chamberlain (sac@jonny.cygnus.com)
86
87 * ldlang.c (lang_do_assignments): Handle complex AT's better.
88 * ldexp.c (exp_get_abs_int): New function.
89
90 Fri Aug 5 20:55:55 1994 Jason Molenda (crash@phydeaux.cygnus.com)
91
92 * configure.in: add i960-nindy-coff support.
93
94 Thu Aug 4 14:45:50 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
95
96 * ldlex.l (yy_create_string_buffer): Handle change to internal
97 interface in flex 2.4.7.
98
99 Tue Aug 2 11:52:06 1994 Eric Youngdale (ericy@cais.cais.com)
100
101 * emultempl/linux.em (gld${EMULATION_NAME}_find_address_statement):
102 New function; add 0x20 to any use of -Ttext.
103 (gld${EMULATION_NAME}_create_output_section_statements): New
104 function.
105 (ld_${EMULATION_NAME}_emulation): Use the new function
106 gld${EMULATION_NAME}_create_output_section_statements.
107
108 Mon Aug 1 15:50:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
109
110 * scripttempl/mips.sc: Redo script to set . outside of sections
111 and not bother to explicitly specify section addresses.
112
113 Tue Jul 26 11:02:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
114
115 * scripttempl/elf.sc: Copy several more relocation sections into
116 the output. Put .got.plt sections into .got.
117
118 Fri Jul 22 12:15:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
119
120 * scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
121
122 Add a new script operator, PROVIDE, to define a symbol only if it
123 is needed.
124 * ldgram.y (PROVIDE): New token.
125 (assignment): Accept PROVIDE.
126 * ldlex.l (PROVIDE): New token.
127 * ldexp.h (node_type): Add etree_provide to node_class enum.
128 (exp_provide): Declare.
129 * ldexp.c (exp_fold_tree): Handle etree_provide.
130 (exp_provide): New function.
131 (exp_print_tree): Handle etree_provide.
132 * ld.texinfo: Document PROVIDE.
133
134 * ldlang.c (lang_common): Pass desired alignment to
135 lang_one_common as power of two.
136 (lang_one_common): Get common symbol alignment from linker hash
137 table entry. Treat desired alignment as a power of two.
138
139 * ldlang.c (wild_section): Attach all section with the given name,
140 not just the first one. If there is no name, attach all sections
141 even if the SEC_IS_COMMON flag is set.
142
143 Wed Jul 20 15:49:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
144
145 * ld.h (args_type): Add field rpath.
146 * lexsup.c (S_ISDIR): Define if not already defined.
147 (parse_args): Add support for -rpath. If -R is used to name a
148 directory, treat it as -rpath for Solaris compatibility.
149 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
150 Pass command_line.rpath to bfd_elf32_size_dynamic_sections.
151 * ldmain.c (main): Initialize command_line.rpath to NULL.
152 * ld.texinfo: Document -rpath option.
153
154 Sun Jul 10 00:33:24 1994 Ian Dall (dall@hfrd.dsto.gov.au)
155
156 * emulparams/pc532machaout.sh: New file. Pc532 mach script
157 parameters.
158
159 * emulparams/netbsd532.sh: New file. Netbsd 532 script parameters.
160
161 * config/pc532mach.mt: New file. Pc532 mach target support.
162
163 * config/pc532mach.mh: New file. Pc532 mach host support.
164
165 * config/netbsd532.mt: New file. Netbsd 532 target support.
166
167 * configure.in: Add ns32k-pc532-mach and ns32k-pc532-netbsd support.
168
169 * Makefile.in: Add epcmachaout.c dependency and enetbsd532.c
170 dependency.
171
172 Fri Jul 8 10:57:02 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
173
174 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Use
175 bfd_abs_section_ptr, not &bfd_abs_section.
176
177 * lexsup.c (parse_args): Changed "retain-symbols-file" from
178 no_argument to required_argument. From djm.
179
180 Thu Jul 7 12:29:53 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
181
182 * scripttempl/elf.sc: Explicitly mention .stab and .stabstr
183 sections to force a VMA of 0; needed for ELF backends which have
184 not been converted to the new linker style.
185
186 Mon Jul 4 19:35:45 1994 Jeff Law (law@snake.cs.utah.edu)
187
188 * scripttempl/hppaelf.sc (__stack_zero): Don't define this name,
189 it was for the HPUX dynamic loader's use and it creates problems
190 with ELF GDB.
191
192 Fri Jul 1 12:53:47 1994 Jeff Law (law@snake.cs.utah.edu)
193
194 * ldlang.c (lang_do_assignments): No longer static. Delete decl.
195 * ldlang.h (lang_do_assignments): Put external decl here.
196 * emultempl/hppaelf.em: Minor cleanups throughout file.
197 (hppa_elf_create_output_section_statements): Rewrite.
198 (hppaelf_finish): Rewrite.
199
200 Wed Jun 29 16:50:00 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
201
202 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib.
203
204 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
205 accept plain -B.
206 * ld.texinfo: -Bstatic is not ignored.
207
208 Tue Jun 28 12:13:34 1994 Stan Shebs (shebs@andros.cygnus.com)
209
210 * ldlex.l: Recognize \r the same as \n.
211
212 Thu Jun 23 17:53:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
213
214 Preliminary support for generating shared libraries, from Eric
215 Youngdale <ericy@cais.cais.com>.
216 * genscripts.sh: If the emulation parameter file sets
217 GENERATE_SHLIB_SCRIPT, generate a .xs script file with
218 CREATE_SHLIB defined.
219 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): If
220 link_info.shared is set, use the .xs script file.
221 * scripttempl/elf.sc: If CREATE_SHLIB is set, don't create a
222 .interp section, and don't include TEXT_START_ADDR in the starting
223 address of the first section.
224 * emulparams/elf_i386.sh (GENERATE_SHLIB_SCRIPT): Likewise.
225 * emulparams/elf32_sparc.sh (GENERATE_SHLIB_SCRIPT): Define.
226
227 Thu Jun 23 12:52:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
228
229 * configure.in: Change --with-targets to --enable-targets.
230
231 Wed Jun 22 13:42:14 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
232
233 * lexsup.c (parse_args): Add support for new options -( -) with
234 synonyms --start-group --end-group.
235 * ldlang.h (enum statement_enum): Add lang_group_statement_enum.
236 (lang_group_statement_type): Define new struct.
237 (lang_statement_union_type): Add group_statement field.
238 (lang_enter_group, lang_leave_group): Declare.
239 * ldlang.c (lang_for_each_statement_worker): Handle
240 lang_group_statement_enum.
241 (map_input_to_output_sections, print_statement): Likewise.
242 (lang_size_sections, lang_do_assignments): Likewise.
243 (open_input_bfds): Completely rewrite. Now does its own looping,
244 rather than using lang_for_each_statement. Handle groups.
245 (lang_process): Update call to open_input_bfds.
246 (print_group): New static function.
247 (lang_enter_group, lang_leave_group): New static functions.
248 * ldfile.c (ldfile_open_file): If the file has already been
249 opened, just return rather than taking an assertion failure.
250 * ldver.c (help): Mention new options.
251 * ld.texinfo: Document new options.
252
253 * ldlang.c (end_of_data_section_statement_list): Don't define.
254 (lang_leave_output_section_statement): Don't set obsolete variable
255 end_of_data_section_statement_list.
256
257 * scripttempl/go32coff.sc: Don't put ${DATA_ALIGNMENT} inside an
258 ALIGN.
259
260 * ldlang.c (lang_size_sections): Adjust current region address
261 even for sections with an explicit address. From
262 ralphc@pyramid.com (Ralph Campbell).
263
264 * emulparams/i386linux.sh (NONPAGED_TEXT_START_ADDR): Set to 0.
265 From jrs@world.std.com (Rick Sladkey).
266
267 * scripttempl/mipsbsd.sc: Let sections align to their natural
268 boundaries.
269
270 Tue Jun 21 11:27:04 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
271
272 * ldlang.c (lang_init): Use new bfd_abs_section_ptr, not
273 &bfd_abs_section.
274 (lang_abs_symbol_at_beginning_of): Likewise.
275 (lang_abs_symbol_at_end_of): Likewise.
276 (lang_size_sections): Use bfd_is_abs_section to check for the
277 absolute section. Don't try to set the VMA or output_offset or
278 size of the absolute section.
279 * ldmain.c (notice_ysym): Use bfd_is_und_section to check for the
280 undefined section.
281
282 Thu Jun 16 22:48:41 1994 Jeff Law (law@snake.cs.utah.edu)
283
284 * scripttempl/hppaelf.sc: Place .data and .bss at 0x40000000
285 when generating relocatable objects.
286
287 Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
288
289 * emultempl/linux.em: New file providing support for linking
290 against Linux shared libraries.
291 * config/i386-linux.mt (ei386linux.c): Depend upon linux.em.
292 * emulparams/i386linux.sh (TEMPLATE_NAME): Define as linux.
293
294 Thu Jun 16 12:22:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
295
296 * lexsup.c (parse_args): Add -shared to longopts, and handle it.
297 * ldmain.c (main): Initialize link_info.shared to false. Give
298 error if link_info.relocateable and link_info.shared are both set.
299
300 * configure.in: If EMUL_EXTRA* is defined in a config file, treat
301 it as naming an emulation to be added to EMULATION_OFILES.
302 * config/i386-linux.mt (EMUL_EXTRA1): Define as elf_i386.
303
304 * Makefile.in: Rebuilt dependencies.
305 (ALL_EMULATIONS): Add ei386linux.o, eelf32_sparc.o,
306 eelf64_sparc.o. Remove $(OTHER_EMULATIONS).
307 (ei386linux.c, eelf32_sparc.c, eelf64_sparc.c): New targets.
308 * config/i386-linux.mt (OTHER_EMULATIONS): Don't define.
309 (ei386linux.c): Remove; now in Makefile.in.
310 * config/i386-lynx.mt (OTHER_EMULATIONS): Don't define.
311 * config/m68k-lynx.mt (OTHER_EMULATIONS): Don't define.
312 * config/sparc-lynx.mt (OTHER_EMULATIONS): Don't define.
313 * config/sparc64-elf.mt (OTHER_EMULATIONS): Don't define.
314 (eelf64_sparc.c): Remove; now in Makefile.in.
315 * config/sun4sol2.mt (OTHER_EMULATIONS): Don't define.
316 (eelf32_sparc.c): Remove; now in Makefile.in.
317
318 * ldexp.c (exp_print_tree): Don't crash if etree_rel section has
319 no owner--it might be bfd_abs_section. From Eric Youngdale
320 <ericy@cais.cais.com>.
321
322 * scripttempl/aout.sc: Let sections align to their natural
323 boundaries.
324
325 Wed Jun 15 01:54:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
326
327 * ldemul.h (ldemul_open_dynamic_archive): Declare.
328 (ld_emulation_xfer_type): Add new field open_dynamic_archive.
329 * ldemul.c: Include ldexp.h and ldlang.h.
330 (ldemul_open_dynamic_archive): New function.
331 * ldfile.h (ldfile_open_file_search): Declare.
332 * ldfile.c: Include ldemul.h.
333 (try_open_bfd): Rename from cache_bfd_openr. Return boolean
334 argument, not bfd *. Change all callers.
335 (ldfile_open_file_search): Rename from open_a. Return boolean
336 argument, not bfd *. Clean up. Change all callers.
337 (ldfile_open_file): If doing a dynamic link, call
338 ldemul_open_dynamic_archive rather than assuming the extension of
339 a dynamic object is ".so".
340 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
341 New function.
342 (ld_${EMULATION_NAME}_emulation): Initialize open_dynamic_archive
343 field.
344 * emultempl/sunos.em (ld_${EMULATION_NAME}_emulation): Likewise.
345
346 * ldmain.c (get_emulation): Ignore -m486 for Linux compatibility.
347 * lexsup.c (parse_args): Ignore -qmagic for Linux compatibility.
348 Accept -static as a synonym for -non_shared.
349
350 Let the user change the dynamic linker used by ELF code.
351 * ld.h (args_type): Add new field interpreter.
352 * lexsup.c (parse_args): Add dynamic-linker to longopts, and
353 handle it.
354 * ldmain.c (main): Initialize command_line.interpreter to NULL.
355 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Get
356 the ELF backend to return the .interp section. If
357 command_line.interpreter is not NULL, set the contents of .interp
358 to it.
359 * ld.texinfo: Mention -dynamic-linker.
360
361 * config/sun4sol2.mt (eelf32_sparc.c): Depend upon elf32.em, not
362 generic.em.
363
364 * lexsup.c (parse_args): Sort out the option macros and change the
365 definitions to make it easier to add a new option.
366
367 * scripttempl/aout.sc: Define __etext and __edata to go along with
368 _etext and _edata.
369
370 * ld.h (ld_config_type): Add new field traditional_format.
371 * lexsup.c (parse_args): Add traditional-format to longopts, and
372 handle it.
373 * ldmain.c (main): Initialize config.traditional_format to false.
374 * ldlang.c (ldlang_open_output): Set BFD_TRADITIONAL_FORMAT in BFD
375 flags of output_bfd according to config.traditional_format.
376 * ldver.c (help): Mention -traditional-format.
377 * ld.texinfo: Document -traditional-format.
378
379 Tue Jun 14 23:10:07 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
380
381 * ldctor.c (ldctor_add_entry): Add entries to a set in the order
382 they are encountered.
383
384 Tue Jun 14 18:05:09 1994 Eric Youngdale (ericy@cais.cais.com)
385
386 * emulparams/i386linux.sh (TEXT_START_ADDR): Define as 0x1000.
387 (NONPAGED_TEXT_START_ADDR): Define as 0x20.
388
389 Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
390
391 * scripttempl/alpha.sc: Define _ftext, _etext and _fdata insted of
392 _FTEXT, _ETEXT and _FDATA. Dont define _END.
393
394 * ldfile.c (open_a): If this is not an archive, try to open it in
395 the current directory before searching for it.
396
397 * lexsup.c (parse_args): Treat -i as a synonym for -r.
398
399 * ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
400 BLOCK works in a section address as documented.
401
402 * ldgram.y (YYDEBUG): Don't define.
403
404 Fri Jun 10 16:45:39 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
405
406 * emultempl/gld960.em: Pass false for new argument to
407 ldfile_add_library_path.
408 * emultempl/gld960c.em, emultempl/lnk960.em: Likewise.
409
410 * emultempl/sunos.em: Only look for .so files if doing a dynamic
411 link.
412
413 Thu Jun 9 08:35:17 1994 Ian Lance Taylor (ian@cygnus.com)
414
415 * scripttempl/i960.sc: Add CONSTRUCTORS to .data.
416
417 Thu Jun 9 06:52:29 1994 Bill Cox (bill@rtl.cygnus.com)
418
419 * Makefile.in (check): Delete ld.new dependency so that a regression
420 test doesn't trigger a rebuild of the linker.
421
422 Thu Jun 9 00:17:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
423
424 * ldlang.c (map_input_to_output_sections): For lang_address, call
425 init_os if it hasn't already been called.
426
427 Thu Jun 2 17:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
428
429 Add support for SunOS shared libraries.
430 * aout.sc: Don't define __DYNAMIC here. Add new sections used by
431 shared library support code.
432 * emultempl/sunos.em: New file.
433 * emulparams/sun4.sh (TEMPLATE_NAME): Define as sunos.
434 * emulparams/sun3.sh (TEMPLATE_NAME): Likewise.
435 * Makefile.in (esun4.c): Depend upon sunos.em, not generic.em.
436 (esun3.c): Likewise.
437
438 * ldlang.c: Minor formatting cleanups.
439 (lang_for_each_input_file): New function.
440 * ldlang.h (lang_for_each_input_file): Declare.
441
442 * ldfile.h (search_dirs_type): Move from ldfile.c, and add cmdline
443 field.
444 (search_head): Declare.
445 (ldfile_add_library_path): Add new cmdline argument in prototype.
446 * ldfile.c (search_head): Make non-static.
447 (search_dirs_type): Move to ldfile.h.
448 (ldfile_add_library_path): Accept cmdline argument, and save it.
449 * lexsup.c (parse_args): Pass true for new cmdline argument of
450 ldfile_add_library_path.
451 (set_default_dirlist): Likewise.
452 * ldmain.c (check_for_scripts_dir): Pass false for new cmdline
453 argument of ldfile_add_library_path.
454 * ldgram.y (ifile_p1): Likewise.
455
456 Wed Jun 1 14:24:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
457
458 * ldlang.h (lang_input_statement_type): Remove fields subfiles,
459 total_size, superfile and chain.
460 * ldfile.c (open_a): Don't clear search_dirs_flag.
461 (ldfile_open_file): Don't try to open superfile. Assert that file
462 has not already been opened.
463 * ldlang.c (new_afile): Don't initialize superfile.
464 * ldmain.c (add_archive_element): Don't initialize subfiles or
465 chain or superfile. Initialize search_dirs_flag to false.
466
467 Fri May 27 12:25:33 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
468
469 * ldver.c (ldversion): Changed version to "cygnus-2.4.1".
470
471 Changes from binutils-2.4 release:
472
473 * genscripts.sh (RELOCATING, CONSTRUCTING): When setting
474 variables, use whitespace, so scripts don't break.
475
476 * config/alphaosf.mh (HDEFINES, CFLAGS): Deleted.
477
478 * emultempl/generic.em: Find emultempl/stringify.sed in ${srcdir}.
479
480 * cdtest-bar.cc: Renamed from cdtest-func.cc.
481 * Makefile.in: Noted change.
482
483 * scripttempl/a29k.sc: Don't include /lab3/u3/..../segments.o; I
484 don't know where that's supposed to come from, or why it's
485 necessary.
486
487 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
488
489 * configure.bat: update to latest makefile.in
490 * emulpara/go32.sh: set to coff-go32 not aout
491 * emultemp/generic.em: strength-reduce the structure of
492 this shell script, since the only available shell for
493 DOS can't handle complex syntax.
494 * emultemp/stringify.sed: for "sed -f" instead of inline.
495 * makefile.in: depend on stringify.sed as well as genscripts.sh
496 * scripttemp/go32coff.sc: correct for djgpp 1.11's COFF format
497 * genscripts.sh: empty variables aren't always considered "set",
498 so set them to "y" instead.
499
500 Fri May 27 01:08:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
501
502 * ldlang.c (entry_symbol): Make static.
503 (lang_add_entry): Add cmdline argument.
504 * ldlang.h (lang_add_entry): Change prototype.
505 * ldgram.y (statement_anywhere): Change lang_add_entry call.
506 * lexsup.c (parse_args): Likewise.
507
508 Tue May 24 16:13:43 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
509
510 * emulparams/elf32mipb.sh (OTHER_READONLY_SECTIONS): Don't give
511 .reginfo an address.
512 (OTHER_READWRITE_SECTIONS): Don't give .lit4 or .lit8 an address.
513 (OTHER_SECTIONS): Define for .gptab.sdata and .gptab.sbss.
514 * scripttempl/elf.sc: Use OTHER_SECTIONS at end of script.
515
516 Thu May 19 13:31:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
517
518 Add support for ELF shared libraries.
519 * ld.h (ld_config_type): Add field dynamic_link.
520 * ldmain.c (main): Initialize config.dynamic_link to false. Warn
521 on attempts to use -r with -relax, -call_shared or -s.
522 * lexsup.c (longopts): Separate OPTION_CALL_SHARED from
523 OPTION_NON_SHARED. Add OPTION_IGNORE. Adjust macro values
524 accordingly. Add "dy" and "non_shared" options. Change "Qy" to
525 OPTION_IGNORE for now. Handle OPTION_CALL_SHARED and
526 OPTION_NON_SHARED by setting dynamic_link field accordingly.
527 Handle OPTION_IGNORE by ignoring it. Clear dynamic_link field for
528 -r and -Ur.
529 * ldfile.c (ldfile_open_file): If config.dynamic_link is true, try
530 opening a file with a .so extension first.
531 * emultempl/elf32.em: New file.
532 * emulparams/elf32_sparc.sh (TEXT_START_ADDR): Change to 0x10000.
533 (NONPAGED_TEXT_START_ADDR): Likewise.
534 (TEMPLATE_NAME): Define as elf32.
535 (DATA_PLT): Define.
536 * emulparams/elf_i386.sh (TEMPLATE_NAME): Define as elf32.
537 * scripttempl/elf.sc: Add placement for new dynamic sections.
538 Don't use CREATE_OBJECT_SYMBOLS. Define _etext, _edata and _end
539 outside of any section. Don't use ALIGN(8); just let one section
540 VMA follow another. Put .dynbss in .bss. Don't mention debugging
541 sections; they'll be handled correctly anyhow.
542 * Makefile.in (eelf_i386.c): Depend upon elf32.em, not generic.em.
543
544 Wed May 18 10:15:39 1994 Ian Lance Taylor (ian@cygnus.com)
545
546 * Makefile.in (install): Redirect output of ln to /dev/null.
547
548 Mon May 16 13:35:08 1994 Jeff Law (law@snake.cs.utah.edu)
549
550 * emultempl/hppaelf.em: Change all references of
551 .hppa_linker_stubs to .PARISC.stubs.
552 * scripttempl/hppaelf.sc: Likewise.
553
554 Fri May 13 13:00:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
555
556 * ldlang.c (print_output_section_statement): Change ``no attached
557 output section'' message slightly.
558 (lang_do_assignments): Don't recurse down if there is no real
559 section.
560
561 * config/i386-linux.mt (OTHER_EMULATIONS): Change em_ to e to
562 match corresponding change in emulation templates.
563 * config/i386-lynx.mt, config/m68k-lynx.mt: Likewise.
564 * config/sparc-lynx.mt, config/sun4sol2.mt: Likewise.
565
566 Wed May 11 18:16:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
567
568 * ldver.c (ldversion): Updated version number.
569
570 * cdtest-foo.cc: Use explicit "#pragma implementation".
571 * cdtest-bar.cc: Renamed from cdtest-func.cc.
572 * Makefile.in: References to cdtest-func.o changed to
573 cdtest-bar.o.
574
575 Wed May 11 16:24:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
576
577 Don't create unnecessary output sections.
578 * ldlang.c (out_bfd_get_section_by_name): Remove.
579 (wild_section): Call bfd_get_section_by_name rather than
580 our_bfd_get_section_by_name. Don't call wild_doit if there is no
581 section.
582 (lang_create_output_section_statements): Remove.
583 (map_input_to_output_sections): For several cases, call init_os if
584 it has not already been called.
585 (lang_size_sections): If output section was not created, skip it.
586 (lang_process): Don't call lan_create_output_section_statements.
587 (lang_place_orphans): Skip files with just_syms_flags set to true.
588 * ld.texinfo: Document change.
589
590 Tue May 10 14:31:16 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
591
592 * ldlang.c (wild_doit): Don't bother initializing the vma and
593 section size. Don't special case SEC_SHARED_LIBRARY.
594 (lang_size_sections): Handle SEC_COFF_SHARED_LIBRARY sections
595 specially.
596
597 Fri May 6 12:24:27 1994 Steve Chamberlain (sac@cygnus.com)
598
599 * config/go32.mh : New file for Xgo32X.
600
601 Fri May 6 15:15:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
602
603 * ldfile.c (ldfile_open_command_file): Set bfd_error_system_call
604 before calling einfo, since we are reporting an fopen failure.
605 From jrs@world.std.com (Rick Sladkey).
606
607 * configure.in: Use "e" rather than "em_" as prefix for
608 emulations.
609
610 Fri May 6 01:08:14 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
611
612 * emultempl/generic.em: Use "e" rather than "em_" as prefix for
613 filename.
614 * emultempl/gld960.em, emultempl/gld960c.em, emultempl/lnk960.em,
615 emultempl/hppaelf.em, emultempl/m88kbcs.em, emultempl/vanilla.em:
616 Ditto.
617 * Makefile.in: Changed all generated file names.
618 (ldemul-list.h): Depend on Makefile, not config.status. Changed
619 sed patterns to handle new filenames.
620
621 * config/mipsl-idt.mt: Renamed from mips-idtl.mt.
622 * configure.in: Adjusted.
623
624 Thu May 5 15:07:32 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
625
626 * Makefile.in (install-info): Don't use "$<*", it doesn't always
627 work. Instead, check build dir and $srcdir explicitly, and use
628 `echo' to get all the filenames.
629
630 * configure.in (h8300h-*-hms): Changed ld_target name to
631 cf-h8300h.
632 * config/cf-h8300h.mt: Renamed from coff-h8300h.mt, to make it
633 unique in 8.3.
634
635 * config/i960coff.mt: New file.
636 * emulparams/gld960coff.sh: New file.
637 * emultempl/gld960c.em: New file.
638 * configure.in (i960-*-vxworks5* except -vxworks5.0*): Use
639 i960coff configuration.
640 * Makefile.in (em_gld960coff.c): Added dependencies, build rule.
641
642 * Makefile.in (ALL_EMULATIONS): Remove em_delta68.o, since the
643 code isn't included in FSF releases, and it can still be
644 explicitly selected.
645 (distclean): Remove site.bak and tmpdir.
646 (STAGESTUFF): Removed $(GENERATED_CFILES) $(GENERATED_HFILES).
647 (mostlyclean): Delete them explicitly here. Also remove tmpdir.
648
649 Patches from Ralph Campbell:
650 * config/mipsbsd.mh: New file.
651 * Makefile.in (em_mipsbsd.c): Use mipsbsd.sc, not aout.sc.
652 * scripttempl/mipsbsd.sc: Don't define __DYNAMIC.
653 * emulparams/mipsbsd.sh (OUTPUT_FORMAT): Fix name to have `a.out'
654 instead of `aout'.
655
656 * configure.in (i386-*-gnu*): Treat like i386-*-mach*.
657
658 Wed May 4 11:59:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
659
660 * config/m68k.mt (EMUL): Set to m68kaout.
661 * emulparams/m68kaout.sh: New file.
662 * Makefile.in (ALL_EMULATIONS): Add em_m68kaout.o.
663 (em_m68kaout.c): New target.
664
665 * ldlang.c (lang_size_sections): If dot moves because of an
666 assignment, don't try to insert a pad into the absolute output
667 section, just change the address of the default memory region
668 instead.
669
670 * Makefile.in (mostlyclean): Remove cdtest.tmp, cdtest-ur,
671 cdtest-ur.out, and cdtest-ur.tmp.
672
673 Wed Apr 27 16:03:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
674
675 * scripttempl/sa29200.sc: Align all sections to four byte
676 boundaries.
677
678 Wed Apr 27 10:48:03 1994 Steve Chamberlain (sac@cygnus.com)
679
680 * Makefile.in, configure.in: Support for go32 coff.
681 * config/i386-go32.mt: New file
682 * emulparams/i386go32.sh: New file
683 * scripttempl/i386go32.sc: New file
684
685 Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com)
686
687 * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use
688 Lynx-specific script templates.
689 * configure.in (sparclite*-*-coff): Use coff-sparc.
690 * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx.
691 * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx.
692 (ENTRY): Set to __main.
693 * scripttempl/i386lynx.sc: New file, script for I386 Lynx.
694 * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections.
695 * scripttempl/sparclynx.sc: New file, script for uSparc Lynx.
696
697 Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
698
699 * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16
700 byte boundary, in case the global constructors do not take up an
701 even 16 bytes.
702
703 * config/i386v4.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
704 exist, get crtbegin based on gcc -print-libgcc-file-name.
705 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
706
707 Mon Apr 25 15:27:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
708
709 * ldlang.c (lang_size_sections): When no address is given for a
710 section, align it according to its requirements.
711
712 Thu Apr 21 17:24:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
713
714 * Makefile.in (clean, distclean): Remove configdoc.texi.
715
716 Tue Apr 19 12:12:15 1994 Bill Cox (bill@rtl.cygnus.com)
717
718 * configure.in: Add i[34]86-*-bsd386 to the patterns recognized.
719
720 Fri Apr 15 14:35:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
721
722 * ldlang.c (lang_size_sections): When relaxing, adjust the
723 position of a padding statement, and adjust dot accordingly.
724
725 Mon Apr 11 17:37:09 1994 Bill Cox (bill@rtl.cygnus.com)
726
727 * Makefile.in (EXPECT, RUNTEST): Set these for the check goal.
728
729 Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
730
731 * scripttempl/i386coff.sc: If relocating, don't put .init and
732 .fini sections into .text; keep them separate.
733 * config/i386sco.mh (HOSTING_CRT0): If ../gcc/crtbegin.o does not
734 exist, get crtbegin based on gcc -print-libgcc-file-name.
735 (HOSTING_LIBS): Similar change for ../gcc/crtend.o.
736
737 Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
738
739 * Makefile.in (check): Set TCL_LIBRARY for runtest.
740
741 Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
742
743 * configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
744 manufacturer.
745
746 * emultempl/hppaelf.em (hppaelf_finish): Only resize sections
747 if building a final executable.
748
749 Tue Apr 5 12:17:30 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
750
751 * ldmain.c (main): Check the return value of bfd_close.
752
753 Thu Mar 31 18:07:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
754
755 * scripttempl/alpha.sc: Clean up section alignment to ensure that
756 sections never overlap when using -r.
757
758 Wed Mar 30 15:51:15 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
759
760 * ldmisc.c (vfinfo): Change symbol reading slightly for recent BFD
761 changes: get_symtab_upper_bound renamed and returns long,
762 bfd_canonicalize_symtab returns long, check for error indications.
763
764 Fri Mar 25 17:20:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
765
766 * ldlang.c (print_input_section): For section size, use
767 _cooked_size if it is non-zero, size otherwise.
768 (size_input_section): Likewise.
769 (lang_do_assignments): Likewise (case lang_input_section_enum).
770
771 Thu Mar 24 15:20:47 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
772
773 * ldlang.c (new_afile): Add new argument add_to_list. Don't set
774 real to true for lang_input_file_is_marker_enum. Clear the_bfd.
775 (lang_add_input_file): Pass true to new_afile for add_to_list.
776 (lookup_name): Remove force_load argument. Changed all callers.
777 Pass false to new_afile for add_to_list. Split loading of symbols
778 out into separate function.
779 (load_symbols): New function split out of lookup_name. Don't load
780 the symbols if they are already loaded.
781 (open_input_bfds): For lang_input_statement_enum call load_symbols
782 rather than lookup_name.
783 (lang_process): Pass abs_output_section rather than NULL to
784 lang_size_sections.
785 (lang_startup): Set real field of first_file to true.
786
787 Wed Mar 23 14:15:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
788
789 * ldlang.c (had_relax): Removed.
790 (relax_again): New static variable.
791 (lang_size_sections): Change call to bfd_relax_section to
792 correspond to BFD changes. Set relax_again appropriately.
793 (lang_process): Remove #if 0 code. When relaxing, keep calling
794 lang_do_assignments and lang_size_sections until relax_again
795 becomes false.
796
797 * emultemp/gld960.em: Include libiberty.h
798 (gld960_before_parse): Pass NULL as final argument to concat.
799
800 Tue Mar 22 13:08:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
801
802 * scripttempl/aout.sc: Force _end and __end to be aligned to a
803 four byte boundary.
804
805 * ldwrite.c (build_link_order): Handle lang_data_statement_enum by
806 building a bfd_data_link_order, rather than by setting the section
807 contents immediately.
808
809 Mon Mar 21 18:28:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
810
811 Changes to make -Ur work again.
812 * ldmain.c (add_to_set): Now takes reloc argument rather than
813 bitsize. Check config.build_constructors here. If an new hash
814 table entry is created, mark it as undefined.
815 (constructor_callback): No longer takes bitsize argument. Pass
816 BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the
817 BFD backend supports it.
818 (reloc_overflow): Handle a NULL abfd argument.
819 (reloc_dangerous, unattached_reloc): Likewise.
820 * ldctor.c: Include ldmain.h.
821 (struct set_info): Change bitsize field to reloc.
822 (ldctor_add_set_entry): Now takes reloc argument rather than
823 bitsize. Don't bother to check config.build_constructors here.
824 (ldctor_build_sets): Get the size from the reloc howto. If
825 generating relocateable output, call lang_add_reloc rather than
826 lang_add_data.
827 * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc
828 instead of bitsize.
829 * ldlang.h (statement_enum): Add lang_reloc_statement_enum.
830 (lang_reloc_statement_type): New structure.
831 (lang_statement_union_type): Add reloc_statement field.
832 (lang_add_reloc): Declare new function.
833 * ldlang.c (lang_for_each_statement_worker): Handle
834 lang_reloc_statement_enum.
835 (map_input_to_output_sections, print_statement): Likewise.
836 (lang_size_sections, lang_do_assignments): Likewise.
837 (print_reloc_statement): New function.
838 (lang_add_reloc): New function.
839 * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
840
841 * Makefile.in (cdtest.out, cdtest-ur.o): New targets.
842 (cdtest-ur, cdtest-ur.out): New targets.
843 (check-cdtest): Now also check that -Ur works correctly.
844
845 * scripttemp/alpha.sc: Align all sections to 16 byte boundaries.
846
847 Thu Mar 17 12:45:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
848
849 * ldlang.c (lang_process): Move lang_common call before
850 map_input_to_output_sections, to ensure that any alignment
851 constraints set by common symbols are copied over to the output
852 sections.
853
854 Fri Mar 11 22:17:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
855
856 * emulparams/elf32ppc.sh (TEMPLATE_NAME): Don't define.
857 (OTHER_READWRITE_SECTIONS): Rename .toc to .got.
858 * Makefile.in (em_elf32ppc.c): Depend upon generic.em, not ppc.em.
859 * emultempl/ppc.em: Remove ugly stub code; turns out not to be
860 needed for ELF.
861
862 Tue Mar 8 04:22:27 1994 David J. Mackenzie (djm@rtl.cygnus.com)
863
864 * config/i386bsd.mh: New file.
865
866 Mon Mar 7 15:23:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
867
868 * elf.sc: Permit TEXT_START_SYMBOLS and DATA_START_SYMBOLS to be
869 defined.
870 * emulparams/elf32mipb.s (TEXT_START_SYMBOLS): Define _ftext.
871 (DATA_START_SYMBOLS): Define _fdata.
872
873 Mon Feb 28 10:59:14 1994 Stan Shebs (shebs@andros.cygnus.com)
874
875 * ldlang.c (cat): Define using ANSI style if ALMOST_STDC defined.
876
877 Sun Feb 27 16:29:38 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
878
879 * emultempl/hppaelf.em (hppaelf_finish): Update comments. This
880 works again. Attach some output symbols to the stub file bfd.
881
882 * emultempl/hppaelf.em: Include elf32-hppa.h.
883 (file_chain): Add decl.
884 (hppa_look_for_stubs_in_section): Delete decl.
885 (hppaelf_finish): Reenable code. Do not pass symbols
886 down to hppa_look_for_stubs_in_section.
887
888 Sat Feb 26 10:58:25 1994 Ian Lance Taylor (ian@cygnus.com)
889
890 * ldmain.c (write_map): Don't define. Removed all references.
891 Just use map_file or map_filename instead.
892 (add_archive_element): Use minfo to write map information, not
893 info_msg.
894 (constructor_callback): Use fprintf to write map information, not
895 info_msg.
896 * ldmain.h (write_map): Don't declare.
897 * ldgram.y (mri_script_command): Removed reference to write_map.
898 * ldlang.c (lang_one_common): Likewise.
899 * lexsup.c (parse_args): Likewise.
900
901 Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com)
902
903 * scripttempl/elf.sc: Force all sections to be aligned.
904
905 * ldgram.y (section): Reverse the order of memspec_opt and
906 fill_opt to avoid an ambiguity when both are used.
907 * ld.texinfo: Changed accordingly.
908
909 * ldgram.y: Move include of ldlex.h back with other includes.
910 * ldlex.h (input_type): Don't initialize enum constants to
911 particular values.
912 * ldlex.l: Use a switch to return the right token based on
913 input_type, rather than knowing that input_type has a value based
914 on a token type.
915
916 * ldgram.y (dirlist_ptr): Removed; not used.
917 * lexsup.c: Include ldver.h.
918 * Makefile.in: Rebuilt dependencies.
919
920 Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
921
922 * ldlang.c (lookup_name): don't call bfd_set_gp_size.
923 (ldlang_add_file): call it here instead.
924
925 Fri Feb 25 18:13:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
926
927 * ldgram.y: Include ldlex.h after %token decls, for byacc.
928
929 Fri Feb 25 10:47:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
930
931 * emultempl/hppaelf.em: First attempt to clean this file up.
932 Add comments in several functions as to their purpose and
933 how they function (or my current best guess). Clean up horrible
934 spacing and indention that never should have been accepted in the
935 first place. Add FIXMEs for issues which need to be resolved.
936 Disable linker-stub generation until it gets fixed. This allows
937 the linker to at least work on simple code for testing purposes.
938
939 * ldlang.c (lang_size_sections): No longer static (PA ELF calls
940 it via hppaelf_finish). Prototype moved into ldlang.h.
941 (lang_process): Move problematic extra call to lang_size_sections
942 into the PA ELF specific code.
943 * emultempl/hppaelf.em (hppaelf_finish): Extra call to
944 lang_size_sections moved here.
945
946 Thu Feb 24 16:47:33 1994 Ian Lance Taylor (ian@cygnus.com)
947
948 * configure.in (powerpc-*-elf*): New target; use ppc-elf32.
949 * config/ppc-elf32.mt: New file.
950 * emulparams/elf32ppc.sh: New file.
951 * emultempl/ppc.em: New file.
952 * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o.
953 (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc.
954 (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
955
956 Thu Feb 24 12:27:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
957
958 * lexsup.c (parse_args): Use symbolic numbers for long options.
959 Fix misunderstanding in -Y and -call_shared et al.
960
961 Use getopt instead of lex and yacc to parse the command line.
962
963 * ld.texinfo (Options): Document changes to option syntax.
964 * Makefile.in: Update dependencies.
965 * ldver.c (help): Tweak dashes in usage message.
966 * ldgram.y (%union): Remove unused members.
967 Remove %tokens for command line options; add ones for input types.
968 (command_line): Rules removed.
969 (file): Instead of command line, recognize an
970 input type indicator, then use the nonterminal for that type.
971 (defsym_expr): New nonterminal from code formerly in command_line.
972 * ldlex.h: Declare parser input type enum and variable.
973 Don't declare parse_line.
974 * ldlex.l: Remove unused variables. Make some used ones static
975 and comment them.
976 (COMMAND): Start state and its rules removed.
977 At start of yylex, return input state token if at start of input.
978 (lex_redirect): Don't need to set yyout.
979 (ldlex_command): Function removed.
980 * ldmain.c (main): Instead of calling parse_line, set up the
981 redirections and call yyparse directly.
982 * ldmisc.c (vfinfo): If there's no input filename, print nothing, not
983 "command line".
984 * lexsup.c: Remove #if 0'd code.
985 (parse_line): Function removed.
986 (parse_args): Rewrite to use getopt_long_only.
987 (set_default_dirlist): New function from code formerly in
988 ldgram.y:command_line.
989 (set_section_start): New function.
990 * emultempl/generic.em, emultempl/gld960.em, emultempl/hppaelf.em,
991 emultempl/lnk960.em, emultempl/m88kbcs.em: Don't enclose
992 compiled-in link scripts in "{" and "}", as the grammar no longer
993 wants them to be.
994
995 Thu Feb 24 08:43:26 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
996
997 * Makefile.in (ld.dvi): Depend on configdoc.texi, but don't
998 require that it be in $(srcdir).
999
1000 Tue Feb 22 09:21:18 1994 Ian Lance Taylor (ian@cygnus.com)
1001
1002 * ldlang.c (lang_size_sections): Only align section to alignment
1003 required by linker script, not to maximum alignment of input
1004 sections.
1005
1006 * ldlang.h (largest_section): Don't declare.
1007 * ldlang.c (largest_section): Don't define.
1008 (size_input_section): Don't set largest_section; not used.
1009
1010 Mon Feb 21 15:15:29 1994 Ian Lance Taylor (ian@cygnus.com)
1011
1012 * ldlang.c (new_afile): Pass NULL as last argument to concat.
1013
1014 Thu Feb 17 15:51:23 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1015
1016 * ldlang.c, ldmain.c: Include libiberty.h.
1017
1018 * ldmisc.h (concat): Don't declare.
1019 * ldmisc.c (concat): Don't define; just use the one in libiberty.
1020
1021 * ld.h (as_output_section_statement): Removed; not used.
1022
1023 Thu Feb 17 09:32:14 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1024
1025 * ldlang.c, ldmain.c, ldmisc.c: Use bfd_get_error and
1026 bfd_set_error and new error names.
1027
1028 Tue Feb 15 20:14:53 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1029
1030 * ldwrite.c (build_link_order): If the cooked size of the section
1031 has been set, use it, for determining link_order size.
1032 (ldwrite): In the error message displayed if bfd_final_link fails,
1033 indicate that it was in fact the final link step that failed.
1034
1035 * ldlang.c (lang_size_sections): Clear bfd_error before calling
1036 bfd_relax_section, in case it returns false but doesn't flag an
1037 error. If an error is returned, indicate which one it is in the
1038 error message.
1039
1040 * Makefile.in (install-info): Depend on ld.info, and use "$<*" so
1041 it'll get picked up from $(srcdir) if appropriate.
1042
1043 Tue Feb 15 16:32:04 1994 David J. Mackenzie (djm@rtl.cygnus.com)
1044
1045 * scripttempl/aout.sc: Only pad .text if PAD_TEXT is set.
1046 * emulparams/i386mach.sh (PAD_TEXT): Set PAD_TEXT.
1047
1048 Fri Feb 11 17:02:49 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1049
1050 * ldlex.l (comment): Increment line number when newline is read.
1051
1052 Fri Feb 11 17:36:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1053
1054 * ldlang.c (lookup_name): Take new argument, force_load. If true,
1055 reload the file even if it is already loaded.
1056 (wild): Call lookup_name with force_load argument of 0.
1057 (open_input_bfds): Call lookup_name with force_load argument of 1.
1058 (print_symbol): Remove declaration of non-existent function.
1059 (print_one_symbol): Return true rather than falling off end.
1060
1061 Thu Feb 10 11:52:38 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1062
1063 * ldmain.c (main): Use %ld when printing long values.
1064
1065 * scripttempl/elf.sc: Move _edata after the .sdata section.
1066 Permit OTHER_BSS_SYMBOLS to be defined.
1067 * emulparams/elf32mipb.s (OTHER_BSS_SYMBOLS): Define _fbss.
1068
1069 Mon Feb 7 16:31:15 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1070
1071 * Rename all "hppaosf" files to "hppaelf".
1072 * Change all "osf" references to "elf" in hppaelf files.
1073 * Makefile.in: Likewise.
1074 * configure.in: Likewise.
1075
1076 Sun Feb 6 20:31:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1077
1078 * ldmain.c (main): Call xatexit, not atexit.
1079 Call xmalloc_set_program_name.
1080
1081 * ldlang.c (lang_size_sections): Check if bfd_relax_section set
1082 bfd_errno.
1083
1084 Sat Feb 5 03:54:34 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1085
1086 * emultempl/lnk960.em (append), emultempl/hppaosf.em
1087 (hppaosf_finish): Call xmalloc, not ldmalloc.
1088 * ldmain.c (preserve_output): Function removed.
1089 (main): Do it here instead.
1090
1091 Fri Feb 4 23:02:19 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1092
1093 * ldlang.h (LANG_FOR_EACH_{INPUT,OUTPUT}_SECTION): Delete (unused)
1094 GNU C specific macros.
1095
1096 * emultempl/hppaosf.em (hppaosf_finish): Expand the only remaining
1097 call to LANG_FOR_EACH_INPUT_SECTION.
1098
1099 Fri Feb 4 16:26:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1100
1101 * ldmisc.c (ldmalloc, xmalloc, ldrealloc, xrealloc): Functions
1102 deleted; will use libiberty versions instead.
1103 * ldctor.c ldfile.c ldlang.c ldmain.c ldmisc.c ldmisc.h lexsup.c
1104 mri.c Makefile.in: Change callers.
1105
1106 * ldmisc.c (vfinfo): Remove cleanup code.
1107 * ldmain.c (remove_output): Put it here (new function).
1108 (preserve_output): New function.
1109 (main): Register remove_output and preserve_output with atexit.
1110 * ldmain.c ldgram.y: Call xexit instead of exit.
1111 * ldmisc.h: Declare xexit.
1112
1113 Fri Feb 4 15:19:01 1994 Steve Chamberlain (sac@cygnus.com)
1114
1115 * Makefile.in: Lots of new H8/500 memory models.
1116
1117 Sun Jan 30 14:33:40 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1118
1119 * ldlex.l: Removed duplicate rules.
1120 (yywrap): Provide default definition, needed with some versions of
1121 flex.
1122
1123 Fri Jan 28 09:12:56 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1124
1125 * ldmisc.c (vfinfo): For `%I', if the file is in an archive, print
1126 the archive filename too.
1127
1128 * ldlex.l: Add rule to catch invalid input characters instead of
1129 printing them. Include "ldmain.h" for program_name decl.
1130 (lex_warn_invalid): New function.
1131 * Makefile.in: Add dependency.
1132
1133 Fri Jan 28 12:58:45 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1134
1135 * Makefile.in (check): Don't bother running any tests of
1136 cross-linker until the test suite no longer assumes native mode.
1137
1138 Thu Jan 27 17:19:54 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1139
1140 * ldlang.c (print_one_symbol, print_input_section): Print
1141 global symbols in symbol table again.
1142
1143 Thu Jan 27 12:35:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1144
1145 * ldmain.c ldmain.h ldgram.y: If -v -V or --version was given,
1146 exit successfully instead of complaining if no input files are
1147 given.
1148
1149 Tue Jan 25 13:19:41 1994 Stan Shebs (shebs@andros.cygnus.com)
1150
1151 * Makefile.in: Format variable definitions consistently.
1152 (LD_PROG): Remove unnecessary variables from link command,
1153 change variable LOADLIBES to EXTRALIBS.
1154
1155 * ldmain.c (main): Compute and display total execution time.
1156 * ld.texinfo (-stats): Document the option.
1157
1158 Mon Jan 24 12:56:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1159
1160 * ldmain.c (reloc_overflow): Added name, reloc_name and addend
1161 arguments.
1162
1163 * ldlang.c (lookup_name): Set BFD GP size to -G argument value
1164 after opening BFD.
1165
1166 * ldlang.c (relaxing): Removed global variable.
1167 (lang_size_sections): If the canonical symbols have not already
1168 been read in, read them in before relaxing.
1169 * ldlang.h (relaxing): Removed declaration.
1170
1171 Fri Jan 21 00:44:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1172
1173 * ldlang.c (new_afile): Initialize loaded field to false.
1174 (lookup_name): If file was already loaded, don't call the
1175 add_symbols entry point again.
1176
1177 Wed Jan 19 13:57:00 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1178
1179 * ld.texinfo: Clarify what -T option does.
1180
1181 Tue Jan 18 16:18:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1182
1183 * scripttempl/m88kbcs.sc: Don't use CREATE_OBJECT_SYMBOLS, that's
1184 for a.out.
1185
1186 Tue Jan 11 13:22:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1187
1188 * ldmain.c (add_archive_element): If trace_files or
1189 trace_file_tries, print file name.
1190 * ldlang.c (lookup_name): Likewise.
1191 (ldlang_add_file): Don't put files on input_bfds list in reverse
1192 order.
1193
1194 * scripttempl/elf.sc: Correct typo.
1195
1196 Mon Jan 10 19:49:05 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1197
1198 * ldgram.y, ldlex.l: Make the space between -e, -u, and -y and
1199 their arguments optional, for compatibility with the old GNU ld.
1200
1201 Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1202
1203 * scripttempl/elf.c: Define __bss_start before the .sbss section.
1204
1205 Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1206
1207 * ldmain.c (add_to_set): Add bitsize argument.
1208 (constructor_callback): New function.
1209 (link_callbacks): Add constructor_callback.
1210 * ldctor.c (struct set_info): Add bitsize field.
1211 (ldctor_add_set_entry): Add bitsize argument.
1212 (ldctor_build_sets): Base the size of the elements of the set on
1213 the bitsize, rather than always using LONG.
1214 * ldctor.h (ldctor_add_set_entry): Add bitsize to declaration.
1215
1216 * ld.h (QUAD_SIZE): Define.
1217 * ldgram.y (QUAD): New token.
1218 (length): Handle it.
1219 * ldlex.l: Return QUAD.
1220 * lexsup.c (keywords): Add QUAD.
1221 * ldwrite.c (build_link_order): Handle QUAD.
1222 * ldlang.c (print_data_statement): Handle QUAD.
1223 (lang_size_sections): Likewise.
1224 (lang_do_assignments): Likewise.
1225 * ldexp.c (exp_print_token): Add QUAD to table.
1226 * ld.texinfo: Describe QUAD.
1227
1228 * scripttempl/alpha.sc: Don't create .lit4 or .sdata sections,
1229 since the Alpha doesn't use them.
1230
1231 Wed Jan 5 17:42:16 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1232
1233 * ldemul.h (ld_emulation_xfer_struct): Comment the members.
1234
1235 Sat Jan 1 13:39:31 1994 Rob Savoye (rob@darkstar.cygnus.com)
1236
1237 * Makefile.in, configure.in: Add support for VSTa micro-kernel.
1238 * config/vsta.mt, emulparams/vsta.sh: New files for VSTa.
1239
1240 Sat Jan 1 10:53:35 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1241
1242 * scripttempl/aout.sc: Pad .text to DATA_ALIGNMENT if relocating;
1243 needed for i386mach. (Should be a no-op on other systems.)
1244
1245 * emulparams/i386mach.sh (SEGMENT_SIZE): Fix again.
1246 (PAGE_SIZE): Don't define; not used.
1247
1248 Fri Dec 31 16:12:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1249
1250 * ldgram.y (yyerror): Make argument const char *, and actually
1251 print it out rather than assuming it is a syntax error.
1252 * ldmisc.h: Change declaration of yyerror.
1253 * ldemul.c, ldwrite.c: Add /*ARGSUSED*/ as appropriate.
1254
1255 Fri Dec 31 11:37:28 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1256
1257 * emulparams/i386mach.sh (NONPAGED_TEXT_START_ADDR): Don't include
1258 exec header offset, since the exec header isn't loaded.
1259 (PAGE_SIZE, SEGMENT_SIZE): Agree with bfd/i386mach3.c.
1260
1261 Thu Dec 30 13:01:43 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1262
1263 A major rewrite to move the bulk of the linker into BFD so that
1264 more efficient backend code can be written for specific object
1265 files.
1266 * lderror.c, lderror.h, ldindr.c, ldindr.h, ldsym.c, ldsym.h,
1267 ldwarn.c, ldwarn.h, relax.c, relax.h: Removed.
1268 * ldctor.c, ldctor.h: Complete rewrite.
1269 * ldwrite.c, ldwrite.h: Complete rewrite.
1270 * ld.h (strip_symbols_type, strip_symbols): Removed. Use
1271 link_info.strip instead. Changed all uses.
1272 (discard_locals_type, discard_locals): Removed. Use
1273 link_info.discard instead. Changed all uses.
1274 (ld_config_type): Removed relocateable_output field; use
1275 link_info.relocateable instead; changed all uses. Added stats
1276 field.
1277 (set_asymbol_chain, get_asymbol_chain, get_loader_symbol,
1278 set_loader_symbol): Removed.
1279 * ldexp.h (node_class): Added etree_rel.
1280 (etree_type): Added rel field.
1281 * ldexp.c (exp_print_token): Bracketed table initialization.
1282 (exp_relop): New function.
1283 (fold_name): Use linker hash table rather than ldsym functions.
1284 (exp_fold_tree): Likewise. Also, handle etree_rel case.
1285 (exp_print_tree): Handle etree_rel.
1286 * ldgram.y (strip_symbols, discard_locals): Removed.
1287 (OPTION_stats, OPTION_no_keep_memory): New tokens. Handle them.
1288 (REL): New token. Does not appear in grammar, but needed for
1289 expression code.
1290 (file): Don't call lang_final; it's called by main anyhow.
1291 * ldlex.l: Accept -stats and -no-keep-memory options.
1292 * ldlang.h (fill_type): Make unsigned int, not unsigned short.
1293 * ldlang.c: Consistently use fill_type for fill argument.
1294 (lang_init_script_file, script_file): Removed.
1295 (create_object_symbols): Removed. Use
1296 link_info.create_object_symbols_section instead. Changed all
1297 uses.
1298 (lang_add_keepsyms_file): Removed.
1299 (lookup_name): Call bfd_link_add_symbols instead of
1300 ldmain_open_file_read_symbol.
1301 (wild): Don't iterate over script_file.
1302 (open_output): Create link hash table.
1303 (lang_place_undefineds): Rewrote.
1304 (lang_size_sections): Handle relaxing (doesn't work yet).
1305 (lang_relocate_globals): Removed.
1306 (lang_finish): Use link hash table rather than ldsym functions.
1307 (lang_common): Rewrote.
1308 (lang_one_common): New function.
1309 (ldlang_add_file): Add file to link_info.input_bfds list. Set
1310 usrdata.
1311 (create_symbol): Removed.
1312 (lang_process): Don't call lang_init_script_file. Call
1313 ldctor_build_sets rather than find_constructors. Don't call
1314 lang_relocate_globals.
1315 (lang_abs_symbol_at_beginning_of): Rewrote.
1316 (lang_abs_symbol_at_end_of): Rewrote.
1317 * ldmain.c (had_y): Removed.
1318 (lprefix, lprefix_len): Removed; use link_info fields instead.
1319 Changed all uses.
1320 (multiple_def_count, commons_pending, undefined_global_sym_count,
1321 total_symbols_seen, total_files_seen): Removed.
1322 (link_callbacks, link_info): New variables.
1323 (main): Initialize link_info. Don't call init_bfd_error_vector or
1324 ldsym_init. Don't set now unused variables. Handle -stats.
1325 (get_emulation): Removed obsolete and nonfunctional GNU960 code.
1326 (add_ysym): Rewrote.
1327 (read_entry_symbols, refize, enter_global_ref, enter_file_symbols,
1328 search_library, gnu960_check_format, decode_library_subfile,
1329 linear_library, symdef_library, clear_syms, subfile_wanted_p):
1330 Removed.
1331 (add_keepsyms_file, add_archive_element, multiple_definition,
1332 multiple_common, add_to_set, warning_callback, undefined_symbol,
1333 reloc_overflow, reloc_dangerous, unattached_reloc, notice_ysym):
1334 New functions.
1335 * ldmisc.c (vfinfo): Accept a string for %T, not a symbol. Don't
1336 require symbols for %C; look them up instead.
1337 * emultempl/hppaosf.em: Pass link_info to
1338 hppa_look_for_stubs_in_section.
1339 * Makefile.in: Rebuilt dependencies.
1340 (CFILES): Removed lderror.c, ldindr.c, ldsym.c, ldwarn.c, and
1341 relax.c.
1342 (HFILES): Removed lderror.h, ldindr.h, ldsym.h, ldwarn.h, and
1343 relax.h.
1344 (EMULATION_OFILES): Depend on bfdlink.h, ldmain.h, ldexp.h,
1345 ldlang.h and ldctor.h.
1346
1347 * Makefile.in (ldlex.c): Don't depend on ldgram.h. Remove
1348 declarations of free and malloc from flex output. Change malloc
1349 to ldmalloc in flex output.
1350
1351 Thu Dec 16 21:19:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1352
1353 * ldmain.c (lprefix): Change default from a char to a string
1354 with only one character.
1355 (lprefix_len): Set default to one.
1356
1357 * ldmain.h (lprefix_len): Declare.
1358
1359 * ldsym.c (write_file_locals): Use strncmp rather than a character
1360 comparison for lprefix.
1361
1362 * emultmpl/m88kbcs.em (before_parse): Set lprefix and lprefix_len
1363 correctly.
1364
1365 * emultmpl/hppaosf.em: Include ldexp.h.
1366 (before_parse): Set lprefix and lprefix_len correctly.
1367
1368 Tue Dec 14 17:19:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1369
1370 * ldlex.h: Don't declare yywrap if it is a macro.
1371 * ldlex.l: Include sysdep.h.
1372 * ldlang.c (lang_for_each_statement_worker,
1373 lang_for_each_statement): Forgot to use PARAMS.
1374
1375 Mon Dec 13 14:30:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1376
1377 * Makefile.in: Added .PHONY targets where appropriate. Added some
1378 comments. Also:
1379 (gcclibdir, version): Removed unused variables.
1380 (DEP): New variable, set to mkdep.
1381 (ALL_CFLAGS): New variable. Used in .c.o target.
1382 (CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
1383 variables.
1384 (HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
1385 GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
1386 mostly obsolete variables. Adjusted remaining uses.
1387 (DEF_EMUL): Removed variable.
1388 (ldmain.o): Handle undefined EMUL error correctly.
1389 (ldemul-list.h): Depend on config.status rather than Makefile.
1390 Create via temporary file.
1391 (ver960.c, roll, make): Removed obsolete targets.
1392 (.dep, .dep1, dep.sed, dep, dep-in): New targets. Used to rebuild
1393 dependencies.
1394 * dep-in.sed: New file, used when rebuilding dependencies.
1395
1396 Sat Dec 11 14:43:44 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
1397
1398 Made many changes to eliminate gcc warnings. Made various
1399 cosmetic changes, declared various things in header files, removed
1400 various extern declarations from .c files. No substantive
1401 changes.
1402
1403 * ldlang.c (lang_process): Ifdef out final call to
1404 lang_size_sections again (reverting change of Nove 2), since it
1405 breaks the Sun4 linker.
1406
1407 Thu Dec 2 16:31:47 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1408
1409 * configure.in (alpha-*-netware*): New target; use alpha.
1410
1411 Wed Dec 1 14:04:20 1993 Ken Raeburn (raeburn@cygnus.com)
1412
1413 * configure.in: Group targets by CPU. Merge some m68k target
1414 entries with different CPU specs that use the same ld_target
1415 values.
1416
1417 * configure.in: Add sparc*-*-coff.
1418 * config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
1419 * Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
1420 (em_coff_sparc.c): Add dependencies and build rules.
1421
1422 * ldmisc.c (errno, sys_nerr, sys_errlist): Don't declare.
1423
1424 Wed Dec 1 12:19:55 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1425
1426 * ldgram.y (OPTION_call_shared, OPTION_non_shared, OPTION_Oval):
1427 New tokens.
1428 (command_line_option): Accept and ignore them (for now).
1429 * ldlex.l (<COMMAND>): Handle -non_shared, -call_shared, and -On
1430 where n is a number.
1431
1432 Mon Nov 22 14:14:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1433
1434 * ldmain.c (subfile_wanted_p): If merging a common symbol which is
1435 not in bfd_com_section, create the section in the BFD so that it
1436 can be placed in the right output section.
1437
1438 Fri Nov 19 14:12:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1439
1440 * configure.in (mips*-sgi-irix5*): New target. Use mipsb-elf32.
1441 * emulparams/elf32mipsb.sh (DATA_ADDR): Define.
1442 (OTHER_READONLY_SECTIONS): Define for .reginfo.
1443 (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK.
1444 * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating.
1445 Move OTHER_READONLY_SECTIONS after all the other readonly
1446 sections. Don't use DATA_ADDR twice.
1447
1448 * ldmain.c (enter_file_symbols): Removed duplicate tests of p. If
1449 p is in a common section, make sure the BFD has a section of that
1450 name.
1451
1452 * ldlang.c (lang_common): Add newline to error message.
1453
1454 Thu Nov 11 15:54:41 1993 Stan Shebs (shebs@rtl.cygnus.com)
1455
1456 * emulparams/m68klynx.sh (SCRIPT_NAME): Define to use a
1457 Lynx-specific script instead of m68kcoff.
1458 (OUTPUT_FORMAT): Define as "coff-m68k-lynx".
1459 (ENTRY): Define as __main.
1460 (TEXT_START_ADDR): Define as 0.
1461 (PAGE_SIZE): Define as 0x1000.
1462 * emulparams/i386lynx.sh, emulparams/sparclynx.sh: Fix comment.
1463 * scripttempl/m68klynx.sc: New file.
1464
1465 Mon Nov 8 12:00:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1466
1467 * ldmain.c (get_emulation): Ignore -mips1, -mips2 and -mips3
1468 arguments rather than treating them as emulation names.
1469
1470 Fri Nov 5 09:02:52 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
1471
1472 * configure.in: Support x86 unixware and netware plus generic netware.
1473
1474 Fri Nov 5 21:47:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1475
1476 * emulparams/i386mach.sh (TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR):
1477 Correct values (?).
1478
1479 Wed Nov 3 15:10:15 1993 Ken Raeburn (raeburn@rover.cygnus.com)
1480
1481 * Makefile.in (distclean): Don't delete dvi or info files.
1482 (ld.info): Update dependency list.
1483 (ld.dvi): Ditto. Extend TEXINPUTS to get bfdsumm.texi.
1484
1485 Wed Nov 3 12:07:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1486
1487 * ldlang.c (lang_add_output): Take new arg, FROM_SCRIPT.
1488 Set output_filename instead of creating a new node.
1489 (open_output): Don't set output_filename.
1490 (lang_final): Create the new node here.
1491 * ldlang.c, ldlang.h, ldgram.y, mri.c: pass FROM_SCRIPT.
1492
1493 Tue Nov 2 15:45:51 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
1494
1495 From Pete Hoogenboom (hoogen@cs.utah.edu):
1496
1497 * scripttempl/hppaosf.sc: (___stack_zero, etext, _etext,
1498 edata, _edata, end): Add definitions of these symbols.
1499 (__end): Remove definition of this symbol.
1500 (__data_start): Move definition of this symbol.
1501
1502 * emultempl/hppaosf.em: Various fixes and support for linker stub
1503 generation.
1504 (hppaosf_finish, hppaosf_search_for_padding_statements,
1505 hppaosf_create_output_section_statements): New functions in
1506 support of linker stub generation.
1507 (ld_hppaosf_emulation): Redefine to include new
1508 emulation-specific routines.
1509
1510 * ldlang.c (lang_process): Re-enable last call lang_size_sections.
1511 Pass abs_output_section rather than NULL to avoid invalidating
1512 absolute symbols.
1513
1514 Thu Oct 28 21:16:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1515
1516 * Makefile.in (ALL_EMULATIONS): Add em_i386mach.o.
1517 (em_i386mach.c): New rule.
1518 * configure.in (i[34]86-*-mach*): New case.
1519 * config/i386-mach.mt: New file.
1520 * emulparams/i386mach.sh: New file.
1521
1522 Fri Oct 29 14:55:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1523
1524 * ld.h (flag_is_*): Removed macros.
1525 * ldmain.c (enter_global_ref), ldsym.c (write_file_locals):
1526 Consistently check the BFD symbol flags directly, rather than
1527 using file_is_* macros.
1528
1529 Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
1530
1531 * configure.in (sparc*-*-lynxos*): New target.
1532 * Makefile.in: Add rule for em_sparclynx.c.
1533 (ALL_EMULATIONS): Add Lynx emulations.
1534 * config/sparc-lynx.mt: New file.
1535 * emulparams/sparclynx.sh: New file.
1536 * scripttempl/sparccoff.sc: New file.
1537
1538 Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1539
1540 * Makefile.in: Add dependency for $(EMULATION_OFILES).
1541
1542 Mon Oct 25 16:09:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1543
1544 * relax.c (write_relax): Check return value of bfd_seclet_link.
1545
1546 Mon Oct 25 09:31:21 1993 Ken Raeburn (raeburn@cygnus.com)
1547
1548 * ldlang.c (delete_output_file_on_failure): New variable.
1549 (open_output): Set it after bfd open succeeds.
1550 * ldmisc.c (vfinfo): Test it.
1551
1552 Changes from Peter Hoogenboom, hoogen@cs.utah.edu:
1553
1554 * ldsym.c (write_file_locals): Set the BSF_FILE flag for object
1555 symbols.
1556
1557 * ldemul.c: Support was added to allow emulation-specific
1558 processing to occur. This support was added primarily for linker
1559 stub generation in the elf32-hppa gld.
1560 (ldemul_finish, ldemul_create_output_section_statements): New
1561 functions.
1562 * ldemul.h: Support was added to allow emulation-specific
1563 processing to occur. (As described above.) Added finish and
1564 create_output_section_statements fields to
1565 ld_emulation_xfer_struct structure.
1566 * ldlang.c: Add calls to emulation-specific routines.
1567 (lang_process): Add call to
1568 ldemul_create_output_section_statements function.
1569 (lang_process): Add call to a emulation-specific routine (and
1570 some processing after the call).
1571
1572 Fri Oct 22 20:54:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1573
1574 * configure.in: mips*- instead of mips-, mips*el changes
1575
1576 Tue Oct 19 15:46:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1577
1578 * configure.in (alpha-*-osf*): New target; use alpha.mt.
1579 * Makefile.in (ALL_EMULATIONS): Added em_alpha.o.
1580 (em_alpha.c): New target; use alpha.sh and alpha.sc.
1581 * config/alphaosf.mh (NATIVE_LIB_DIRS, HOSTING_CRT0): Define.
1582 * config/alpha.mt: New file.
1583 * emulparams/alpha.sh: New file.
1584 * scripttempl/alpha.sc: New file.
1585
1586 Fri Oct 15 02:20:04 1993 Doug Evans (dje@canuck.cygnus.com)
1587
1588 * ldlang.c (lang_size_sections, lang_common): ALIGN_N can't handle
1589 types of different sizes (eg: 64 and 32 bits), so coerce.
1590 * ld.h (ALIGN_N): Add warning about usage.
1591
1592 Wed Oct 13 16:02:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1593
1594 * ldmain.c (enter_global_ref): Just ignore any weak symbol for
1595 which we already have a definition, rather than checking in
1596 several different places whether the symbol is weak.
1597
1598 Tue Oct 12 17:30:51 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1599
1600 * configure.in (mips-*-elf*): New target; use mipsb-elf32.
1601 * scripttempl/elf.sc: Only use OTHER_READONLY_SECTIONS and
1602 OTHER_READWRITE_SECTIONS if relocating. Shell variables are not
1603 expanded within them.
1604 * config/mipsb-elf32.mt: New file.
1605 * emulparams/elf32mipb.sh: New file.
1606 * Makefile.in (em_elf32mipb.c): New target.
1607
1608 Thu Sep 30 17:00:36 1993 Rob Savoye (rob@darkstar.cygnus.com)
1609
1610 * ldgram.y: In input_list, change lang_input_file_is_file_enum to
1611 lang_input_file_is_search_file_enum so objects brought in using
1612 INPUT() do a path lookup.
1613
1614 Tue Sep 28 13:31:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
1615
1616 * configure.in: Change Lynx ld_target to be {i386,m68k}-lynx
1617 instead of {i386,m68k}-coff.
1618 * Makefile.in (em_i386lynx.c, em_m68klynx.c): New targets.
1619 * config/i386-lynx.mt: New file.
1620 * config/m68k-lynx.mt: New file.
1621 * emulparams/i386lynx.sh: New file.
1622 * emulparams/m68klynx.sh: New file.
1623
1624 * scripttempl/i386coff.sc: Make ENTRY get its value from ${ENTRY},
1625 but defaulting to _start.
1626
1627 * ldemul.c, ldfile.c, ldlang.c, ldmain.c, ldmisc.c, ldmisc.h,
1628 ldsym.c, ldwarn.c: Rename info to info_msg, to avoid conflict with
1629 LynxOS libc.
1630
1631 Thu Sep 23 14:51:03 1993 Ian Lance Taylor (ian@cygnus.com)
1632
1633 * config/solaris2.mh: New file. Define HOSTING_CRT0 and
1634 HOSTING_LIBS for testing.
1635
1636 Fri Sep 17 17:52:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1637
1638 Finish up support for i386-sysv4 (without shared libraries):
1639 * ld.h (flag_is_weak): Define.
1640 * ldlang.c (print_symbol): Mention whether symbol is weak.
1641 (print_input_section): Print weak symbols as globals.
1642 * ldmain.c (refize): Do not zero out BSF_WEAK flag.
1643 (enter_global_ref): Do not warn if a weak symbol redefines a
1644 global symbol. Do not let a weak symbol redefine a common symbol.
1645 (enter_file_symbols): Treat weak symbols as global symbols.
1646 (subfile_wanted_p): Do not pull in an object file from a archive
1647 just to resolve an undefined weak symbol.
1648 * ldmisc.c (vfinfo): Don't needlessly malloc space after a fatal
1649 error; the error might be that malloc has run out of space.
1650 * ldsym.c (write_file_locals): Treat weak symbols as global.
1651 * configure.in (i[34]86-*-sysv4*, i[34]86-*-elf*): New targets;
1652 use i386-elf.
1653 * config/i386v4.mh: New file; set NATIVE_LIB_DIRS to /usr/ccs/lib.
1654 * config/i386-elf.mt: New file; set EMUL to elf_i386.
1655 * emulparams/elf_i386.sh: New file.
1656 * scripttempl/elf.sc: Use ${NOP} as filler (defaults to 0).
1657 * Makefile.in (NATIVE_LIB_DIRS): Define to be empty.
1658 (ALL_EMULATIONS): Add em_elf_i386.o.
1659 (GENSCRIPTS): Pass NATIVE_LIB_DIRS as sixth argument.
1660 (em_elf_i386.c): New target, like other em_*.c targets.
1661 ($(LD_PROG)): Pass $(CFLAGS) to $(CC).
1662 * genscripts.sh: Accept NATIVE_LIB_DIRS as sixth argument. If
1663 nonempty, and configured for native, add it to LIB_PATH.
1664
1665 Fri Sep 17 13:07:39 1993 Stan Shebs (shebs@rtl.cygnus.com)
1666
1667 * scripttempl/{h8300.sc,h8500.sc,i386coff.sc,m68kcoff.sc,sh.sc}:
1668 Added statements to pass stab and stabstr sections through and
1669 mark them as NOLOAD, which makes GDB happier.
1670
1671 Wed Sep 15 16:02:29 1993 Stan Shebs (shebs@rtl.cygnus.com)
1672
1673 * configure.in: Accept m68k-lynx-lynxos config.
1674
1675 * Makefile.in: Use $(SHELL) to run genscripts.sh.
1676
1677 Sun Sep 12 16:04:40 1993 Doug Evans (dje@cygnus.com)
1678
1679 * config/coff-h8300.mt: Add EMUL=h8300h.
1680
1681 * ldmain.c (main): Call set_scripts_dir after argv has been processed.
1682
1683 Fri Sep 10 09:36:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
1684
1685 * Makefile.in: Changed CXX back to g++.
1686
1687 Fri Sep 10 09:34:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
1688
1689 * Makefile.in: Fixed RUNTEST* CXX CXXFLAGS macros and check rule.
1690
1691 Fri Sep 10 07:26:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1692
1693 * Makefile.in (TAGS): Use shell wildcards.
1694
1695 Tue Sep 7 18:04:54 1993 Jeffrey Osier (jeffrey@cygnus.com)
1696
1697 * Makefile.in: add TEXINPUTS variable and use it in ld.dvi target
1698
1699 Fri Sep 3 16:46:41 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
1700
1701 * ld.texinfo: re-enable included config file; conditionalize doc
1702 for -oformat to interact properly with SingleFormat doc config
1703 var; rename @up/@down to @raisesections/@lowersections.
1704
1705 Wed Aug 25 16:29:56 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1706
1707 * configure.in: recognize m88110.
1708
1709 Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1710
1711 From Peter Hoogenboom <hoogen@shafer.cs.utah.edu>:
1712 * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA
1713 ELF emulation is "elf32-hppa" not "elf-big".
1714 (hppaosf_before_parse): Remove unneeded processing of environment
1715 variables.
1716 * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in
1717 .text segment of output file.
1718 * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa.
1719
1720 Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1721
1722 * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no
1723 longer in bfd.h.
1724
1725 * ldlang.c, ld.h: updated copyright.
1726
1727 Tue Aug 17 15:22:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1728
1729 * ldlang.c (open_output, lang_check): Check return value of
1730 bfd_set_arch_mach.
1731
1732 Tue Aug 17 07:02:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1733
1734 * scripttempl/h8500.sc: Start all sections in a different segment.
1735 * scripttempl/z8ksim.sc: Handle constructors
1736
1737 Thu Aug 12 16:05:37 1993 Jeffrey Wheat (cassidy@cygnus.com)
1738
1739 * Makefile.in: revert earlier changes back to execute runtest
1740 with make check. cdtest and bootstrap now function as they
1741 did within the Makefile.
1742
1743 Thu Aug 12 10:20:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1744
1745 * Makefile.in: Update dependencies.
1746
1747 * configure.in: Set EMULATION_OFILES in Makefile based on
1748 --with-targets option.
1749
1750 Thu Aug 12 08:52:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
1751
1752 * Makefile.in: check targets reimplemented to old way.
1753
1754 Wed Aug 11 08:26:11 1993 Ian Lance Taylor (ian@cygnus.com)
1755
1756 * config/i386v.mh, config/irix4.mh: Use gcc
1757 -print-libgcc-file-name rather than $(libdir)/libgcc.a.
1758 * config/i386sco.mh: New file; copy of i386v.mh to correspond to
1759 bfd/configure.host change.
1760
1761 Mon Aug 9 14:25:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1762
1763 * scripttempl/elf.sc: Handle .line and .debug* sections.
1764
1765 * ldlex.l: Use bfd_scan_vma, not strtoul.
1766
1767 Fri Aug 6 08:57:39 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1768
1769 * ldexp.c, ldfile.c, ldlang.c, lexsup.c, ldmain.c, ldemul.c:
1770 Remove inital caps in some error messages, change "can't" to
1771 "cannot", add missing colons.
1772 * ldmisc.c (vfinfo): Print "%%" as a single %.
1773 For '%' followed by unrecognized character, print them both
1774 verbatim instead of expecting a char * arg.
1775 For '%C', don't put the function name in parens.
1776
1777 * ldexp.c (invalid): Pass "%%", not "% ".
1778
1779 Fri Aug 6 14:31:22 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1780
1781 * scripttempl/mips.sc: Always define _ftext, _fdata, _fbss.
1782 (BSS_VAR): Removed; now always define _fbss.
1783 * emulparams/mipsidt.sh, emulparams/mipsidtl.sh (BSS_VAR):
1784 Removed.
1785
1786 Thu Aug 5 15:55:19 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1787
1788 * configure.in: z8k-coff is the same as z8k-sim
1789
1790 Wed Aug 4 21:00:18 1993 Jeffrey Wheat (cassidy@cygnus.com)
1791
1792 * testsuite/lib/ld.exp: new file
1793 * testsuite/config/unix-ld.exp: new file
1794 * testsuite/ld.bootstrap/bootstrap.exp: new file
1795 * Makefile.in: add dejagnu support for make check
1796
1797 Wed Aug 4 17:52:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1798
1799 * ldlex.l (comment): Add missing newline in message.
1800 * ldindr.c (add_indirect): Ditto.
1801 * ldexp.c (exp_fold_tree): Ditto.
1802
1803 Tue Aug 3 10:57:41 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1804
1805 * ldgram.y, ldlex.l, mri.c, ldwrite.c: Change multiple commons
1806 into externs.
1807
1808 * ldmisc.c (multiple_warn): New function.
1809 * ldmisc.h: Declare it.
1810 * ldmain.c (enter_global_ref): Call it.
1811 * ld.h (ld_config_type): Add warn_common.
1812 * ldlex.l, ldgram.y: Set it with -warn-common option.
1813 * ldver.c (help): Document it.
1814
1815 Mon Aug 2 12:04:36 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1816
1817 * scripttempl/elf.sc: Add hooks for .sdata, .sbss, and
1818 target-specific sections, and for changing data section vma.
1819
1820 Mon Jul 26 14:00:02 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
1821
1822 * ldgram.y (OPTION_Qy, OPTION_Y, OPTION_dn, OPTION_YP): New
1823 terminals, for Solaris.
1824 (dirlist_ptr): New static variable.
1825 (command_line_option): Accept new options.
1826
1827 * ldlex.l: Accept command-line options "-Qy", "-dn", "-Y", and
1828 "-YP,...".
1829
1830 * config/sun4sol2.mt: Pass emulation name without ".sh".
1831
1832 * emulparams/elf32_sparc.c: Renamed from elf32-sparc.c.
1833 * config/sun4sol2.mt (em_elf32_sparc.c): Adjusted accordingly.
1834
1835 Fri Jul 23 13:51:09 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1836
1837 * scripttempl/elf.sc: Add support for .init, .fini, .ctors,
1838 .dtors, .data1, .rodata1 sections, instead of combining them into
1839 other sections. For `-r', set all section start addresses to
1840 zero.
1841
1842 * emulparams/elf32-sparc.sh (TEXT_START_ADDR,
1843 NONPAGED_TEXT_START_ADDR): Value should be 0x10100.
1844 (MAXPAGESIZE): Renamed from PAGE_SIZE.
1845
1846 Wed Jul 21 14:28:42 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1847
1848 * genscripts.sh: If this is the default emulation, set
1849 COMPILE_IN.
1850 * emultempl/*.em: Use it to determine whether to compile in the
1851 scripts.
1852
1853 * Makefile.in (GENSCRIPTS): Pass the default emulation name to
1854 genscripts.sh. Pass the current emulation name without ".sh" on
1855 the end.
1856 * genscripts.sh: Take an default emulation arg.
1857 Use the current emulation name as EMULATION_NAME.
1858 Make default lib path for cross-compiling ':', not null.
1859 * emulparams/*.sh: Don't set EMULATION_NAME.
1860 * ldemul.c (ldemul_get_script): Take isfile arg.
1861 Pass it to emulation's get_script function.
1862 * ldemul.h: Adjust get_script prototypes.
1863 * ldfile.c (ldfile_find_command_file): Renamed from find_a_name.
1864 No longer static.
1865 * ldfile.h: Declare it.
1866 * ldgram.y: Accept a script on the command line again,
1867 for parsing compiled-in scripts.
1868 * ldmain.c (main): If ld script is a file, parse it as a -T
1869 option, otherwise parse it directly.
1870 * emultempl/*.em (*get_script): Return the scripts themselves if
1871 this is the default emulation; otherwise return their file names.
1872 * emultempl/m88kbcs.em: New file, to take m88kbcs #ifdef out of
1873 generic.em.
1874 * emulparams/m88kbcs.sh: Use it.
1875
1876 * ld.h (ld_config_type::unix_relocate): Remove unused element.
1877
1878 Tue Jul 20 12:01:49 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1879
1880 * Makefile.in (ALL_EMULATIONS): Delete em_i386linux.o (for which
1881 there's no change log entry yet, tsk tsk) from the list of
1882 emulations compiled in until Mark gets around to checking in
1883 emulparams/i386linux.sh.
1884 (ldemul-list.h): Depend on Makefile, so if EMULATION_OFILES is
1885 changed, this file gets updated.
1886
1887 Fri Jul 16 14:14:32 1993 Ian Lance Taylor (ian@cygnus.com)
1888
1889 * ldgram.y (OPTION_Lfile): New token.
1890 (command_line_option): Accept OPTION_L NAME (whitespace after -L).
1891 * ldlex.l (<COMMAND>): Accept -L without FILENAME.
1892
1893 Fri Jul 16 13:44:26 1993 Doug Evans (dje@canuck.cygnus.com)
1894
1895 * configure.in: h8/300h support needs own .mt file.
1896 config/coff-h8300h.mt: New file.
1897
1898 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1899
1900 * ldmain.c: Don't include sys/stat.h; it already got included
1901 somewhere along the way.
1902
1903 Thu Jul 15 14:43:34 1993 Doug Evans (dje@canuck.cygnus.com)
1904
1905 * Makefile.in: Add h8300h support.
1906 emulparams/h8300h.sh: New file.
1907 scripttempl/h8300h.sc: New file.
1908
1909 Thu Jul 15 12:44:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1910
1911 * ldfile.c (ldfile_open_file): In error message, use the name the
1912 user gave (e.g., "-lc"), rather than the base file name.
1913
1914 * ldexp.c (exp_fold_tree): Don't assign an int to an enum.
1915
1916 * ldmain.[ch]: Remove initial Q_ from function names.
1917 * ldexp.c, ldindr.c, ldlang.c: Change callers.
1918
1919 * ldfile.c, ldmain.c, ldgram.y: Rename option_v to trace_file_tries.
1920
1921 * ldlang.c (lang_process): Move loading of default script from
1922 here to main. Add a "/" to start of script name to prevent
1923 finding it in "." first.
1924
1925 * ldmain.c (set_scripts_dir): Don't look in "." first.
1926
1927 * ldgram.y, ldlang.c, ldsym.c: Remove traces of unused var
1928 option_longmap.
1929
1930 Thu Jul 15 10:55:59 1993 Ian Lance Taylor (ian@cygnus.com)
1931
1932 * Makefile.in (em_m88kbcs.c): Correct dependency.
1933 * scripttempl/m88kbcs.sc: It's ARCH, not arch. Removed TARGET
1934 statement. Changed OUTPUT_FORMAT to use ${OUTPUT_FORMAT}.
1935 * emulparams/m88kbcs.sh: It's coff-m88kbcs, not m88kbcs.
1936
1937 Wed Jul 14 21:42:53 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1938
1939 * ldfile.c (ldlang_open_file, ldfile_open_command_file),
1940 main.c (main): Print the errno string in the error message.
1941
1942 Tue Jul 13 20:00:30 1993 Doug Evans (dje@canuck.cygnus.com)
1943
1944 * configure.in: Accept h8300h for target cpu.
1945
1946 * ldmisc.c (vfinfo): Have demangle remove leading underscore if
1947 present (demangle is smart enough to know whether to do it or not).
1948
1949 Mon Jul 12 11:45:48 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1950
1951 * ldmain.c (set_scripts_dir): Check . and <ld bin dir>/../lib for
1952 ldscripts, as well as <ld bin dir> and SCRIPTDIR.
1953
1954 * ldlang.c (lang_process): Use sizeof instead of magic constant.
1955
1956 * ldmain.c (get_emulation, check_for_scripts_dir,
1957 set_scripts_dir): New functions.
1958 (main): Call them.
1959
1960 Mon Jul 12 10:57:03 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
1961
1962 * scripttempl/elf.sc: Include .init, .fini, .rodata sections.
1963 Create symbol "end" instead of "__end". Comment out some parts
1964 that may not be needed (yet) for elf.
1965
1966 * configure.in: Accept sparc-elf and sparc-solaris2 configs.
1967
1968 Thu Jul 8 15:33:32 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1969
1970 * Makefile.in (ALL_EMULATIONS): Include $(OTHER_EMULATIONS).
1971
1972 * ldmisc.h (einfo, minfo, info): Don't bother with PARAMS macro
1973 when no prototype is being supplied.
1974 (ldmalloc, ldrealloc): Size argument is now size_t.
1975
1976 * ldmisc.c (finfo): New function, accepts FILE* argument.
1977 (vfinfo, case 'v'): New format character; displays bfd_vma in hex
1978 without leading zeros.
1979 (vfinfo, cases 'R' and 'C'): Use finfo(%v) when displaying a
1980 bfd_vma value, instead of fprintf(%x) which won't hold a long long
1981 value.
1982 (concat, buystring): String lengths are size_t.
1983 (ldmalloc, ldrealloc, xrealloc): Size argument is now size_t.
1984
1985 * ldlang.c (new_statement): Size argument is now size_t. Added
1986 forward declaration with prototype.
1987
1988 Thu Jul 8 10:53:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1989
1990 * ldgram.y (OPTION_v): Don't turn on verbose output.
1991
1992 Wed Jul 7 17:10:45 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1993
1994 * ldlex.l: Get rid of local typedef for bfd_vma! Get it from
1995 bfd.h instead.
1996
1997 Wed Jul 7 11:33:12 1993 Ian Lance Taylor (ian@cygnus.com)
1998
1999 * Makefile.in (install): Don't install as $(tooldir)/bin/gld;
2000 collect2 doesn't look for gld any more anyhow.
2001
2002 Mon Jul 5 14:29:48 1993 Ian Lance Taylor (ian@cygnus.com)
2003
2004 * ldlang.c (lang_relocate_globals): Skip indirect symbols, which
2005 now have a non NULL srefs_chain.
2006
2007 * config/hp300hpux.mt: Use emulation hp3hpux rather than
2008 hp300hpux, since the latter does not exist.
2009
2010 Fri Jul 2 18:06:05 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2011
2012 * genscripts.sh: Put the scripts in the ldscripts directory, not
2013 emulations.
2014 * configure.in (ldscripts): Make, instead of emulations.
2015 * Makefile.in (scriptdir): Take off the "ld" part.
2016 (install, clean, distclean): Use ldscripts, not emulations.
2017 In tests, don't pass -Lemulations.
2018 Don't pass tooldir/lib to genscripts.sh.
2019 * genscripts.sh: Don't take tooldir/lib arg.
2020 * ldlang.c (lang_process): Add "ldscripts/" to the name of the
2021 default script file.
2022
2023 Fri Jul 2 17:13:35 1993 Doug Evans (dje@canuck.cygnus.com)
2024
2025 * scripttempl/h8300.sc: Add .tors section for constructor/destructors.
2026
2027 Thu Jul 1 16:38:45 1993 Doug Evans (dje@canuck.cygnus.com)
2028
2029 * config/coff-h8300.mt: EMUL=h8300hms -> h8300.
2030
2031 Wed Jun 30 15:45:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2032
2033 * Makefile.in (.y.c): skip default .y.c rules. gnu make can now
2034 run in parallel without colliding on yacc's static file names.
2035 Without the stub rule, make will try to start two yacc's
2036 concurrently which fails because of yacc's static file names.
2037
2038 Tue Jun 29 12:20:36 1993 Ian Lance Taylor (ian@cygnus.com)
2039
2040 * ldmain.c (subfile_wanted_p): Don't dump core if there are no
2041 symbols.
2042
2043 Mon Jun 28 12:22:11 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2044
2045 * genscripts.sh (LIB_PATH): Only add /usr/local/lib if it's
2046 different from libdir.
2047
2048 * Makefile.in (scriptdir): Base on tooldir, not datadir.
2049
2050 Sat Jun 26 12:03:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2051
2052 * ldver.c (help): New function.
2053 * ldver.h: Declare it.
2054 * ldlex.l, ldgram.y: Recognize new options --help and --version.
2055
2056 Mon Jun 21 20:39:48 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
2057
2058 * Makefile.in (INCLUDES): Don't need ../include any more.
2059
2060 Mon Jun 21 16:38:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2061
2062 * ldlex.l, ldgram.y: Support new -oformat option.
2063 Remove attempt at supporting script fragments on the command line.
2064 * ldlang.c (lang_add_output_format): Take new arg, FROM_SCRIPT.
2065 * mri.c (mri_format), ldgram.y: Change callers.
2066 * ldlang.h: Change prototype.
2067
2068 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
2069
2070 * Makefile.in: canonicalize install.sh; for use within
2071 this directory (and subdirs)
2072
2073 Thu Jun 17 14:33:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2074
2075 * ldgram.y: Tweak grammar to make reporting of invalid options work.
2076
2077 * Makefile.in (.cc.o): Restore .SUFFIXES entry for .cc
2078 and .cc.o rule.
2079
2080 Wed Jun 16 11:45:32 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2081
2082 * ldfile.c (ldfile_open_command): Don't try .ld extension.
2083 It wasn't documented (or likely used) and wastes time.
2084 (try_open): If EXTEN is empty, don't try it.
2085
2086 * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c,
2087 ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c,
2088 ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls
2089 with normal function declarations.
2090
2091 * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh.
2092 Move *.sc-sh to scripttempl/*.sc.
2093 * {emultempl,emulparams,scripttempl}/README: New files.
2094 * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files
2095 removed, replaced with generic.em.
2096 * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from
2097 h8[35]00hms.s[ch]. Change their contents to omit the "hms".
2098
2099 * *.em (*_get_script): Return script name instead of script contents.
2100 * ldlang.c (lang_process): Change caller.
2101
2102 * ldlex.l, ldgram.y: Recognize -m option.
2103 Check for input files after *all* options in grammar.
2104 * ldmain.c (main): Check for -m options. Add default directory
2105 for -m.
2106
2107 * mkscript.c: File removed.
2108 * genscripts.sh: Take two more parameters, tooldirlib and libdir,
2109 to add to the default LIB_PATH.
2110 Look for input files in the new subdirectories.
2111 Create the scripts in emulations subdirectory and don't filter
2112 them through mkscript.
2113 * configure.in: Make the emulations subdirectory.
2114
2115 * Makefile.in: Account for all of the above changes.
2116 Remove unused .SUFFIXES. Get libgcc.a path with gcc
2117 -print-libgcc-file-name instead of $(libdir)/libgcc.a.
2118 Put CFLAGS last in the compilation rules.
2119 Add -I../bfd to INCLUDES so sysdep.h is found.
2120
2121 Tue Jun 15 23:04:46 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2122
2123 * Makefile.in (INCLUDES): Look in ../include, not ../bfd.
2124
2125 * aout.sc-sh: Add SHLIB_PATH like STACKZERO. Make STACKZERO
2126 dependent on RELOCATING, not RELOCATION.
2127 * hp3hpux.sh (SHLIB_PATH): Define it.
2128
2129 Mon Jun 14 19:06:15 1993 David J. Mackenzie (djm@thepub.cygnus.com)
2130
2131 * ldfile.c (try_open): If opening without the extension fails,
2132 try with the extension even if -v or -V was given.
2133 had_script is imported (from ldgram.y), not exported.
2134
2135 Mon Jun 14 16:26:10 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
2136
2137 * Makefile.in: remove parentdir support, use INSTALL_XFORM
2138
2139 Thu Jun 10 14:00:06 1993 Ian Lance Taylor (ian@cygnus.com)
2140
2141 * ldexp.c (exp_fold_tree): Don't lose the old flag bits.
2142 * ldgram.y (statement_list_opt): New nonterminal, either empty or
2143 statement_list.
2144 (section): Use statement_list_opt, not statement_list.
2145 * m68kcoff.sc-sh: Gather constructors and destructors and define
2146 __CTOR_LIST__ and __DTOR_LIST__ appropriately.
2147 * sa29200.sc-sh: Gather constructors and destructors and define
2148 ___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
2149
2150 Mon Jun 7 12:53:28 1993 Per Bothner (bothner@rtl.cygnus.com)
2151
2152 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
2153 * configure.in: No longer need to configure to get sysdep.h.
2154
2155 Fri Jun 4 16:18:24 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2156
2157 * Makefile.in: remove install:all and install-info:info
2158 dependencies (these cause some spurious rebuilds at 'make install'
2159 time)
2160
2161 Fri Jun 4 08:50:14 1993 Ian Lance Taylor (ian@cygnus.com)
2162
2163 * configure.in (mips-idt-ecoffl*): New target; use mips-idtl.
2164 (mips-idt-ecoff*): Added trailing '*'.
2165 * config/mips-idtl.mt: New file; use EMUL of mipsidtl.
2166 * mipsidtl.sh: New file; like mipsidt.sh, but little endian.
2167 * Makefile.in (ALL_EMULATIONS): Added em_mipsidtl.o.
2168
2169 * config/sun3.mh (HOSTING_LIBS, HOSTING_EMU): Removed obsolete and
2170 incorrect definitions.
2171
2172 Tue Jun 1 14:56:10 1993 Per Bothner (bothner@rtl.cygnus.com)
2173
2174 * ldsym.c (write_file_locals): Write BSF_CONSTRUCTOR
2175 symbols, unless stripping.
2176
2177 Tue May 25 15:34:25 1993 Ian Lance Taylor (ian@cygnus.com)
2178
2179 * Makefile.in: configure looks for ####, so remove lines with many
2180 '#' characters.
2181 * config/irix4.mh, config/i386v.mh: New files; set HOSTING_CRT0
2182 and HOSTING_LIBS correctly so that ``make check'' will work.
2183
2184 Thu May 20 13:56:16 1993 Per Bothner (bothner@deneb.cygnus.com)
2185
2186 * mips.sc-sh: Define _etext, _edata, and _end, in addition
2187 to etext, edata, and end. Needed for IRIX 4.0.5F.
2188 Patch from mwp@iconix.oz.au (Michael Paddon).
2189
2190 * Version 2.2.1 released.
2191
2192 Thu May 20 11:42:06 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2193
2194 * mipsbsd.sc-sh: Renamed from aout-mipsbsd.sc-sh.
2195 * mipsbsd.sh (EMULATION_NAME): Use new file name.
2196
2197 Tue May 18 17:10:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2198
2199 * Makefile.in (LDDISTSTUFF): Remove ld.mm since we can't build it
2200 properly right now.
2201
2202 * Version 2.2 released.
2203
2204 Mon May 17 15:37:28 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
2205
2206 * ldver.c (ldversion): Bump version number to 2.2.
2207
2208 Mon May 17 12:44:31 1993 Per Bothner (bothner@cygnus.com)
2209
2210 * NEWS: New file.
2211
2212 Fri May 14 11:26:24 1993 Ian Lance Taylor (ian@cygnus.com)
2213
2214 * mips.sc-sh: Don't define BSS_VAR unless relocating.
2215
2216 Wed May 12 13:33:29 1993 Ian Lance Taylor (ian@cygnus.com)
2217
2218 * Makefile.in (mkscript.o, mkscript): Build mkscript via
2219 mkscript.o, rather than directly from mkscript.c.
2220
2221 Tue May 4 21:58:56 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2222
2223 * configure.in: Look for ${target_makefile_frag} relative to
2224 ${srcdir}, not relative to build directory.
2225
2226 * hppaosf.em, hppaosf.sc-sh, hppaosf.sh: New files.
2227 * configure.in: Recognize hppa*-hp-osf.
2228 * Makefile.in (ALL_EMULATIONS): Include hppaosf emulation.
2229 (em_hppaosf.c): Build it.
2230 * config/hppaosf.mh, hppaosf.mt: New files.
2231
2232 * ld.h (ALIGN_N): Renamed from ALIGN, because that conflicted with
2233 some system header files. All uses changed.
2234
2235 * configure.in: Recognize i386-aix configurations as i386-coff
2236 targets.
2237
2238 * configure.in: Recognize m68*-*-hpux.
2239 * aout.sc-sh: If STACKZERO and RELOCATING are both defined, output
2240 the value of STACKZERO.
2241 * Makefile.in (ALL_EMULATIONS): Include hp300-hpux emulation.
2242 (em_hp3hpux.c): Build it.
2243 * hp3hpux.sh, config/hp300hpux.mt: New files.
2244
2245 Tue May 4 12:37:35 1993 Ian Lance Taylor (ian@cygnus.com)
2246
2247 * mips.sc-sh: Put constructors in the .data section.
2248 * Makefile.in (cdtest): Added dependency on ld.new.
2249
2250 Mon May 3 19:43:39 1993 Per Bothner (bothner@cygnus.com)
2251
2252 * Makefile.in: Change definition of $(tooldir) to match FSF.
2253 * vax.sh, config/vax.mt, configure.in, Makefile.in:
2254 Support VAX Ultrix and BSD.
2255
2256 Mon Apr 26 18:35:47 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2257
2258 * sh.em, sh.sh, sh.sc-sh: New files supporting Hitachi SH.
2259
2260 Wed Apr 14 21:01:51 1993 John Gilmore (gnu@cygnus.com)
2261
2262 * ldlang.h (struct memory_region): Change `length' and
2263 `old_length' fields to bfd_size_type. Eliminate use of bfd_offset.
2264 * ldlang.c, mri.c: Corresponding changes, plus lint.
2265
2266 Thu Apr 8 22:08:18 1993 Ian Lance Taylor (ian@cygnus.com)
2267
2268 * configure.in: For all i386 targets, accept i486 as well.
2269
2270 Mon Apr 5 17:33:39 1993 Ian Lance Taylor (ian@cygnus.com)
2271
2272 * ldlang.c (wild_doit): Preserve all flags for a
2273 SEC_SHARED_LIBRARY section.
2274 (size_input_section): Consider any SEC_HAS_CONTENTS section when
2275 computing largest_section.
2276
2277 Fri Apr 2 14:33:52 1993 Ian Lance Taylor (ian@cygnus.com)
2278
2279 * ldlang.c (lang_output_section_statement_lookup): Initialize all
2280 fields of newly created structure.
2281
2282 Wed Mar 31 18:19:15 1993 Ian Lance Taylor (ian@cygnus.com)
2283
2284 * ldmain.c (g_switch_value): New variable.
2285 * ldgram.y (OPTION_G, OPTION_Gval): New tokens.
2286 (command_line_option): Accept -G and set g_switch_value.
2287 * ldlex.l (COMMAND): Accept -G.
2288 * ldlang.c (open_output): Call bfd_set_gp_size on new BFD.
2289
2290 Tue Mar 30 09:40:25 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2291
2292 Support for linking and loading at different places:
2293
2294 * ldlex.l: Add "AT" keyword.
2295 * ldgram.y: Cleanup, and parse AT.
2296 * ldlang.c (print_output_section_statement): Print output address
2297 of section in map. (lang_size_sections): Fill sections' lma with
2298 load address.
2299 * ldlang.h (lang_output_section_statement_type): Add load_base
2300 information.
2301
2302 * ldindr.c (add_indirect): Keep more information in the alias
2303 symbol chain.
2304 * ldlang.c (wild_doit): Don't inherit NEVER_LOAD section
2305 attribute from an input section.
2306 * ldmain.c (Q_enter_file_symbols): Common section is NEVER_LOAD by
2307 default. (Q_enter_file_symbos): Indirect symbols now are known by
2308 their section, not a special symbol flag.
2309 * ldsym.c (write_file_locals): Indirect symbols aren't local.
2310 (write_file_globals): Write the mapping for an indirect symbol.
2311 * relax.c (build_it): When forced to write a NEVER_LOAD section,
2312 fill it with zeros.
2313
2314 Tue Mar 23 13:24:10 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
2315
2316 * ld.texinfo: changes for q1
2317
2318 Tue Mar 23 00:13:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2319
2320 * Makefile.in: add dvi target, define & use TEXI2DVI, add installcheck
2321
2322 Mon Mar 8 20:30:35 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2323
2324 * Makefile.in: rename HOST_CC to CC_FOR_BUILD
2325
2326 Thu Mar 4 12:44:33 1993 Ian Lance Taylor (ian@cygnus.com)
2327
2328 * mips.sc-sh: Added variables which may be overridden by a
2329 specific emulation.
2330 * mipsidt.sh: New file; emulation for IDT MIPS board.
2331 * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
2332 (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
2333 * config/mips-idt.mt: New file; sets EMUL to mipsidt.
2334 * configure.in (mips-idt-ecoff): New target; uses mips-idt.
2335
2336 Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2337
2338 * aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
2339 ralphc@pyramid.com.
2340 * i386bsd.sh, config/i386bsd.mt: New files.
2341 * configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
2342
2343 Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
2344
2345 * mri.c: Add extern declaration of strdup.
2346 * ldsym.c (KEEP macro): Add spaces around '=' for the
2347 sake of old (e.g. PCC) compilers.
2348
2349 Wed Feb 24 19:49:31 1993 Per Bothner (bothner@rtl.cygnus.com)
2350
2351 * ldver.c: Bump to version 2.1.
2352
2353 Fri Feb 12 08:09:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2354
2355 * ldgram.y: allow section types without address expressions.
2356 * ldlang.c (lang_relocate_globals): avoid possible hang with
2357 undefined but unreferenced symbols.
2358 * relax.c (relax_section): don't complain if the script file isn't
2359 relaxable but -relax is set
2360
2361 Thu Feb 18 17:58:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2362
2363 * configure.in: go32 is the 3rd part of the triple, not the 2nd
2364
2365 Wed Feb 3 09:05:56 1993 Ian Lance Taylor (ian@cygnus.com)
2366
2367 * mipsbig.sh: New file. Big endian MIPS emulation.
2368 * config/mips-big.mt: New file. Use mipsbig emulation.
2369 * configure.in (mips-sgi-irix*): Use target mips-big.
2370 * Makefile.in (ALL_EMULATIONS): Added em_mipsbig.o.
2371 (em_mipsbig.c): New target. Uses mipsbig.sh.
2372
2373 Tue Feb 2 11:32:27 1993 Ian Lance Taylor (ian@cygnus.com)
2374
2375 * mips.sc-sh: Put .scommon sections into .sbss section.
2376
2377 * ldmain.c (subfile_wanted_p): Preserve section of common symbols,
2378 rather than always putting them in bfd_com_section.
2379 * ldlang.c (lang_common): If a common symbol is not in
2380 bfd_com_section, put in a section of the same name, rather than
2381 always putting it in section COMMON.
2382
2383 Fri Jan 29 09:57:58 1993 Ian Lance Taylor (ian@cygnus.com)
2384
2385 * ldmain.c (subfile_wanted_p): If we already have a common
2386 definition of a symbol, don't necessarily pull in an object file
2387 that provides a non-common definition.
2388
2389 * ldlex.l (COMMAND): Accept -EB and -EL command line arguments,
2390 returning OPTION_EB and OPTION_EL. gcc passes these to a MIPS
2391 linker.
2392 * ldgram.y (OPTION_EB, OPTION_EL): New tokens.
2393 (command_line_option): Accept and ignore OPTION_EB and OPTION_EL.
2394
2395 Thu Jan 28 15:12:04 1993 Ian Lance Taylor (ian@cygnus.com)
2396
2397 * Makefile.in (install): Remove $(tooldir)/bin/gld before creating
2398 the link to it.
2399
2400 Tue Jan 26 11:49:50 1993 Ian Lance Taylor (ian@cygnus.com)
2401
2402 * ldmain.c, ldsym.c: Use new bfd_is_com_section macro rather than
2403 checking for equality to bfd_com_section.
2404
2405 Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
2406
2407 * mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF
2408 targets, linker script.
2409 * mipslit.sh: New file. Little endian MIPS emulation.
2410 * config/mips-lit.mt: New file. Use mipslit emulation.
2411 * configure.in (mips-dec-ultrix*): Use target mips-lit.
2412 * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o.
2413 (em_mipslit.c): New target. Uses mipslit.sh.
2414
2415 Thu Jan 14 15:30:27 1993 Ian Lance Taylor (ian@cygnus.com)
2416
2417 * Makefile.in (install): Install ld as both $(tooldir)/bin/ld and
2418 $(tooldir)/bin/gld, so that gcc can find it with or without
2419 collect2.
2420
2421 Mon Jan 11 18:50:07 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2422
2423 * ldwrite.c: Removed perform_relocation, copy_and_relocate, and
2424 write_norel. All linking is now done via write_relax. Call
2425 ldsym_write before calling write_relax.
2426 * relax.c: Added copyright.
2427 (write_relax): Renamed from write_relaxnorel. Added relocateable
2428 argument. seclet_dump renamed to bfd_seclet_link.
2429 * relax.h: Added copyright.
2430
2431 Mon Jan 11 15:41:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2432
2433 * ldmain.c (decode_library_subfile): Patch from
2434 hoogen@shafer.cs.utah.edu, don't reread library symbol tables.
2435
2436 Fri Jan 8 18:04:33 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2437
2438 * config/vxworks960.mt renamed to config/i960.mt
2439
2440 * configure.in: sparc-aout emulates a sun4, as does
2441 sparc*-vxworks, i960-nindy uses gld960 emulation
2442
2443 Fri Jan 8 14:39:07 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2444
2445 Fix support for NOLOAD, add INCLUDE
2446 * ldfile.c (ldfile_open_command_file): pass file name to
2447 lex_push_file.
2448 * ldlex.l, ldgram.y: tidy up, parse INCLUDE and NOLOAD
2449 * ldlang.c (wild_doit): make output sections inherit NEVER_LOAD
2450 attribute.
2451
2452 Thu Jan 7 10:22:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2453
2454 * Makefile.in, config.h: no more default emulation. Make the lack
2455 of emulation a compile time error
2456
2457 Wed Jan 6 01:08:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2458
2459 * configure.in: recognise all sparclite variants, not just 'sparclite'
2460
2461 Mon Dec 28 11:15:35 1992 Ian Lance Taylor (ian@cygnus.com)
2462
2463 * m68kcoff.sc-sh: define _end as well as end, for consistency with
2464 aout.sc-sh.
2465
2466 * configure.in: accept *-ericsson-ose for any m68k CPU.
2467
2468 * ldwrite.c (write_rel): don't always set SEC_HAS_CONTENTS flag
2469 for each output section.
2470
2471 Mon Dec 21 16:06:59 1992 Per Bothner (bothner@rtl.cygnus.com)
2472
2473 * ldexp.c, ldlang.c, ldmain.c, ldsym.c, ldwarn.c: Use new
2474 macro bfd_asymbol_bfd as appropriate.
2475 * Makefile.in: Un-duplicate ldlex.c dependency.
2476 * condigure.in: Replace my_host case table by sourcing
2477 ../bfd/configure.host. Allow std-host as the default.
2478 * ldmisc.c: Change logic for C++ name demangling: There is
2479 no initial '_' to remove from stab-derived function names.
2480
2481 Sun Dec 13 16:31:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2482
2483 * ldlang.c (lang_init_script_file): don't attach the output file
2484 sections to the script file.
2485
2486 Wed Dec 9 08:38:05 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2487 * ldlang.c (wild): run expansion loop over command line bfd too.
2488 (lang_ini_script_file): initialize more parts of the command line
2489 bfd.
2490 * ldlex.l: fix DEFINED start states.
2491
2492 Mon Dec 7 08:43:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2493 -y support
2494 * ld.texinfo: new doc.
2495 * ldgram.y, ldlex.l: understand -y<symbol>
2496 * ldmain.c (Q_enter_file_symbols): if had -y, lookup symbol and
2497 print info. (add_ysym): new function.
2498 * ldsym.h: (ldsym_type): new define SYM_Y.
2499
2500 Sat Nov 21 03:15:27 1992 John Gilmore (gnu@cygnus.com)
2501
2502 * ldctor.h, lderror.h, ldexp.h, ldfile.h, ldindr.h, ldlang.c,
2503 ldlang.h, ldlex.h, ldmain.h, ldmisc.h, ldsym.h, ldver.h, ldwarn.h,
2504 ldwrite.h, relax.h: Replace all uses of EXFUN and PROTO ansi-glue
2505 macros with PARAMS. Recreational cleanup. Update copyrights.
2506
2507 Tue Nov 10 00:23:37 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2508
2509 * Makefile.in: pass down the bfd source directory for includes
2510
2511 Thu Nov 5 15:41:55 1992 Ian Lance Taylor (ian@cygnus.com)
2512
2513 * ldlang.c (lang_size_sections): don't change size and address for
2514 SEC_SHARED_LIBRARY sections rather than for SEC_NEVER_LOAD
2515 sections.
2516
2517 Thu Nov 5 11:33:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2518
2519 * relax.c (build_it): re-enable the processing of data_statements
2520 in scripts, makes counted contructor lists work again.
2521
2522 Thu Nov 5 05:43:01 1992 John Gilmore (gnu@cygnus.com)
2523
2524 * ldemul.h: Remove uses of SDEF and PROTO macros (use PARAMS).
2525
2526 Tue Oct 20 10:56:06 1992 Ian Lance Taylor (ian@cygnus.com)
2527
2528 * m68kcoff.sc-sh: don't use initial underscores for etext, edata
2529 and end.
2530
2531 Mon Oct 19 09:45:38 1992 Ian Lance Taylor (ian@cygnus.com)
2532
2533 * Support for i386-sysv.
2534 configure.in: check for i386-*-sysv* and i386-*-sco*.
2535 i386coff.sc-sh: rewrote to support SVR3 by default.
2536 ldctor.c (find_constructors): preserve stat_ptr.
2537 ldlang.c (wild_doit): initialize vma and size of new output
2538 section to corresponding input section. This is required for
2539 shared library support.
2540 (lang_size_sections): don't modify vma and size of sections which
2541 are never loaded (for shared libraries).
2542 ldwrite.c (copy_and_relocate): copy the contents of any section
2543 which has contents, not just sections which are loaded (for shared
2544 libraries).
2545
2546 Thu Oct 15 15:20:26 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2547
2548 * ldlang.c (size_input_section): count the sizes of all sections
2549 we allocate.
2550
2551 Thu Oct 8 09:05:25 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2552
2553 * ldmisc.c (demangle,vfinfo): use the new underscore in bfd to
2554 to demangle symbols better
2555
2556 Tue Oct 6 13:08:54 1992 Ian Lance Taylor (ian@cygnus.com)
2557
2558 * ldlang.c (lang_finish): don't warn if -e start symbol does not
2559 exist when linking with -r.
2560
2561 Mon Oct 5 14:07:37 1992 Ian Lance Taylor (ian@cygnus.com)
2562
2563 * aout.sc-sh, m68kcoff.sc-sh: set __bss_start to the start of the
2564 .bss segment.
2565
2566 Mon Oct 5 08:55:14 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2567
2568 * ldmain.c (linear_library): don't even think about processing
2569 an object file if it's already been done
2570
2571 Thu Oct 1 23:14:59 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2572
2573 * configure.in: the hp9000/300 config file is now hp300
2574
2575 Wed Sep 30 07:34:09 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2576
2577 * config/z8ksim.mt: new file
2578
2579 Fri Sep 25 13:49:52 1992 Ken Raeburn (raeburn@kyriath.cygnus.com)
2580
2581 * Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o,
2582 lexsup.o, mri.o, relax.o): Indicate dependence on ldgram.h.
2583
2584 * ld.h (strip_symbols_type): Add value STRIP_SOME.
2585 * ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
2586 * ldlang.c (lang_add_keepsyms_file): New function.
2587 * ldlex.l: Handle "-retain-symbols-file".
2588 * ldsym.c (keepsyms_file, kept_syms): New vars.
2589 (process_keepsyms): New functihon; reads file, marks symbols for
2590 saving.
2591 (write_file_locals): File symbols should always be kept.
2592 (ldsym_write): Warn about "-retain-symbols-file" overriding "-S"
2593 and "-s". Process retain-symbols file before setting symtab.
2594 * ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
2595 (keepsyms_file, kept_syms): Declare them.
2596
2597 * ldmain.c (main): Non-fatal errors should still cause non-zero
2598 exit status even with -r.
2599
2600 Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2601
2602 Added initial support for the z8k
2603 * z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
2604 * configure.in, Makefile.in: modified to reflect above
2605
2606 * ldlang.c (lang_check): when linking conflicting architectures,
2607 make the output file reflect at least one of the bad inputs.
2608
2609 Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
2610
2611 * Makefile.in (install): if $(tooldir) exists, install ld in
2612 $(tooldir)/bin.
2613
2614 Fri Sep 11 10:24:22 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2615
2616 * Makefile.in, configure.in: modified to support i386-coff
2617 * i386coff.sh: new file
2618
2619 Wed Sep 9 11:52:58 1992 Ian Lance Taylor (ian@cygnus.com)
2620
2621 * Makefile.in, m68kcoff.sh, m68kcoff.sc-sh, config/m68k-coff.mt:
2622 added m68k-coff emulation mode, stolen from a29k emulation.
2623 Almost certainly wrong, but perhaps better than sun3.
2624
2625 Thu Sep 3 14:19:30 1992 Per Bothner (bothner@rtl.cygnus.com)
2626
2627 * Makefile.in, Makefile.dos, generic.em, genscripts.sh,
2628 gld960.em, h8300hms.em, h8300xray.em, lnk960.em, st2000.em,
2629 vanilla.em: Rename all (generated) ld__*.c files to em_.c.
2630 This is one character shorter, and lets people build on
2631 SVR3 system. (ld__h8300xray.[co] was the killer there;
2632 h8300xray.sc-sh is also overlong, but seems harmless.)
2633 Based on a patch from Jonathan Ryshpan <hitachi!amito!jon>.
2634 * Makefile.in (clean): Fix typo mostclean -> mostlyclean.
2635 * configure.in: Add host isc.
2636
2637 * ldver.c: Call it version 2.0.
2638
2639 Wed Sep 2 00:21:33 1992 Per Bothner (bothner@rtl.cygnus.com)
2640
2641 * ldver.c: Bump to version 0.98.
2642 * TODO: New file.
2643
2644 * Makefile.in: Added mostlyclean, distclean, realclean rules.
2645
2646 Tue Sep 1 23:42:16 1992 Per Bothner (bothner@rtl.cygnus.com)
2647
2648 * ldmisc.c (xrealloc): New (needed by ../libiberty/cplus.dem.c).
2649 * ldlex.l: Moved comment() to end, since some compilers
2650 otherwise have problems with input() used before it is defined.
2651
2652 Tue Sep 1 17:45:51 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2653
2654 * configure.in: added Solaris 2 and Irix 4 host support.
2655
2656 Mon Aug 31 19:27:11 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2657
2658 * Makefile.in: remove -S flag from the FLEX definition
2659
2660 * configure.in: rewrote, using new style case statement. use
2661 m68k.mt for m68k-aout systems
2662
2663 Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com)
2664
2665 * Makefile.in: map "ld" through program_transform_name when
2666 installing.
2667
2668 Sun Aug 30 18:12:13 1992 Per Bothner (bothner@rtl.cygnus.com)
2669
2670 * cplus-dem.c: Removed. Use the version in libiberty now.
2671 * ldmisc.c: Use new libiberty version of cplus_demangle().
2672
2673 Thu Aug 27 16:38:42 1992 Ian Lance Taylor (ian@cygnus.com)
2674
2675 * gld960.em (gld960_choose_target): default to little endian, not
2676 big endian.
2677
2678 Wed Aug 26 17:28:51 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2679
2680 * ldlang.c (lang_process): don't pass null pointers when
2681 abs_output_section is what is required.
2682 * ldwrite.c (ldwrite): use malloc to allocate the largest space
2683 used, and pass that down.
2684 * relax.c,relax.h (write_relaxnorel): use the passed malloc area rather
2685 than alloca.
2686
2687 Mon Aug 24 14:42:06 1992 Ian Lance Taylor (ian@cygnus.com)
2688
2689 * configure.in, config/ose68.mt: renamed OSE to ose.
2690
2691 Thu Aug 20 19:55:22 1992 Ken Raeburn (raeburn@cygnus.com)
2692
2693 * ldsym.c (write_file_locals): Reorder check for common or
2694 undefined symbols so that it works.
2695
2696 Tue Aug 18 13:41:36 1992 Ian Lance Taylor (ian@cygnus.com)
2697
2698 * configure.in: accept all m68K family members.
2699
2700 * Makefile.in: always create installation directories.
2701
2702 Thu Aug 13 11:49:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2703
2704 * ldlex.l: now parses comment correctly, added ~ to acceptable
2705 chars in filenames
2706
2707 * ldexp.c (exp_unop): pass down abs_output_section - now can have
2708 unary -ve constants.
2709
2710 * ldlang.c (lang_finish): warn when an entry symbol supplied on
2711 the command line can't be found.
2712
2713 Fri Aug 7 12:31:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2714
2715 * ldlang.h: add new field "loadable" to output_section_statement.
2716 * ldlang.c (lang_output_section_statement_lookup): initilize new
2717 field. (wild_doit): if new field is not set, then stop output
2718 section from being loadable.
2719 (lang_enter_output_section_statement): set the field from the
2720 NOLOAD keyword
2721 * ldgram.y: new synax for NOLOAD. Removes a shift/reduce too.
2722 * h8300hms.sc-sh, h8300hms.em: get -r right.
2723
2724 Thu Aug 6 18:35:21 1992 Per Bothner (bothner@rtl.cygnus.com)
2725
2726 * ldint.texinfo: New internals manual (beginnings thereof).
2727 * PORTING: Removed, merged into ldint.texinfo.
2728
2729 Tue Aug 4 21:12:29 1992 Per Bothner (bothner@rtl.cygnus.com)
2730
2731 * cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
2732 cdtest.exp: A test program (copied from libg++/test-install)
2733 that tests that constructor and destructors are handled
2734 corrrectly.
2735
2736 Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2737
2738 * Makefile.in (install): install from ld.new, renaming during the
2739 copy, or else the next 'make install' needs to re-link ld.
2740
2741 Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
2742
2743 * configure.in: generalise hp recognition (from sef).
2744
2745 Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2746
2747 * configure.in: recognize bsd and hpux hppa configurations.
2748 error messages echo to stderr, not stdout
2749
2750 Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2751
2752 * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c,
2753 ldmisc.c: removed rcsid's.
2754
2755 Tue Jul 14 08:34:34 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2756
2757 * ldlang.c (lang_map): print changes in sizes due to relaxing
2758 (size_input_section): maintain the delta information.
2759 * ldlang.h: add new field to struct to contain delta info.
2760 * relax.c (relax_section): complain if input not relaxable.
2761 * ldlex.l : add '_', ',' and '$' to chars which can appear at the
2762 start of a filename
2763
2764 Mon Jul 13 17:33:00 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2765
2766 * ldmain.c(main): prevent -r and -relax from being on at the same
2767 time.
2768
2769 Wed Jul 1 17:51:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2770
2771 * ldmain.c (Q_enter_global_ref), ldindr.c (add_indirect): fix for
2772 aliasing problems
2773
2774
2775 Thu Jun 18 09:38:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2776
2777 * h8300hms.em, h8300hms.sc-sh: do the right thing for -r
2778 * ldexp.c: lint
2779 * ldlang.c(open_output): set the target arch and machine as soon
2780 as we can. (lang_size_sections): use new macros for setting vma
2781 * ldwrite.c: lint
2782
2783 Mon Jun 15 08:47:43 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
2784
2785 * configure.in (my_target): Accept m680?0 for wrs as vxworks68.
2786 Also deleted an unreachable path to wrs.
2787
2788 Wed May 27 23:24:19 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
2789
2790 * Makefile.in (install): use -d test for $tooldir before
2791 installing ld there so that $tooldir can be inherited from
2792 top-level Makefile.
2793
2794 Wed May 27 16:56:48 1992 Per Bothner (bothner@rtl.cygnus.com)
2795
2796 * ldlang.c: Two non-substantial changes for the sake of
2797 the old Portable C Compiler.
2798
2799 Wed May 27 15:15:58 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2800
2801 * ldgram.y, ldlex.l: parse ABSOLUTE
2802 * ldexp.c: add support for ABSOLUTE
2803
2804 Wed May 27 13:07:20 1992 Per Bothner (bothner@rtl.cygnus.com)
2805
2806 * Makefile.in: Added default definitions for HOSTING_CRT0,
2807 HOSTING_LIBS, and HOSTING_EMU, based on those in config/*.mh.
2808 * config/*.mh: Miscellaneous clean-up: Removed definitions
2809 of YACC (since it is not longer used in the Makefile).
2810 Remove HOSTING_* definitions that are subsumed by the
2811 ones added to Makefile.in. Removed most definitions of CC.
2812 * config/{sparc,news,hp300bsd,decstation}.mh: Removed;
2813 These are no longer needed.
2814
2815 Fri May 22 13:47:19 1992 Per Bothner (bothner@cygnus.com)
2816
2817 * Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
2818 rules, since these are used when building a distribution.
2819 * Makefile.in (ldlex.c): Don't re-direct output, since that
2820 leaves a bogus output files if it fails.
2821
2822 * config/sparc.mh: Fix HOSTING_LIBS so it has a chance of working.
2823 * ldlex.c: Fix some unnecessary flex-specific-isms.
2824
2825 Fri May 8 11:49:43 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2826
2827 * ldgram.y: move spurious semicolon
2828 * ldexp.h: fix prototype
2829
2830 Thu May 7 17:01:12 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
2831
2832 * ld.texinfo: references to linker now say "ld" not "gld".
2833
2834 Wed May 6 13:26:19 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2835
2836 changed calling convention for Q_enter_global_ref
2837 * ldexp.c, ldlang.c, ldmain.c: reflect this
2838 * ldver.c: bump version to 1.97.1
2839 * ldindr.c (add_indirect): when an edict declaring an indirect
2840 symbol is found, make sure that any ideas about the symbol being
2841 common are changed if it now known to be defined.
2842 * ldmain.c (linear_library): complain once if archive isn't
2843 ranlibbed.
2844 * ldlang.h, ldlang.c: make room for and initialize the complain
2845 once field.
2846
2847 Wed May 6 11:07:35 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2848
2849 * Makefile.in: use flex & bison from ../ if they exist.
2850
2851 Tue May 5 17:47:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2852
2853 * relax.c (build_it): don't allocate space in the output file for
2854 stuff if -R flag applys to it.
2855 * ldfile.c: merge in VMS filename support
2856 * ldmain.c (main): take out ./ from library path, and close file
2857 before unlinking. Make multiple defs of a symbol create an
2858 unexecable file.
2859 * ldmisc.c: fatal errosrs delete output file
2860
2861 Tue May 5 14:05:05 1992 Per Bothner (bothner@rtl.cygnus.com)
2862
2863 * ldver.c: Increase version number to 1.97, for consistency
2864 with ../binutils.
2865
2866 Tue May 5 12:12:24 1992 K. Richard Pixley (rich@cygnus.com)
2867
2868 * Makefile.in: FLEX -> LEX.
2869
2870 * ld.texinfo: {} -> @{@}.
2871
2872 Mon May 4 17:52:41 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
2873
2874 * ld.texinfo: describe alternate, MRI-compatible linker scripts
2875 (and associated change in -c option, now used for these scripts)
2876
2877 Mon May 4 16:10:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2878
2879 * ldver.c: Bumped version to 1.96 - new release, resync with the
2880 bfd too #.
2881 * ldexp.c, ldlang.c: now build memory shape tree in obstacks
2882 rather than with raw malloc, makes it easier to track where memory
2883 is going.
2884 * ldsym.h, ldsym.c: create obstack for all global symbols too.
2885 * ldwrite.c (ldwrite): moved malloc so only used when needed.
2886 * sa29200-sc.sh: added support for .lit, data1 and data2 sections.
2887
2888
2889 Fri May 1 18:17:52 1992 K. Richard Pixley (rich@cygnus.com)
2890
2891 * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
2892
2893 * Makefile.in: use bootstrap for check.
2894
2895 Fri May 1 13:03:41 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2896
2897 * ldgram.y, ldlex.c, mri.c: added more compatible words; BASE, ALIAS and
2898 PUBLIC.
2899 * Makefile.in: now use flex, not lex
2900 * ldlex.l, ldlang.c, ldctor.c: lint
2901
2902 Wed Apr 22 12:48:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2903
2904 * ldlex.l: added CMDFILENAMECHAR state so that you can lex
2905 different sorts of filenames on the command line than in a script.
2906
2907 Mon Apr 20 22:37:04 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2908
2909 * Makefile.in: rework CFLAGS so that they can be passed on the
2910 make command line. Remove MINUS_G. Default CFLAGS to -g.
2911
2912 Fri Apr 17 08:57:17 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2913
2914 * relax.c: added handling for new "padding" seclet type, used to
2915 fill out gaps between section.
2916 * ldgram.y, ldlex.l: now -defsym on the command line is done
2917 properly.
2918
2919 Wed Apr 15 21:20:07 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2920
2921 * Makefile.in: the tooldir copy of ld goes directly in tooldir.
2922
2923 Wed Apr 15 16:09:33 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2924
2925 * mri.c, ldgram.y, ldlex.l: added support for minimal strange link
2926 scripts.
2927
2928 Thu Apr 9 05:52:02 1992 Ken Raeburn (Raeburn@Cygnus.COM)
2929
2930 * Makefile.in (install): Install second copy in $(tooldir)/bin
2931 without $(program_prefix), since that's what gcc expects.
2932
2933 Sat Apr 4 17:44:06 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2934
2935 * ldlex.l, ldgram.y, ldlex.h: Rewrote lexer. Now it's much nicer.
2936 * h8300*: fix bit rot and add support for h8300xray target
2937 * go32.sh: target emulation for go32.
2938
2939 Mon Mar 16 14:53:29 1992 Steve Chamberlain (sac@rtl.cygnus.com)
2940
2941 * gld960.em, i960.sc-sh. Fix i960 bit rot
2942
2943 Fri Mar 13 19:47:22 1992 K. Richard Pixley (rich@cygnus.com)
2944
2945 * Makefile.in: install man page.
2946
2947 Fri Mar 13 08:23:59 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2948
2949 * config/mt-<foo> renamed to <foo>.mt
2950 * config/mh-<foo> renamed to <foo>.mt
2951 * configure.in changed to reflect this
2952 * genscripts.sh now make .xbn files rather than .xN files
2953
2954 Sat Mar 7 03:40:40 1992 K. Richard Pixley (rich@cygnus.com)
2955
2956 * ldver.h: fix decl of ldversion.
2957
2958 Fri Mar 6 22:00:35 1992 K. Richard Pixley (rich@cygnus.com)
2959
2960 * Makefile.in: added check target.
2961
2962 Fri Mar 6 06:59:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2963
2964 * ldmain.c (Q_enter_file_symbols): now aliases work again
2965
2966 Thu Mar 5 21:39:29 1992 K. Richard Pixley (rich@cygnus.com)
2967
2968 * Makefile.in: added clean-info target.
2969
2970 Thu Mar 5 16:55:56 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2971
2972 * ldexp.c (exp_print_tree): don't try and follow null pointers
2973 around.
2974 * ldgram.y: remove 11 shift reduce errors
2975
2976 Tue Mar 3 15:46:39 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2977
2978 * Makefile.in: added tooldir and program_prefix.
2979
2980 Fri Feb 28 08:17:45 1992 Steve Chamberlain (sac at thepub.cygnus.com)
2981
2982 * ldlang.c (size_input_section): don't move absolute sections
2983 around!
2984
2985
2986 Thu Feb 27 09:20:41 1992 Steve Chamberlain (sac at thepub.cygnus.com)
2987
2988 * cplus-dem.c: yet another copy of this - maybe it should go into
2989 libiberty ?
2990 * ldgram.y: now -V and -v have different actions
2991 * ldver.c: if -V, prints list of emulations compiled in
2992 * ldmisc.c: support for cplus demangling
2993
2994
2995 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
2996
2997 * Makefile.in, configure.in: removed traces of namesubdir,
2998 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
2999 copyrights to '92, changed some from Cygnus to FSF.
3000
3001 Thu Feb 20 17:43:46 1992 Per Bothner (bothner at cygnus.com)
3002
3003 * Makefile.in: Change mkscript rule into one for ./mkscript
3004 (for the sake of makes that don't realize they're the same).
3005 * PORTING: Add more details.
3006 * genscripts.sh: Add more tailorability of DATA_ALIGNMENT.
3007
3008 Mon Feb 17 12:04:36 1992 Per Bothner (bothner at cygnus.com)
3009
3010 * Makefile.in, and new files hp300bsd.sh, config/mh-hp300bsd,
3011 config/mt-hp300bsd: New port to hp300 running BSD.
3012
3013 Sat Feb 15 13:59:54 1992 Per Bothner (bothner at cygnus.com)
3014
3015 Major rewrite of how ld is configured. The major idea
3016 is to use shell scripts to generate everything.
3017 * generic.em replaces ldtemplate.
3018 * Other *.em files replace various *.c files.
3019 A *.em file is a shell script that generates the corresponding
3020 ld__*.c file that implements an emulation. This is usually
3021 a straight 'cat' of a here-document, possibly with substitutions.
3022 * Script files (*.sc) are places by *.sc-sh scripts.
3023 Again, these are simple shell scripts that 'cat'
3024 here-documents, usually with some substitutions.
3025 The output a *.sc-sh is a script file.
3026 * Each emulation is defined by a short shell script with
3027 extension *.sh that specifies the emulation-specific
3028 parameters (such as the name of the *.sh-sc and *.em
3029 files to use).
3030 * genscript.sh is the master shell script used to generate
3031 an emulation. It is passed various argument, including
3032 the name a the emulation-speciic *.sh file that it
3033 "sources" to set variables to emulation-specifc parameters.
3034 * config/mt-foo: Changed EMUL=GLDFOO_EMULATION_NAME
3035 to EMUL=foo. (The GLDFOO_EMULATION_NAMEs have bee removed.)
3036 * config/mh-foo: Rename LDEMULATION names as appropriate
3037 (usually 'gldfoo' -> plain 'foo').
3038 * ldwrite.c: Fixed a typo in a comment.
3039 * Makefile.in: Major changes. Removed some the sed
3040 magic to converts scripts, since that is now handled
3041 by genscripts.sh and the *.sc-sh scipt generators.
3042 * config.h: Remove a bunch of macros defining emulations
3043 and targets. This becomes one less file to edit when
3044 adding emulations or targets.
3045 * ldemul.h (struct ld_emulation_xfer_struct): Add
3046 emulation_name and target_name fields.
3047 * ldemul.c, ldemul.h: Define some default functions used
3048 by most emulations (and remove from the *.em scripts).
3049 * ldemul.c (ldemul_choose_target): Search the new
3050 ld_emulations array using a loop (instead of a hardwired
3051 nested if statement).
3052 Define the ld_emulation from the automatically-geenrated
3053 ldemul-list.h. This means you no longer have to edit ldemul.c
3054 to add a new emulation.
3055 * ldmain.c: Replace {GLD,LNK}960_EMULATION_NAME by
3056 their expansions, since the former no longer exist.
3057 * PORTING: A very rough first draft of a porting guide.
3058
3059 * ldgram.y, ldlex.l, lexsup.c: Changes to allow an assignment
3060 to be terminated by a new-line (instead of requiring a semicolon).
3061
3062 Mon Feb 10 16:21:02 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3063
3064 * ldexp.c, ldlang.c: added new idea "abs_output_section", removes
3065 tests for NULL pointers all over the place.
3066 * ldlang.c (lang_process): remember to relocate global symbols
3067 *after* relaxing has done it stuff.
3068
3069 Thu Feb 6 11:40:15 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3070
3071 * config/mt-coff-h8300: use EMUL like everything else
3072 * ldlang.c: (print_padding_statement): print the right address.
3073 * Makefile.in, config.h, ldemul.c: renamed h8300hds to h8300hms
3074
3075
3076 Tue Feb 4 15:28:01 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3077
3078 * ldlex.l: Put pack -noinhibit-exec and -sort-common
3079 * ldlang.c (print_data_statement): print the right address.
3080
3081 Thu Jan 30 17:51:53 1992 Per Bothner (bothner at cygnus.com)
3082
3083 * Makefile.in: The rule for testing ld by re-linking itself
3084 via an intermediate -r link was moved to the ld1 rule
3085 instead of the ld2 rule. This allows ld2 and ld3 to be identical,
3086 which allows the bootstrap rule to work.
3087 * ldctor.c (find_constructors): Don't create a constructor
3088 list if it is already defined (as would happen if ld is
3089 invoked by collect).
3090
3091 Wed Jan 29 08:35:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3092
3093 * config/mh-sparc.h: now uses libgcc.a
3094 * ldmain.c: quit using exit
3095 * *sc: use *(COMMON) rather than [COMMON]
3096 * ldlex.l, lexsup.c: much thinking moved from .l and put into .c,
3097 to allow preprocessing of .l file.
3098 * Makefile.in: New ldlex.l mangling
3099 * ldexp.c (fold_binary): perform expressions with % and / in
3100 integer.
3101 * ldfile.c (open_a): open archives on VMS in a special way
3102
3103
3104 Tue Jan 28 10:18:16 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3105
3106 * ldgram.y: map -M behave in the same way as -Map (sets file name
3107 to be "-".
3108 * ldsym.c, ldlang.c: remember that size of a section is dependent on
3109 whether or not relaxing has been done.
3110 * ldmain.c: don't open a map file if it doesn't have a name
3111 * relax.c: all the brains have moved into bfd.
3112 * ldwrite.c: ammend comment
3113
3114 Fri Jan 24 14:23:46 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3115
3116 * Makefile.in: added relax, also made three stage go through a
3117 partial link stage.
3118 * relax.c : added
3119 * config.h: if GNU960 defined, then default emulation mode is
3120 GLD960
3121 * ldexp.h, ldexp.c: map to file hooks
3122 * ldlang.c: map to file hooks
3123 * ldgram.y: added -Map -relax
3124 * ldlex.l: added -relax, -Map
3125 * ldmain.c: open map file
3126 * ldmisc.c: support for map file
3127 * ldwrite.c: new relax magic
3128
3129 Thu Dec 19 18:49:51 1991 John Gilmore (gnu at cygnus.com)
3130
3131 * Makefile.in, config/tm-*.h: Clean up make output, only
3132 pass DEFAULT_EMULATION to ldmain.c.
3133
3134 Wed Dec 18 15:02:47 1991 Per Bothner (bothner at cygnus.com)
3135
3136 * ldver.c: Bump to version 1.94.
3137
3138 Tue Dec 10 04:07:23 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3139
3140 * Makefile.in: infodir belongs in datadir.
3141
3142 Mon Dec 9 16:26:43 1991 Per Bothner (bothner at cygnus.com)
3143
3144 * Makefile.in: Pass -y to bison. (Again;
3145 accidentally deleted by Rich.)
3146 * news.sc, ldgld68k.sc: Define __end as well as _end.
3147
3148 Sat Dec 7 17:19:26 1991 Steve Chamberlain (sac at rtl.cygnus.com)
3149
3150 * ldindr.h: added to contain prototypes of ldindr.c
3151 * ldfile.c: include ctype.h
3152 * ldmain.c: include the requried prototype headers
3153 * ldwrite.c: get_reloc_upper_bound has been renamed
3154 bfd_get_reloc_upper_bound
3155
3156 Fri Dec 6 23:29:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3157
3158 * Makefile.in: punt "fundamental" mode because it breaks my emacs
3159 macros. install using INSTALL_PROGRAM and INSTALL_DATA. remove
3160 spaces following hyphens, bsd make can't cope. added
3161 standards.text support and made it look like all the other
3162 makefiles.
3163
3164 * configure.in: configure now runs entirely in objdir so make file
3165 existence checks against ${srcdir}. Mark this directory as
3166 target dependent.
3167
3168 Thu Dec 5 22:46:16 1991 K. Richard Pixley (rich at rtl.cygnus.com)
3169
3170 * Makefile.in: idestdir and ddestdir go away. Added copyrights
3171 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
3172 and mandir now keyed off datadir by default.
3173
3174 Wed Dec 4 23:36:55 1991 Per Bothner (bothner at cygnus.com)
3175
3176 * ldver.c: Bumped version to 1.93.
3177 * Makefile.in: Pass -y to bison.
3178
3179 Mon Nov 25 18:28:40 1991 Steve Chamberlain (sac at cygnus.com)
3180
3181 * config.h: h8 is now coff, not ieee
3182 * h8300hds.sc: reflect the same
3183
3184 Thu Nov 14 19:55:09 1991 Per Bothner (bothner at cygnus.com)
3185
3186 * ldver.c (ldversion()): Update to 1.92.
3187 * ldctor.c: There are two places constructor sets
3188 can be defined. One of them checked for an existing
3189 duplicate, the other didn't. Unfortunately, the latter
3190 was called after the former ...
3191 So, factor out code for inserting a new element into
3192 constructor_name_list (after checking for a duplicate)
3193 into a new function add_constructor_name, and call
3194 it from both aforementioned places (ldlang_add_constructor
3195 and ldlang_check_for_constructors).
3196
3197 Wed Nov 13 15:17:43 1991 Per Bothner (bothner at cygnus.com)
3198
3199 * Makefile.in: Rename .c files generated from ldtemplate
3200 to have names starting with ld__. This helps 'make clean'.
3201
3202 Tue Nov 12 18:36:50 1991 Steve Chamberlain (sac at cygnus.com)
3203
3204 * Makefile.in: Take out the version number for install
3205 * m88kbcs.sc: put in contructor blocks.
3206
3207 Mon Nov 11 18:47:33 1991 Per Bothner (bothner at cygnus.com)
3208
3209 * ldmisc.c, ldmisc.h: Re-write info() to take a filename
3210 parameter, a format, and an arg pointer, and rename it to
3211 vfinfo(). Write info() in terms of new vfinfo().
3212 New einfo() is the same as info(), except it writes to stderr.
3213 * ldemul.c, ldexp.c, ldlang.c, ldlnk960.c, ldmain.c, ldwrite.c,
3214 ldmisc.c: Replace "error" calls to info() by new einfo().
3215
3216 Mon Nov 11 09:57:32 1991 Steve Chamberlain (steve at cygnus.com)
3217
3218 * ldlex.l ldgram.y: made -V option do same as -v
3219 * Makefile.in: Added $(MINUS_G) flag so debugging can be
3220 turned off
3221
3222 Sun Nov 3 16:37:37 1991 Steve Chamberlain (steve at cygnus.com)
3223 i386 aout changes from Bob Kukura
3224 * Makefile.in, config.h: added i386aout support
3225 * configure.in: fixed /h-{myhost} typo
3226 * ldgram.y: -MM now gives more boring map.
3227 * ldlang.c: now does D_PAGED flag the right way.
3228 * ldsym.c: -MM flags does the right thing.
3229
3230 Sun Nov 3 15:00:03 1991 Per Bothner (bothner at cygnus.com)
3231
3232 * configure.in: Fixed typo. Also, a fix for hp300bsd.
3233 * ldlang.c (init_os): Compensate for BFD change,
3234 where bfd_make_section now returns NULL for a duplicate
3235 section request, instead of the old section.
3236
3237 Thu Oct 17 15:27:13 1991 Per Bothner (bothner at cygnus.com)
3238
3239 * ldver.c: Bump to version 1.91 (consistent with binutils).
3240
3241 Wed Oct 16 12:27:08 1991 Per Bothner (bothner at cygnus.com)
3242
3243 * Makefile.in, config.h, ld.h, ldemul.c, ldexp.c, ldexp.h,
3244 ldgram.y, ldlex.l, ldlnk960.c, ldmain.c, ldmisc.c, ldmisc.h,
3245 ldsym.c, ldsym.h, ldtemplate, ldvanilla.c, ldver.c, ldver.h,
3246 ldwarn.c, ldwarn.h, ldwrite.c, ldwrite.h, mkscript.c:
3247 Add or update copyright notices.
3248
3249 Mon Oct 14 23:55:27 1991 Per Bothner (bothner at cygnus.com)
3250
3251 * README: New file.
3252 * Makefile.in: Changed installation directory name scheme
3253 to be consistent with gcc. Also changed 'install'.
3254
3255 Mon Oct 14 17:30:02 1991 Roland H. Pesch (pesch at cygnus.com)
3256
3257 * Makefile.in: new targets ld.mm, ld.me
3258
3259 Mon Oct 14 17:27:24 1991 Per Bothner (bothner at cygnus.com)
3260
3261 * Makefile.in, ldtemplate: Need to use separate scripts
3262 for -n and -N options. Yet more complication.
3263
3264 Fri Oct 11 22:40:46 1991 John Gilmore (gnu at cygnus.com)
3265
3266 * Makefile.in: Avoid using $< in explicit Make rules (it doesn't
3267 work). Add some lines to avoid Sun Make VPATH bugs.
3268
3269 Fri Oct 11 16:42:22 1991 Per Bothner (bothner at cygnus.com)
3270
3271 * news.sc: Add alignment for data segment.
3272 * ldtemplate: Add (yet another) script to get for -n or -N
3273 options. (These need different alignment than ZMAGIC files.)
3274 * Makefile.in: Add stuff for new foo.xn scripts.
3275 These are generated by replacing "ALIGN(0x...00)" by ".".
3276
3277 Fri Oct 11 15:43:04 1991 Roland H. Pesch (pesch at cygnus.com)
3278
3279 * Makefile.in: new targets ld.ms, ld-index.ms
3280 ld.texinfo: remove tabs, other cleanups for texi2roff
3281
3282 Fri Oct 11 13:51:54 1991 Per Bothner (bothner at cygnus.com)
3283
3284 * ldmain.c (main): Make config.magic_demand_paged be true
3285 by default. Don't the WP_TEXT and D_PAGED flags of
3286 output_bfd here; it's too late, so set it when output_bfd
3287 is created (in ldlang.c). Also fix setting of EXEC_P flag
3288 * ldlang.c (ldlang_open_output): Set output_bfd->flags here.
3289 * ldlang.c: Remove some duplicate extern declarations.
3290 * ldgram.y: Fixes to -N and -n options.
3291 * Makefile.in: Recognize upper case letters in sed script
3292 to remove assignments from script files.
3293 * ldtemplate: Don't assukme that -N or -n options
3294 imply use of -r script.
3295 * mkscript.c: Tweaking to correctly handle \n and \\ in input.
3296
3297 Fri Oct 11 10:29:27 1991 Steve Chamberlain (steve at cygnus.com)
3298
3299 * ldtemplate: include bfd.h before sysdep.h.
3300
3301 Fri Oct 11 04:24:45 1991 John Gilmore (gnu at cygnus.com)
3302
3303 Restructure configuration scheme for bfd, binutils, ld.
3304
3305 * include/sys/h-*.h: Move to bfd/hosts/h-*.h.
3306 * configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
3307 Change some config names to match other dirs.
3308 * *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
3309 get defined first.
3310 * config/: Rename some config files to match up h-*.h names.
3311 Remove all the HOST_SYS definitions from the config files.
3312
3313 Tue Oct 8 16:00:57 1991 Per Bothner (bothner at cygnus.com)
3314
3315 * ldexp.h, ldlang.h: Change enum boolean -> enum bfd_boolean.
3316 * ldtemplate: Remove ldfile_add_library_path calls;
3317 just use the SEARCH_DIR commands in the script files.
3318 * Makefile.in: Add LIB_PATH macro, which if set is used to replace
3319 the SEARCH_DIR commands in the scripts (using ugly sed magic).
3320 This is primarily intended for cross-linking, where you would
3321 place libaries in a different place than native libraries.
3322 Also, emulations made from ldtemplate now use $(srcdir).
3323 * ldglda29k.sc: Change SEARCH_DIR commands to a conventional
3324 form; people can use the Makefile's LIB_PATH to override.
3325
3326 Tue Oct 8 14:51:21 1991 Roland H. Pesch (pesch at cygnus.com)
3327
3328 * Makefile.in: fix target ld.dvi, add target ld.info
3329 ld.texinfo: make info filename ld.info
3330
3331 Fri Oct 4 21:51:58 1991 John Gilmore (gnu at cygnus.com)
3332
3333 * Makefile.in: Avoid using $< in non-suffix rules (breaks on Sun
3334 Make).
3335 * ldfile.c, ldlang.c, ldmain.c, ldwrite.c: Cope with renames of a
3336 few BFD types & enums.
3337
3338 \f
3339 Local Variables:
3340 mode: indented-text
3341 left-margin: 8
3342 fill-column: 74
3343 version-control: never
3344 End:
This page took 0.103315 seconds and 4 git commands to generate.