]> Git Repo - binutils.git/blame - bfd/ChangeLog
* configure.host: Use ${srcdir} when looking for picfrag.
[binutils.git] / bfd / ChangeLog
CommitLineData
f1b45745
ILT
1Tue Apr 9 11:44:21 1996 Ian Lance Taylor <[email protected]>
2
f400f358
ILT
3 * configure.host: Use ${srcdir} when looking for picfrag.
4
3d9a5986
ILT
5 * configure.host: Switch on ${libdir}, not $(libdir). From
6 [email protected] (Alan Modra).
7
f1b45745
ILT
8 * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
9 entry point, not just for DYNAMIC objects.
10 * sunos.c (sunos_add_dynamic_symbols): Always call
11 sunos_create_dynamic_sections. If called with a non DYNAMIC
12 object, don't do anything else.
13 (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
14
6f21f2e3
ILT
15Mon Apr 8 12:09:36 1996 Ian Lance Taylor <[email protected]>
16
639b5a09
ILT
17 * configure.in: Permit --enable-shared to specify a list of
18 directories.
19 * configure: Rebuild.
20
6f21f2e3
ILT
21 * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
22 host when configuring with --enable-shard.
23
3f5f565b
ILT
24Fri Apr 5 12:24:13 1996 Ian Lance Taylor <[email protected]>
25
1ac75f5c
ILT
26 * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
27 <[email protected]>.
28
1a9951a9
ILT
29 * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
30 to avoid crashing in bfd_hash_replace.
31
f1ac3acb 32 * sysdep.h: Use #ifdef, not #if.
3f5f565b 33
eb5f58e0
ILT
34Thu Apr 4 23:32:23 1996 Ian Lance Taylor <[email protected]>
35
36 * config.in: Rebuild.
37
ab1aa5cd
FF
38Thu Apr 4 18:49:09 1996 Fred Fish <[email protected]>
39
40 * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
41 (AC_CHECK_HEADERS): Check for sys/time.h
42 (AC_HEADER_TIME): Add macro.
43 * configure: Rebuild.
44 * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
45 to control what combination of <time> and <sys/time.h>
46 get included.
47
d1f74cd2
DE
48Tue Apr 2 13:11:53 1996 Doug Evans <[email protected]>
49
50 * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
51 (aout_32_sunos4_write_object_contents): Likewise.
52 * aoutx.h (NAME(aout,machine_type)): Handle
53 bfd_mach_sparc_{sparclet,sparclite}.
54 * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
55 (bfd_mach_sparc_v9_p): Update.
56 * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
57 * libaout.h (enum machine_type): Add M_SPARCLET.
58 * sunos.c (MACHTYPE_OK): Define.
59 * bfd-in2.h: Regenerated.
60
1dad72bd
ILT
61Tue Apr 2 00:33:18 1996 Ian Lance Taylor <[email protected]>
62
19bfbcbe
ILT
63 * elf-bfd.h (struct elf_link_hash_table): Add hgot field.
64 * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
65 * elflink.c (_bfd_elf_create_got_section): Store the
66 _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
67 * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
68 global offset table goes over 0x1000, set the value of
69 _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
70 (elf32_sparc_relocate_section): Subtract the offset of
71 _GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
72
1dad72bd
ILT
73 * elfcode.h: Don't include <string.h>.
74
ca4e2190
JL
75Mon Apr 1 10:39:24 1996 Jeffrey A Law ([email protected])
76
77 * linker.c (_bfd_generic_link_hash_newfunc): Renamed from
78 generic_link_hash_newfunc. All references changed.
79 * genlink.h (_bfd_generic_link_hash_newfunc): Declaration
80 moved here from libbfd-in.h.
81 * libbfd-in.h: Corresponding changes.
82 * libbfd.h: Regenerated.
83
ce6a7731
ILT
84Mon Apr 1 12:35:36 1996 Ian Lance Taylor <[email protected]>
85
aad53b0d
ILT
86 * aoutx.h (aout_link_input_section_std): When reporting an
87 overflow error, use the name of the symbol in the hash table if
88 available.
89 (aout_link_input_section_ext): Likewise.
90
ce6a7731
ILT
91 * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
92 defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
93
323b430f
SC
94Sun Mar 31 01:58:41 1996 steve chamberlain <[email protected]>
95
96 * peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
97 * coffcode.h (coff_compute_section_file_positions): Likewise.
98 (coff_write_object_contents): Likewise.
99
7fc1cd16
ILT
100Fri Mar 29 12:44:36 1996 Ian Lance Taylor <[email protected]>
101
5a28331f
ILT
102 * section.c (SEC_LINK_ONCE): Define.
103 (SEC_LINK_DUPLICATES): Define.
104 (SEC_LINK_DUPLICATES_DISCARD): Define.
105 (SEC_LINK_DUPLICATES_ONE_ONLY): Define.
106 (SEC_LINK_DUPLICATES_SAME_SIZE): Define.
107 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
108 * bfd-in2.h: Rebuild.
109 * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
110 SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
111 (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
112 into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set
113 SEC_LINK_ONCE, and look through the symbol table for the setting
114 for SEC_LINK_DUPLICATES.
115 (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
116 set for a section, find the section symbol in the symbol table,
117 and set the aux entry based on SEC_LINK_DUPLICATES.
118 * coffgen.c (coff_print_symbol): Add a space before "checksum".
119 * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
120 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
121 * coff-i386.c (i386coff_vec): Likewise.
122 * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
123
7fc1cd16
ILT
124 * VERSION: Bump to 2.6.1.
125 * Makefile.in (stamp-h): Depend upon VERSION.
126
9399a257
JL
127Thu Mar 28 23:48:49 1996 Jeffrey A Law ([email protected])
128
129 * libbfd-in.h (generic_link_hash_newfunc): Add declaration.
130 * libbfd.h: Rebuilt.
131 * linker.c (generic_link_hash_newfunc): No longer static.
132 * coffcode.h (coff_bfd_link_hash_create): Allow specific targets
133 to override.
134 * coff-h8300.c: Add two derived hash tables and their associated
135 funtions and #defines for use by the h8300 linker.
136 (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
137 the function vector as needed. Place the address of the function
138 vector entry in the location specified by the R_MEM_INDIRECT reloc.
139 Rewrite the vectors section contents as necessary.
140 (h8300_bfd_link_add_symbols): New function for the h8300 linker.
141 (coff_bfd_link_add_symbols): Define to use h8300 specific version.
142 (coff_bfd_link_hash_table_create): Likewise.
143
506f2bb4
ILT
144Thu Mar 28 17:44:08 1996 Ian Lance Taylor <[email protected]>
145
146 * libhppa.h: If gcc 2.7 or higher, declare all the functions with
147 __attribute__ ((__unused__)) so that -Wall doesn't warn about
148 them.
149 (hppa_rebuild_insn): Pass pointer to correct type to
150 low_sign_unext and dis_assemble_21.
151
05a84ae1
DE
152Thu Mar 28 11:00:36 1996 Doug Evans <[email protected]>
153
154 * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
155 Stick with sparc-*-{sysv4*,solaris2*}.
156
919cf4b5
ILT
157Wed Mar 27 10:43:34 1996 Ian Lance Taylor <[email protected]>
158
8230f31c
ILT
159 * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
160 (coff_swap_aux_out): Swap out extra PE x_scn fields.
161 * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
162 * coffgen.c (coff_print_symbol): If any of the extra PE x_scn
163 fields is non-zero, print them.
164
9addd1d4
ILT
165 * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
166 ifdef. Remove unused variables.
167 (ppc_record_data_in_toc_entry): Ifdef out. Removed unused
168 variables.
169 (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
170 (get_symbol_value): Ifdef out.
171 (pe_ppc_reloc): Ifdef out. Remove unused variables.
172 (coff_ppc_relocate_section): Remove unused variables. Make
173 fprintf strings and argument types correspond. Put before_addr in
174 DEBUG_RELOC ifdef.
ff0e4a93
ILT
175 (dump_toc): Make fprintf strings and argument types correspond.
176 (ppc_process_before_allocation): Remove unused variables. Always
177 return a value.
9addd1d4
ILT
178 (ppc_reflo_reloc): Ifdef out.
179 (ppc_addr32nb_reloc): Ifdef out.
180 (ppc_coff_rtype2howto): Make fprintf strings and argument types
181 correspond.
182 (coff_ppc_rtype_to_howto): Likewise.
183 (ppc_coff_swap_sym_in_hook): Remove unused variables.
184
185 * peicode.h (pe_print_idata): Move otherwise unused variables into
186 the #ifdef where they are used. Always return a value.
ff0e4a93
ILT
187 (pe_print_edata): Make fprintf strings and argument types
188 correspond. Always return a value.
9addd1d4
ILT
189 (pe_print_pdata): Removed unused variable addr_value. Always
190 return a value.
191 (pe_print_reloc): Remove unused variable onaline. Make fprintf
ff0e4a93 192 strings and argument types correspond. Always return a value.
9addd1d4
ILT
193
194 * elf32-ppc.c (ppc_elf_fake_sections): Return true.
195 (ppc_elf_finish_dynamic_symbol): Move definition of unused
196 variable rela inside #if 0 section where it is used.
197
c877bdf1
ILT
198 * ns32k.h: New file.
199 * cpu-ns32k.h: Include ns32k.h. Rename externally visible
200 functions to start with _bfd_.
201 * aout-ns32k.c: Include ns32k.h. Change references to renamed
202 functions in cpu-ns32k.h.
203 * Makefile.in: Rebuild dependencies.
204 (HFILES): Add ns32k.h.
205
ff0e4a93
ILT
206 * section.c (struct sec): Add linker_mark field. Change
207 user_set_vma and reloc_done to be single bit fields.
208 (STD_SECTION): Update accordingly.
7ec49f91
ILT
209 * bfd-in2.h: Rebuild.
210 * aoutx.h (NAME(aout,final_link)): Mark sections included in the
211 link.
212 (aout_link_input_bfd): Don't link unmarked sections.
213 * cofflink.c (_bfd_coff_final_link): Mark sections included in the
214 link.
215 (_bfd_coff_link_input_bfd): Don't link unmarked sections.
216 * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
217 the link.
218 * elflink.h (elf_bfd_final_link): Mark sections included in the
219 link.
220 (elf_link_input_bfd): Don't link unmarked sections.
221 * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
222 in the link.
223 (xcoff_link_input_bfd): Don't link unmarked sections.
224
919cf4b5
ILT
225 * coffswap.h (coff_swap_scnhdr_out): Include section name in
226 overflow error messages.
227
986cf3b8
ILT
228Tue Mar 26 15:46:18 1996 Ian Lance Taylor <[email protected]>
229
fd681dcd
ILT
230 * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
231 is not set, print "BFD: " before the error message.
232
986cf3b8
ILT
233 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
234 Miles Bader <[email protected]>.
235 * configure: Rebuild.
236
3998d526
ILT
237Fri Mar 22 12:17:00 1996 Ian Lance Taylor <[email protected]>
238
c3dffbd7
ILT
239 * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
240 symbols.
241
3998d526
ILT
242 * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
243 m68k-aout, m68k-coff, and m68k-elf targets.
244
e4d27380
ILT
245Fri Mar 22 11:33:44 1996 Martin Anantharaman <[email protected]>
246
247 * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
248 (ieee_generic_stat_arch_elt): Restructured to prevent
249 ieee_object_p from being called repeatedly.
250
51776a11
SC
251Thu Mar 21 11:00:47 1996 steve chamberlain <[email protected]>
252
253 * coffcode.h (coff_write_object_contents): Allocate
254 buffers large enough for any FILEHDR or AOUTHDR.
255
256Thu Mar 21 16:28:17 1996 David Mosberger-Tang <[email protected]>
257
258 * ecofflink.c (lookup_line): New static function, renamed and
259 slighly changed from old _bfd_ecoff_locate_line.
260 (_bfd_ecoff_locate_line): Cache line number information. Use
261 lookup_line for actual lookup.
262
9e4ebb1b
MM
263Thu Mar 21 14:59:11 1996 Michael Meissner <[email protected]>
264
265 * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
266 multiple of 20 bytes.
267
9e7427a4
ILT
268Thu Mar 21 13:54:40 1996 Ian Lance Taylor <[email protected]>
269
51776a11
SC
270 * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
271 allocate ecoff_find_line, and don't initialize by hand.
272 * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
273 mips_elf_find_line, and don't call memset.
274
9e7427a4
ILT
275 * coffcode.h (coff_compute_section_file_positions): If not
276 producing a final executable, don't consider sofar when aligning
277 the section to the correct size.
278
279Wed Mar 20 16:53:12 1996 Ian Lance Taylor <[email protected]>
280
281 * coffcode.h (coff_add_missing_symbols): Ifdef out.
282 (coff_write_object_contents): Don't call coff_add_missing_symbols.
283 * coffgen.c (coff_section_symbol): Ifdef out.
284
e7f9ba4f
ILT
285Mon Mar 18 12:54:41 1996 Ian Lance Taylor <[email protected]>
286
287 * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
288 output_bfd is not NULL.
289
34c4d647
DE
290Thu Mar 14 17:12:06 1996 Doug Evans <[email protected]>
291
292 * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
293 of bfd_alloc (fixes fix_line not being initialized).
294 Delete zeroing of fix_{value,tag,end,scnlen} fields.
295
4e054247
JL
296Thu Mar 14 16:06:06 1996 Jeffrey A Law ([email protected])
297
57289b5c
JL
298 * coffcode.h: Allow specific backends to override the
299 bfd_link_add_symbols routine.
300
4e054247
JL
301 * coff-h8300.c: Include genlink.h.
302 (howto_table): Add R_MEM_INDIRECT.
303 (rtype2howto): Support R_MEM_INDIRECT.
304 (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
305 for now.
306
a10d3dec
ILT
307Tue Mar 12 12:41:17 1996 David Mosberger-Tang <[email protected]>
308
309 * coff-alpha.c (alpha_relocate_section): Use
310 info->callbacks_warning, rather than _bfd_error_handler, for
311 "multiple gp" warning.
312
ea2488ad
ILT
313Tue Mar 12 12:10:55 1996 Ian Lance Taylor <[email protected]>
314
8881b321
ILT
315 * linker.c (bfd_wrapped_link_hash_lookup): New function.
316 (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
317 table string. Use bfd_wrapped_link_hash_lookup.
318 (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
319 table string.
320 * aoutx.h (aout_link_write_symbols): Use the name from the hash
321 table, if any, when writing out symbols.
322 (aout_link_input_section_std): Use the name from the hash table,
323 if any, when reporting undefined symbols.
324 (aout_link_input_section_ext): Likewise.
325 (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
326 * bout.c (get_value): Likewise.
327 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
328 * ecoff.c (ecoff_reloc_link_order): Likewise.
329 * elflink.h (elf_link_add_object_symbols): Likewise.
330 (elf_reloc_link_order): Likewise.
331 * linker.c (_bfd_generic_link_output_symbols): Likewise.
332 (_bfd_generic_reloc_link_order): Likewise.
333 (default_indirect_link_order): Likewise.
334 * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
335 * sunos.c (sunos_add_one_symbol): Likewise.
336 * xcofflink.c (xcoff_link_add_symbols): Likewise.
337 (bfd_xcoff_link_count_reloc): Likewise.
338 (xcoff_reloc_link_order): Likewise.
339
340 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
341 into -1 for intern->rss.
342
ea2488ad
ILT
343 * configure: Rebuild with autoconf 2.8.
344
c189fdfb
ILT
345Mon Mar 11 12:28:31 1996 Ian Lance Taylor <[email protected]>
346
347 * stab-syms.c (__define_stab_duplicate): Define.
348 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
349 switch.
350 * bfd-in.h (bfd_get_stab_name): Declare.
351 * bfd-in2.h: Rebuild.
352 * Makefile.in: Rebuild dependencies.
353 (BFD_LIBS): Add stab-syms.o.
354 (BFD_LIBS_CFILES): Add stab-syms.c.
355 (BFD32_BACKENDS): Remove stab-syms.o.
356 (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
357 * configure.in: Don't list stab-syms.o in bfd_backends.
358 * configure: Rebuild.
359 * libaout.h (aout_stab_name): Don't declare.
360 * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
361 not aout_stab_name.
362
363Fri Mar 8 11:26:20 1996 Ian Lance Taylor <[email protected]>
364
365 * elf.c (assign_file_positions_for_segments): Adjust file offset
366 for section alignment even if SEC_LOAD is not set.
367
c5bde1ef
ILT
368Tue Mar 5 12:02:23 1996 Ian Lance Taylor <[email protected]>
369
8f218e05
ILT
370 * configure.in: Don't set SHLIB or SHLINK to an empty string,
371 since they appear as targets in Makefile.in.
372 * configure: Rebuild.
373
c5bde1ef
ILT
374 * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
375 don't fiddle with a symbol which is not defined anywhere.
376
cb84f028
ILT
377Mon Mar 4 12:49:16 1996 Ian Lance Taylor <[email protected]>
378
4e59f523
ILT
379 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
380 though they are defined in a shared library.
381 (xcoff_build_ldsyms): Likewise.
382
ea2504d5
ILT
383 * coffgen.c (coff_find_nearest_line): Don't look at the line
384 numbers for the section if section->lineno is NULL.
385
cb84f028
ILT
386 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
387 message rather than calling BFD_ASSERT.
388 * elfcode.h (write_relocs): Check return value of
389 _bfd_elf_symbol_from_bfd_symbol.
390
6e036cf7
MM
391Fri Mar 1 09:42:59 1996 Michael Meissner <[email protected]>
392
393 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
394 for .sbss section.
395
d08435de
JL
396Wed Feb 28 11:25:47 1996 Jeffrey A Law ([email protected])
397
398 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
399 and R_HPPA_NLRSEL.
400 (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
401 hppa_reloc_field_selector_type_alt.
402 (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
403 * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
404 selectors.
405 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
406
09609415
ILT
407Wed Feb 28 11:00:24 1996 Ian Lance Taylor <[email protected]>
408
409 * elf.c (assign_file_positions_for_segments): Adjust the segment
410 memory size for the alignment of a SEC_ALLOC section, not just a
411 SEC_LOAD section.
412
55626bf0
ILT
413Tue Feb 27 14:17:31 1996 Andreas Schwab <[email protected]>
414
415 * m68klinux.c: New file.
416 * hosts/m68klinux.h: New file.
417 * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
418 * configure.in (m68*-*-linux*): New native host.
419 (m68klinux_vec): New vector.
420 * configure: Rebuild.
421 * targets.c (m68klinux_vec): Declare.
422 * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
423 bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
424 * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
425 declaration from bfd_linux_size_dynamic_sections.
426 (bfd_m68klinux_size_dynamic_sections): Declare.
427 * bfd-in2.h: Rebuild.
428 * Makefile.in: Rebuild dependencies.
429 (BFD32_BACKENDS): Add m68klinux.o.
430 (BFD32_BACKENDS_CFILES): Add m68klinux.c.
431
6c7b3090
JL
432Tue Feb 27 11:31:34 1996 Jeffrey A Law ([email protected])
433
434 * libhppa.h (pa_arch): Add pa20.
435 (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
436 (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
437 (hppa_field_adjust): Handle e_nsel.
438 * som.c: Provide default definitions for many new relocs found only
439 in hpux10 include files.
440 (som_fixup_formats): Add several new relocs from hpux10.
441 (som_hppa_howto_table): Add hpux10 relocs.
442 (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
443
14fd4616
SS
444Mon Feb 26 12:52:48 1996 Stan Shebs <[email protected]>
445
446 * mpw-make.sed: Edit out recent shared library support, and
447 rules to rebuild .h files using doc/chew.
448
3d9f042c
ILT
449Mon Feb 26 14:48:39 1996 David Mosberger-Tang <[email protected]>
450
451 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
452 size even of sections with no contents.
453
bdec6228
ILT
454Mon Feb 26 14:01:13 1996 Ian Lance Taylor <[email protected]>
455
88358469
ILT
456 * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
457 starting with '$' the way we skip names starting with '.'. When
458 updating x_endndx, don't be fooled by an index which has been
459 merged.
460
bdec6228
ILT
461 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
462 struct/union/enum type with no elements.
463
053ae1d7
ILT
464Sat Feb 24 11:38:58 1996 Ian Lance Taylor <[email protected]>
465
15f4406c
ILT
466 * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
467
c8435133
ILT
468 * archive.c (bfd_generic_archive_p): If the first file in the
469 archive can not be recognized as an object, don't assume that this
470 is the wrong format.
471
053ae1d7
ILT
472 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
473 format is not bfd_object.
474 (bfd_elf_get_dt_soname): Likewise.
475
ea74d979
ILT
476Wed Feb 21 13:58:04 1996 Ian Lance Taylor <[email protected]>
477
478 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
479 reloc.
480
871a3f3b
C
481Tue Feb 20 16:22:44 1996 J.T. Conklin <[email protected]>
482
483 * bfd.c (tdata): Add netbsd_core_data.
484 * bfd-in2.h: Regenerated.
485
486Tue Feb 20 16:50:02 1996 Ian Lance Taylor <[email protected]>
487
fe6fc35f
ILT
488 * sunos.c (SUNOS_CONSTRUCTOR): Define.
489 (sunos_add_one_symbol): Don't let a symbol from a dynamic object
490 override a constructor symbol. Set SUNOS_CONSTRUCTOR when
491 appropriate.
492
871a3f3b
C
493 * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
494 to get the symbol index, matching 14 Jul 95 change.
495
d3785301
FF
496Tue Feb 20 08:26:27 1996 Fred Fish <[email protected]>
497
498 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
499 Remove duplicate definition of gp.
500
60a49e7f
ILT
501Mon Feb 19 12:37:41 1996 Ian Lance Taylor <[email protected]>
502
81bdcecf
ILT
503 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
504 assume that we can set the GP value and then get the same value,
505 since it won't be true if the output file is neither ELF nor
506 ECOFF.
507 * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
508 _bfd_get_gp_value here.
509 (mips_gprel_reloc): Don't assume we can set and get the GP value.
510 * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
511 mips_elf_final_gp.
512 (mips_elf_lo16_reloc): Likewise.
513 (mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
514 Don't require that the BFD be ELF.
515 (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
516 (mips_elf_gprel32_reloc): Likewise.
517 (mips_elf_relocate_section): Don't assume we can set and get the
518 GP value.
519 (mips_elf_finish_dynamic_symbol): Don't bother to use
520 _bfd_get_gp_value here.
521
522 * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
523 Don't change epdr between malloc and free. Be careful not to free
524 NULL pointers. Zero out the first RPDR.
525
7b61165a
ILT
526 * configure.host: On Linux, only pass -rpath option if $(libdir)
527 is neither /lib nor /usr/lib. From Alan Modra
528 <[email protected]>.
529
60a49e7f
ILT
530 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
531 dt_name.
532 (elf_dt_name): Rename from elf_dt_needed_name.
533 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
534 elf_dt_needed_name.
535 (bfd_elf_get_dt_soname): New function.
536 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
537 elf_dt_needed_name. Save the SONAME back in elf_dt_name.
538 * bfd-in.h (bfd_elf_get_dt_soname): Declare.
539 * bfd-in2.h: Rebuild.
540
b268e261
DE
541Mon Feb 19 02:50:23 1996 Doug Evans <[email protected]>
542
543 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
544 _bfd_sparc_elf_reloc_type_lookup.
545 (bfd_elf32_bfd_reloc_type_lookup): Update.
546 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
547 (sparc64_elf_howto_table): Define.
548 (sparc_reloc_map): Define.
549 (sparc64_elf_reloc_type_lookup): New function.
550 (sparc_elf_wdisp16_reloc): New function.
551 (elf_info_to_howto): Use sparc64_elf_howto_table.
552 (sparc64_elf_relocate_section): Likewise.
553 (bfd_elf64_bfd_reloc_type_lookup): Update.
554
9e2ef098
ILT
555Sun Feb 18 15:02:25 1996 Ian Lance Taylor <[email protected]>
556
557 * configure.host: Check for 'do not mix' from native linker before
558 trying to use -rpath.
559
4c70373f
ILT
560Fri Feb 16 12:46:18 1996 Ian Lance Taylor <[email protected]>
561
cba3f8a9
ILT
562 * bfd.c (_bfd_get_gp_value): New function.
563 (_bfd_set_gp_value): New function.
564 * libbfd-in.h (_bfd_get_gp_value): Declare.
565 (_bfd_set_gp_value): Declare.
566 * libbfd.h: Rebuild.
567 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
568 _bfd_get_gp_value and _bfd_set_gp_value rather than referring
569 directly to the fields in the tdata information.
570 (alpha_relocate_section): Likewise.
571 * coff-mips.c (mips_adjust_reloc_in): Likewise.
572 (mips_gprel_reloc): Likewise.
573 (mips_relocate_section): Likewise.
574 * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
575 (mips_elf_lo16_reloc): Likewise.
576 (mips_elf_final_gp): Likewise.
577 (mips_elf_gprel16_reloc): Likewise.
578 (mips_elf_gprel32_reloc): Likewise.
579 (mips_elf_relocate_section): Likewise.
580 (mips_elf_finish_dynamic_symbol): Likewise.
581
4c70373f
ILT
582 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
583
a0a2dd54
ILT
584Thu Feb 15 11:29:13 1996 Ian Lance Taylor <[email protected]>
585
f54c7482 586 * configure.in: Call AC_PROG_CC before configure.host.
65eed095
ILT
587 * configure: Rebuild.
588 * configure.host: Don't set information which autoconf should
589 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
65eed095 590
14293419
ILT
591 * configure.host: Remove go32 and win32 host information, since it
592 should no longer be needed.
593
edf3fe48
ILT
594 * elf.c (map_sections_to_segments): If we have a .dynamic section,
595 then start a new segment rather than put a writable section in a
596 readonly segment.
597
b5e4f369
ILT
598 * configure.host: Set RPATH_ENVVAR.
599
f2e33e27
ILT
600 * Makefile.in: Rebuild dependencies.
601
a0a2dd54
ILT
602 * elflink.c (_bfd_elf_create_linker_section): Remove unused
603 zero_section variable.
604
52c6bc4d
ILT
605Thu Feb 15 10:39:17 1996 H.J. Lu <[email protected]>
606
607 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
608 ($(srcdir)/libbfd.h): Rename from libbfd.h.
609 ($(srcdir)/libcoff.h): Rename from libcoff.h.
610
c9e5279f
ILT
611Wed Feb 14 16:29:07 1996 Martin Anantharaman <[email protected]>
612
cb50baea
ILT
613 * ieee.c (ieee_write_expression): Only use an R variable for a
614 local symbol. Don't output a zero offset. Handle a zero address.
615 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
616 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
617 PCREL_OFFSET.
618 (parse_expression): Don't try to handle multiple occurrences of a
619 P variable. Handle I variables differently from X variables. Fix
620 the order of minus expressions.
621 (ieee_slurp_external_symbols): Generate an I variable for an NN
622 record. Fix handling of ATI and ATX records.
623 (ieee_slurp_sections): Only set minimal section attributes.
624 Adjust them later, based on the section contents.
625 (ieee_object_p): Read in the file until just after the ME record.
626 Call ieee_slurp_section_data to set the section flags.
627 (do_one): Add iterations parameter. Only repeat the first load
628 item. Set the section and file reloc flags.
629 (ieee_slurp_section_data): Set section flags. Pass iterations to
630 do_one.
631 (ieee_canonicalize_reloc): Handle I variables.
632 (do_with_relocs): Only emit relocation size when necessary.
633 Increase MAXRUN to 127. Change ov to be assigned, and take
634 src_mask and pcrel_offset into account.
635 (ieee_write_data_part): Skip sections that are not loaded.
636 (ieee_write_external_part): Don't output optional last entry of WX
637 records.
638 (ieee_write_me_part): Make setting of me_record neater.
639 (ieee_generic_stat_arch_elt): Get the size of an archive element.
640
c9e5279f
ILT
641 * syms.c (stt): Add entries for zerovars, vars, and code.
642
643 * elfcode.h (validate_reloc): New static function.
644 (write_relocs): Call validate_reloc for non ELF relocs.
645
646 * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
647 (TARGET_BIG_SYM): Use elf_symbol_leading_char.
648 (TARGET_LITTLE_SYM): Likewise.
649
650 * config.bfd (m68*-*-psos*): New target.
651
d9d65be6
ILT
652Tue Feb 13 15:56:22 1996 Bryan Ford <[email protected]>
653
654 * i386msdos.c: Remove some #if 0 code.
655 (msdos_write_object_contents): Don't include empty sections in the
656 size computation, regardless of their address.
657
658Tue Feb 13 15:36:37 1996 Michael Meissner <[email protected]>
659
660 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
661 is NULL, ie, the -r switch is used.
662
db5970c7
ILT
663Tue Feb 13 14:35:15 1996 Ian Lance Taylor <[email protected]>
664
e9f03cd4
ILT
665 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
666 (BFD_RELOC_MIPS_GOT_LO16): Define.
b7384d22 667 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
e9f03cd4
ILT
668 * bfd-in2.h, libbfd.h: Rebuild.
669 * elf32-mips.c (mips_reloc_map): Map new relocs.
670
fe7c066a
ILT
671 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
672
1ab628e4
ILT
673 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
674 $(SHLINK).
675
db5970c7
ILT
676 * ieee.c (get_symbol): Set the section to bfd_abs_section.
677 (do_with_relocs): If EXEC_P is set and there are no relocs, use a
678 simple number for the section address, rather than an expression.
679 Limit the number of bytes between relocs to MAXRUN.
680 (ieee_write_me_part): Set me_record to the file offset after the
681 start address.
682 (ieee_write_processor): New static function.
683 (ieee_write_object_contents): Use ieee_write_processor.
684
318b7c18
ILT
685Fri Feb 9 10:53:00 1996 Ian Lance Taylor <[email protected]>
686
db5970c7
ILT
687 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
688
689 * coff-aux.c: Change include of aux.h to aux-coff.h.
318b7c18 690
56b64690
ILT
691Thu Feb 8 14:01:03 1996 Andreas Schwab <[email protected]>
692
693 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
694 relocation put the addend both in the reloc entry and the data.
695 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
696 GOT offset value.
697
698 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
699 a R_68K_PCxx reloc against a defined global symbol directly.
700 (elf_m68k_check_relocs): Don't count such a reloc.
701
702 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
703 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
704 symbol for now, otherwise always record the symbol as dynamic.
705 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
706 is not referenced by a dynamic object, and we are not making a
707 shared object, then don't make a PLT entry. If we do make a PLT
708 entry, make sure the symbol has been recorded as dynamic.
709
5d649ca8
ILT
710Wed Feb 7 13:56:06 1996 Ian Lance Taylor <[email protected]>
711
712 * configure.host: When making a shared library, set HLDFLAGS to
713 pass an appropriate -rpath option. Use the make variable SONAME
714 as the shared library soname, rather than computing it here. On
715 SunOS, build stamp-tshlink in place of $(SHLINK).
716 * Makefile.in (SONAME): New variable.
717 ($(SHLINK)): Make a link to the transformed name, as well.
718 (stamp-tshlink): New target.
719 (install): Skip stamp-tshlink during install.
720
8cc98cd5
MM
721Wed Feb 7 13:37:39 1996 Michael Meissner <[email protected]>
722
56b64690
ILT
723 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
724 linker sections have been set up yet.
725
8cc98cd5
MM
726 * elf.c (make_mapping): Add an additional argument to suppress
727 making the first section include the program headers.
728 (map_sections_to_segments): If the user used -Ttext such that the
729 program headers are on a different page, do not set the flags
730 saying that this section includes the program headers.
731
fe16107d
C
732Tue Feb 6 14:04:49 1996 J.T. Conklin <[email protected]>
733
734 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
735 don't define TRAD_HEADER.
736 * configure: Rebuild.
737
738 * netbsd-core.c: New file, support for NetBSD core files.
739 * hosts/*nbsd.h: Removed.
740
f1783016
DE
741Tue Feb 6 11:47:49 1996 Doug Evans <[email protected]>
742
743 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
744 (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
745 * libbfd.h, bfd-in2.h: Regenerated.
746 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
747 bfd_elf32_bfd_reloc_type_lookup.
748 (reloc_type{,_names}): Deleted.
749 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
750 Add sparc64 relocs.
751 (sparc_reloc_map): Add sparc64 relocs.
752 (sparc_elf_notsupported_reloc): New static function.
753 (sparc_elf_wdisp16_reloc): New static function.
754 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
755 (elf32_sparc_relocate_section): Likewise.
756 (bfd_elf32_bfd_reloc_type_lookup): Define.
757 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
758 (reloc_type{,_names}): Deleted.
759 (elf_sparc_howto_table): Deleted.
760 (sparc_reloc_map): Deleted.
761 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
762 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
763
48fd00b6
ILT
764Tue Feb 6 12:12:22 1996 Ian Lance Taylor <[email protected]>
765
2300e217
ILT
766 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
767 *-*-hpux* host.
768
48fd00b6
ILT
769 * Makefile.in (program_transform_name): New variable.
770 (install): Transform library name before installing it.
771
8adca582
ILT
772Mon Feb 5 10:38:27 1996 Ian Lance Taylor <[email protected]>
773
cbe75cb6
ILT
774 * archures.c (bfd_mach_i960_hx): Define.
775 * bfd-in2.h: Rebuild.
776 * cpu-i960.c (scan_960_mach): Accept machine "hx".
777 (MATRIX): Expand entries for HX.
778 (arch_info_struct): Add i960:hx entry.
779 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
780 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
781 (coff_set_flags): Handle bfd_mach_i960_hx.
782
44f795f7
ILT
783 Support for building as a shared library, based on patches from
784 Alan Modra <[email protected]>:
785 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
786 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
787 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
788 * configure: Rebuild.
789 * configure.host: If --enable-shared, adjust shared library stuff
790 based on the host. If the host is SunOS, and the linker supports
791 -rpath, set HLDFLAGS to use it.
792 * Makefile.in (ALLLIBS): New variable.
793 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
794 (COMMON_SHLIB, SHLINK): New variables.
795 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
796 (STAGESTUFF): Remove variable.
797 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
798 $(TARGETLIB).
799 (stamp-ofiles): New target, like old ofiles target, but build
800 using a temporary file and move-if-change, and touch stamp-ofiles
801 when done.
802 (ofiles): Just depend upon stamp-ofiles.
803 (stamp-piclist, piclist): New targets.
804 ($(SHLIB), $(SHLINK)): New targets.
805 (targets.o, archures.o): Build twice if PICFLAG is set.
806 (do_mostlyclean): Remove pic/*.o.
807 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
808 stamp-piclist.
809 (do_distclean): Remove pic and stamp-picdir.
810 (install): Install shared libraries.
811 ($(OFILES)): Depend upon stamp-picdir.
812 (stamp-picdir): New target.
813
cb62d2bc
ILT
814 * libcoff-in.h: Add comment reminding people that libcoff.h is a
815 generated file.
816 * libcoff.h: Rebuild.
817
8adca582
ILT
818 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
819 flavour of a section with no owner.
820
821 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
822 ELF_LINK_NON_ELF flag.
823 (mips_elf_create_got_section): Likewise.
824
825 * elf.c: Revert last change, since it breaks dynamic linking.
826 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
827 field.
828 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
829 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
830 (elfNN_bed): Don't initialize want_hdr_in_seg field.
831
832Sun Feb 4 20:45:13 1996 Michael Meissner <[email protected]>
833
834 * elf.c (assign_file_positions_for_segments): If the backend does
835 not want the elf header or the program headers in the address
836 space, do not include them in the calculations.
837
838 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
839 function to determine if we need additional program headers.
840 (ppc_elf_modify_segment_map): Define as a NOP function for now.
841 (ppc_elf_create_linker_section): .sdata2 is a read-only section.
842
0f09ddd4
ILT
843Sat Feb 3 23:00:03 1996 Ian Lance Taylor <[email protected]>
844
845 * coffcode.h: Move today's libcoff.h change into coffcode.h.
846
b48f10ba
FF
847Sat Feb 3 15:43:44 1996 Fred Fish <[email protected]>
848
0f09ddd4
ILT
849 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
850 back into one line. Some compilers (sunos 4.1.3 for example)
851 won't accept args split across more than one line.
b48f10ba 852
50761d3b
SC
853Fri Feb 2 11:42:15 1996 Steve Chamberlain <[email protected]>
854
855 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
856 * configure: Regenerate.
857
9dce8260
JL
858Fri Feb 2 12:12:16 1996 Jeffrey A Law ([email protected])
859
860 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
861 try to do arithmetic on a void *, cast it to a unsigned char * first.
862
6c55897c
ILT
863Thu Feb 1 16:04:06 1996 Ian Lance Taylor <[email protected]>
864
869b7d80
ILT
865 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
866 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
867 ELF_LINK_NON_ELF.
868 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
869 flag for a newly defined symbol.
870 (NAME(bfd_elf,record_link_assignment)): Likewise.
871 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
872 set the DEF or REF_REGULAR flags correctly.
873
6f6956c6
ILT
874 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
875 (libbfd.h, libcoff.h): Corresponding change.
876
6c55897c
ILT
877 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
878 a PLT32 reloc as dynamic.
879 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
880 is not referenced by a dynamic object, and we are not making a
881 shared object, then don't make a PLT entry. If we do make a PLT
882 entry, make sure the symbol has been recorded as dynamic.
883
b06136f2
SC
884Wed Jan 31 17:23:32 1996 Steve Chamberlain <[email protected]>
885
886 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
887 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
888 (powerpcle-*-cygwin32): New.
889 * peicode.h (add_data_entry): Get address from vma.
890
5c867ecd
MM
891Wed Jan 31 16:23:57 1996 Michael Meissner <[email protected]>
892
893 * elflink.c (_bfd_elf_create_linker_section): If the symbol
894 attached to the section has already been created as an undefined
895 symbol, treat it as if it hasn't been created yet.
896
28c16b55
ILT
897Wed Jan 31 16:16:53 1996 Ian Lance Taylor <[email protected]>
898
899 * elflink.h (elf_bfd_final_link): Don't output initial dummy
900 symbol or section symbols if stripping all symbols and this is not
901 a relocateable link. Don't output the symbol string table if
902 there are no symbols.
903 (elf_link_flush_output_syms): Don't do anything if there are no
904 symbols to flush.
905
d19df9b5
ILT
906Wed Jan 31 12:55:49 1996 Richard Henderson <[email protected]>
907
908 * coff-aux.c: New file.
909 * hosts/m68kaux.h: New file.
910 * config.bfd (m68*-apple-aux*): New target.
911 * configure.in (m68*-apple-aux*): New native host.
912 (m68kaux_coff_vec): New vector.
913 * configure: Rebuild.
914 * targets.c (m68kaux_coff_vec): Declare.
915 * coffcode.h (bfd_coff_backend_data): Add field
916 _bfd_coff_link_add_one_symbol.
917 (bfd_coff_link_add_one_symbol): Define.
918 (compare_arelent_ptr): New static function if TARG_AUX.
919 (coff_write_relocs): If TARG_AUX, sort the relocs.
920 (coff_write_object_contents): Set A/UX aouthdr magic number.
921 (coff_link_add_one_symbol): Define if not defined.
922 (bfd_coff_std_swap_table): Initialize new field.
923 * libcoff.h: Rebuild.
924 * cofflink.c (coff_link_add_symbols): Call
925 bfd_coff_link_add_one_symbol rather than
926 _bfd_generic_link_add_one_symbol.
927 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
928 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
929 * coff-mips.c (mips_ecoff_backend_data): Likewise.
930 * Makefile.in: Rebuild dependencies.
931 (BFD32_BACKENDS): Add coff-aux.o.
932 (BFD32_BACKENDS_CFILES): Add coff-aux.c.
933
a796aafd
ILT
934Wed Jan 31 11:37:46 1996 Andreas Schwab <[email protected]>
935
936 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
937 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
938
a8763553
ILT
939Tue Jan 30 12:09:04 1996 Ian Lance Taylor <[email protected]>
940
66761e59
ILT
941 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
942 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
943 (maintainer-clean): Warn about deleting special files.
944 (bfd-in2.h, libbfd.h, libcoff.h): New targets.
945
cf5138e3
ILT
946 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
947 warning symbols correctly.
948 * elf32-i386.c (elf_i386_relocate_section): Likewise.
949 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
950 * elf32-mips.c (mips_elf_relocate_section): Likewise.
951 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
952 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
953 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
954
a8763553
ILT
955 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
956 warnings.
957
bdd2e7f1
KK
958Mon Jan 29 14:27:24 1996 Kim Knuttila <[email protected]>
959
960 * libcoff-in.h: aligned newly exported names with bfd naming
961 conventions. Removed an erroneous define of POWERPC_LE_PE.
962 * libcoff.h: Rebuild.
963 * cofflink.c, coff-ppc.c: the above function name changes
964
d2bb6c79
ILT
965Mon Jan 29 13:06:28 1996 Ian Lance Taylor <[email protected]>
966
eb5bc1f3
ILT
967 From Basim Kadhim <[email protected]>:
968 * ecoff.c (struct extsym_info): Define.
969 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
970 to ecoff_link_write_external.
971 (ecoff_link_write_external): Accept a struct extsym_info pointer.
972 Strip symbols when appropriate.
973
052b35d2
ILT
974 Based on patches from Ronald F. Guilmette <[email protected]>:
975 * syms.c (BSF_OBJECT): Define.
976 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
977 * bfd-in2.h: Rebuild.
978 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
979 STT_OBJECT symbol.
980 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
981 is set.
982
53787b23
ILT
983 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
984 copying relocs into a shared object, treat a defined global symbol
985 as a local symbol.
986 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
987 * elf32-mips.c (mips_elf_relocate_section): Likewise.
988 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
989
d2bb6c79
ILT
990 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
991 real defined symbol, not to a weak defined symbol.
992
13d1a4dd
KK
993Mon Jan 29 11:34:36 1996 Kim Knuttila <[email protected]>
994
995 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
996 and made a few static functions externs.
997
998 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
999 POWERPC_LE_PE hack in cofflink.
1000
1001 * libcoff-in.h: promoted the following from cofflink.c to allow
1002 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
1003 coff_debug_merge_element, struct coff_debug_merge_type,
1004 coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
1005 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
1006 coff_debug_merge_hash_lookup, coff_link_section_info,
1007 coff_final_link_info, coff_debug_merge_hash_newfunc,
1008 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
1009
1010 * libcoff.h: re-gen'd
1011
86aac8ea
ILT
1012Fri Jan 26 18:33:35 1996 Ian Lance Taylor <[email protected]>
1013
1014 * syms.c: Include "bfdlink.h".
1015 (struct stab_find_info): Define.
1016 (_bfd_stab_section_find_nearest_line): New function.
1017 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
1018 * libbfd.h: Rebuild.
1019 * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
1020 * elf.c (_bfd_elf_find_nearest_line): Try calling
1021 _bfd_stab_section_find_nearest_line before searching the ELF
1022 symbol table. Find the closest STT_FUNC symbol, not the last one.
1023 * libcoff-in.h (coff_data_type): Add line_info field.
bdd2e7f1 1024 * libcoff.h: Rebuild.
86aac8ea
ILT
1025 * coffgen.c (coff_find_nearest_line): Try calling
1026 _bfd_stab_section_find_nearest_line before searching the COFF
1027 symbol table.
1028 * Makefile.in: Rebuild dependencies.
1029
1030Fri Jan 26 16:11:19 1996 Michael Meissner <[email protected]>
1031
1032 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
1033 4 bytes, so we get the correct value when updating the register
1034 field in little endian mode.
1035
43d36aad
ILT
1036Thu Jan 25 12:14:16 1996 Ian Lance Taylor <[email protected]>
1037
f0a97077
ILT
1038 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
1039 entry_section fields. Add sntoc and snentry fields.
1040 * libcoff.h: Rebuild.
1041 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
1042 not toc_section and entry_section (the COFF file does not have any
1043 sections at this point).
1044 (coff_write_object_contents): Set o_snentry and o_sntoc from
1045 snentry and sntoc rather than entry_section and toc_section.
1046 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
1047 snentry, not toc_section and entry_section.
1048 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
1049 entry_section from hentry.
1050 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
ea2504d5 1051 set snenty.
f0a97077
ILT
1052 (xcoff_link_input_bfd): Set sntoc, not toc_section.
1053 (xcoff_write_global_symbol): Get toc_section from sntoc, rather
1054 than using toc_section directly.
1055
9b4598d0
ILT
1056 * archures.c: Add missing `.' in enum bfd_architecture.
1057 * bfd-in2.h: Rebuild.
1058
43d36aad
ILT
1059 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
1060 Robert Lipe <[email protected]>.
1061
eb82bc60
MM
1062Thu Jan 25 12:08:51 1996 Michael Meissner <[email protected]>
1063
1064 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
1065 to sections we allocate. Use bfd_zalloc to allocate initialial
1066 sections, not bfd_alloc.
1067 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
1068 SDA{,2}I16 relocations.
1069 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
1070 whether to put something in .sbss or not.
1071 (ppc_elf_relocate_section): Add support for more relocations. Add
c1e65e24
MM
1072 in sec->output_offset where appropriate. Make error messages
1073 include the symbol name.
eb82bc60
MM
1074
1075 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
1076 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
1077 doesn't get redefined messages if -shared.
1078
1079 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
1080 section if the rel_section field has been set up.
1081
9d621c7d
MM
1082Wed Jan 24 20:40:26 1996 Michael Meissner <[email protected]>
1083
1084 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
1085 relocations.
1086
75c9ddc9
DE
1087Wed Jan 24 10:38:34 1996 Doug Evans <[email protected]>
1088
1089 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
1090 of flags, only flags used are controlled by mach number. Bump up
1091 output file mach number to highest of input file mach numbers.
1092 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
1093 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
1094
72c513bc
DE
1095 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
1096 bfd_elf64_sparc_vec support.
1097
3cbe19d2
MM
1098Tue Jan 23 14:33:05 1996 Michael Meissner <[email protected]>
1099
1100 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
1101 the embedded bit is set on some objects and not on others. Just
1102 or it together.
d8fd85ad
MM
1103 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
1104 relocations.
3cbe19d2 1105
5eb83ede
ILT
1106Tue Jan 23 14:22:45 1996 Ian Lance Taylor <[email protected]>
1107
4a3d3b42
ILT
1108 * coffcode.h (coff_new_section_hook): Don't try to align the
1109 .stabstr section.
1110
5eb83ede
ILT
1111 * coffcode.h (coff_set_section_contents): Fix the handling of the
1112 .lib section to work even if the entire section contents are
1113 written at once. From Gvran Uddeborg <[email protected]> and
1114 Robert Lipe <[email protected]>.
1115
05f927dd
MM
1116Mon Jan 22 18:45:51 1996 Michael Meissner <[email protected]>
1117
1118 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
1119 memory here for contents.
1120
1121 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
1122 _SDA2_BASE_ by 32768.
1123 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
1124 started using. Allocate contents for .sdata and .sdata2 sections
1125 also.
1126 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
1127 rather than _name.
1128 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
1129 size _SDA{,2}_BASE_.
1130 (ppc_elf_relocate_section): Change how sdata{,2} relocations are
1131 done.
1132
5bc513b4
DE
1133Mon Jan 22 08:52:04 1996 Doug Evans <[email protected]>
1134
5a5bac64
DE
1135 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
1136
5bc513b4 1137 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
5bc513b4 1138 (bfd_mach_sparc_{v8plus,v8plusa}): Define.
5bc513b4 1139 (bfd_mach_sparc_v9a): Define.
049f3d4c 1140 (bfd_mach_sparc_v9_p): Define.
5bc513b4
DE
1141 * bfd-in2.h: Regenerated.
1142 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
1143 bfd_mach_sparc_v9.
d3366d23 1144 * elf64-sparc.c (sparc64_elf_object_p): Likewise.
5bc513b4
DE
1145 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
1146 to bfd_elf32_sparc_vec.
1147 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
5bc513b4 1148 Add v8plus{,a} support.
5bc513b4 1149 Add v9a support.
768b8ade 1150 (sparc_compatible): New function.
5bc513b4 1151 * elf32-sparc.h: #include "elf/sparc.h".
75c9ddc9 1152 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
5bc513b4 1153 elf32_sparc_final_write_processing): New functions.
75c9ddc9 1154 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
5bc513b4 1155 elf_backend_final_write_processing): Define.
5bc513b4 1156
3b3753b8
MM
1157Mon Jan 22 11:21:51 1996 Michael Meissner <[email protected]>
1158
1159 * elf-bfd.h (struct elf_link_hash_entry): Add
1160 linker_section_pointer field.
1161 (enum elf_linker_section_enum): Enumeration for new way of
1162 creating linker dynamic sections and symbols.
1163 (elf_linker_section{,_pointers}): New structures for creating
1164 dynamic sections and symbols.
1165 (elf_obj_tdata): Add linker_section_pointers and linker_section
1166 fields.
1167 (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
1168 (_bfd_elf_create_linker_section): New declarations.
1169 (_bfd_elf_find_pointer_linker_section): Ditto.
1170 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
1171 (_bfd_elf_make_linker_section_rela): Ditto.
1172
1173 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
1174
1175 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
1176 (ppc_elf_create_linker_section): New function to create the
1177 sections .got, .sdata, and .sdata2.
1178 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
1179 needed.
1180 (ppc_elf_check_relocs): Support more of the eabi relocations.
1181 (ppc_elf_relocate_section): Ditto.
1182 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
1183 if the .sdata{,2} + .sbss{,2} section size is > 32k.
1184
1185 * elflink.h (elf_create_pointer_linker_section): New function to
1186 create initialized pointers in dynamic linker sections.
1187 (elf_finish_pointer_linker_section): Actually intialize the
1188 pointers created above.
1189
1190 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
1191 macros to provide both 32 and 64 bit versions of
1192 elf_create_pointer_linker_section.
1193 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
1194 provide both 32 and 64 bit versions of
1195 elf_finish_pointer_linker_section.
1196
1197 * elflink.c (_bfd_elf_create_linker_section): New function to
1198 create a linker section.
1199 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
1200 given address in the linker pointer offsets created for a given
1201 symbol.
1202 (_bfd_elf_make_linker_section_rela): Make a RELA section
1203 corresponding to the generated linker section.
1204
6b3eb07e
DE
1205Sat Jan 20 08:36:10 1996 Doug Evans <[email protected]>
1206
1207 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
1208
e7894f6b
KK
1209Thu Jan 18 18:25:34 1996 Kim Knuttila <[email protected]>
1210
1211 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
1212 (coff_ppc_relocate_section): Handle special values for gcc built dlls.
1213 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
1214 Also begin the toc at 4 as an eye catcher ('31313131' marks the first
1215 toc entry in an objdump) for now.
1216 (ppc_do_last, ppc_get_last): New function - needed to save processing
1217 the toc owner to the end.
1218 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
1219 toc owner last.
1220
1221 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
1222 toc owner from being done till last. Must define POWERPC_LE_PC
1223 to enable it.
1224
1225 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
1226
1227 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
1228 to INFO.
1229 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
1230 SizeOfImage for PowerPC. Ignore the size of the .junk section.
1231
80b99ca0
ILT
1232Thu Jan 18 17:42:12 1996 Ian Lance Taylor <[email protected]>
1233
1234 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
1235
df96df4c
ILT
1236Wed Jan 17 12:40:14 1996 Ian Lance Taylor <[email protected]>
1237
1238 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
1239 back to first.
1240 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
1241
d49ddb85
ILT
1242Tue Jan 16 15:10:49 1996 Ian Lance Taylor <[email protected]>
1243
1244 * elf.c (assign_file_positions_for_segments): Don't increment file
1245 offset for a segment which contains no loadable sections.
1246
4500a112
MM
1247Mon Jan 15 17:46:27 1996 Michael Meissner <[email protected]>
1248
1249 * reloc.c: Add new PowerPC relocations.
1250 * {bfd-in2,libbfd}.h: Regenerate.
1251
1252 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
1253 (ppc_elf_reloc_type_lookup): Lookup new relocations.
1254
252239f8
ILT
1255Mon Jan 15 14:29:44 1996 Ian Lance Taylor <[email protected]>
1256
20ab764e
ILT
1257 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
1258 entries.
1259
0a4ffa2d
ILT
1260 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
1261 info->shared.
1262
45ca3195
ILT
1263 * coffgen.c (coff_find_nearest_line): Don't try to cache
1264 information in sections that are not owned by a BFD. From Richard
1265 Henderson <[email protected]>.
1266
252239f8
ILT
1267 * elf32-mips.c: Numerous changes to dynamic linking code, mostly
1268 from Kazumoto Kojima <[email protected]>.
1269 * elflink.h (elf_link_output_extsym): Remove special check for
1270 _rld_new_interface.
1271
1272 * ecoffswap.h: Add prototypes for static functions.
1273
bd2d10c0
MM
1274Sun Jan 14 21:36:08 1996 Michael Meissner <[email protected]>
1275
1276 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
1277 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
1278 references.
1279 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
1280 to satisfy a TOC16 relocation. Rewrite unsupported relocation
1281 support. Begin support for R_PPC_SDA{2,}REL.
1282
1c3a295b
MM
1283Sat Jan 13 09:36:52 1996 Michael Meissner <[email protected]>
1284
1285 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
1286 create the .got and .got.neg sections.
1287 (ppc_elf_size_dynamic_sections): Call it.
1288 (ppc_elf_check_relocs): Call it.
1289 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
1290 (ppc_elf_check_relocs): Add error messages for relocations we
1291 don't yet support. Do not include R_PPC_SDAREL16 like a GOT
1292 relocation.
1293
57081126
MM
1294Fri Jan 12 15:27:59 1996 Michael Meissner <[email protected]>
1295
1296 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
1297 section flags for V.4 and eabi.
1298
3c38b3df
ILT
1299Fri Jan 12 13:59:16 1996 Ian Lance Taylor <[email protected]>
1300
14899eb7
ILT
1301 * elf.c (assign_file_positions_for_segments): If a segment
1302 contains no sections, don't mark it as readable.
1303
98bb57ad
ILT
1304 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
1305 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
1306
02fcd126
ILT
1307 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
1308 dynamic section, if there is one.
1309 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
1310 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
1311 (bfd_elf64_swap_dyn_in): Likewise.
1312 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
1313 PTR.
1314 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
1315
3c38b3df
ILT
1316 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
1317 DT_TEXTREL entry because of .rel.plt. From Martin Pirker
1318 <[email protected]>.
1319
83f4323e
MM
1320Thu Jan 11 17:06:14 1996 Michael Meissner <[email protected]>
1321
1322 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
1323 PowerPC V.4 and eabi.
1324 * bfd-in2.h: Regenerate.
1325 * libfd.h: Regenerate.
1326
1327 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
1328
1329 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
1330 section type and SHF_EXCLUDE section flag, turning them into the
1331 appropriate bfd section flag.
1332
a0271667
ILT
1333Thu Jan 11 11:23:30 1996 Ian Lance Taylor <[email protected]>
1334
c9746fb6
ILT
1335 * xcofflink.c (xcoff_link_add_symbols): Create the special
1336 sections if we see a DYNAMIC object, in case that is the only
1337 XCOFF input object we see.
1338
5b3b9ff6
ILT
1339 * elf32-mips.c: Extensive changes for a start at dynamic linking
1340 support, from Kazumoto Kojima <[email protected]>.
1341
1342 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
1343 (struct elf_backend_data): Remove
1344 elf_backend_create_program_headers field. Add
1345 elf_backend_additional_program_headers and
1346 elf_backend_modify_segment_map fields.
1347 * elfxx-target.h (elf_backend_type_change_ok): Define if not
1348 defined.
1349 (elf_backend_additional_program_headers): Likewise.
1350 (elf_backend_modify_segment_map): Likewise.
1351 (elf_backend_create_program_headers): Don't define.
1352 (elfNN_bed): Change to account for field changes.
1353 * elf.c (assign_file_positions_for_segments): Call new
1354 modify_segment_map backend function. Don't call old
1355 create_program_headers backend function.
1356 (get_program_header_size): Call additional_program_headers rather
1357 than create_program_headers.
1358 * elflink.h (elf_link_add_object_symbols): Initialize
1359 type_change_ok from new backend field.
1360 (elf_link_output_extsym): Don't warn if _rld_new_interface is
1361 defined.
1362 (elf_reloc_link_order): Treat a reloc against a defined symbol as
1363 a reloc against the appropriate section.
1364
761f377f
ILT
1365 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
1366 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
1367 (elf_flags_init): Rename from elf_ppc_flags_init.
1368 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
1369 elf_ppc_flags_init.
1370 (ppc_elf_copy_private_bfd_data): Likewise.
1371 (ppc_elf_merge_private_bfd_data): Likewise.
1372
a0271667
ILT
1373 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
1374 relocation entries.
1375
64d5f5d0
ILT
1376Tue Jan 9 15:22:53 1996 David Mosberger-Tang <[email protected]>
1377
1378 * coff-alpha.c (alpha_relocate_section): During final link, allow
1379 output .lita section to be bigger than 64k by adjusting gp value
1380 on a per-input section basis.
1381 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
1382 field.
1383 (struct ecoff_section_tdata): Add gp field.
1384
c40d9c77
ILT
1385Tue Jan 9 12:00:36 1996 Ian Lance Taylor <[email protected]>
1386
64d5f5d0
ILT
1387 Handle Alpha ECOFF changes in OSF/1 3.2.
1388 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
1389 field.
1390 * coff-alpha.c: Include "aout/ar.h".
1391 (alpha_ecoff_get_relocated_section_contents): Don't require an
1392 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
1393 3.2 doesn't generate one.
1394 (alpha_relocate_section): Likewise.
1395 (alpha_ecoff_slurp_armap): Define.
1396 (alpha_ecoff_slurp_extended_name_table): Define.
1397 (alpha_ecoff_construct_extended_name_table): Define.
1398 (alpha_ecoff_truncate_arname): Define.
1399 (alpha_ecoff_write_armap): Define.
1400 (alpha_ecoff_generic_stat_arch_elt): Define.
1401 (alpha_ecoff_update_armap_timestamp): Define.
1402 (ARFZMAG): Define.
1403 (alpha_ecoff_read_ar_hdr): New static function.
1404 (alpha_ecoff_get_elt_at_filepos): New static function.
1405 (alpha_ecoff_openr_next_archived_file): New static function.
1406 (alpha_ecoff_get_elt_at_index): New static function.
1407 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
1408 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
1409 _bfd_ecoff to alpha_ecoff.
1410 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
1411 field from backend structure, rather than always calling
1412 _bfd_get_elt_at_filepos.
1413 * coff-mips.c (mips_ecoff_backend_data): Initialize
1414 get_elt_at_filepos field.
1415 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
1416 from _bfd_generic_read_ar_hdr with minor changes.
1417 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
1418 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
1419 * libbfd.h: Rebuild.
1420
1421 * bfd-in.h (BFD_IN_MEMORY): Define.
1422 * libbfd-in.h (struct bfd_in_memory): Define.
1423 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
1424 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
1425 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
1426 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
1427 * bfd.c (struct _bfd): Change iostream field from char * to PTR.
1428 (bfd_get_size): Handle BFD_IN_MEMORY flag.
1429 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
1430 (bfd_open_file): Cast to PTR, not char *, when setting iostream.
1431 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
1432 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
1433 iostream.
1434 (bfd_openstreamr): Likewise.
1435 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
1436 BFD_IN_MEMORY is not set.
1437 * riscix.c (riscix_some_aout_object_p): Likewise.
1438 * bfd-in2.h, libbfd.h: Rebuild.
1439
1440 * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
1441 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
1442 (bfd_get_elt_at_index): Define.
1443 * archive.c (_bfd_generic_get_elt_at_index): Rename from
1444 bfd_get_elt_at_index. Change index parameter from int to
1445 symindex.
1446 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
1447 (_bfd_noarchive_get_elt_at_index): Define.
1448 (_bfd_archive_bsd_get_elt_at_index): Define.
1449 (_bfd_archive_coff_get_elt_at_index): Define.
1450 * bfd-in2.h, libbfd.h: Rebuild.
1451 * aout-target.h (MY_get_elt_at_index): Define if not defined.
1452 * coff-rs6000.c (xcoff_get_elt_at_index): Define.
1453 * ieee.c (ieee_get_elt_at_index): Define.
1454 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
1455 * oasys.c (oasys_get_elt_at_index): Define.
1456 * som.c (som_get_elt_at_index): Define.
1457
c40d9c77
ILT
1458 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
1459 numbers to the .text section.
1460
efa77952
ILT
1461Mon Jan 8 17:00:57 1996 Ian Lance Taylor <[email protected]>
1462
1463 * ieee.c (ieee_write_debug_part): Change return type to boolean.
1464 If there is a SEC_DEBUGGING section, get the contents of the debug
1465 information part from it.
1466 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
1467 section in memory.
1468 (ieee_write_object_contents): Check ieee_write_debug_part return.
1469
767f22d5
FF
1470Thu Jan 4 17:12:37 1996 Fred Fish <[email protected]>
1471
1472 * config.bfd (i[345]86-*-freebsd*): Add target.
1473 * configure.in (i386freebsd_vec): Add vec.
1474 * configure: Regenerate.
1475 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
1476 (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
1477 Rebuild dependencies..
1478 * freebsd.h: New file.
1479 * i386freebsd.c: New file.
1480 * targets.c (i386freebsd_vec): Declare.
1481 (bfd_target_vector): Add i386freebsd_vec.
1482 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
1483 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
1484
f8254a3c
ILT
1485Thu Jan 4 16:27:46 1996 Ian Lance Taylor <[email protected]>
1486
1487 * ieee.c (ieee_slurp_debug): New static function.
1488 (ieee_object_p): Call it.
1489 (ieee_slurp_section_data): Skip debugging sections.
1490 (ieee_get_reloc_upper_bound): Likewise.
1491 (ieee_get_section_contents): Likewise.
1492 (ieee_canonicalize_reloc): Likewise.
1493 (ieee_write_section_part): Likewise.
1494 (ieee_write_debug_part): Likewise.
1495 (ieee_write_data_part): Likewise.
1496 (init_for_output): Likewise.
1497
07a159db
MM
1498Wed Jan 3 19:42:47 1996 Michael Meissner <[email protected]>
1499
1500 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
1501 work.
1502 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
1503 relocs, since ppc_elf_relocate_section handles the linker case.
1504 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
1505 used.
1506 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
1507 ppc_elf_relocate_section since that is now the only caller.
1508 (ppc_elf_relocate_section): Ditto.
1509
d812945a
ILT
1510Wed Jan 3 15:11:30 1996 Ian Lance Taylor <[email protected]>
1511
1512 * coffcode.h (coff_write_object_contents): If we don't know the
1513 section of the entry point for an XCOFF executable, always set the
1514 entry address to -1.
1515
3a56d0b4
MM
1516Tue Jan 2 14:17:15 1996 Michael Meissner <[email protected]>
1517
1518 * elf.c (bfd_section_from_shdr): Add support for note sections.
1519
c4406e50
ILT
1520Tue Jan 2 13:10:25 1996 Ian Lance Taylor <[email protected]>
1521
d812945a
ILT
1522 * bfd-in.h (struct _symbol_info): Add stab_type field.
1523 * bfd-in2.h: Rebuild.
1524 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
1525
c4406e50
ILT
1526 * elf32-ppc.c: Remove trailing newline from calls to
1527 _bfd_error_handler.
1528 (ppc_elf_merge_private_bfd_data): Only warn about endianness
1529 difference if target endianness is known.
1530
08556813
MM
1531Thu Dec 21 12:43:49 1995 Michael Meissner <[email protected]>
1532
1533 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
1534 old style TOC16 references without using R_PPC_GOT.
1535 (ppc_reloc_type): Ditto.
1536 (ppc_elf_reloc_type_lookup): Add support for TOC16.
1537 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
1538 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
1539 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
1540 (ppc_elf_check_relocs): New function for GOT/PLT support that is
1541 work in progress.
1542 (ppc_elf_adjust_dynamic_symbol): Ditto.
1543 (ppc_elf_adjust_dynindx): Ditto.
1544 (ppc_elf_size_dynamic_sections): Ditto.
1545 (ppc_elf_finish_dynamic_symbol): Ditto.
1546 (ppc_elf_finish_dynamic_sections): Ditto.
1547 (ELF_DYNAMIC_INTERPRETER): Define.
1548
86587dd4
KR
1549Wed Dec 20 19:14:18 1995 Ken Raeburn <[email protected]>
1550
1551 * elf.c (copy_private_bfd_data): When attaching sections to
1552 segments ignore sections that won't be allocated. Patch from
1553 Andreas Schwab.
1554
bf7f243f
KR
1555Tue Dec 19 20:01:43 1995 Ken Raeburn <[email protected]>
1556
1557 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
1558 anything else.
1559
d9518e2e
ILT
1560Tue Dec 19 16:38:59 1995 Ian Lance Taylor <[email protected]>
1561
1562 * coff-i960.c (CALC_ADDEND): Define.
1563 (coff_i960_relocate_section): Add the input section VMA to the
1564 addend for PC relative relocs.
1565
1566Sun Dec 17 20:11:55 1995 Kim Knuttila <[email protected]>
1567
1568 * peicode.h (pe_print_pdata): Must test the entire entry for zero
1569 to correctly terminate.
1570
010a405a
ILT
1571Fri Dec 15 12:05:57 1995 Ian Lance Taylor <[email protected]>
1572
dc092b6b
ILT
1573 * targets.c (enum bfd_endian): Define.
1574 (bfd_target): Rename byteorder_big_p to byteorder, and change it
1575 from boolean to enum bfd_endian. Change header_byteorder_big_p
1576 correspondingly.
1577 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
1578 (bfd_header_big_endian, bfd_header_little_endian): New macros.
1579 * bfd-in2.h: Rebuild.
1580 * All targets: Change initialization of byteorder and
1581 header_byteorder to use enum bfd_endian values rather than
1582 booleans.
1583 * All files: Change all references to byteorder_big_p and
1584 header_byteorder_big_p to use new bfd_*_endian macros.
1585
010a405a
ILT
1586 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
1587 s_vaddr.
1588 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
1589 vma.
1590 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
1591
fcb43906
SC
1592Fri Dec 15 07:32:09 1995 steve chamberlain <[email protected]>
1593
1594 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
1595
0d709d31
ILT
1596Thu Dec 14 13:45:37 1995 Ian Lance Taylor <[email protected]>
1597
14578105
ILT
1598 * ieee.c: Lots of minor cleanups. Make many functions return
1599 errors rather than calling abort. Also:
1600 (ieee_write_twobyte): Remove; change callers to call existing
1601 ieee_write_2bytes function.
1602 (ieee_write_expression): Don't output the section twice when
1603 outputting a local symbol. Don't emit an extraneous zero if there
1604 is only one term.
1605 (ieee_slurp_sections): Set the lma as well as the vma.
1606 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
1607
0d709d31
ILT
1608 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
1609 a recognized one or bfd_arch_unknown.
1610 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
1611 to succeed.
1612 (ihex_get_symtab): Likewise.
1613
14dc2f77
ILT
1614Wed Dec 13 15:44:06 1995 Ian Lance Taylor <[email protected]>
1615
1616 * aoutx.h: Include <ctype.h>.
1617 (struct aout_link_includes_table): Define.
1618 (struct aout_link_includes_totals): Define.
1619 (struct aout_link_includes_entry): Define.
1620 (aout_link_includes_lookup): Define macro.
1621 (struct aout_final_link_info): Add includes field.
1622 (aout_link_includes_newfunc): New static function.
1623 (NAME(aout,final_link)): Initialize includes hash table.
1624 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
1625
480ccad5
SS
1626Wed Dec 13 10:52:14 1995 Stan Shebs <[email protected]>
1627
1628 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
1629
3920d9c9
KK
1630Wed Dec 13 11:07:45 1995 Kim Knuttila <[email protected]>
1631
1632 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
1633
207345f2
KK
1634Tue Dec 12 17:42:06 1995 Kim Knuttila <[email protected]>
1635
1636 * peicode.h (pe_print_reloc): New function to dump the .reloc section.
1637 (pe_print_private_bfd_data): call pe_print_reloc.
1638 * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
1639 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
1640 up some debugging as well.
1641
273c019e
ILT
1642Tue Dec 12 11:34:23 1995 Ian Lance Taylor <[email protected]>
1643
1644 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
1645 <[email protected]>.
1646
010d9f2d
ILT
1647Fri Dec 8 17:47:07 1995 Ian Lance Taylor <[email protected]>
1648
1649 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
1650 when setting sections to NULL.
1651
4a4a66bd
ILT
1652Wed Dec 6 17:05:37 1995 Ian Lance Taylor <[email protected]>
1653
1654 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
1655 field.
1656 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
1657 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
1658 for all symbols.
1659 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
1660 * bfd-in2.h: Rebuild.
1661
545bf026
KK
1662Mon Dec 4 16:40:47 1995 Kim Knuttila <[email protected]>
1663
1664 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
1665
1f4ae0d6
ILT
1666Mon Dec 4 11:25:39 1995 Ian Lance Taylor <[email protected]>
1667
55cac920
ILT
1668 * ihex.c (ihex_scan): Handle record types 4 and 5.
1669 (ihex_object_p): Permit types 4 and 5.
1670 (ihex_set_section_contents): Remove check for out of range
1671 addresses.
1672 (ihex_write_object_contents): Generate types 4 and 5.
1673
1f4ae0d6
ILT
1674 * elflink.h (elf_link_output_extsym): Just ignore warning and
1675 indirect references to symbols which don't really exist.
1676
53d45489
KK
1677Sun Dec 3 19:00:27 1995 Kim Knuttila <[email protected]>
1678
1679 * peicode.h (pe_print_idata): Minor format fixes
1680 (pe_print_edata): New function. Under private printing, this formats
1681 the edata section of a PE file.
1682 (pe_print_private_bfd_data): Added call to pe_print_edata.
1683
361e8876
DE
1684Sun Dec 3 16:46:54 1995 Richard Earnshaw ([email protected])
1685
1686 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
1687 index, don't call stoi.
1688
58142f10
ILT
1689Fri Dec 1 14:46:51 1995 Ian Lance Taylor <[email protected]>
1690
ffd15489
ILT
1691 * srec.c (srec_scan): Set lma as well as vma.
1692
1693 * ihex.c: New file; support for Intel Hex format.
1694 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
1695 (ihex_vec): Declare.
1696 (bfd_target_vector): Always include ihex_vec.
1697 * bfd.c (struct _bfd): Add ihex_data field to tdata union.
1698 * Makefile.in: Rebuild dependencies.
1699 (BFD_LIBS): Add ihex.o
1700 (BFD_LIBS_CFILES): Add ihex.c.
1701 * bfd-in2.h: Rebuild.
1702
ae0a6bea
ILT
1703 * elf.c (assign_file_positions_for_segments): Sort the sections in
1704 each segment.
1705 (get_program_header_size): Return the right size if segment_map is
1706 not NULL.
1707 (copy_private_bfd_data): Don't bother to sort the sections.
1708
1709 * bfd.c (bfd_record_phdr): New function.
1710 * bfd-in.h (bfd_record_phdr): Declare.
1711 * bfd_in2.h: Rebuild.
1712
ce0ee4bf
ILT
1713 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
1714 BFD_ASSERT.
1715
58142f10
ILT
1716 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
1717 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
1718 bfd_size_type.
1719 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
1720 (bfd_zmalloc): Change declaration.
1721 * libbfd.h: Rebuild.
1722 * Many files: Use bfd_malloc and bfd_realloc rather than malloc
1723 and realloc. Don't set bfd_error_no_memory if they fail.
1724
59066248
KK
1725Thu Nov 30 19:32:26 1995 Kim Knuttila <[email protected]>
1726
1727 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
1728 uses as well. Added a new howto to deal with TOCREL16 relocs that
1729 are TOCDEFN as well.
1730 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
1731 to handle RVA relocs from dlltool.
1732 (ppc_coff_rtype2howto): TOCDEFN reloc addition.
1733 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
1734 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
1735
1736 * coffcode.h (coff_set_alignment_hook): check idata$X sections
1737 to get the right section alignment.
1738
6933148a
ILT
1739Thu Nov 30 16:48:18 1995 Ian Lance Taylor <[email protected]>
1740
1741 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
1742 p_paddr if p_paddr is zero.
1743 (make_mapping): Set includes_filehdr and includes_phdrs for first
1744 PT_LOAD segment.
1745 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
1746 segment.
1747 (assign_file_positions_for_segments): Handle includes_filehdr and
1748 includes_phdrs. Remove special handling of PT_PHDR and first
1749 PT_LOAD segments.
1750 (copy_private_bfd_data): Set includes_filehdr and includes_phdr
1751 when appropriate. Remove special handling of PT_PHDR segment.
1752 Use a more complex condition for when a section is included in a
1753 segment to handle Solaris linker oddities.
1754
f62fed1c
ILT
1755Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <[email protected]>
1756
1757 * coff-m88k.c (howto_table): Reformatted for easier reading;
1758 special_function now points to new function m88k_special_reloc.
1759 (howto_hvrt16): Function previously used for handling HVRT16 relocs
1760 removed.
1761 (rtype2howto): Do not add reloc's r_offset to the addend, this will
1762 be done correctly by m88k_special_reloc.
1763 (reloc_processing): New function to be used by RELOC_PROCESSING.
1764 (RELOC_PROCESSING): Define to call reloc_processing.
1765
64ecde46
ILT
1766Wed Nov 29 12:42:36 1995 Ian Lance Taylor <[email protected]>
1767
b00c57ec
ILT
1768 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
1769 (pe_print_pdata): Likewise.
1770
a9713b91
ILT
1771 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
1772 obstack_alloc fails.
1773 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
1774 fails.
1775 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
1776 * Many files: don't set bfd_error_no_memory if one of the above
1777 routines fails.
1778
3dbf33ee
ILT
1779 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
1780 if p_paddr_valid is set.
1781 (copy_private_bfd_data): New static function.
1782 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
1783
44ef8897
ILT
1784 * elf.c (assign_file_positions_for_segments): Fix case where extra
1785 program headers were allocated.
1786
27fb8f29
ILT
1787 * elf.c (_bfd_elf_print_private_bfd_data): New function.
1788 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
1789 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
1790 _bfd_elf_print_private_bfd_data.
1791
64ecde46
ILT
1792 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
1793 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
1794 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
1795 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
1796 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
1797 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
1798 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
1799
fd0198f0
ILT
1800Tue Nov 28 16:59:50 1995 Ian Lance Taylor <[email protected]>
1801
1802 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
1803 * elf.c (make_mapping): New static function.
1804 (map_sections_to_segments): New static function.
1805 (elf_sort_sections): New static function.
1806 (assign_file_positions_for_segments): New static function.
1807 (map_program_segments): Remove.
1808 (get_program_header_size): Remove sorted_hdrs, count, and
1809 maxpagesize parameters. Simplify.
1810 (assign_file_positions_except_relocs): When generating an
1811 executable, use assign_file_positions_for_segments.
1812 (elf_sort_hdrs): Remove.
1813 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
1814 to get_program_header_size.
1815
3b3f7625
ILT
1816Mon Nov 27 12:27:46 1995 Ian Lance Taylor <[email protected]>
1817
1ff0461b
ILT
1818 * hp300hpux.c (MY(callback)): Set lma as well as vma.
1819
80c8485c
ILT
1820 * configure, config.in: Regenerate with autoconf 2.7.
1821
3b3f7625
ILT
1822 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
1823 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
1824
fa63d1ef
ILT
1825Wed Nov 22 12:02:09 1995 Ian Lance Taylor <[email protected]>
1826
a877f591
ILT
1827 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
1828 (ecoff_sec_to_styp_flags): Likewise.
1829 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
1830 (ecoff_set_symbol_info): Handle scRConst.
1831 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
1832 (ecoff_compute_section_file_positions): Handle .rconst section.
1833 (_bfd_ecoff_write_object_contents): Likewise.
1834 (ecoff_link_check_archive_element): Handle scRConst.
1835 (ecoff_link_add_externals): Likewise.
1836 (ecoff_link_write_external): Handle .rconst section.
1837 (ecoff_reloc_link_order): Likewise.
1838 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
1839 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
1840 section.
1841 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
1842
fa63d1ef
ILT
1843 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
1844 DEF_DYNAMIC flag is set.
1845
25bada65
KR
1846Tue Nov 21 13:25:29 1995 Ken Raeburn <[email protected]>
1847
1848 * host-aout.c: If TRAD_HEADER is defined, include it.
1849
7938b4cb
ILT
1850Tue Nov 21 13:03:57 1995 Ian Lance Taylor <[email protected]>
1851
85e493f0
ILT
1852 * aclocal.m4 (AC_PROG_CC): Remove local definition.
1853 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
1854 (BFD_NEED_DECLARATION): New function.
1855 * configure.in: Use BFD_NEED_DECLARATION.
bd77213b
ILT
1856 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
1857 * configure, config.in: Rebuild with autoconf 2.6.
85e493f0 1858
83dcdc61
ILT
1859 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
1860 special_sections before returning when called with a non XCOFF
1861 BFD.
1862
7938b4cb
ILT
1863 * coffgen.c (coff_renumber_symbols): Sort common symbols with
1864 global symbols.
1865
1866 * coffcode.h (coff_compute_section_file_positions): Only pad the
1867 previous section to force file alignment when creating an
1868 executable.
1869
b5403ad7
ILT
1870Mon Nov 20 14:54:09 1995 Ian Lance Taylor <[email protected]>
1871
a418e05d
ILT
1872 * coffcode.h (coff_compute_section_file_positions): If
1873 RS6000COFF_C, set up the .debug section.
1874
b5403ad7
ILT
1875 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
1876 if it is not large enough to accomodate the entire TOC area with
1877 signed 16 bit offsets.
1878 (xcoff_write_global_symbol): Handle negative TOC offsets in global
1879 linkage code.
1880 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
1881 TOC anchor to use the TOC value used in the output file.
1882
90a7abbc
ILT
1883Sat Nov 18 18:01:41 1995 Ian Lance Taylor <[email protected]>
1884
1885 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
1886 (_bfd_coff_read_string_table): Likewise.
1887
177b1932
DE
1888Sat Nov 18 19:43:04 1995 Richard Earnshaw ([email protected])
1889
1890 * pe-arm.c: Fix typos.
1891 * coff-arm.c: Likewise.
1892
1893Fri Nov 17 16:22:04 1995 Kim Knuttila <[email protected]>
1894
1895 * coff-ppc.c (list_ele): Added "cat"egory member.
1896 (record_toc): New category parameter (priv or pub).
1897 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
1898 (ppc_process_before_allocation): Removed embrionic data-in-toc from
1899 the mainline. It addes extra toc cells in error.
1900 (ppc_coff_swap_sym_in_hook): Added some documentation.
1901 (dump_toc): Can now diagnose "virtual toc" chicanery.
1902
e34314c4
ILT
1903Fri Nov 17 10:41:25 1995 Philippe De Muyter <[email protected]>
1904
1905 * elf-bfd.h (struct elf_link_hash_table): Change type of
1906 dynsymcount and bucketcount fields from size_t to bfd_size_type.
1907
73a68447
ILT
1908Fri Nov 17 10:02:58 1995 Ian Lance Taylor <[email protected]>
1909
535e9e29
ILT
1910 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
1911 pointerize C_LEAFSTAT or C_LEAFEXT entries.
1912
73a68447
ILT
1913 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
1914 DT_INIT and DT_FINI entries if the _init or _fini symbol is
1915 defined or mentioned in a regular file.
1916
cd2b2402
KK
1917Thu Nov 16 15:16:42 1995 Kim Knuttila <[email protected]>
1918
1919 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
1920 (coff_ppc_relocate_section): Handle TOCDEFN attribute
1921 (coff_ppc_relocate_section): Correct REL24 handling
1922 (ppc_process_before_allocation): Correct TOCDEFN handling
1923
1924 * peicode.h (dir_names): Added name descriptions
1925
b218076e
KR
1926Thu Nov 16 03:38:03 1995 Ken Raeburn <[email protected]>
1927
1928 * VERSION: Updated to cygnus-2.6.
1929
1930Wed Nov 15 19:30:07 1995 Ken Raeburn <[email protected]>
1931
1932 * targets.c (m68k4knetbsd_vec): Declare.
1933
e9f30616
ILT
1934Wed Nov 15 18:05:52 1995 Ian Lance Taylor <[email protected]>
1935
1936 * targets.c (bfd_target): Change type of second argument to
1937 _bfd_print_private_bfd_data from void * to PTR.
1938 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
1939 using PTR rather than void *.
1940 * bfd-in2, libbfd.h: Rebuild.
1941 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
1942 to PTR.
1943 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
1944 _bfd_generic_bfd_print_private_bfd_data rather than casting
1945 bfd_true.
1946
ae75c4a4
KR
1947Wed Nov 15 04:09:14 1995 Ken Raeburn <[email protected]>
1948
1949 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
1950 "DO NOT DELETE" lines or blank lines that mkdep writes on some
1951 systems.
1952 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
1953 BFD64_BACKENDS_CFILES): New variables.
1954 (CFILES): Use them.
1955
bebcd3db
ILT
1956Tue Nov 14 11:52:23 1995 Ian Lance Taylor <[email protected]>
1957
4b71e164
ILT
1958 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
1959 not at the file position of the first section.
1960 * coffcode.h (coff_compute_section_file_positions): Avoid using
1961 unportable #elif.
1962 (coff_write_object_contents): When generating a PPC PE executable
1963 with no symbols, round up the file size to a COFF_PAGE_SIZE
1964 boundary.
1965 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
1966 don't write out a string table.
1967
631b10f4
ILT
1968 * elf.c (bfd_section_from_shdr): When using a different section
1969 header, pass the new one to _bfd_elf_make_section_from_shdr.
1970 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
1971 (elf_map_symbols): Add section VMA to symbol value when comparing
1972 against 0.
1973 (_bfd_elf_compute_section_file_positions): Only build symbol table
1974 if there are some symbols. Set file offset of symtab and strtab
1975 sections.
1976 (assign_file_positions_except_relocs): Remove dosyms parameter.
1977 Change all callers. Never set file offset of symtab and strtab
1978 sections.
1979 (_bfd_elf_copy_private_section_data): New function.
1980 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
1981 (_bfd_elf_copy_private_symbol_data): New function.
1982 (swap_out_syms): Check for special mapping of st_shndx created by
1983 copy_private_symbol_data.
1984 * elfxx-target.h: Use new copy routines.
1985 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
1986 (_bfd_elf_copy_private_section_data): Declare.
1987
1988 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
1989
1990 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
1991 C_NT_WEAK.
1992
bebcd3db
ILT
1993 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
1994 _bfd_dummy_target, matching the recent change to archive
1995 recognition.
1996
7ad4ba81
ILT
1997Mon Nov 13 13:24:38 1995 Ian Lance Taylor <[email protected]>
1998
afa67334
ILT
1999 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
2000 arithmetic on PTR types.
2001
f2bd8915
ILT
2002 * aout-target.h (MY(callback)): Set the lma of the sections.
2003
7ad4ba81
ILT
2004 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
2005 symbol into a reloc against the section.
2006
93b6a3f8
KK
2007Mon Nov 13 07:31:35 1995 Kim Knuttila <[email protected]>
2008
2009 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
2010 glue for the relocs: IMGLUE and IFGLUE.
2011 (record_toc): new function - tracks toc contents
2012 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
2013 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
2014 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
2015 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
125d37c4 2016 (ppc_record_toc_entry): Removed a debug define (duh)
93b6a3f8
KK
2017
2018 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
2019 (pe_print_idata): New function - formats the idata section data
2020 (pe_print_pdata): New function - formats the pdata section data
2021 (pe_print_private_bfd_data): calls to above
2022
c769947b
SS
2023Sun Nov 12 12:23:24 1995 Stan Shebs <[email protected]>
2024
2025 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
2026 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
2027 TARGET_SYM and TARGET_NAME for vector and BFD name.
2028 * coff-pmac.c (pmac_xcoff_vec): Remove.
2029 (TARGET_SYM, TARGET_NAME): Define.
2030 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
2031 machine to 0, not all PowerMacs are 601s.
2032
2033Fri Nov 10 12:10:14 1995 Ian Lance Taylor <[email protected]>
2034
2035 * elfcode.h (elf_object_p): Read in any program headers.
2036 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
2037 based on the program headers, if any.
2038 (elf_fake_sections): Set sh_addr from the vma, not the lma.
2039 (map_program_segments): Set p_paddr of program headers based on
2040 the lma.
2041
ee174815
ILT
2042Thu Nov 9 13:01:31 1995 Ian Lance Taylor <[email protected]>
2043
839087b7
ILT
2044 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
2045 failure.
2046
922530a6
ILT
2047 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
2048 trying to do a relocateable link with a non-a.out object file.
2049
2050 * archive.c (bfd_generic_archive_p): Check the first object file
2051 in an archive even if target_defaulted is set. If the object file
2052 has the wrong xvec, reject it.
2053
a1774c51
ILT
2054 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
2055 be represented, report the name via _bfd_error_handler.
2056 (translate_to_native_sym_flags): Likewise.
2057 * elf32-mips.c (mips_elf_final_link): Likewise.
2058 * oasys.c (oasys_write_sections): Likewise.
2059
4a378b13
ILT
2060 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
2061 which checks for STYP_OVRFLO sections.
2062 (coff_compute_section_file_positions): If RS6000COFF_C, handle
2063 reloc and lineno count overflows.
2064 (coff_write_object_contents): Call coff_count_linenumbers before
2065 coff_compute_section_file_positions. If RS6000COFF_C, handle
2066 reloc and lineno count overflows.
2067 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
2068 relocs before dealing with .pad sections. Count overflow section
2069 headers when handling .pad sections.
2070
7906bf87
ILT
2071 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
2072 if RS6000COFF_C.
2073
ee174815
ILT
2074 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
2075 (struct xcoff_link_hash_table): Add descriptor_section and
2076 special_sections fields.
2077 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
2078 (xcoff_link_add_symbols): Set linkage section alignment. Create
2079 descriptor section. Check for magic symbol names (_text, etc.),
2080 and record them in special_sections if found. Set
2081 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
2082 descriptor field to point back to the function code symbol.
2083 (xcoff_sweep): Always mark the special descriptor_section.
2084 (bfd_xcoff_export_symbol): Check whether the symbol might be a
2085 function descriptor, and mark it if it is.
2086 (bfd_xcoff_size_dynamic_sections): Add new special_sections
2087 parameter, and fill it in. Allocate space for the descriptor
2088 section.
2089 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
2090 global linkage code. If an undefined function descriptor is
2091 exported, arrange to define it. Warn about any other undefined
2092 exported symbol.
2093 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
2094 (xcoff_write_global_symbol): Create a function descriptor when
2095 necessary.
2096 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
2097 * bfd-in2.h: Rebuild.
2098
0e829f18
KK
2099Thu Nov 9 08:40:23 1995 Kim Knuttila <[email protected]>
2100
2101 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
2102 (ppc_coff_link_hash_table): new types for hashing
2103 (ppc_coff_link_hash_newfunc): hash entry constructor
2104 (ppc_coff_link_hash_table_init): hash table initializer
2105 (ppc_coff_link_hash_table_create): hash table constructor
2106 (ppc_record_toc_entry): changed references to hash table
2107 (coff_ppc_relocate_section): changed references to hash table
2108
2109 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
2110 * libcoff.h: Rebuild
2111
2112 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
2113 (coff_link_add_symbols): removed toc_offset init
2114
7ac84736
KR
2115Thu Nov 9 04:00:38 1995 Ken Raeburn <[email protected]>
2116
b27cc4bc
KR
2117 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
2118 first.
2119
7ac84736
KR
2120 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
2121 if it is given and mmep is available.
2122 * acconfig.h: Undef USE_MMAP.
2123 * configure, config.in: Regenerated.
2124 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
2125 table handling the old way.
2126 (aout_get_external_symbols): Don't complain if last byte of string
2127 table is nonzero.
2128 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
2129 (bfd_free_window) [! USE_MMAP]: Don't define.
2130 (bfd_get_file_window,
2131 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
2132
1b3b0c03
ILT
2133Wed Nov 8 20:03:44 1995 Eric Freudenthal <[email protected]>
2134
2135 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
2136 0xffff0000.
2137
092abcdf
ILT
2138Wed Nov 8 11:31:11 1995 Ian Lance Taylor <[email protected]>
2139
33698029
ILT
2140 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
2141 compatible with AMD generated COFF files. Try to support both AMD
2142 and GNU formats simultaneously.
2143 (coff_a29k_relocate_section): Likewise.
2144
0bb8ff19
ILT
2145 * libbfd.c (bfd_get_file_window): Change writable parameter from
2146 int to boolean; update all callers. Pass MAP_SHARED if not
2147 writable--it's required on Solaris. Cast fprintf argument to
2148 avoid warning.
2149 * bfd-in.h (bfd_get_file_window): Update declaration.
2150 * bfd-in2.h: Rebuild.
2151 * aoutx.h: Update calls to bfd_get_file_window.
2152
0634a431
ILT
2153 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
2154 Change all uses.
2155 (xcoff_swap_ldhdr_in): New static function.
2156 (xcoff_swap_ldsym_in): New static function.
7812bf9c 2157 (xcoff_find_reloc): Handle the case of a single reloc correctly.
0634a431
ILT
2158 (xcoff_link_add_symbols): If we just created a descriptor, pass it
2159 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
417acf22 2160 Handle XTY_ER/XMC_XO symbols correctly.
0634a431
ILT
2161 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
2162 rather than normal symbol table.
417acf22
ILT
2163 (bfd_xcoff_import_symbol): It's not an error if the symbol is
2164 already defined with the same absolute value.
0634a431
ILT
2165 (xcoff_mark): When considering called symbols, check whether the
2166 descriptor is from a dynamic object, rather than the symbol
2167 itself.
2168 (xcoff_build_ldsyms): Likewise.
2169
092abcdf
ILT
2170 * libbfd.c (bfd_get_file_window): Change return type to boolean.
2171 Cast realloc and malloc return values. If malloc or realloc fail,
2172 set bfd_error_no_memory.
2173 * bfd-in.h (bfd_get_file_window): Change type to boolean.
2174 * bfd-in2.h: Rebuild.
2175
d6f41a7d
KK
2176Tue Nov 7 11:53:48 1995 Kim Knuttila <[email protected]>
2177
2178 * coff-ppc.c (ppc_record_toc_entry): new function.
2179 (in_reloc_p): changed return value.
2180 (coff_ppc_relocate_section): much rework.
2181 (ppc_allocate_toc_section): new function.
2182 (ppc_process_before_allocation): new function.
2183 (ppc_coff_swap_sym_in_hook): new function.
2184
2185 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
2186 (coff_link_add_symbols): initialize toc_offset.
2187
2188 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
2189 (coff_swap_aouthdr_out): Added more sections to the data
2190 dictionary for the pe file header. Also changed linker version
2191 number on the ppc side.
2192 (dir_names): small improvements to the dictionary printing.
2193 (pe_mkobject_hook): save the file level flags.
2194
2195 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
2196 (pe_tdata): added real_flags field
2197 (coff_tdata): added local_toc_sym_map and access macro
2198
2199 * libcoff.h (coff_link_hash_entry): added toc_offset field
2200 (pe_tdata): added real_flags field
2201 (coff_tdata): added local_toc_sym_map and access macro
2202
2203 * coffcode.h (coff_set_alignment_hook): added hook for PE.
2204 (coff_mkobject): init for local_toc_sym_map
2205 (coff_write_object_contents): set the internal_a.magic to
2206 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
2207 ppc compilers use.
2208
6bc200f2
ILT
2209Tue Nov 7 13:48:58 1995 Ian Lance Taylor <[email protected]>
2210
c0971298
ILT
2211 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
2212 entries until both the line number address and the function name
2213 address are too large.
2214
6a468850
ILT
2215 * configure.in: Call AC_CHECK_PROG to find and cache AR.
2216 * configure: Rebuilt.
2217
6bc200f2
ILT
2218 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
2219 is defined in the environment.
2220
c44bf94c
JL
2221Tue Nov 7 10:57:24 1995 Jeffrey A Law ([email protected])
2222
2223 * som.c (som_get_section_contents_in_window): Define to use
2224 generic version.
2225
cf587de8
ILT
2226Mon Nov 6 17:13:15 1995 Harry Dolan <[email protected]>
2227
2228 * coff-i860.c: New file, based on coff-i386.c.
2229 * cpu-i860.c: New file, based on cpu-i386.c.
2230 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
2231 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
2232 targets, using i860coff_vec.
2233 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
2234 trad-core.o and hosts/i860mach3.h.
2235 (i860coff_vec): Use coff-i860.o and cofflink.o.
2236 * configure: Rebuild.
2237 * Makefile.in: Rebuild dependencies.
2238 (ALL_MACHINES): Add cpu-i860.o.
2239 (BFD32_BACKENDS): Add coff-i860.o.
2240 (CFILES): Add cpu-i860.c and coff-i860.c.
2241 * targets.c (i860coff_vec): Declare.
2242 (bfd_target_vector): Add &i860coff_vec.
2243 * archures.c (bfd_i860_arch): Declare.
2244 (bfd_archures_list): Add &bfd_i860_arch.
2245 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
2246 (coff_set_flags): Handle bfd_arch_i860.
2247 (coff_write_object_contents): Handle I860 a.out magic number.
2248
83c23fca
ILT
2249Mon Nov 6 14:34:07 1995 Ian Lance Taylor <[email protected]>
2250
2251 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
2252 the created .tc section to 2.
2253 (xcoff_mark): Don't keep a .loader reloc for a call to an
2254 undefined symbol when creating a shared library.
2255 (xcoff_build_ldsyms): When creating a shared library, generate
2256 global linkage code for a call to an undefined symbol.
2257
5d9eb9c3
KR
2258Sun Nov 5 21:44:13 1995 Ken Raeburn <[email protected]>
2259
2260 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
2261 BFD32_BACKENDS, BFD64_BACKENDS.
2262 (.dep1): Put mkdep output in a separate file.
2263 Rebuilt dependencies.
2264
ffacb892
KR
2265 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
2266 value.
2267
4fe6d901
KR
2268 Permit use of mmap when available:
2269
2270 * configure.in: Check for mmap, madvise, mprotect.
2271 * config.in, configure: Regenerated.
2272
2273 * libbfd.c (struct _bfd_window_internal): Define type.
2274 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
2275 functions.
2276 (ok_to_map): New static variable for debugging.
2277 (_bfd_generic_get_section_contents_in_window): New function.
2278 * bfd-in.h (bfd_window_internal): Declare type.
2279 (bfd_window): Define type.
2280 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
2281 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
2282 Declare.
2283
2284 * libaout.h (struct aoutdata): Add two window fields.
2285 (obj_aout_sym_window, obj_aout_string_window): New macros.
2286 * aoutx.h (some_aout_object_p): Initialize windows.
2287 (aout_get_external_symbols): Get symbol data and strings in
2288 windows instead of explicitly allocated buffers.
2289 (slurp_symbol_table): Free window instead of memory.
2290 (bfd_free_cached_info): Release windows instead of freeing storage
2291 directly.
2292 (aout_link_free_symbols): Ditto.
2293
2294 * targets.c (bfd_target): Add new field for
2295 get_section_contents_in_window.
2296 (BFD_JUMP_TABLE_GENERIC): Updated.
2297 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
2298 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
2299 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
2300 macros for get_section_contents_in_window field.
2301
d9e771e3
FF
2302Sat Nov 4 12:23:26 1995 Fred Fish <[email protected]>
2303
2304 * core.c: Renamed to corefile.c
2305 * makefile.dos (OBJS): Change core.o to corefile.o
2306 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
2307
bf917766
SG
2308start-sanitize-gm
2309Sat Nov 4 10:16:54 1995 Stu Grossman ([email protected])
2310
2311 * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to
2312 targ_selvecs to allow debugging under Irix-5 native.
2313
2314end-sanitize-gm
583db7a8
ILT
2315Fri Nov 3 15:54:59 1995 Ian Lance Taylor <[email protected]>
2316
2317 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
2318 to o. Clobber and restore the list of new csects around the call
2319 to _bfd_generic_link_add_one_symbol, in case it wants to report a
2320 linker error and the linker wants to read the symbol table. Reset
2321 the line number count of a real section even if it has no relocs.
2322 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
2323
2324 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
2325 is too small.
2326
68aed7db
ILT
2327Thu Nov 2 23:16:39 1995 Ian Lance Taylor <[email protected]>
2328
18a9609c
ILT
2329 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
2330 an undefined symbol in a shared link.
2331
68aed7db
ILT
2332 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
2333 oldtype from bfd_link_order_type to bfd_link_hash_type. From
2334 [email protected] (Philippe De Muyter).
2335
7f82c7e1
ILT
2336Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <[email protected]>
2337
2338 * coff-m88k.c (rtype2howto): New static function.
2339 (RTYPE2HOWTO): Use it rather than a macro definition.
2340
2341 * coffcode.h (coff_write_object_contents): set internal_a.magic
2342 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
2343
4c8b9746 2344 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
7f82c7e1
ILT
2345 define TRAD_HEADER to new file hosts/delta68.h.
2346 m88*-motorola-sysv*, however, does use ptrace-core.o.
2347 * hosts/delta68.h: New file.
2348
2349 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
2350 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
2351
619c7730
KR
2352Wed Nov 1 13:51:54 1995 Ken Raeburn <[email protected]>
2353
2354 * i386linux.c (MY(vec)): Declare before use.
2355
73246ff8
ILT
2356Wed Nov 1 11:45:07 1995 Ian Lance Taylor <[email protected]>
2357
e8d6d5d0
ILT
2358 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
2359 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
2360
b2193cc5
ILT
2361 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
2362 BFD is not of the right type.
2363 (bfd_elf_get_needed_list): Likewise.
2364 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
2365 * sunos.c (bfd_sunos_get_needed_list): Likewise.
2366 * xcofflink.c (XCOFF_XVECP): Define.
2367 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
2368 of the right type.
2369 (bfd_xcoff_import_symbol): Likewise.
2370 (bfd_xcoff_export_symbol): Likewise.
2371 (bfd_xcoff_link_count_reloc): Likewise.
2372 (bfd_xcoff_record_link_assignment): Likewise.
2373 (bfd_xcoff_size_dynamic_sections): Likewise.
2374
baabeb74
ILT
2375 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
2376 table index against the number of symbols for a base relative
2377 reloc.
2378
73246ff8
ILT
2379 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
2380 static function.
2381 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
2382 full_aouthdr flag here...
2383 (_bfd_xcoff_bfd_final_link): ...not here.
2384
6ab826bd
FF
2385Tue Oct 31 12:52:02 1995 Fred Fish <[email protected]>
2386
2387 * libelf.h: Rename to elf-bfd.h to avoid conflict with
2388 systems that have a system <libelf.h>.
2389 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
2390 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
2391 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
2392 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
2393 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
2394 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
2395 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
2396
999cc186
ILT
2397Tue Oct 31 15:30:07 1995 David Mosberger-Tang <[email protected]>
2398
0652d579
ILT
2399 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
2400 set, set BSF_WEAK in symbol. Change all callers.
2401 (ecoff_get_extr): Set weakext based on BSF_WEAK.
2402 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
2403 _bfd_generic_link_add_one_symbol.
2404 (ecoff_indirect_link_order): Check that the section tdata relocs
2405 are not NULL before using them.
2406
999cc186
ILT
2407 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
2408 define TRAD_HEADER as hosts/alphalinux.h.
2409 * configure: Rebuild.
2410 * hosts/alphalinux.h: New file.
2411 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
2412 not int.
2413
e6080520
ILT
2414Tue Oct 31 12:34:11 1995 Ian Lance Taylor <[email protected]>
2415
2bd0aeb9
ILT
2416 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
2417 C_ECOMM storage classes.
2418
e6080520
ILT
2419 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
2420 of xcoff_mark.
2421 (xcoff_mark): Call xcoff_mark_symbol.
2422 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
2423 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
2424 doing it by hand.
2425 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
2426
5fe14a9f
ILT
2427Mon Oct 30 14:53:48 1995 Ian Lance Taylor <[email protected]>
2428
f630a0a4
ILT
2429 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
2430 field.
2431 (xcoff_find_reloc): New static function.
2432 (xcoff_link_add_symbols): Use it.
2433 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
2434 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
2435 relocate the value of C_DECL.
2436
5fe14a9f
ILT
2437 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
2438
dff77ed7
SC
2439Sat Oct 28 01:25:34 1995 steve chamberlain <[email protected]>
2440
2441 * cofflink.c (_bfd_coff_generic_relocate_section): Make
2442 callback decide what goes in .relocs.
2443 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
2444 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
2445 there is one.
2446
697a8fe8
ILT
2447Sat Oct 28 01:51:02 1995 Ian Lance Taylor <[email protected]>
2448
2449 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
2450 absolute section.
2451
2d7de17d
ILT
2452Fri Oct 27 18:14:39 1995 Ian Lance Taylor <[email protected]>
2453
2454 * xcofflink.c: More improvements, mostly to fix handling of
2455 constructors and a few other special cases.
2456 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
2457 zero, reverting yesterday's change.
2458 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
2459 (bfd_xcoff_link_count_reloc): Declare.
2460 (bfd_xcoff_record_link_assignment): Declare.
2461 * bfd-in2.h: Rebuild.
2462
f552f751
NH
2463Fri Oct 27 14:42:15 1995 Niklas Hallqvist <[email protected]>
2464
2465 * PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h,
2466 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
2467 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
2468 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
2469 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
2470 Change PAGE_SIZE to TARGET_PAGE_SIZE.
2471
2472 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
2473 format.
2474
2475 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
2476 segments includes the a.out header. See to that the magic number
2477 *always* is big-endian.
2478
2479 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
2480 m68k4k NetBSD configurations.
2481
2482 * configure.in, configure: Separate i386 & mips NetBSD
2483 configurations from other BSD ones. Don't assume DEC is the only
2484 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
2485 configurations. Add support for m68k4k NetBSD object format.
2486
2487 * libaout.h: Added M_68K4K_NETBSD magic.
6fd1f40d
NH
2488
2489 * m68k4knetbsd.c: New file.
f552f751
NH
2490
2491 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
2492
2493 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
2494 <machine/endian.h>.
2495
6fd1f40d
NH
2496 * hosts/mipsnbsd.h: New file.
2497
d6d44ef9
SG
2498start-sanitize-gm
2499Fri Oct 27 09:41:51 1995 Stu Grossman ([email protected])
2500
2501 * config.bfd: Add config stuff for mips*-*-magic* to set
2502 targ_defvec to ecoff_big_vec.
2503
2504end-sanitize-gm
867d923d
ILT
2505Thu Oct 26 14:16:47 1995 Ian Lance Taylor <[email protected]>
2506
2507 * xcofflink.c: Numerous changes to get closer to a working XCOFF
2508 linker.
2509 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
2510 toc_section, and entry_section fields.
2511 (struct xcoff_section_tdata): Remove ldrel_count field.
2512 * libcoff.h: Rebuild.
2513 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
2514 fields.
2515 (coff_compute_section_file_positions): If RS6000COFF_C, generate
2516 full a.out header if full_aouthdr is set in xcoff_data.
2517 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
2518 based on sections stored in xcoff_data.
2519 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
2520 fields.
aad2c618
ILT
2521 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
2522 (rs6000coff_vec): Set symbol_leading_char to '.'.
867d923d
ILT
2523 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
2524 value stored in ret rather than returning a pointer value.
2525
6bd9ffdb
MM
2526Wed Oct 25 23:10:39 1995 Michael Meissner <[email protected]>
2527
2528 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
2529 format for now.
2530
9d14250f
JL
2531Wed Oct 25 16:19:27 1995 Jeffrey A Law ([email protected])
2532
2533 * som.c (som_slurp_string_table): Allocate the strings with malloc
2534 since they're free'd by free_cached_info.
2535 (som_slurp_symbol_table): Similarly for the symbol table.
2536
a2bd0529
PB
2537Wed Oct 25 14:59:22 1995 Per Bothner <[email protected]>
2538
2539 * Makefile.in (diststuff): Don't make headers.
2540
28a0c103
ILT
2541Wed Oct 25 11:32:54 1995 Ian Lance Taylor <[email protected]>
2542
356cd465
ILT
2543 * Makefile.in: Rebuild dependencies.
2544
1edd3a7b
ILT
2545 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
2546 output_bfd is not SunOS.
2547 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
2548 non-SunOS input files.
2549
28a0c103
ILT
2550 * xcofflink.c: Extensive changes to support linking shared objects
2551 and generating a .loader section.
2552 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
b73322d9
ILT
2553 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
2554 last_symndx, and ldrel_count fields.
28a0c103
ILT
2555 * libcoff.h: Rebuild.
2556 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
2557 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
2558 is set.
2559 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
2560 (bfd_xcoff_export_symbol): Declare.
2561 (bfd_xcoff_size_dynamic_sections): Declare.
2562 * bfd-in2.h: Rebuild.
2563
aadf04f7
SS
2564Tue Oct 24 17:44:20 1995 Stan Shebs <[email protected]>
2565
2566 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
2567 * configure: Rebuild.
2568 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
2569 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
2570 contents.
2571 (pmac_xcoff_vec): Update to use new xcoff support.
2572 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
2573 (xcoff_write_armap): Declare buf as unsigned char.
2574 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
2575
2576 * mpw-make.sed: Generalize subdir_do edit.
2577
ddf4639b
JL
2578Tue Oct 24 10:25:01 1995 Jeffrey A Law ([email protected])
2579
2580 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
2581 correctly. Don't initialize asect->vma.
2582
e7bedf65
KR
2583Fri Oct 20 13:23:48 1995 Ken Raeburn <[email protected]>
2584
2585 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
2586 something a little less than the page size.
2587
2588Thu Oct 19 13:06:09 1995 Ian Lance Taylor <[email protected]>
2589
2590 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
2591
3a70e298
SC
2592Wed Oct 18 16:20:08 1995 steve chamberlain <[email protected]>
2593
2594 * coff-i386.c (coff_i386_reloc_type_lookup): New.
2595 * coffcode.h (coff_write_object_contents): If .bss is before
2596 .data us that as data_start.
2597 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
2598 calc correct.
2599 * peicode.h (add_data_entry): Use _cooked_size of data directory.
2600 (coff_swap_outhdr_out): Hardwire in version number.
2601
5a2846e3
KR
2602Wed Oct 18 16:50:54 1995 Ken Raeburn <[email protected]>
2603
3c3a5268
KR
2604 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
2605 major and minor to *_vno, since the former are also macros in
2606 SunOS header files. Cast result of bfd_alloc to appropriate
2607 type.
2608
5a2846e3
KR
2609 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
2610 before assigning to sec_data.
2611
0f6c885e
ILT
2612Wed Oct 18 13:25:17 1995 Ian Lance Taylor <[email protected]>
2613
2614 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
2615 now relative to the section, not absolute.
2616 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
2617 get the file name when there is a N_SO directory name. When
2618 handling stabs, remember that section->vma was added to the
2619 offset.
2620
11fa6636
ILT
2621Tue Oct 17 18:24:54 1995 Ian Lance Taylor <[email protected]>
2622
2623 * sunos.c (struct sunos_link_hash_table): Add needed field.
2624 (sunos_link_hash_table_create): Call bfd_release, not free.
2625 (sunos_link_hash_table_create): Initialize needed field.
2626 (sunos_add_dynamic_symbols): Record needed objects.
2627 (bfd_sunos_get_needed_list): New function.
2628 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
2629 * bfd-in2.h: Rebuild.
2630
c974e19e
SC
2631Mon Oct 16 14:43:59 1995 steve chamberlain <[email protected]>
2632
2633 * libcoff-in.h (pe_data_type.in_reloc_p): New.
2634
22a35f0b
ILT
2635Mon Oct 16 10:52:50 1995 Ian Lance Taylor <[email protected]>
2636
54406786
ILT
2637 * bfd-in.h (struct bfd_link_needed_list): Rename from
2638 bfd_elf_link_needed_list.
2639 * bfd-in2.h: Rebuild.
2640 * elf.c, elflink.h, libelf.h: Corresponding changes.
2641
dd984644
ILT
2642 Add start at AIX linker support; no shared libraries yet.
2643 * xcofflink.c: New file.
2644 * configure.in (rs600coff_vec): Use xcofflink.o.
2645 * configure: Rebuild.
2646 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
2647 fields.
2648 (struct xcoff_section_tdata): Define.
2649 (xcoff_section_data): Define macro.
2650 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
2651 (_bfd_xcoff_bfd_link_add_symbols): Declare.
2652 (_bfd_xcoff_bfd_final_link): Declare.
2653 (_bfd_ppc_xcoff_relocate_section): Declare.
2654 * libcoff.h: Rebuild.
2655 * coff-rs6000.c: Clean up a bit.
2656 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
2657 cputype, csects, and debug_indices.
2658 (xcoff_copy_private_bfd_data): Copy cputype.
2659 (xcoff_howto_table): Rename from rs6000coff_howto_table.
2660 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
2661 (xcoff_reloc_type_lookup): Rename from
2662 rs6000coff_reloc_type_lookup.
2663 (coff_relocate_section): Define.
2664 (_bfd_xcoff_sizeof_headers): Define.
2665 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
2666 (_bfd_xcoff_bfd_relax_section): Define.
2667 (_bfd_xcoff_bfd_link_split_section): Define.
2668 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
2669 coff.
2670 * coffcode.h (coff_compute_section_file_positions): If AIX,
2671 increment sofar by SMALL_AOUTSZ if not executable.
2672 (coff_write_object_contents): If AIX, always output an a.out
2673 header; if not executable, header size of SMALL_AOUTSZ.
2674 * hash.c (struct bfd_strtab_hash): Add xcoff field.
2675 (_bfd_stringtab_init): Initialize xcoff field.
2676 (_bfd_xcoff_stringtab_init): New function.
2677 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
2678 (_bfd_stringtab_emit): In XCOFF mode, write out length.
2679 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
2680 * libbfd.h: Rebuild.
2681 * Makefile.in: Rebuild dependencies.
2682 (BFD32_BACKENDS): Add xcofflink.o.
2683 (CFILES): Add xcofflink.c.
2684
22a35f0b
ILT
2685 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
2686 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
2687 <[email protected]>.
2688
fb417a21
MM
2689Sat Oct 14 21:36:02 1995 Michael Meissner <[email protected]>
2690
2691 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
2692
2693Fri Oct 13 17:48:43 1995 Ken Raeburn <[email protected]>
2694
2695 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
2696 * config.in: Regenerated.
2697
2698 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
2699 (_bfd_chunksize): New variable.
2700 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
2701 for obstack chunk size.
2702 * configure.in: Check for getpagesize.
2703 * configure: Regenerated.
2704
2705 Mon Sep 25 22:49:32 1995 Andreas Schwab <[email protected]>
2706
2707 * trad-core.c (rawptr): Make it a local variable of
2708 ptrace_unix_core_file_p.
2709
b1e46369
SC
2710Fri Oct 13 11:22:01 1995 steve chamberlain <[email protected]>
2711
2712 * coff-arm.c (in_reloc_p): New.
2713 * coff-i386.c (in_reloc_p): New.
2714 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
2715 (coff_write_object_contents): Only set has_reloc_section
2716 if PE_IMAGE.
2717 * cofflink.c (_bfd_coff_generic_relocate_section): Call
2718 in_reloc_p to decide if reloc should be emitted.
2719 * libcoff.h (pe_data_type.in_reloc_p): New.
2720 * peicode.h (pe_mkobject): Initialize in_reloc_p.
2721
ee9f09cd
ILT
2722Wed Oct 11 00:49:29 1995 Ian Lance Taylor <[email protected]>
2723
b1e46369
SC
2724 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
2725 (_bfd_coff_read_internal_relocs): Likewise.
2726 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
2727 (_bfd_coff_read_internal_relocs): Likewise.
2728
ee9f09cd
ILT
2729 * elflink.h (elf_link_add_object_symbols): Correct conditions
2730 under which type and size change warnings are issued.
2731
78b31b6b
ILT
2732Tue Oct 10 18:32:46 1995 Ian Lance Taylor <[email protected]>
2733
2734 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
2735 a symbol which is not in a real section.
2736 (coff_write_native_symbol): Corresponding change.
2737
2738 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
2739 coff_link_hash_newfunc and make non-static.
2740 (_bfd_coff_link_hash_table_init): New function, broken out of
2741 _bfd_coff_link_hash_table_create.
2742 (_bfd_coff_link_hash_table_create): Use it.
2743 (process_embedded_commands): Make static.
2744 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
2745 (_bfd_coff_link_hash_table_init): Declare.
2746 * libcoff.h: Rebuild.
2747
2748 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
2749 field in XCOFF tdata.
2750 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
2751 U802ROMAGIC, for clarity. Try to set arch and machine correctly
2752 based on cputype stored in a.out header, or in n_type of initial
2753 .file symbol.
2754 (coff_write_object_contents): Set cputype correctly in a.out
2755 header.
2756 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
2757 warnings.
2758 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
2759 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
2760 old resv1 field.
2761 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
2762 * libcoff.h: Rebuild.
2763
2764 * cpu-rs6000.c (rs6000_compatible): New static function.
2765 (bfd_rs6000_arch): Use it.
2766 * cpu-powerpc.c (powerpc_compatible): New static function.
2767 (arch_info_struct): Define various flavours of PowerPC.
2768 (bfd_powerpc_arch): Use powerpc_compatible. Point at
2769 arch_info_struct.
2770
9dd7e56f
FF
2771Tue Oct 10 10:50:46 1995 Fred Fish <[email protected]>
2772
78b31b6b 2773 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9dd7e56f 2774
8235c112
ILT
2775Tue Oct 10 01:28:29 1995 Ian Lance Taylor <[email protected]>
2776
2777 * elflink.h (elf_link_add_object_symbols): Don't warn about
2778 changing the size or type if the old definition was weak.
2779
0322af0d
ILT
2780Mon Oct 9 11:24:08 1995 Ian Lance Taylor <[email protected]>
2781
49488f2b
ILT
2782 * coffcode.h (combined_entry_type): Add fix_line field.
2783 (coff_slurp_line_table): Warn if we try to set the lineno field of
2784 a symbol twice.
2785 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
2786 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
2787 * coffgen.c (coff_mangle_symbols): Handle fix_line.
2788 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
2789 absolute section.
2790 (coff_print_symbol): Print fix_value symbols in a useful fashion.
2791 * libcoff.h: Rebuild.
2792
5f710a3a
ILT
2793 * libcoff-in.h (struct xcoff_tdata): Define.
2794 (xcoff_data): Define.
2795 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
2796 * bfd-in2.h, libcoff.h: Rebuild.
2797 * coff-rs6000.c (xcoff_mkobject): New static function.
2798 (coff_mkobject): Define.
2799 (xcoff_copy_private_bfd_data): New static function.
2800 (coff_bfd_copy_private_bfd_data): Define.
2801 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
2802 signed to bitfield.
2803 (rs6000coff_vec): Add DYNAMIC to object_flags.
2804 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
2805 .loader sections specially.
2806 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
2807 section alignment from the XCOFF tdata information.
2808 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
2809 F_SHROBJ, and copy the extra a.out header information into the
2810 XCOFF tdata structure.
2811 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
2812 F_DYNLOAD and the extra a.out header information.
2813 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
2814 C_HIDEXT symbol with attached csect information.
2815 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
2816 in the o_maxdata field.
2817 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
2818 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
2819 end if BSF_NOT_AT_END is set.
3f2c5b2d 2820
0322af0d
ILT
2821 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
2822 _bfd_read_ar_hdr_fn.
2823 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
2824 * bfd-in2.h, libbfd.h: Rebuild.
2825 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
2826 return value.
2827 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
2828 (bfd_slurp_bsd_armap_f2): Likewise.
2829 (_bfd_slurp_extended_name_table): Likewise.
2830
3266eaff
KR
2831Fri Oct 6 16:18:35 1995 Ken Raeburn <[email protected]>
2832
2833 Mon Sep 25 22:49:32 1995 Andreas Schwab <[email protected]>
2834
2835 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
2836 when the symbol table is empty.
2837
2838 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
2839 space for section symbols, since we don't output them either.
2840 (elf_m68k_adjust_dynindx): Removed.
2841
2842 * ptrace-core.c (rawptr): Make it a local variable of
2843 ptrace_unix_core_file_p.
3266eaff 2844
249479fa
MM
2845Fri Oct 6 12:24:47 1995 Michael Meissner <[email protected]>
2846
45b5d2f0
MM
2847 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
2848 NULL.
2849
249479fa
MM
2850 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
2851 Mac object file formats.
2852
c53fac12
ILT
2853Fri Oct 6 12:04:02 1995 Ian Lance Taylor <[email protected]>
2854
4372f33f
ILT
2855 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
2856 auxent if there isn't one.
2857 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
2858 rather than FILNMLEN as the maximum name length.
2859
0fc9ada9
ILT
2860 * coffcode.h (bfd_coff_backend_data): Add new field
2861 _bfd_coff_print_aux.
2862 (bfd_coff_print_aux): New static function.
2863 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
2864 scnlen field of an XTY_LD csect aux entry.
2865 (coff_print_aux): New static function.
2866 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
2867 in coff_pointerize_aux_hook.
2868 (bfd_coff_std_swap_table): Initialize new field.
2869 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
2870 * libcoff.h: Rebuild.
2871 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
2872 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2873
7860fe38
ILT
2874 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
2875 if there are symbols, for native AIX ld compatibility.
2876
c80cc833
ILT
2877 * coffcode.h (bfd_coff_backend_data): Add new field
2878 _bfd_coff_pointerize_aux_hook.
2879 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
2880 or I960, and as 0 otherwise.
2881 (bfd_coff_std_swap_table): Initialize new field.
2882 * libcoff.h: Rebuild.
2883 * coffgen.c (coff_pointerize_aux): Change parameters to take
2884 symbol pointer instead of type and class, and to take aux index.
2885 Call _bfd_coff_pointerize_aux_hook if it is defined.
2886 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
2887 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
2888 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2889
c53fac12
ILT
2890 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
2891 read-only/host-only support.
2892
2893 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
2894 BSF_LOCAL.
d11e6b52
ILT
2895 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
2896 RS6000COFF_C.
c53fac12
ILT
2897
2898 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
2899 BFD_JUMP_TABLE_ARCHIVE accordingly.
2900 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
2901 (_bfd_compute_and_write_armap): Declare.
2902 (_bfd_generic_read_ar_hdr): Declare.
2903 (_bfd_read_ar_hdr): Define.
2904 (_bfd_noarchive_read_ar_hdr): Define.
2905 (_bfd_archive_bsd_read_ar_hdr): Define.
2906 (_bfd_archive_coff_read_ar_hdr): Define.
2907 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
2908 _bfd_read_ar_hdr instead.
2909 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
2910 (_bfd_compute_and_write_armap): Rename from
2911 compute_and_write_armap. Make non-static. Change all callers.
2912 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
2913 than _bfd_snarf_ar_hdr.
2914 * aout-target.h (MY_read_ar_hdr): Define if not defined.
2915 * ieee.c (ieee_read_ar_hdr): Define.
2916 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
2917 * oasys.c (oasys_read_ar_hdr): Define.
2918 * som.c (som_read_ar_hdr): Define.
2919 * bfd-in2.h, libbfd.h: Rebuild.
2920
f8e47484
SC
2921Thu Oct 5 14:04:07 1995 steve chamberlain <[email protected]>
2922
2923 * peicode.c (coff_swap_filehdr_in): If symptr is
2924 zero, there aren't any symbols, even if nsyms is set.
2925
2b874a2d
ILT
2926Thu Oct 5 11:45:02 1995 Ian Lance Taylor <[email protected]>
2927
aca73687
ILT
2928 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
2929 field.
2930 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
2931 sections, and set styp correctly for them: .got, .hash, .dynamic,
2932 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
2933 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
2934 types.
2935 (ecoff_sort_hdrs): New static function.
2936 (ecoff_compute_section_file_positions): Return boolean, not void.
2937 Sort the sections by VMA before looking through them. Put the
2938 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
2939 section on an appropriate boundary within the page.
2940 (ecoff_compute_reloc_file_positions): Check return value of
2941 ecoff_compute_section_file_positions.
2942 (_bfd_ecoff_set_section_contents): Likewise.
2943 (_bfd_ecoff_write_object_contents): Check for various Alpha
2944 section types when incrementing text_size and data_size. Call
2945 adjust_headers backend function if it exists.
2946 * coff-alpha.c (alpha_adjust_headers): New static function.
2947 (alpha_ecoff_backend_data): Initialize adjust_headers field.
2948 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2949
2b874a2d
ILT
2950 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
2951
c780e5db
JL
2952Wed Oct 4 18:15:02 1995 Jeff Law ([email protected])
2953
2954 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
2955 of ALTERNATE_AIX_CORE_FORMAT.
2956 * configure.in (aix4): No longer need CORE_FLAGS.
2957 * configure: Updated.
2958
2a01c351
KR
2959Wed Oct 4 15:36:36 1995 Ken Raeburn <[email protected]>
2960
2961 NS32k changes from Ian Dall:
2962 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
2963 macros.
2964 (aout_link_input_section_std, aout_link_input_section_ext,
2965 aout_link_reloc_link_order): Call them instead of _bfd_*
2966 versions.
2967 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
2968 to zero.
2969 (backend_data): Use it instead of hardcoded zero.
2970
2971 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
2972 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
2973
2974 * ns32knetbsd.c: Include bfd.h.
2975 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
2976 (MY_bfd_reloc_type_lookup): Declare function too.
2977 * pc532-mach.c (set_sizes): Don't declare.
2978 (MY_text_includes_header, MY_exec_header_not_counted): Define.
2979 (backend_data, MY_backend_data): Don't define.
2980
2981 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
2982 ns32k-*-lites* like ns32k-*-netbsd*.
2983
2984 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
2985 compile on lites.
2986
5944d75b
ILT
2987Wed Oct 4 14:15:52 1995 Ian Lance Taylor <[email protected]>
2988
2989 * coffcode.h (coff_write_object_contents): Restore setting
2990 f_timdat to 0, deleted on August 22.
2991
db344f82
SC
2992Tue Oct 3 16:28:32 1995 steve chamberlain <[email protected]>
2993
2994 * coffcode.h (coff_bfd_copy_private_symbol_data,
2995 coff_bfd_copy_private_section_data,
2996 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
2997 * peicode.h (coff_bfd_copy_private_bfd_data): New
2998 (pe_bfd_copy_private_bfd_data): New.
2999 (coff_swap_scnhdr_in): Swap bss size into the right place.
3000 (pe_print_private_bfd_data): Add some newlines.
5944d75b 3001
c780e5db 3002Tue Oct 3 11:53:04 1995 Jeff Law ([email protected])
97f1feda
JL
3003
3004 * som.c (setup_sections): Don't die if a space has no subspaces.
3005
3d7c42c9
ILT
3006Mon Oct 2 14:08:55 1995 Ian Lance Taylor <[email protected]>
3007
3008 * elflink.h (elf_link_add_object_symbols): Don't let a weak
3009 dynamic symbol override a common symbol. Don't change the size or
3010 type if they have been set and the new symbol is not a definition.
3011 Warn if the size or type changes.
3012
c780e5db 3013Sun Oct 1 01:34:41 1995 Jeff Law ([email protected])
709af562
JL
3014
3015 * som.c (som_begin_writing): Don't write the symbol table or
3016 symbol strings.
3017 (som_finish_writing): Write them here. Place them after the
3018 subspace data, but before the relocs.
3019
3020Fri Sep 29 11:01:55 1995 Ian Lance Taylor <[email protected]>
3021
3022 * sunos.c (sunos_add_one_symbol): Just pass false, not
3023 info->shared_library, to sunos_create_dynamic_sections.
3024 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
3025 section.
3026 (sunos_check_dynamic_reloc): Remove .text section assertion.
3027
7009e451
SS
3028Thu Sep 28 18:48:47 1995 Stan Shebs <[email protected]>
3029
3030 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
3031 * configure, configure.in: Add pmac_xcoff_vec case.
3032 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
3033 * coff-pmac.c: New file, PowerMac XCOFF support.
3034 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
3035 * targets.c (pmac_xcoff_vec): Declare.
3036
3037 * mpw-config.in: Various changes to be compatible with the
3038 autoconf-based configury.
3039 * mpw-make.sed: New file, sed commands to translate Unix
3040 makefile into MPW syntax.
3041 * mpw-make.in: Remove.
3042 * hosts/mpw.h: Remove.
3043 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
3044 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
3045
b91537be
SC
3046Thu Sep 28 17:06:23 1995 steve chamberlain <[email protected]>
3047
3048 * binary.c (binary_get_symtab): Return an empty string on error.
3049 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
3050
30360a6f
KK
3051Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
3052
3053 * coff-ppc.c: Reformatted according to gnu conventions
3054 Removed irrelevant "if 0" code
3055
20d1e233
ILT
3056Thu Sep 28 11:19:53 1995 Ian Lance Taylor <[email protected]>
3057
69fd4fdd
ILT
3058 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
3059 symbols rather than as indirect symbols.
3060 (MY(slurp_symbol_table)): Don't do anything special about
3061 secondary symbols.
3062
46b5a892
ILT
3063 * coffcode.h (coff_new_section_hook): Make sure that the alignment
3064 of .ctors and .dtors sections is no larger than 2.
3065
9db59230
ILT
3066 * sunos.c (sunos_add_one_symbol): Don't change
3067 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
3068 undef list.
3069 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
3070 dynamic symbols when creating a shared library.
3071 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
3072 shared library.
3073 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
3074 written even if it is not defined in a regular object.
3075 (sunos_write_dynamic_symbol): Use plt_offset for the address of
3076 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
3077 rather than the constant 22.
3078 (sunos_check_dynamic_reloc): Handle creating a shared library.
3079 (sunos_finish_dynamic_link): Set the first entry in the GOT to
3080 zero when creating a shared library.
3081 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
3082 write it out at the start of the symbol table.
3083
20d1e233
ILT
3084 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
3085
a11e10fe
DE
3086Thu Sep 28 00:58:05 1995 Doug Evans <[email protected]>
3087
3088 * config.bfd: Add arm-*-coff.
3089 * configure.in, configure: Add armcoff_{little,big}_vec.
3090 * targets.c (armcoff_{little,big}_vec): Declare.
3091 (bfd_target_vector): Add armcoff_{little,big}_vec.
3092 * coff-arm.c (armcoff_{little,big}_vec): Always define.
3093
99062cfc
ILT
3094Wed Sep 27 10:37:14 1995 Ian Lance Taylor <[email protected]>
3095
3096 * targets.c (bfd_find_target): Remove debugging code.
3097
deacbe0f
KK
3098Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
3099
3100 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
3101 support on powerpc.
3102 * Makefile.in: added *-ppc files
3103 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
3104 allow pe based .o's to be shared with other tools on ppc/NT
3105 * config.bfd: added powerpc[le]-[pe|winnt] config support
3106 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
3107 * peicode.h: Added more section flags for PE on ppc
3108 Added coff_swap_filehdr_out to allow peicode.h to be
3109 used for non-image PE files on ppc.
3110 Check for image, or not, before copying pe_opthdr
3111 * targets.c: Added new bfd's
30360a6f
KK
3112 * targets.c: Removed two inactive bfds that shouldn't have made it this
3113 far.
deacbe0f 3114
d22b02e0
MM
3115Tue Sep 26 14:06:41 1995 Michael Meissner <[email protected]>
3116
3117 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
3118 explicit values to initialize all relocs. Change all users.
3119 (ppc_elf_brtaken_inner): New function to handle branch predicition
3120 relocs.
3121 (ppc_elf_brtaken_reloc): Ditto.
3122 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
3123 relocs use ppc_elf_unsupported_reloc.
3124 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
3125 needs to be reported.
3126 (ppc_elf_relocate_section): Support branch prediction relocs.
3127
fcf490c0
ILT
3128Tue Sep 26 12:48:05 1995 Ian Lance Taylor <[email protected]>
3129
e6cb7b41
ILT
3130 * bfd.c (bfd_assert): Remove \n from string passed to
3131 _bfd_error_handler.
3132
1af85fbb
ILT
3133 * coff-i386.c: (TWO_DATA_SECS): Don't define.
3134 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
3135 (bfd_coff_make_section_hook): Don't define.
3136 (coff_make_section_hook): Remove.
3137 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
3138 (styp_to_sec_flags): Likewise.
3139 (coff_write_object_contents): Likewise.
3140 (bfd_coff_std_swap_table): Don't initialize make_section_hook
3141 field.
3142 * libcoff.h: Rebuild.
3143 * coffgen.c (make_a_section_from_file): Just call
3144 bfd_make_section_anyway, not bfd_make_section or
3145 bfd_coff_make_section_hook.
3146 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
3147 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
3148 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
3149 make_section_hook field.
3150 * coff-mips.c (mips_ecoff_backend_data): Likewise.
3151
fcf490c0
ILT
3152 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
3153 pointers into value field for warning and indirect symbols; just
3154 leave the value field alone.
3155 * linker.c (generic_link_add_symbol_list): Use next symbol for
3156 warning and indirect symbols, rather than looking in symbol value.
3157 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
3158 parameter. Change all callers. Remove support for indirect
3159 symbols; it didn't work anyhow.
3160 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
3161 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
3162 * bfd-in2.h: Rebuild.
3163
cc47d19a
MM
3164Mon Sep 25 16:04:09 1995 Michael Meissner <[email protected]>
3165
3166 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
3167 go back to telling the tools this reloc operates on 32 bits.
3168
81449d47
ILT
3169Mon Sep 25 11:48:02 1995 Ian Lance Taylor <[email protected]>
3170
7a7fbffb
ILT
3171 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
3172 rather than a direct fprintf.
3173 * archive.c (_bfd_write_archive_contents): Likewise.
3174 * coffcode.h (coff_slurp_symbol_table): Likewise.
3175 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
3176 (ppc_elf_unsupported_reloc): Likewise.
3177 (ppc_elf_relocate_section): Likewise.
3178 * i386linux.c (linux_tally_symbols): Likewise.
3179 (linux_finish_dynamic_link): Likewise.
3180 * osf-core.c (osf_core_core_file_p): Likewise.
3181 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
3182 * som.c (som_sizeof_headers): Likewise.
3183 * srec.c (srec_bad_byte): Likewise.
3184 * bfd.c (bfd_assert): Likewise. Also change file to be const.
3185 * libbfd-in.h (bfd_assert): Declare first parameter const.
3186 * libbfd.h: Rebuild.
3187 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
3188 bfd_reloc_overflow is enough.
3189 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
3190 * coff-h8500.c (rtype2howto): Likewise.
3191 * coff-z8k.c (rtype2howto): Likewise.
3192 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
3193 * elf.c (_bfd_elf_get_lineno): Likewise.
3194 (_bfd_elf_no_info_to_howto): Likewise.
3195 (_bfd_elf_no_info_to_howto_rel): Likewise.
3196 * hp300hpux.c (convert_sym_type): Likewise.
3197 (MY(swap_std_reloc_in)): Likewise.
3198 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
3199
f1c6dd5d
ILT
3200 * libaout.h (struct aoutdata): Add line_buf field.
3201 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
3202 and filename_buffer. Instead, use a malloc buffer stored in the
3203 new line_buf field. Remove length restrictions.
3204
f0500a41
ILT
3205 * coffgen.c (string_size): Remove static variable.
3206 (debug_string_size, debug_string_section): Likewise.
3207 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
3208 and debug_string_size_p parameters. Use them instead of the
3209 global variables. Change all callers.
3210 (coff_write_symbol): Likewise.
3211 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
3212 (coff_write_symbols): Add local variables to replace removed
3213 global variables.
3214
25b5a53d
ILT
3215 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
3216 function, and line_base fields.
3217 * libcoff.h: Rebuild.
3218 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
3219 information, rather than using static variables.
3220
641ac26a
ILT
3221 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
3222 file. From Peter DeWolf <[email protected]>.
3223
81449d47
ILT
3224 * init.c (initialized): Remove static variable.
3225 (bfd_init): Don't bother setting initialized.
3226 (bfd_check_init): Remove.
3227 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
3228 * libbfd.h: Rebuild.
3229
138b9b81
PS
3230Sat Sep 23 01:22:23 1995 Peter Schauer ([email protected])
3231
3232 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
3233 size for full core dumps. Copy core file header to private data.
3234 (rs6000coff_core_file_failing_command,
3235 rs6000coff_core_file_failing_signal): New functions to extract
3236 the file name and terminating signal from the core file.
3237 * coff-rs6000.c: Use them.
3238
2ffbb79a
ILT
3239Fri Sep 22 17:44:47 1995 Ian Lance Taylor <[email protected]>
3240
3241 Change arch info to be const, initialized at compile time.
3242 * archures.c: Reindent many functions. Change CONST to const.
3243 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
3244 nothing set it anyhow. Make next const.
3245 (bfd_arch_info_list): Remove.
3246 (bfd_archures_list): Rename from archures_init_table. Change from
3247 a table of function pointers to a table of bfd_arch_info_type
3248 structure addresses.
3249 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
3250 (bfd_lookup_arch): Likewise.
3251 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
3252 const pointer.
3253 (bfd_default_arch_struct): Make const.
3254 (bfd_arch_init, bfd_arch_linkin): Remove.
3255 (bfd_get_arch_info): Return a const pointer.
3256 * init.c (bfd_init): Don't call bfd_arch_init.
3257 * bfd.c (struct _bfd): Make arch_info const.
3258 * bfd-in2.h: Rebuild.
3259 * libbfd.h: Rebuild.
3260 * configure.in: Put & before everything in $selarchs.
3261 * configure: Rebuild.
3262 * cpu-*.c: Change bfd_*_arch from a function which calls
3263 bfd_arch_linkin to a const structure.
3264 * ieee.c (ieee_object_p): Make arch const.
3265
02f85cda
MM
3266Fri Sep 22 16:23:18 1995 Michael Meissner <[email protected]>
3267
3268 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
3269 PowerPC V.4.
3270 * bfd-in2.h: Regenerate.
3271 * libbfd.h: Regenerate.
3272
3273 * elf32-ppc.c (reloc_type): Update names to match current draft.
3274 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
3275 relative. Update names to current V.4 draft.
3276 (ppc_elf_reloc_type_lookup): Add support for more relocations.
3277 (ppc_elf_relocate_section): Rename relocations to match draft.
3278
dd82c578
MM
3279Thu Sep 21 21:53:18 1995 Michael Meissner <[email protected]>
3280
3281 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
3282 compiled with -mrelocatable-lib to be linked with either normal
3283 modules or -mrelocatable modules.
3284
f69e888e
ILT
3285Wed Sep 20 12:03:26 1995 Ian Lance Taylor <[email protected]>
3286
e18c4e8f
ILT
3287 * coffcode.h (coff_write_object_contents): Clear the vstamp field
3288 in the a.out header.
3289
f69e888e
ILT
3290 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
3291 a reloc against a local symbol, even if it's not a section.
3292
a5655244
ILT
3293Tue Sep 19 17:02:26 1995 Ian Lance Taylor <[email protected]>
3294
3295 * targets.c (bfd_target): Remove unused align_power_min field.
3296 * bfd-in2.h: Rebuild.
3297 * All backends: Remove initialization of align_power_min.
3298
500d7394
SC
3299Tue Sep 19 14:02:21 1995 steve chamberlain <[email protected]>
3300
3301 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
500d7394 3302
049df0a8
ILT
3303Mon Sep 18 14:35:01 1995 Arne H. Juul <[email protected]>
3304
3305 * config.bfd (mips-dec-netbsd*): New target.
3306 * configure.host (mips-dec-netbsd*): New host.
3307 * configure.in (mips-dec-netbsd*): New native.
3308 * configure: Rebuild.
3309
1862bbd8
ILT
3310Fri Sep 15 10:24:36 1995 Ian Lance Taylor <[email protected]>
3311
3312 Make the COFF backend linker merge common types:
3313 * cofflink.c (struct coff_debug_merge_element): Define.
3314 (struct coff_debug_merge_type): Define.
3315 (struct coff_debug_merge_hash_entry): Define.
3316 (struct coff_debug_merge_hash_table): Define.
3317 (coff_debug_merge_hash_table_init): Define.
3318 (coff_debug_merge_hash_table_free): Define.
3319 (coff_debug_merge_hash_lookup): Define.
3320 (struct coff_final_link_info): Add debug_merge field.
3321 (coff_debug_merge_hash_newfunc): New static function.
3322 (_bfd_coff_final_link): Allocate and free debug_merge table.
3323 (coff_link_input_bfd): Merge identical enum, struct and union
3324 types.
3325
a208a70f
ILT
3326Thu Sep 14 14:53:58 1995 Ian Lance Taylor <[email protected]>
3327
3328 Convert i960 COFF to use COFF backend linker.
3329 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
3330 structure to store the symbol being used.
3331 (coff_i960_start_final_link): New static function.
3332 (coff_i960_relocate_section): New static function.
3333 (coff_i960_adjust_symndx): New static function.
3334 (coff_start_final_link): Define.
3335 (coff_relocate_section): Define.
3336 (coff_adjust_symndx): Define.
3337 * coffcode.h (bfd_coff_backend_data): Add new callback function
3338 _bfd_coff_start_final_link.
3339 (bfd_coff_start_final_link): Define.
3340 (coff_start_final_link): Define if not defined.
3341 (bfd_coff_std_swap_table): Add coff_start_final_link.
3342 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
3343 visible.
3344 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
3345 function callback is not NULL.
3346 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
3347 (_bfd_coff_internal_syment_name): Declare.
3348 * libcoff.h: Rebuild.
3349 * configure.in (icoff_big_vec): Add cofflink.o.
3350 (icoff_little_vec): Likewise.
3351 * configure: Rebuild.
3352
f0abedbe
FF
3353Wed Sep 13 17:38:23 1995 Fred Fish <[email protected]>
3354
3355 * Makefile.in (clean-info): Remove extraneous tab from line
3356 following action.
3357
aa4b3dc5
ILT
3358Wed Sep 13 13:27:53 1995 Ian Lance Taylor <[email protected]>
3359
3360 * cofflink.c (coff_link_input_bfd): Fail if a section with no
3361 contents has relocs.
3362
4ca63811 3363Thu Sep 12 12:45:34 1995 steve chamberlain <[email protected]>
beee31b1
SC
3364
3365 * coffcode.h (coff_compute_section_file_positions): Keep the
3366 raw size safe.
3367 (coff_write_object_contents): Remember if it's a relocatable
3368 file.
3369 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
3370 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
3371 if relocatable file. Swap out saved raw size.
3372
ae115e51
ILT
3373Tue Sep 12 12:14:33 1995 Ian Lance Taylor <[email protected]>
3374
9521bac3
ILT
3375 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
3376 (maintainer-clean): Rename from realclean, passing
3377 maintainer-clean down to subdirectories, but leave realclean as a
3378 synonym.
3379
4ca63811
ILT
3380 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
3381 warning callback.
3382
5aa4c3ff
ILT
3383 * dep-in.sed: Remove config.h from generated dependencies.
3384
396aaeb2
ILT
3385 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
3386 broken out of sunos_canonicalize_dynamic_symtab.
3387 (sunos_canonicalize_dynamic_symtab): Call new function
3388 sunos_slurp_dynamic_symtab.
3389 (sunos_add_dynamic_symbols): Add three new parameters. Return the
3390 dynamic symbol table to the caller.
3391 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
3392 callback to override the symbols being read.
3393 * libaout.h (struct aout_backend_data): Add three new parameters
3394 to add_dynamic_symbols callback.
3395
ae115e51
ILT
3396 Extensive minor changes to avoid various gcc warnings. Also:
3397 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
3398 * archures.c (bfd_arch_info_type): Change mach field from long to
3399 unsigned long.
3400 (bfd_lookup_arch): Change machine parameter from long to unsigned
3401 long.
3402
b088e4b2
ILT
3403Mon Sep 11 10:55:47 1995 Ian Lance Taylor <[email protected]>
3404
3405 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
3406 a symbol with a non-zero plt_offset.
3407
1dff7902
ILT
3408Fri Sep 8 11:47:24 1995 Ian Lance Taylor <[email protected]>
3409
2b71e1e4
ILT
3410 * elfcode.h (align_file_position): Remove; not used.
3411
1dff7902
ILT
3412 * configure.in: Only check for <sys/procfs.h> on a native system,
3413 and make sure it defines prstatus_t.
3414 * configure: Rebuild.
3415
870015b1
ILT
3416Thu Sep 7 12:48:01 1995 Ian Lance Taylor <[email protected]>
3417
535c89f0
ILT
3418 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
3419
936b870c
ILT
3420 * config.in: Rename from config.h.in.
3421 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
a7873a6c 3422 Check for config.h:config.in when creating stamp-h.
936b870c 3423 * configure: Rebuild.
a7873a6c
ILT
3424 * Makefile.in (stamp-h): Depend upon config.in rather than
3425 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
3426 calling config.status.
936b870c 3427
870015b1
ILT
3428 * Makefile.in (do_distclean): Remove config.h and stamp-h.
3429 (Makefile): Just rebuild Makefile.
3430 (config.h, stamp-h): New targets.
3431 * configure.in: Create stamp-h when rebuilding config.h.
3432 * configure: Rebuild.
3433
b7577823
ILT
3434Wed Sep 6 15:00:33 1995 Ian Lance Taylor <[email protected]>
3435
3436 * configure.in: Call AC_CONFIG_HEADER. Substitute
3437 HOST_64BIT_LONG. Check that various header files exist. Check
3438 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
3439 and/or free need to be declared. Don't make a link to sysdep.h.
3440 Define TRAD_HEADER for various hosts.
3441 * configure: Rebuild.
3442 * configure.host: Don't set my_host. Add definitions taken from
3443 host header files for various entries. Remove entries which now
3444 do nothing.
3445 * acconfig.h: New file.
3446 * config.h.in: New file, built by autoheader.
3447 * sysdep.h: New file.
3448 * Makefile.in (do_distclean): Don't remove sysdep.h.
3449 (RECONFIG): Remove.
3450 (LOCAL_H_DEPS): New variable.
3451 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
3452 $(RECONFIG).
3453 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
3454 ($(OPTIONAL_BACKENDS)): Likewise.
3455 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
3456 looking through sysdep.h.
3457 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
3458 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
3459 (fprintf_vma, sprintf_vma): Likewise.
3460 (int64_type, uint64_type): Don't define.
3461 * bfd-in2.h: Rebuild.
3462 * archures.c, bfd.c, srec.c: Include <ctype.h>.
3463 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
3464 * lynx-core.c: Include stuff from old hosts/lynx.h.
3465 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
3466 rather than NO_FCNTL.
3467 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
3468 rather than NATIVE_HPPAHPUX_COMPILER.
3469 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
3470 is defined.
3471 * hosts/*.h: Remove all header files which merely include,
3472 declare, and define things. Leave header files which define
3473 information needed by trad-core.c.
3474
3475 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
3476 (BFD_CC_FOR_BUILD): Define.
3477 * configure.in: Use BFD_CC_FOR_BUILD.
3478 * configure: Rebuild.
3479
7a93ebdd
ILT
3480Tue Sep 5 19:35:28 1995 Ian Lance Taylor <[email protected]>
3481
4c2e4d0e
ILT
3482 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
3483 * configure: Rebuild.
3484
7a93ebdd
ILT
3485 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
3486 a global symbol.
3487
866bb9e5
JM
3488Tue Sep 5 12:48:26 1995 Jason Molenda ([email protected])
3489
3490 * config.bfd: i386pe_ve -> i386pe_vec.
3491
2b79a104
ILT
3492Mon Sep 4 14:02:43 1995 Ian Lance Taylor <[email protected]>
3493
f515fb2f
ILT
3494 * configure.host: Incorporate host Makefile fragments by setting
3495 shell variables.
3496 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
3497 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
3498 value based on whether the code is being compiled by a cross
3499 compiler. Don't substitute host_makefile_frag or frags.
3500 * aclocal.m4: New file to define local AC_PROG_CC.
3501 * configure: Rebuild.
3502 * Makefile.in (INSTALL): Set to @INSTALL@.
3503 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
3504 (INSTALL_DATA): Set to @INSTALL_DATA@.
3505 (AR): Set to @AR@.
3506 (CC): Define as @CC@.
3507 (CFLAGS): Set to @CFLAGS@.
3508 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
3509 (@host_makefile_frag@): Remove.
3510 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
3511 after other options.
3512 (config.status): Remove dependency upon @frags@.
3513 * config/*.mh, config/README: Remove.
3514
2b79a104
ILT
3515 * config.bfd: Rewrite to incorporate the contents of the Makefile
3516 fragments by setting shell variables, rather than merely returning
3517 the name of a Makefile fragment.
3518 * configure.in: Use shell variables set by config.bfd rather than
3519 looking at the target Makefile fragment files. Don't substitute
3520 target_makefile_frag. Do substitute TDEFINES.
3521 * configure: Rebuild.
3522 * Makefile.in (@target_makefile_frag@): Remove.
3523 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
3524 * config/*.mt: Remove.
3525
2cb159a5
KR
3526Mon Sep 4 03:13:28 1995 Ken Raeburn <[email protected]>
3527
3528 * configure.in: Put changequote lines around "i[345]86" patterns
3529 section of core file support.
3530
ef07871c
JL
3531Sun Sep 3 11:31:58 1995 Jeff Law ([email protected])
3532
3533 * som.c (som_bfd_print_private_bfd_data): Define to use the
3534 generic version.
3535
1613e075
SC
3536Fri Sep 1 17:08:40 1995 steve chamberlain <[email protected]>
3537
3538 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
3539 entry, text_start and data_start.
3540
a52a3ce8
ILT
3541Fri Sep 1 18:06:28 1995 Ian Lance Taylor <[email protected]>
3542
a21227ef
ILT
3543 * Makefile.in (OFILES): Remove $(TDEPFILES).
3544 * config/apollo.mt (TDEPFILES): Remove.
3545 * config/README: Update.
3546
a52a3ce8
ILT
3547 * configure.in: For a native configuration, set COREFILE and
3548 COREFLAG based on the canonical host name.
3549 * configure: Rebuild.
3550 * Makefile.in: Rebuild dependencies.
3551 (ALL_CFLAGS): Add @COREFLAG@.
3552 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
3553 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
3554 support routines. Check LYNX_CORE rather than HOST_LYNX.
3555 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
3556 * i386lynx.c: Likewise.
3557 * m68klynx.c: Likewise.
3558 * sparclynx.c: Likewise.
3559 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
3560 * *-core.c: Comment changes.
3561 * config/decstation.mh (HDEPFILES): Remove.
3562 (HDEFINES): Remove -DTRAD_CORE.
3563 * config/irix3.mh (RANLIB): Remove.
3564 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
3565 (HDEFINES): Remove -DIRIX_CORE.
3566 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
3567 (HDEFINES): Remove -DTRAD_CORE.
3568 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
3569 * config/ultra3.mh (RANLIB): Remove.
3570 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
3571 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
3572 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
3573 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
3574 * config/hppahpux.mh, config/hppaosf.mh: Remove.
3575 * config/i386aix.mh, config/i386bsd.mh: Remove.
3576 * config/i386linux.mh, config/i386mach3.mh: Remove.
3577 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
3578 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
3579 * config/mipsmach3.mh, config/news-mips.mh: Remove.
3580 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
3581 * config/rs600.mh, config/rs6000lynx.mh: Remove.
3582 * config/solaris2.mh, config/stratus.mh: Remove.
3583 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
3584 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
3585
d6f672b8
ILT
3586Fri Sep 1 15:18:50 1995 Kazumoto Kojima <[email protected]>
3587
3588 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
3589 DT_FINI entry if the appropriate symbol is not in the hash table.
3590
3591 * libelf.h (struct elf_backend_data): Add create_program_headers
3592 and want_hdr_in_seg fields.
3593 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
3594 defined.
3595 (elf_backend_create_program_headers): Likewise.
3596 (elfNN_bed): Initialize create_program_headers and
3597 want_hdr_in_seg.
3598 * elf.c (get_program_header_size): Call create_program_headers
3599 backend routine.
3600 (map_program_segments): Check want_hdr_in_seg backend field. Call
3601 create_program_headers backend routine.
3602
3603 * elf.c (assign_file_positions_except_relocs): Align non allocated
3604 sections when creating an executable.
3605
3606 * elfcode.h (elf_swap_phdr_in): Make non static.
3607 (elf_swap_phdr_out): Make non static.
3608 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
3609 (bfd_elf32_swap_phdr_out): Declare.
3610 (bfd_elf64_swap_phdr_in): Declare.
3611 (bfd_elf64_swap_phdr_out): Declare.
3612
3613 * ecofflink.c (ecoff_collect_shuffle): New static function.
3614 (_bfd_ecoff_get_accumulated_pdr): New function.
3615 (_bfd_ecoff_get_accumulated_sym): New function.
3616 (_bfd_ecoff_get_accumulated_ss): New function.
3617 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
3618 (_bfd_ecoff_get_accumulated_sym): Declare.
3619 (_bfd_ecoff_get_accumulated_ss): Declare.
3620 * libbfd.h: Rebuild.
3621
0cb70568
ILT
3622Fri Sep 1 13:20:25 1995 Ian Lance Taylor <[email protected]>
3623
d6f672b8
ILT
3624 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
3625
0cb70568
ILT
3626 * elflink.h (elf_link_add_object_symbols): Handle indirect and
3627 warning symbols. If any section is named .gnu.warning.XXX, treat
3628 the contents as a warning to be issued if the symbol XXX is
3629 referenced.
3630 (elf_link_output_extsym): For an indirect or warning symbol, just
3631 output the symbol it points to.
3632
3633 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
3634 if bfd_hash_allocate fails, since it will already be set.
3635 (generic_link_hash_newfunc): Likewise.
3636 (archive_hash_newfunc): Likewise.
3637 (hash_entry_bfd): New static function.
3638 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
3639 callback. Allocate a new warning using the hash table newfunc.
3640 Use bfd_hash_replace to update the entry in the hash table, rather
3641 than assuming we can copy the fields with structure assignment.
3642
3643 * hash.c (bfd_hash_replace): New function.
3644 * bfd-in.h (bfd_hash_replace): Declare.
3645 * bfd-in2.h: Rebuild.
3646
f14db880
JSC
3647Fri Sep 1 08:12:50 1995 James G. Smith <[email protected]>
3648
3649 * config.bfd: Add mips*vr4300-*-elf* target.
3650 * config/mipsbvr4300.mt: Added.
3651
1613e075 3652See file ChangeLog.2
e6d739eb 3653
41126f15
JK
3654\f
3655Local Variables:
3656mode: indented-text
3657left-margin: 8
6ec3bb6a
ILT
3658fill-column: 74
3659version-control: never
3660End:
This page took 0.814926 seconds and 4 git commands to generate.