* configure: Only build libopcodes shared if --enable-shared's value
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3607f666
BK
1Fri Dec 12 11:30:28 1997 Brendan Kehoe <brendan@canuck.cygnus.com>
2
3 * configure: Only build libbfd shared if --enable-shared's value
4 was `yes', or was set to `*bfd*'.
5 * aclocal.m4: Likewise.
6
5b3a74e8
RH
7Thu Dec 11 17:48:11 1997 Richard Henderson <rth@cygnus.com>
8
9 * linker.c (generic_link_add_symbol_list): Always init udata.p so
10 that the generic relaxation code can function when input and output
11 file formats are mismatched.
12
a3f1e78a
ILT
13Thu Dec 11 01:02:18 1997 Ian Lance Taylor <ian@cygnus.com>
14
15 * coff-sh.c (bfd_coff_small_swap_table): Initialize new fields.
16
17 * elf.c (assign_file_positions_for_segments): For a loadable
18 section, make sure that the load address is correct relative to
19 the load address of the segment plus the size of the segment so
20 far.
21
22 * coffcode.h (_coff_link_output_has_begun): Make static.
23 (_coff_final_link_postscript): Likewise.
24
5ee8d932
ILT
25Wed Dec 10 23:37:11 1997 Ian Lance Taylor <ian@cygnus.com>
26
27 * elflink.h (elf_link_input_bfd): Handle a relocateable link in
28 which a relocation refers to an indirect or warning symbol.
29
5b6f4b31
NC
30Wed Dec 10 11:15:55 1997 Nick Clifton <nickc@cygnus.com>
31
5ee8d932
ILT
32 * coff-arm.c (bfd_arm_coff_final_link): Function deleted.
33 (coff_arm_final_link_postscript): New function.
34 (coff_arm_link_output_has_begun): New function.
35
36 * libcoff.h (struct bfd_coff_backend_data): Add new fields:
37 _bfd_coff_link_output_has_begun and
38 _bfd_coff_final_link_postscript. Add new macros:
39 bfd_coff_link_output_has_begun() and
40 bfd_coff_final_link_postscript().
41
42 * cofflink.c (_bfd_coff_final_link): Insert calls to
43 bfd_coff_link_output_has_begun() and
44 bfd_coff_final_link_postscript().
45
46 * coffcode.h: Add two new fields to bfd_coff_backend_data
47 structure: _bfd_coff_link_output_has_begun and
48 _bfd_coff_final_link_postscript. Add default initialisers for
49 these fields. Add overridable aliases for the coff swap functions
50 in the backend data structure.
51
5b6f4b31
NC
52 * elf32-v850.c: Update with patches from the branch to fix
53 HI16_S/LO16 reloc pairs.
54
de748328
MM
55start-sanitize-d30v
56Wed Dec 10 14:06:48 1997 Michael Meissner <meissner@cygnus.com>
57
58 * elf32-d30v.c (d30v_info_to_howto_rela): New function to support
59 RELA relocations.
60 (USE_REL): Don't define any more, switch to using RELA
61 relocations.
62 (elf_info_to_howto): Define as d30v_info_to_howto_rela.
63
64end-sanitize-d30v
c02ed6a8
AC
65Tue Dec 9 11:37:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
66
67 * archures.c (bfd_mach_mips*): Define.
68 (start-sanitize-vr5400):
69 (vr5400, bfd_mach_vr5000): Define.
70 (end-sanitize-vr5400):
71 (bfd_default_scan): For 3000 and 4000 replace magic constant with
72 macro.
73
74 * cpu-mips.c (N): Define.
75 (bfd_mips_arch, arch_info_struct): Re-write using macro N, replace
76 numbers with bfd_mach_mips* macros.
77
22a9f052
NC
78Fri Dec 5 11:13:46 1997 Nick Clifton <nickc@cygnus.com>
79
80 * elf32-v850.c (v850_elf_reloc, v850_elf_store_addend_in_insn,
81 v850_elf_relocate_section): Fix PR2 14180 and 14181
82 (v850_elf_section_from_bfd_section, v850_elf_symbol_processing,
83 v850_elf_add_symbol_hook, v850_elf_link_output_symbol_hook,
84 v850_elf_section_from_shdr, v850_elf_fake_sections): New functions
85 (for PR14180) to create and handle special common sections.
0a5875fc
NC
86 (v850_elf_final_link_relocate): Fix HI16 and HI16_S relocations
87 which have data stored in the instructions. PR14258.
22a9f052 88
09888f15
NC
89Tue Dec 2 10:26:16 1997 Nick Clifton <nickc@cygnus.com>
90
91 * coff-arm.c (TARGET_UNDERSCORE): Revert back to '_'
92 (USER_LABEL_PREFIX): Revert back to '_'
93
94 * config.bfd (targ_cpu): Add support for Thumb target.
95
6fdb746d
JR
96Mon Dec 1 20:24:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
97
98 * coff-sh.c (sh_coff_howtos): Add R_SH_SWITCH8 entry.
99 (get_symbol_value): Handle R_SH_SWITCH8.
100 (sh_relax_delete_bytes): Likewise.
101
0fa555ea
NC
102Wed Nov 26 14:13:34 1997 Nick Clifton <nickc@cygnus.com>
103
f5ddda0f
NC
104 * coff-arm.c (TARGET_UNDERSCORE): Changed to match definition in
105 gcc/config/arm/semi.h
106
0fa555ea
NC
107 * coffcode.h (coff_slurp_symbol_table): Add ARM and Thumb symbol
108 classes.
109
4ccd975a
AC
110Sun Nov 23 16:02:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
111
112 * freebsd.h (SWAP_MAGIC): Read magic number little and not big
113 endian.
114
803fea79
NC
115Wed Nov 26 09:30:37 1997 Nick Clifton <nickc@cygnus.com>
116
117 * coffcode.h (coff_mkobject_hook): Only set private flags for non
118 PE ARM ports.
119
120Tue Nov 25 15:33:23 1997 Richard Henderson <rth@cygnus.com>
121
122 * binary.c (binary_set_section_contents): Also ignore NEVER_LOAD
123 sections.
124
4936eb9a
NC
125Tue Nov 25 10:55:36 1997 Nick Clifton <nickc@cygnus.com>
126
127 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Do not
128 complain if inout and output formats differ.
129
cc37e39a
ILT
130Tue Nov 25 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
131
90d74939
ILT
132 * Makefile.am (BFD32_BACKENDS): Remove tekhex.lo.
133 (BFD32_BACKENDS_CFILES): Remove tekhex.c.
134 * Makefile.in: Rebuild.
135 * aclocal.m4, configure, src/Makefile.in: Rebuild with current
136 automake and autoconf.
137
cc37e39a
ILT
138 * coff-arm.c (arm_allocate_interworking_sections): Fix typo
139 (COFF_WITH_PR to COFF_WITH_PE).
140
f76d3101
NC
141Mon Nov 24 15:47:49 1997 Nick Clifton <nickc@cygnus.com>
142
33d5d351
NC
143 * coff-arm.c: Make variables and some functions static, so that
144 this file can be included in multiple object files.
145 (coff_arm_bfd_final_link): Fix minor bug.
f76d3101 146
e1aeb285
NC
147Sat Nov 22 15:16:00 1997 Nick Clifton <nickc@cygnus.com>
148
149 * coff-arm.c: Add support for PIC and APCS-FLOAT type binaries.
150
151 * coffcode.h: Add support for PIC and APCS-FLOAT type binaries.
152
f3fb08f6
ILT
153Sat Nov 22 16:06:56 1997 Klaus Kaempf <kkaempf@progis.de>
154
155 * evax-emh.c (_bfd_evax_write_emh): Use alloca instead of strdup.
156
fbf760a8
ILT
157Sat Nov 22 12:29:30 1997 Ian Lance Taylor <ian@cygnus.com>
158
be462f88
ILT
159 * sunos.c (sunos_add_one_symbol): When overriding a defined
160 symbol, set it to undefined, not new.
161
fbf760a8
ILT
162 * elf32-sh.c (sh_elf_relax_delete_bytes): Don't kill LABEL
163 relocs.
164
d627a674
RH
165Fri Nov 21 14:14:22 1997 Richard Henderson <rth@cygnus.com>
166
167 * coff-sh.c (sh_relax_section): Force sign extention of USES r_offset.
168 (sh_relax_delete_bytes): Don't kill LABEL relocs.
169
bf39c490
JL
170Mon Nov 17 15:08:38 1997 Jeffrey A Law (law@cygnus.com)
171
172 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Fix typo.
173 (mn10300_elf_relax_section): Likewise.
174
469e5960
FF
175Sat Nov 15 15:36:07 1997 Fred Fish <fnf@cygnus.com>
176
177 * peicode.h (coff_swap_aouthdr_in): Cast second arg of
178 bfd_h_get_* calls to "bfd_byte *".
179
180Tue Nov 11 10:37:23 1997 Jeffrey A Law (law@cygnus.com)
181
182 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
183 "movm_stack_size".
184 (mn10300_elf_relax_section): Include stack space for register saves
185 in the imm8 field of a "call" instruction.
186 (compute_function_info): Determine how much stack is allocated by
187 the movm instruction. Fix typo.
188 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
189
9793236c
ILT
190Mon Nov 10 14:32:40 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
191
192 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't crash if
193 a version dependency could not be found.
194
d481c877 195Tue Nov 4 12:05:56 1997 Klaus K"ampf <kkaempf@progis.de>
aa9aa96f 196
d481c877 197 * configure.com: Get version info from configure.in
aa9aa96f 198
ccbab31d
RH
199Fri Oct 24 11:15:58 1997 Jakub Jelinek <jj@sunsite.mff.cuni.cz>
200
201 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data):
202 New function. Avoid mixing US1 and HAL R1 code.
203 Set resulting memory ordering to the strongest one used.
204 (sparc64_elf_object_p): Set bfd_mach correctly.
205
d87ad0dc
RH
206Thu Oct 23 14:09:33 1997 Richard Henderson <rth@cygnus.com>
207
208 * elf64-sparc.c (sparc64_elf_howto_table): Add UA64 & UA16.
209 (sparc64_elf_check_relocs): Handle them.
210 (sparc64_elf_relocate_section): Likewise. Before emitting a dyn reloc,
211 check alignment and transmute R_SPARC_x<->R_SPARC_UAx.
212
5e0c6aad
RH
213Thu Oct 23 00:53:14 1997 Richard Henderson <rth@dot.cygnus.com>
214
215 * configure.in (sparc*-*-linux*): Use trad-core and ...
216 * hosts/sparclinux.h: New file.
217
65c2dd6e
RH
218Thu Oct 23 00:25:29 1997 Richard Henderson <rth@dot.cygnus.com>
219
220 * config.bfd (sparc64-*-linux*): New target.
221
222 * elf-bfd.h (struct elf_backend_data): Add plt_alignment member.
223 * elflink.c (_bfd_elf_create_got_section): Set .got alignment based
224 on arch_size.
225 (_bfd_elf_create_dynamic_sections): Likewise for .rel* sections.
226 Set .plt alignment from new plt_alignment.
227 * elflink.h (elf_link_create_dynamic_sections): Set version section
228 alignment to LOG_FILE_ALIGN.
229 * elfxx-target.h (elf_backend_plt_alignment): Provide default.
230 (elfXX_bed): Init plt_alignment.
231
232 * elf64-sparc.c (sparc64_elf_check_relocs,
233 sparc64_elf_adjust_dynamic_symbol, sparc64_elf_size_dynamic_sections,
234 sparc64_elf_adjust_dynindx, sparc64_elf_finish_dynamic_symbol,
235 sparc64_elf_finish_dynamic_sections): New functions.
236 (sparc64_elf_howto_table): Fix a few name strings.
237 (ELF_DYNAMIC_INTERPRETER): New definition.
238 (sparc64_elf_relocate_section): Handle shared libraries.
239
240 * elf64-sparc.c (struct plt_template, plt_*_header, plt_*_entry,
241 sparc64_elf_build_plt_entry, sparc64_elf_finish_dynamic_symbol):
242 PLT definitions sparc64-linux originally choose. These will go
243 away soon in favour of the official abi definitions.
244
18ed85fd
ILT
245Wed Oct 22 16:08:45 1997 Ian Lance Taylor <ian@cygnus.com>
246
247 * coff-sh.c (coff_small_object_p): New static function.
248 (coff_small_new_section_hook): New static function.
249 (bfd_coff_small_swap_table): New static const structure.
250 (coff_small_close_and_cleanup): Define.
251 (coff_small_bfd_free_cached_info): Define.
252 (coff_small_get_section_contents): Define.
253 (coff_small_get_section_contents_in_window): Define.
254 (shcoff_small_vec): New static structure.
255 (shlcoff_small_vec): New static structure.
256 * targets.c (bfd_target_vector): Add shcoff_small_vec and
257 shlcoff_small_vec.
258 * config.bfd (sh-*-elf*): Add shcoff_small_vec and
259 shlcoff_small_vec to targ_selvecs.
260 (sh-*-*): Likewise.
261 * configure.in: Add shcoff_small_vec and shlcoff_small_vec cases.
262 * configure: Rebuild.
263
d5241511
ILT
264Mon Oct 20 15:01:27 1997 Klaus K"ampf <kkaempf@progis.de>
265
412222d9
ILT
266 * evax-egsd.c: Weak symbols are global.
267
268 * evax-emh.c: Use proper casts.
269
270 * evax-egsd.c (_bfd_evax_write_egsd): Remove unneeded uname.
271
272 * evax-egsd.c: Section names and symbols have different
273 length restrictions. Add length parameter to
274 _bfd_evax_length_hash_symbol.
275 * evax-etir.c: Likewise.
276 * evax-misc.c (_bfd_evax_length_hash_symbol): Add length
277 parameter.
278 * evax.h (EOBJ_S_C_SECSIZ): Define.
279
280 * evax-alpha.c: Remove duplicate test.
281
282 * evax-emh.c: SYS$ functions are upper-case.
283
284 * evax-egsd.c: Create separate sections for common symbols.
285 * evax-etir.c: Don't output common section.
286 * evax.h: Bump up section count.
287
288 * configure.com: Use 64bit integers with DEC C.
289
290 * evax-egsd.c: Make section flags dec c compatible.
d5241511 291
5efcd359
JL
292Mon Oct 20 09:38:31 1997 Jeffrey A Law (law@cygnus.com)
293
294 * som.c (normalize): Delete function.
295 (som_bfd_ar_write_symbol_stuff): New parameter elength. All callers
296 changed. Use passed in elength to determine size of the extended
297 name table instead of computing it again.
298
263378e7 299Sun Oct 19 23:36:21 1997 Jim Wilson <wilson@cygnus.com>
e232f1aa 300
263378e7
ILT
301 * peicode.h (coff_swap_scnhdr_out): Use |= not = to set
302 IMAGE_SCN_MEM_READ for an unrecognized section.
e232f1aa 303
27637913
JL
304Sun Oct 19 21:04:56 1997 Jeffrey A Law (law@cygnus.com)
305
306 * som.c (som_bfd_ar_write_symbol_stuff): Account for trailing
307 '/' in the extended name table.
308
bccab630
RH
309Fri Oct 17 00:04:13 1997 Richard Henderson <rth@cygnus.com>
310
311 * elflink.h (elf_link_assign_sym_version): For explicitly versioned
312 symbols, check globals list before matching on locals.
313
04e46812
MM
314Thu Oct 16 08:17:06 1997 Michael Meissner <meissner@cygnus.com>
315
3cd99cc6 316 * peicode.h (coff_swap_scnhdr_out,pe_print_idata): Fix mangled
04e46812
MM
317 patch.
318
c086885a
ILT
319Wed Oct 15 13:45:10 1997 Ian Lance Taylor <ian@cygnus.com>
320
fc1213aa
ILT
321 * peicode.h (pe_mkobject_hook): Set DLL flag.
322 (pe_bfd_copy_private_bfd_data): Copy DLL flag.
323
c086885a
ILT
324 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE
325 for .stab* sections. Replace strlen of constant strings with
326 number.
327
d980a81f
RH
328Tue Oct 14 15:42:45 1997 Richard Henderson <rth@cygnus.com>
329
330 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): New function to
331 merge got and reloc entries from ind syms to their target.
332 (elf64_alpha_always_size_sections): Call it.
333 (elf64_alpha_check_relocs): Operate on the target of indirect symbols.
334 (elf64_alpha_can_merge_gots): Likewise.
335 (elf64_alpha_merge_gots): Likewise.
336
337 * elf64-alpha.c (elf64_alpha_relocate_section): Back out HJ's change,
338 as it is insufficient to handle the relocation changes as well.
339
6a587c4a
RH
340Mon Oct 13 23:10:08 1997 Richard Henderson <rth@cygnus.com>
341
342 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Allow for RELATIVE
343 relocs for symbols in shlibs that have been forced local.
344 (elf64_alpha_relocate_section): Output RELATIVEs in .got for same.
345
3a13dd8f
RH
346Mon Oct 13 21:24:04 1997 Richard Henderson <rth@cygnus.com>
347
6a587c4a 348 * elf64-alpha.c (elf64_alpha_relocate_section): Use the
3a13dd8f
RH
349 got_enties of the default symbol for the default versioned
350 symbol. Patch from hjl@gnu.ai.mit.edu, modified not to use
351 alloca in the loop.
352
c7eece07
NC
353Mon Oct 13 17:37:37 1997 Nick Clifton <nickc@cygnus.com>
354
355 * elf32-v850.c (v850_elf_final_link_relocate): Only use the bottom
356 24 bits of the PC when computing a PC relative relocation.
357
676d3f02
NC
358Fri Oct 10 16:01:30 1997 Nick Clifton <nickc@cygnus.com>
359
360 * elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate):
361 Correct value for maximum positive 22 bit PC relative relocation.
362 (v850_elf_final_link_relocate): Prevent overflow from HI16_S and
363 HI_16 relocations. Correct bit adjustment in TDA offsets.
364
70e818d4
DE
365Thu Oct 9 16:43:39 1997 Doug Evans <dje@canuck.cygnus.com>
366
367 * elf64-sparc.c (sparc_elf_{hix22,lox10}_reloc): New functions.
368 (sparc64_elf_howto_table): Use them for HIX22,LOX10 relocs.
369
b0632d61
RH
370Wed Oct 8 11:38:45 1997 Richard Henderson <rth@cygnus.com>
371
372 * elfcore.h (bfd_prstatus): Pedanticly, alignment_power should
373 be LOG_FILE_ALIGN.
374
ba2934ce
RH
375Wed Oct 8 11:36:00 1997 Richard Henderson <rth@cygnus.com>
376
377 * config.bfd: Missed one alpha* change.
378
379Tue Oct 7 13:00:17 1997 Doug Evans <dje@canuck.cygnus.com>
380
381 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove BFD64 support.
382 * elf64-sparc.c (SPARC64_OLD_RELOCS): Undef.
383 (MINUS_ONE): New macro.
384 (sparc_elf_notsup_reloc): New function.
385 (sparc64_elf_howto_table): Add entries for DISP64,PLT64,HIX22,LOX10,
386 H44,M44,L44,REGISTER.
387 (sparc_reloc_map): Likewise. Map BFD_RELOC_CTOR to R_SPARC_64.
388 (init_insn_reloc): New function.
389 (sparc_elf_wdisp16_reloc): Use it.
390 (sparc64_elf_relocate_section): Add entries for OLO10,HIX22,LOX10.
391
758b6765
ILT
392Tue Oct 7 11:40:37 1997 Ian Lance Taylor <ian@cygnus.com>
393
394 * som.c (som_construct_extended_name_table): Remove static
395 function, and define as macro instead.
396
6b5f5d61
RH
397Fri Oct 3 14:02:17 1997 Richard Henderson <rth@cygnus.com>
398
399 * config.bfd: Change alpha-*-* to alpha*-*-*; config.guess now
400 recognizes alphaev5 etc.
401 * configure.host: Likewise.
402
9b5ec8b1
ILT
403Fri Oct 3 11:23:47 1997 Ian Lance Taylor <ian@cygnus.com>
404
927e3a30
ILT
405 Make ld -s work on AIX:
406 * xcofflink.c (xcoff_link_add_symbols): Don't create the .debug
407 section if we are stripping.
408 (bfd_xcoff_size_dynamic_sections): Don't set the .debug section
409 size if we are stripping.
410 (_bfd_xcoff_bfd_final_link): Don't set SEC_RELOC or rel_filepos,
411 and don't write out relocs, if we are stripping.
412 (xcoff_link_input_bfd): Don't set up reloc if we are stripping.
413 (xcoff_write_global_symbol): Don't write out symbol or reloc if we
414 are stripping.
415
d9eff006
ILT
416 * configure.in: Don't include elf.lo again for ELF targets; it's
417 always in the library anyhow.
418 * configure: Rebuild.
419
420 * bfd-in2.h: Rebuild.
421
9b5ec8b1
ILT
422 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Cast to bfd_byte *, not
423 char *, when calling bfd_get_32 and bfd_put_32.
424 * sunos.c (sunos_scan_dynamic_symbol): Cast contents to char *
425 when calling strcpy.
426
22b23d7d
DE
427Thu Oct 2 16:15:50 1997 Doug Evans <dje@canuck.cygnus.com>
428
429 * reloc.c (bfd_check_overflow): New function.
430 (bfd_perform_relocation, bfd_install_relocation): Use it.
431 (BFD_RELOC_SPARC_{DISP64,PLT64}): New relocs.
432 (BFD_RELOC_SPARC_{HIX22,LOX10,H44,M44,L44,REGISTER}): New relocs.
433 * bfd-in2.h: Regenerate.
434 * libbfd.h: Regenerate.
435
2fb4c89f
ILT
436Thu Oct 2 13:17:18 1997 Ian Lance Taylor <ian@cygnus.com>
437
438 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_READ for an
439 unrecognized section. From Jon Thackray <jont@harlequin.co.uk>.
440
7810074c
ILT
441Wed Oct 1 14:03:44 1997 Ian Lance Taylor <ian@cygnus.com>
442
9347808d
ILT
443 * Makefile.am ($(BFD_H)): Change stmp-bfd.h to stmp-bfd-h.
444 (stmp-bfd-h): Rename from stmp-bfd.h.
445 (BFD_H_FILES, LIBBFD_H_FILES, LIBCOFF_H_FILES): New variables.
446 ($(srcdir)/bfd-in2.h): Just depend upon stmp-bin2-h.
447 (stmp-bin2-h): New target.
448 ($(srcdir)/libbfd.h): Just depend upon stmp-lbfd-h.
449 (stmp-lbfd-h): New target.
450 ($(srcdir)/libcoff.h): Just depend upon stmp-lcoff-h.
451 (stmp-lcoff-h): New target.
452 (CLEANFILES): Change stmp-bfd.h to stmp-bfd-h. Add stmp-bin2.h,
453 stmp-lbfd-h, and stmp-lcoff-h.
454 * Makefile.in: Rebuild.
455
7810074c
ILT
456 * configure.in: Use a diversion to set enable_shared before the
457 arguments are parsed.
458 * configure: Rebuild.
459
a446b86d
DE
460Tue Sep 30 14:18:32 1997 Doug Evans <dje@canuck.cygnus.com>
461
462 * elf32-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP
463 renamed to R_SPARC_UNUSED_42.
464 (sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry.
465 * elf64-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP
466 renamed to R_SPARC_UNUSED_42.
467 (sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry.
468 * reloc.c (BFD_RELOC_SPARC_GLOB_JMP): Delete.
469 * bfd-in2.h: Regenerated.
470 * libbfd.h: Regenerated.
471
7810074c
ILT
472Thu Sep 25 12:15:02 1997 Ian Lance Taylor <ian@cygnus.com>
473
474 * elflink.h (elf_merge_symbol): Don't check the hash creator until
475 after we have set *sym_hash.
476
780a00c9
ILT
477Wed Sep 24 16:52:28 1997 Joel Sherrill <joel@oarcorp.com>
478
479 * config.bfd (sh*-*-rtems*): New target, like sh-*-*elf*.
480
805c3d70
ILT
481Wed Sep 24 11:27:23 1997 Ian Lance Taylor <ian@cygnus.com>
482
0035c8a0
ILT
483 * Makefile.am (libbfd_a_SOURCES): Define.
484 * Makefile.in: Rebuild.
485
805c3d70
ILT
486 * configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL.
487 * aclocal.m4: Rebuild with new libtool.
488 * configure: Rebuild.
489
3099ef78
ILT
490Tue Sep 23 19:03:13 1997 Ian Lance Taylor <ian@cygnus.com>
491
492 * elf.c (map_sections_to_segments): Even if we are not demand
493 paged, don't put a loadable section after a nonloadable section.
494 (assign_file_positions_for_segments): Increment the file offset
495 for a section with contents, even if it is not loadable.
496
497start-sanitize-v850e
498Sun Sep 21 11:03:24 1997 Nick Clifton <nickc@cygnus.com>
499
500 * elf32-v850.c (v850_elf_final_link_relocate): Add return code
501 indicating that __ctbp could not be found.
502
503end-sanitize-v850e
55e6f0bf
NC
504Thu Sep 18 15:04:57 1997 Nick Clifton <nickc@cygnus.com>
505
506 * elf32-v850.c (v850_elf_check_relocs): Improve error message.
507
db1fa6ab 508Wed Sep 17 09:54:51 1997 Nick Clifton <nickc@cygnus.com>
9420c20a
NC
509start-sanitize-v850e
510
511 * elf32-v850.c (v850_elf_final_link_relocate, v850_elf_reloc,
512 v850_elf_check_relocs, v850_elf_reloc_map, v850_elf_howto_table):
513 Add support for the CALLT relocs.
514
515 * reloc.c (COMMENT): Add BFD_RELOC_V850_CALLT_6_7_OFFSET and
516 BFD_RELOC_V850_CALLT_16_16_OFFSET.
517end-sanitize-v850e
db1fa6ab
NC
518
519 * elf32-v850.c (v850_elf_final_link_relocate): Add checks to catch
520 relocations against non-existant symbols.
521
5bb28764
NC
522Tue Sep 16 14:20:27 1997 Nick Clifton <nickc@cygnus.com>
523
524 * reloc.c: Add BFR_RELOC_V850_TDA_16_16_OFFSET.
525
526 * elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate,
527 v850_elf_howto_table, v850_elf_reloc_map): Add support for a 16
528 bit reloc in the tiny data area.
529
2199f848
KR
530start-sanitize-d30v
531Mon Sep 15 11:27:36 1997 Ken Raeburn <raeburn@cygnus.com>
532
533 Merged changes from Martin Hunt:
534
535 * elf32-d30v.c (bfd_elf_d30v_reloc): Change pc-relative relocs
536 over 2^32 bytes to be absolute. Needed because D30V PC doesn't
537 necessarily wrap.
538
539 * reloc.c, elf32-d30v.c (BFD_RELOC_D30V_9_PCREL,
540 BFD_RELOC_D30V_9_PCREL_R): New relocs.
541
542 * elf32-d30v.c (bfd_elf_d30v_reloc_21): New function.
543 Do 15 and 21 bit pc-relative relocations.
544 * reloc.c (BFD_RELOC_D30V_15_PCREL_R, BFD_RELOC_D30V_21_PCREL_R):
545 New relocations.
546
547 * elf32-d30v.c (bfd_elf_d30v_reloc): Addend needs to be
548 added to the relocation, not or'd.
549
550end-sanitize-d30v
43898c91
NC
551Wed Sep 10 15:17:25 1997 Nick Clifton <nickc@cygnus.com>
552
553 * elf32-v850.c (v850_elf_reloc): Remove spurious error message.
554
eaa9c2e7
AC
555Wed Sep 10 11:17:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
556
557 * archures.c (bfd_default_scan): Use strcasecmp.
558 (bfd_default_scan): Test for match with arch_name + ":" +
559 printable_name.
560 (bfd_default_scan): Test for match with printable_name - ":".
561 (bfd_default_scan): Delete w65, h8300, h8500, z8k, i960 special
562 cases. Each implements their own scan function.
563 (bfd_default_scan): Delete 386, 2900, 860, mips 2000, mips 4400
564 special cases. Since info->mach == 0. The test mach == number
565 fails.
566 (bfd_arch_list): New function, return name of all the supported
567 architectures.
568
98ab32a5
NC
569Tue Sep 9 10:21:56 1997 Nick Clifton <nickc@cygnus.com>
570
571 * elf32-v850.c (v850_elf_print_private_bfd_data): Break after
572 decoding architecture.
5ddf2a9e
NC
573 (v850_elf_reloc): Do not complain if a R_V850_LO16 reloc has bit
574 15 set.
98ab32a5 575
60b570d1
RH
576Sun Sep 7 12:25:22 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
577
578 * bfd/elf64-alpha.c (reloc_howto_type): Fix the howto table.
579
679bf0a2
ILT
580Thu Sep 4 09:44:10 1997 Ian Lance Taylor <ian@cygnus.com>
581
1732b93b
ILT
582 * Makefile.am: Rebuild dependencies.
583 (ALL_MACHINES_CFILES): Add cpu-v850.c.
584 (ALL_MACHINES_CFILES): Add elf32-v850.c.
585 * Makefile.in: Rebuild.
586
4878fa5b
ILT
587 * reloc.c: Remove extraneous commas from relocation entries.
588 Remove BFD_RELOC_V850_16_PCREL.
589 * bfd-in2.h: Rebuild.
590
679bf0a2
ILT
591 * xcofflink.c (xcoff_link_add_symbols): Put XTY_CM/XMC_TD symbols
592 in sections named .tocbss rather than .bss.
593
93f18857
NC
594Wed Sep 3 11:23:23 1997 Nick Clifton <nickc@cygnus.com>
595
596 * libbfd.h, bfd-in2.h, elf32-v850.c: Removed
597 BFD_RELOC_V850_16_PCREL.
598
c2d70826
FF
599Tue Sep 2 20:44:10 1997 Fred Fish <fnf@cygnus.com>
600
601 * cofflink.c (coff_link_check_ar_symbols): Handle C_SYSTEM syms
602 the same as C_EXT syms.
603 (coff_link_add_symbols): Ditto.
604 (_bfd_coff_link_input_bfd): Ditto.
605 (_bfd_coff_write_task_globals): Add save_global_to_static. Use
606 it to preserve and restore state of global_to_static flag.
607
8bef8c30
NC
608Tue Sep 2 17:45:22 1997 Nick Clifton <nickc@cygnus.com>
609
610 * elf32-v850.c (v850_elf_object_p): Set machine number based on
611 bits in e_flags field rather than magic numbers.
612 (v850_elf_final_write_processing, v850_elf_set_private_flags,
613 v850_elf_copy_private_bfd_data, v850_elf_merge_private_bfd_data,
614 v850_elf_print_private_bfd_data): New functions.
615
616start-sanitize-v850e
617Tue Sep 2 17:43:49 1997 Nick Clifton <nickc@cygnus.com>
618
619 * elf.c (prep_headers): Remove V850E magic number.
cd66558c 620 * elf.c (prep_headers): Remove V850EA magic number.
8bef8c30
NC
621end-sanitize-v850e
622
1c0e698e
DE
623Tue Sep 2 17:35:05 1997 Doug Evans <dje@canuck.cygnus.com>
624
625 * cpu-arc.c (arc_get_mach): Properly scan defined mach entries.
626
a9d67a88
JL
627Tue Sep 2 18:29:37 1997 Jeffrey A Law (law@cygnus.com)
628
629 * elf-m10200.c (mn10200_elf_final_link_relocate): PC relative
630 instructions are relative to the next instruction, not the
631 current instruction.
632 (mn10200_elf_relax_section): Similarly.
633
def31039
NC
634Tue Sep 2 15:45:45 1997 Nick Clifton <nickc@cygnus.com>
635
636 * cpu-v850.c: Use a macro to construct bfd_arch_info_type
637 entries.
638
639 * reloc.c, libbfd.h, bfd-in2.h, elf32-v850.c: Replace
640 BFD_RELOC_V850_{SDA/TDA/ZDA}_OFFSET relocs with new bit pattern
641 specific versions: BFD_RELOC_V850_{area}_{bits}_OFFSET.
642
f40d28bf
AC
643Thu Aug 28 17:01:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
644
645 * cpu-v850.c: Remove "plain" from v850 printable name.
646 (scan): Use strcasecmp.
647
648 * archures.c (bfd_mach_v850): Define.
649
650 * cpu-sh.c (scan_mach): Compare with table instead of hardwired to
651 just sh/SH, use strcasecmp.
652 (arch_info_struct): Add entries for sh3 et.al.
653
654 * archures.c (bfd_mach_sh, ...): Define.
655
2f88c324
AC
656Wed Aug 27 17:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
657
658 * archures.c (bfd_archures_list): Always NULL terminate the list.
659
2c66160c
ILT
660Tue Aug 26 17:26:51 1997 Ian Lance Taylor <ian@cygnus.com>
661
099ddbf1
ILT
662 * Makefile.am: Rebuild dependencies.
663 (ALL_MACHINES_CFILES): Add cpu-arc.c.
664 (ALL_MACHINES_CFILES): Add elf32-arc.c.
665 (elf32-arc.lo): Remove explicit dependency.
666 * Makefile.in: Rebuild.
667
2c66160c
ILT
668 * acinclude.m4 (BFD_CC_FOR_BUILD): Set EXEEXT_FOR_BUILD.
669 * doc/Makefile.am (MKDOC): Use EXEEXT_FOR_BUILD, not EXEEXT.
670 * aclocal.m4, configure, Makefile.in, doc/Makefile.in: Rebuild.
671
70e8e585
CP
672Mon Aug 25 16:14:34 1997 Christopher Provenzano <proven@cygnus.com>
673
674 * configure: Rebuild with latest devo autoconf for NT support
675
04f295b6
NC
676Mon Aug 25 16:11:04 1997 Nick Clifton <nickc@cygnus.com>
677
678 * cpu-arm.c (compatible): If B is a default type, return A.
679
8988d935 680Mon Aug 25 15:35:46 1997 Nick Clifton <nickc@cygnus.com>
591ebe42 681
8988d935
NC
682 * cpu-v850.c (scan): New function.
683 (arch_info_struct): New structure.
684 (bfd_v850_arch): Add link into arch_info_structure.
591ebe42 685
8988d935
NC
686 * config.bfd (targ_cpu): All v850 variants use the bfd_arch_v850
687 architecture.
845c40d5 688
8988d935
NC
689 * elf32-v850.c (v850_elf_object_p): New function.
690
691start-sanitize-v850e
692 * archures.c (bfd_mach_v850e): Machine value for v850e.
693
694 * bfd-in2.h (bfd_mach_v850e): Machine value for v850e.
695
696 * elf32-v850.c (ELF_MACHINE_CODE): Default to v850e machine
697 number.
698
699 * elf.c (prep_headers): Add support for v850e machine number.
15d82b26 700
cd66558c 701 * archures.c (bfd_mach_v850ea): Machine value for v850ea.
8988d935 702
cd66558c 703 * bfd-in2.h (bfd_mach_v850ea): Machine value for v850ea.
8988d935 704
cd66558c 705 * elf32-v850.c (ELF_MACHINE_CODE): Default to v850ea machine
8988d935
NC
706 number.
707
cd66558c 708 * elf.c (prep_headers): Add support for v850ea machine number.
15d82b26 709end-sanitize-v850e
2cf9a0d0 710
8988d935
NC
711Mon Aug 25 14:07:33 1997 Ian Lance Taylor <ian@cygnus.com>
712
713 * syms.c (_bfd_stab_section_find_nearest_line): Clear the
714 cached_stab field if the offset prevents us from using the cache.
845c40d5 715
a0682677
ILT
716Mon Aug 25 12:08:13 1997 Ian Lance Taylor <ian@cygnus.com>
717
718 * aout-target.h (MY(vec)): Add SEC_CODE and SEC_DATA to section
719 flags.
720 * aout-arm.c (aout_arm_little_vec): Likewise.
721 (aout_arm_big_vec): Likewise.
722 * bout.c (b_out_vec_big_host): Likewise.
723 (b_out_vec_little_host): Likewise.
724 * mipsbsd.c (aout_mips_little_vec): Likewise.
725 (aout_mips_big_vec): Likewise.
726
727start-sanitize-tic80
728Tue Aug 19 10:09:10 1997 Fred Fish <fnf@cygnus.com>
729
730 * coff-tic80.c (COFF_ALIGN_IN_SFLAGS): Define to 1.
731 * coffcode.h (styp_to_sec_flags): Ignore incoming STYP_INFO
732 bit in s_flags if COFF_ALIGN_IN_S_FLAGS is defined.
733
734end-sanitize-tic80
c4188c2a
FF
735Tue Aug 19 08:47:17 1997 Fred Fish <fnf@cygnus.com>
736
737 * coff-i960.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1.
738 (GET_SCNHDR_ALIGN, PUT_SCNHDR_ALIGN): Define.
739 * coff-m88k.c (GET_SCNHDR_NRELOC, GET_SCNHDR_NLNNO): Define.
740 * coffcode.h (coff_set_alignment_hook): Conditionally compile in if
741 COFF_ALIGN_IN_SECTION_HEADER is defined. Convert alignment to power
742 of two for I960 only.
743 * coffswap.h (GET_SCNHDR_NRELOC, PUT_SCNHDR_NRELOC, GET_SCNDHR_NLNNO,
744 PUT_SCNHDR_NLNNO, GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Provide
745 default definitions.
746 (coff_swap_scnhdr_in): Use GET_SCNHDR_FLAGS, GET_SCNHDR_NRELOC,
747 GET_SCNHDR_NLNNO, and GET_SCNHDR_ALIGN.
748 (coff_swap_scnhdr_out): Use PUT_SCNHDR_FLAGS, PUT_SCNHDR_ALIGN.
749start-sanitize-tic80
750 * Makefile.in (coff-tic80.o): Depends upon coffswap.h.
751 * coff-tic80.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1.
752 (GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Define
753 *coffcode.h (coff_write_object_contents): Set alignment field in
754 section header for TIC80COFF files.
755end-sanitize-tic80
756
def47b53
NC
757Mon Aug 18 11:36:19 1997 Nick Clifton <nickc@cygnus.com>
758
759 * elf32-v850.c (v850_elf_howto_table, v850_elf_reloc_map,
760 v850_elf_check_relocs, v850_elf_reloc,
761 v850_elf_final_link_relocate): Add support for
762 BFD_RELOC_V850_16_PCREL relocation.
763
764 * reloc.c (COMMENT): Add suuport for BFD_RELOC_V850_16_PCREL
765 relocation.
766
767 * libbfd.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
768
769 * bfd-in2.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
def47b53
NC
770
771start-sanitize-v850e
772Mon Aug 18 11:33:56 1997 Nick Clifton <nickc@cygnus.com>
773
774 * cpu-v850e: New file.
775
776 * elf.c (prep_headers): Add support for v850e target.
777
778 * bfd-in2.h (bfd_architecture): Add support for v850e target.
779
780 * config.bfd: Add support for v850e target.
781
782 * archures.c: Add support for v850e target.
def47b53 783
def47b53
NC
784Mon Aug 18 11:33:56 1997 Nick Clifton <nickc@cygnus.com>
785
cd66558c 786 * cpu-v850ea: New file.
def47b53 787
cd66558c 788 * elf.c (prep_headers): Add support for v850ea target.
def47b53 789
cd66558c 790 * bfd-in2.h (bfd_architecture): Add support for v850ea target.
def47b53 791
cd66558c 792 * config.bfd: Add support for v850ea target.
def47b53 793
cd66558c 794 * archures.c: Add support for v850ea target.
15d82b26 795end-sanitize-v850e
def47b53 796
00c7247b
ILT
797Fri Aug 15 12:01:28 1997 Ian Lance Taylor <ian@cygnus.com>
798
799 * coffgen.c (coff_find_nearest_line): Correctly handle the offset
800 argument as section relative, rather than an absolute address.
801 From Jan Hoogenraad <hoogenrd@natlab.research.philips.com>.
802
76af94b9
DE
803Fri Aug 15 04:58:02 1997 Doug Evans <dje@canuck.cygnus.com>
804
805 * config.bfd (arc-*-elf*): Add.
806 * configure.in (bfd_elf32_{little,big}arc_vec): Add.
807 * configure: Rebuild.
808 * Makefile.am (ALL_MACHINES): Add cpu-arc.lo.
809 (BFD32_BACKENDS): Add elf32-arc.lo.
810 (cpu-arc.lo,elf32-arc.lo): Add rules for.
811 * Makefile.in: Rebuild.
812 * archures.c (architecture list): Add bfd_arch_arc.
813 (bfd_archures_list): Add bfd_arc_arch.
814 (bfd_mach_arc_base): Define.
815 * reloc.c (BFD_RELOC_ARC_B22_PCREL,BFD_RELOC_ARC_B26): Add.
816 * targets.c (bfd_elf32_{little,big}arc_vec): Declare.
817 (bfd_target_vect): Add them.
818 * bfd-in2.h, libbfd.h: Rebuild.
819 * cpu-arc.c, elf32-arc.c: New files.
820 * elf.c (pre_headers): Recognize bfd_arch_arc.
821
822Tue Aug 12 11:45:18 1997 Ian Lance Taylor <ian@cygnus.com>
823
824 * aoutx.h (NAME(aout,final_link)): If no symbols, make sure the
825 data section is correctly rounded to a page in the file.
826
6ccdc203
ILT
827Mon Aug 11 12:45:43 1997 Ian Lance Taylor <ian@cygnus.com>
828
829 * aoutx.h (NAME(aout,final_link)): Don't emit the string table if
830 there are no symbols.
831
2af5a7e4
ILT
832Sun Aug 10 14:45:56 1997 Ian Lance Taylor <ian@cygnus.com>
833
834 * coff-stgo32.c: Rename from coff-stubgo32.c to avoid old System V
835 file system 14 character limit.
836 * Makefile.am, configure.in: Corresponding changes.
837 * Makefile.in, configure: Rebuild.
838
839Fri Aug 8 18:34:36 1997 Ian Lance Taylor <ian@cygnus.com>
840
841 * Makefile.am: (ALL_MACHINES_CFILES): Add elf32-d10v.c.
842 Rebuild dependencies.
843 * Makefile.in: Rebuild.
844
c40331ba
ILT
845Wed Aug 6 18:56:51 1997 Ian Lance Taylor <ian@cygnus.com>
846
847 * Makefile.am (docdir): Define.
848 * Makefile.in: Rebuild.
849
097fd78a
ILT
850Tue Aug 5 23:05:03 1997 Ian Lance Taylor <ian@cygnus.com>
851
852 * configure: Rebuild with autoconf 2.12.1.
853
854Mon Aug 4 12:00:35 1997 Ian Lance Taylor <ian@cygnus.com>
855
856 * aclocal.m4, configure: Rebuild with new automake patches.
857
e6071dc5
PS
858Sun Aug 3 08:15:12 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
859
860 * rs6000-core.c (make_bfd_asection): New function to add a section
861 to the core file bfd.
862 (rs6000coff_core_p): Use make_bfd_asection to add the core file
863 sections.
864 Use BFD routines to seek, read and stat the core file.
865 Handle .data sections from loaded objects and anonymously mmapped
866 regions, these are available in AIX 4 core files.
867
aa13d30d
ILT
868Fri Aug 1 12:58:32 1997 Ian Lance Taylor <ian@cygnus.com>
869
870 * configure.in: Set enable_shared before AM_PROG_LIBTOOL.
871 * acinclude.m4: Move acmacros.m4 in here. Remove AM_PROG_LIBTOOL
872 copy; use a patches libtool instead.
873 * acmacros.m4: Remove.
874 * Makefile.in, aclocal.m4, configure: Rebuild.
875
c0734708
ILT
876Thu Jul 31 19:55:36 1997 Ian Lance Taylor <ian@cygnus.com>
877
878 * Makefile.am: New file, based on old Makefile.in.
5e377ed2
ILT
879 * acmacros.m4: New file, copied from old aclocal.m4.
880 * acinclude.m4: New file.
881 * configure.in: Call AM_PROG_LIBTOOL. Remove shared library
882 handling; now handled by libtool. Replace AC_CONFIG_HEADER with
883 AM_CONFIG_HEADER. Replace AC_PROG_INSTALL with AM_PROG_INSTALL.
884 Call AM_MAINTAINER_MODE, AM_CYGWIN32, and AM_EXEEXT. Change all
885 .o files to .lo. Remove stamp-h handling in AC_OUTPUT.
c0734708
ILT
886 * acconfig.h: Mention PACKAGE and VERSION.
887 * stamp-h.in: New file.
888 * dep-in.sed: Change .o to .lo.
889 * Makefile.in: Now built with automake.
890 * aclocal.m4: Now built with aclocal.
891 * config.in, configure: Rebuild.
9df51f4f 892 * VERSION: Remove.
c0734708 893
3745ac6d
ILT
894Thu Jul 31 12:09:20 1997 Geoff Keating <geoffk@ozemail.com.au>
895
896 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Don't set TEXTREL
897 if there is only a relocation to a read-only but not allocatable
898 section (like .stab).
899 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
900 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
901 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
902 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
903 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
904
905 * elf32-ppc.c (ppc_elf_howto_raw): Correct various comments.
906 (ppc_elf_create_linker_section): These sections are not
907 created by the linker (that is, they are created by the user
908 putting data in them). In particular, they can be the source
909 and target of relocations.
910 (ppc_elf_adjust_dynamic_symbol): Check postcondition of
911 bfd_elf32_link_record_dynamic_symbol. Align 16-byte common
912 objects (for instance, 'long double') to 16-byte boundaries.
913 (ppc_elf_size_dynamic_sections): Make the code that generates
914 section symbols exactly the same as for sparc, reducing the
915 number of section symbols output.
916 (ppc_elf_check_relocs): Check postcondition of
917 bfd_elf32_link_record_dynamic_symbol. Make default case the
918 same as corresponding code for sparc, fixing bug involving
919 .rela.stabs.
920 (ppc_elf_finish_dynamic_symbol): Fix case involving GOT symbols
921 forced to be local because of versioning (by replicating
922 corresponding change in sparc). Treat R_PPC_RELATIVE RELA relocs
923 as usual in ELF, not as pseudo-REL relocs (as the sparc linker
924 does).
925 (ppc_elf_relocate_section): Add handy debugging code for when
926 assertion fails. Add some more 'symbol made local because of
927 versioning' cases.
928
929 * elf32-ppc.c (ppc_elf_relocate_section): Cope with addend when
930 processing a GOT relocation as required by ABI.
931
13eb6306
ILT
932Wed Jul 30 21:30:35 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
933
934 * elflink.h (NAME(bfd_elf,record_link_assignment)): Remove any
935 version info if this symbol came from a dynamic object.
936 (elf_link_add_object_symbols): Set the version info of a symbol
937 only if the object actually contains version definitions and
938 defines this symbol.
939
b1ee3d6a
RS
940Mon Jul 28 18:07:43 1997 Rob Savoye <rob@chinadoll.cygnus.com>
941
942 * aclocal.m4: Add CYGWIN and EXEEXT autoconf macros.
943 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
944 win32 dependencies.
945 * configure: Regenerated with autoconf 2.12.
946 * doc/Makefile.in: Add $(EXEEXT) to chew executable.
947
f366291b
PS
948Mon Jul 28 02:50:29 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
949
950 * rs6000-core.c (rs6000coff_core_p): If CORE_TRUNC is set, print
951 a warning rather than returning an error.
952
8dbbb8be
FL
953Sun Jul 27 19:54:14 1997 Felix Lee <flee@cygnus.com>
954
955 * coffswap.h (coff_swap_aux_in): add semicolon to make MSVC happy.
956
3e94ea70
FL
957Fri Jul 25 14:50:08 1997 Felix Lee <flee@cygnus.com>
958
959 * cisco-core.c: define signals for wingdb.
960
fbd550db
ILT
961Fri Jul 25 16:27:07 1997 Ian Lance Taylor <ian@cygnus.com>
962
963 * ecofflink.c (bfd_ecoff_debug_accumulate): Only merge files with
964 the same number of aux entries.
965
491501de
JL
966Fri Jul 25 08:22:15 1997 Jeffrey A Law (law@cygnus.com)
967
968 * som.c (hppa_som_gen_reloc_type): Use R_DATA_EXPR for the
969 difference of two symbols if the relocation size is 32 bits.
970 (som_write_fixups): Handle R_DATA_EXPR.
971
1868acf8
ILT
972Wed Jul 23 16:08:02 1997 Ian Lance Taylor <ian@cygnus.com>
973
974 * coff-i386.c (coff_i386_reloc): Don't offset a common symbol by
975 its value if COFF_WITH_PE is defined.
976
e8640d5e
ILT
977Tue Jul 22 17:19:45 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
978
179ce6e1
ILT
979 * coff-stubgo32.c: New file.
980 * go32stub.h: New file.
981 * coff-i386.c: If COFF_GO32_EXE, include coff/go32exe.h.
e8640d5e
ILT
982 * coffswap.h (coff_swap_filehdr_in): Invoke
983 COFF_ADJUST_FILEHDR_IN_PRE and COFF_ADJUST_FILEHDR_IN_POST if they
984 are defined.
985 (coff_swap_filehdr_out): Invoke COFF_ADJUST_FILEHDR_OUT_PRE and
986 COFF_ADJUST_FILEHDR_OUT_POST if they are defined.
987 (coff_swap_aux_in): Invoke COFF_ADJUST_AUX_IN_PRE and
988 COFF_ADJUST_AUX_IN_POST if they are defined.
989 (coff_swap_aux_out): Invoke COFF_ADJUST_AUX_OUT_PRE and
990 COFF_ADJUST_AUX_OUT_POST if they are defined.
991 (coff_swap_scnhdr_in): Invoke COFF_ADJUST_SCNHDR_IN_PRE and
992 COFF_ADJUST_SCNHDR_IN_POST if they are defined.
993 (coff_swap_scnhdr_out): Invoke COFF_ADJUST_SCNHDR_OUT_PRE and
994 COFF_ADJUST_SCNHDR_OUT_POST if they are defined.
179ce6e1
ILT
995 * targets.c (go32stubbedcoff_vec): Declare.
996 (bfd_target_vector): Add go32stubbedcoff_vec.
997 * configure.in (go32coff_vec): New target vector.
998 (go32stubbedcoff_vec): Likewise.
88a25e44
ILT
999 * config.bfd (i[3456]86-*-msdosdjgpp*): New target.
1000 (i[3456]86-*-go32*): Change to be like new msdosdjgpp*.
179ce6e1
ILT
1001 * Makefile.in: Rebuild dependencies.
1002 (BFD32_BACKENDS): Add coff-stubgo32.o.
1003 (BFD32_BACKENDS_CFILES): Add coff-stubgo32.c.
1004 (HFILES): Add go32stub.h.
e8640d5e 1005
60f1ad85
ILT
1006Tue Jul 22 15:09:12 1997 Ian Lance Taylor <ian@cygnus.com>
1007
1008 * configure.in: Check for fdopen.
1009 * configure, config.in: Rebuild.
1010 * opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or
1011 __GO32__. Reindent a bit.
1012
f1c88b48
ILT
1013Sun Jul 20 20:05:20 1997 Ian Lance Taylor <ian@cygnus.com>
1014
1015 * sunos.c (sunos_create_dynamic_sections): Set SEC_LINKER_CREATED
1016 flag for newly created sections.
1017 (sunos_add_dynamic_symbols): Don't discard newly created sections
1018 if shared library is dynobj.
1019
3fc2c146
ILT
1020Mon Jul 14 15:33:55 1997 Ian Lance Taylor <ian@cygnus.com>
1021
1022 * elf.c (map_sections_to_segments): When checking whether
1023 including a section in a segment would force us to skip a page,
1024 align the address of the next segment to avoid wraparound
1025 problems.
1026
7f2e6854
FF
1027start-sanitize-tic80
1028Tue Jul 8 12:11:29 1997 Fred Fish <fnf@cygnus.com>
1029
1030 * coffcode.h (coff_write_object_contents): Initialize
1031 target id field to TIC80_TARGET_ID.
1032 * coffswap.h (coff_swap_filehdr_out): Swap out target id field
1033 if used.
1034 (coff_swap_filehdr_in): Swap in target id field if used.
1035
1036end-sanitize-tic80
40496096
ILT
1037Mon Jul 7 16:41:20 1997 Ian Lance Taylor <ian@cygnus.com>
1038
1039 * coff-i386.c (coff_i386_is_local_label_name): New static function
1040 if TARGET_UNDERSCORE.
1041 (coff_bfd_is_local_label_name): Define if TARGET_UNDERSCORE.
1042 (i386coff_vec): Add SEC_CODE and SEC_DATA to section_flags.
1043
01da2d52
ILT
1044Mon Jun 30 14:29:26 1997 Ian Lance Taylor <ian@cygnus.com>
1045
1046 * elf32-m68k.c (howto_table): Use complain_overflow_bitfield, not
1047 complain_overflow_signed, for 32 bit PC relative relocations.
1048
8211c929
ILT
1049Thu Jun 26 01:26:31 1997 Ian Lance Taylor <ian@cygnus.com>
1050
677525e9
ILT
1051 * elflink.h (elf_link_add_object_symbols): When a version
1052 indirection symbol is overridden, make the original symbol point
1053 at the real overriding symbol.
1054
20db2495
ILT
1055 * elf.c (bfd_elf_string_from_elf_section): Check for an invalid
1056 string index.
1057
8211c929
ILT
1058 * elflink.h (elf_link_output_extsym): Use the right section for a
1059 common symbol.
1060 * elf32-mips.c (mips_elf_link_output_symbol_hook): If a common
1061 symbol was in .scommon, mark it as SHN_MIPS_SCOMMON.
1062
0ac96a37
ILT
1063Wed Jun 25 12:43:10 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1064
e9982ee5
ILT
1065 * elflink.h (elf_merge_symbols): Resolve indirect and warning
1066 symbols before checking for new symbols.
1067
0ac96a37
ILT
1068 * elfcore.h (elf_corefile_note): Move out of HAVE_SYS_PROCFS_H.
1069
a90f6864
ILT
1070Tue Jun 24 11:20:43 1997 Ian Lance Taylor <ian@cygnus.com>
1071
1072 * coffgen.c (coff_object_p): Read the f_opthdr bytes from the
1073 file, not aoutsz bytes (they are different in XCOFF .o files).
1074
1075 * xcofflink.c (xcoff_link_add_symbols): Permit symbols to be
1076 redefined by objects included from archives.
1077
044d7d49
ILT
1078Mon Jun 23 18:03:27 1997 Ian Lance Taylor <ian@cygnus.com>
1079
541a4b54
ILT
1080 * elflink.h (elf_merge_symbol): In the case of a new defined
1081 symbol overriding an old defined symbol, return the hash table
1082 entry which we modify, even if it is the target of an
1083 indirection.
1084 (elf_link_add_object_symbols): If the real name of the symbol gets
1085 overridden, convert the versioned symbol into an indirect symbol
1086 to the real symbol.
1087
044d7d49
ILT
1088 * elflink.h (elf_merge_symbol): New static function, broken out of
1089 elf_link_add_object_symbols.
1090 (elf_link_add_object_symbols): Call it.
1091
3ce6d941
ILT
1092Sun Jun 22 19:40:57 1997 Ian Lance Taylor <ian@cygnus.com>
1093
1094 * coff-i386.c (i3coff_object_p): If COFF_IMAGE_WITH_PE, hack to
1095 handle case where COFF filehdr does not immediately follow PE
1096 header.
1097 * coffgen.c (coff_object_p): Remove useless seek to current
1098 location.
1099
ba0e3b78
ILT
1100Wed Jun 18 19:03:38 1997 Ian Lance Taylor <ian@cygnus.com>
1101
1102 * linker.c (link_action): Change COMMON_ROW/indr to from CREF to
1103 REFC.
1104
ac44b2b9
ILT
1105Tue Jun 17 11:55:02 1997 Ian Lance Taylor <ian@cygnus.com>
1106
1107 * cofflink.c (_bfd_coff_link_input_bfd): If stripping debugging
1108 symbols, skip N_ABS symbols with debugging storage classes.
1109
b6eb341b
ILT
1110Mon Jun 16 18:56:27 1997 Geoff Keating <geoffk@ozemail.com.au>
1111
1112 * elf32-ppc.c (ppc_elf_relocate_section): Don't emit R_PPC_REL*
c1292d9b
ILT
1113 relocs in shared libraries which refer to local symbols. Cope
1114 with addend when processing a GOT relocation.
b6eb341b
ILT
1115
1116 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Only create symbols
1117 for sections that the linker didn't create.
1118 (ppc_elf_finish_dynamic_sections): Only try to write out a section
c1292d9b 1119 symbol if it was created in ppc_elf_size_dynamic_sections.
b6eb341b
ILT
1120 (ppc_elf_relocate_section): Complain if we have to generate a reloc
1121 relative to a section for which we didn't output a symbol.
1122
1123 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Clean up. PLT
c1292d9b
ILT
1124 relocs are 'rela' relocs, like everything else. .rela.plt is not
1125 a read-only section, so we don't have to special-case it.
b6eb341b
ILT
1126
1127 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Entries in the
1128 .rela.bss section are (of course) 'rela' relocs not 'rel' relocs.
1129
1130 * elf32-ppc.c (ppc_elf_check_relocs): Initialise srelgot.
1131 (ppc_elf_relocate_section): @got offsets are 4 from start of the
1132 actual .got section.
1133 * elflink.c (_bfd_elf_create_got_section): The three reserved
1134 words start from the symbol '_GLOBAL_OFFSET_TABLE_'.
1135
1136 * elf32-ppc.c (ppc_elf_size_dynamic_sections): '.rela' is 5
1137 characters, not 4.
1138
1139 * elf32-ppc.c (ppc_elf_check_relocs): Use
1140 _bfd_elf_create_got_section to create the GOT rather than
1141 ppc_elf_create_linker_section. Create the '.rela.got' section
1142 ourselves.
1143 (ppc_elf_finish_dynamic_symbol): Set up GOT relocations when a
1144 symbol has a GOT entry.
1145 (ppc_elf_relocate_section): Record when a symbol is used through
1146 the GOT, and allocate space in the GOT for each such symbol.
1147 (ppc_elf_adjust_dynamic_symbol): Delete unused .got.plt stuff.
1148 (ppc_elf_create_linker_section): Delete unused LINKER_SECTION_GOT
1149 stuff.
1150
1151 * elf32-ppc.c (ppc_elf_howto_raw): GOT16_HA relocs should be
1152 treated in a similar way to ADDR16_HA relocs.
1153 (ppc_elf_relocate_section): PLTREL24 relocs do not get copied into
1154 shared objects; the linker must deal with them.
1155 (ppc_elf_create_linker_section): Stop setting
1156 _GLOBAL_OFFSET_TABLE_ to the wrong value; delete unused
1157 LINKER_SECTION_PLT stuff.
1158 (ppc_elf_check_relocs): Delete unused LINKER_SECTION_PLT stuff.
1159 (ppc_elf_finish_dynamic_sections): Use BFD calls to get GOT
1160 section, not ELF-specific calls.
1161 (elf_backend_plt_not_loaded): Set to 1.
1162 (elf_backend_got_symbol_offset): Set to 4.
1163 * elf-bfd.h (elf_backend_data): Add 'plt_not_loaded' member
1164 for when ld.so fills in the PLT; and 'got_symbol_offset' member.
1165 * elflink.c (_bfd_elf_create_dynamic_sections): Apply
1166 plt_not_loaded member.
1167 (_bfd_elf_create_got_section): Apply got_symbol_offset.
1168 * elfxx-target.h (elf_backend_plt_not_loaded): Set default to
1169 'loaded'.
1170 (elf_backend_G_O_T_offset): Set default to 0.
1171 (elfNN_bed): Set added fields.
1172
1173 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Was setting
1174 DT_RELENT in shared objects; should be DT_RELAENT.
1175
1176 * elf32-ppc.c (ppc_elf_relocate_section): Propagate
1177 R_PPC_ADDR16_HA relocs to shared objects. Cope with case where
1178 such a reloc (in a non-shared object) refers to a symbol that's
1179 not defined.
1180
fdc944a7
ILT
1181Mon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1182
1183 * elfcode.h (put_signed_word): Define.
1184 (get_signed_word): Define.
1185 (elf_swap_reloca_in): Use get_signed_word for the r_addend field.
1186 (elf_swap_reloca_out): Use put_signed_word for the r_addend
1187 field.
1188 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use
1189 bfd_get_signed_32 to set the r_addend field.
1190 * elf64-mips.c (mips_elf64_swap_reloca_in): Use
1191 bfd_h_get_signed_64 to set the r_addend field.
1192
c19fbe0f
ILT
1193Mon Jun 16 12:31:29 1997 Ian Lance Taylor <ian@cygnus.com>
1194
90d7b9b9
ILT
1195 * elf32-i386.c (elf_i386_relocate_section): When generating a
1196 shared library, do the relocation if the input section is not
1197 allocated in memory.
1198
c19fbe0f
ILT
1199 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Call
1200 elf_link_assign_sym_version before elf_adjust_dynamic_symbol.
1201 (elf_fix_symbol_flags): New static function, broken out of
1202 elf_adjust_dynamic_symbol.
1203 (elf_adjust_dynamic_symbol): Call elf_fix_symbol_flags.
1204 (elf_link_assign_sym_version): Likewise. Permit a symbol to be
1205 forced local even if NEEDS_PLT is set. When forcing a symbol to
1206 be local, clear NEEDS_PLT.
1207 (elf_link_output_extsym): Remove unused local bed.
1208
bb2a6cfb
JL
1209Wed Jun 11 22:44:20 1997 Jeffrey A Law (law@cygnus.com)
1210
1211 * elf32-mn10300.c (elf32_mn10300_link_hash_entry): New structure
1212 for derived elf linker hash table entries. References to
1213 elf_link_hash_entry changed appropriately.
1214 (elf32_mn10300_link_hash_table): New structure for derived elf
1215 linker hash table.
1216 (elf32_mn10300_hash_table): Define.
1217 (elf32_mn10300_link_hash_traverse): Likewise.
1218 (elf32_mn10300_link_hash_newfunc): New function.
1219 (elf32_mn10300_link_hash_table_create): Likewise.
1220 (elf32_mn10300_finish_hash_table_entry): Likewise.
1221 (mn10300_elf_relax_section): Handle "call" -> "calls", removal
1222 of prologue code, and call:32->call:16 relaxing.
1223 (compute_function_info: New function.
1224 (bfd_elf32_bfd_ilink_hash_table_create): Define.
1225
6a1878c9
ILT
1226Wed Jun 11 00:00:07 1997 Ian Lance Taylor <ian@cygnus.com>
1227
8519ea21
ILT
1228 * elflink.h (elf_link_output_extsym): Call finish_dynamic_symbol
1229 for a symbol which is being forced to be local.
1230 * elf32-i386.c (elf_i386_relocate_section): Write out the
c1292d9b
ILT
1231 relocation value for a GOT reloc for a symbol which is turning
1232 into a local symbol.
8519ea21
ILT
1233 (elf_i386_finish_dynamic_symbol): If a symbol is turning into a
1234 local symbol, write out a RELATIVE reloc rather than a GLOB_DAT
1235 reloc.
1236 * elf32-m68k.c, elf32-sparc.c: Corresponding changes.
1237
6a1878c9
ILT
1238 * elf32-i386.c (elf_i386_relocate_section): Get the relocation
1239 value if the symbol is turning into a local symbol.
1240 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1241 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1242
601acd61
UD
12431997-06-10 22:58 Ulrich Drepper <drepper@cygnus.com>
1244
1245 * elflink.h (elf_link_add_object_symbols): Also read verneed
1246 information by calling `_bfd_elf_slurp_version_tables'.
1247 (elf_link_add_object_symbols): For undefined symbols look for
8519ea21 1248 version information in the verneed records.
601acd61
UD
1249 (elf_link_add_object_symbols): Use soname of shared object
1250 for verneed record if it is available.
1251
ba383e02
ILT
1252Tue Jun 10 11:13:03 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1253
1254 * cpu-arm.c: Add prototypes for compatible and scan.
1255 * cofflink.c: Add prototype for mark_relocs.
1256
1257 * archive.c (bfd_special_undocumented_glue): Change filename to
1258 const pointer. Add prototype.
1259
94e05b00
ILT
1260Mon Jun 9 12:34:21 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1261
1262 * elflink.h (elf_link_add_object_symbols): Ignore relocations of
1263 sections that will be discarded.
1264
cf2cd4cf
UD
12651997-06-06 22:58 Ulrich Drepper <drepper@cygnus.com>
1266
1267 * elflink.h (elf_link_find_version_dependencies): When searching
1268 for known version symbol skip non-matching verdef records, not
1269 matching records.
1270
1271Thu Jun 5 15:52:45 1997 Ian Lance Taylor <ian@cygnus.com>
1272
1273 * cofflink.c (_bfd_coff_generic_relocate_section): Write a long,
c1292d9b 1274 not a bfd_vma, to the base file, to match how dlltool reads it.
cf2cd4cf 1275
48e509bf
NC
1276Tue Jun 3 16:57:45 1997 Nick Clifton <nickc@cygnus.com>
1277
fd2553f9
NC
1278 * reloc.c: Add thumb relocations.
1279
48e509bf
NC
1280 * bfd-in2.h: Add Thumb relocations.
1281
1282 * libbfd.h: Add Thumb relocations.
1283
1284Mon Jun 2 10:41:52 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1285
1286 * cpu-m68k.c (arch_info_struct): Fix 68060 cpu name.
1287
907f6015
ILT
1288Fri May 30 12:46:27 1997 Ian Lance Taylor <ian@cygnus.com>
1289
e08eb976
ILT
1290 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
1291 for a section even if it is not loaded.
1292
907f6015
ILT
1293 * cofflink.c (coff_link_add_symbols): If PE file, don't subtract
1294 section VMA.
1295 (_bfd_coff_link_input_bfd): Separate section VMA handling for
1296 input and output files.
1297 (_bfd_coff_generic_relocate_section): Check whether input file,
1298 not output file, is a PE file.
1299
1300Wed May 28 15:48:43 1997 Nick Clifton <nickc@cygnus.com>
1301
1302 * coff-arm.c: (coff_arm_bfd_set_private_flags): Make static.
1303
5edcd3b9
ILT
1304Wed May 28 16:16:04 1997 Ian Lance Taylor <ian@cygnus.com>
1305
1306 * coff-i386.c (coff_i386_reloc): Don't just exit if we see an
1307 R_IMAGEBASE reloc.
1308
916660cb
NC
1309Wed May 28 09:48:43 1997 Nick Clifton <nickc@cygnus.com>
1310
1311 * cpu-arm.c (compatible): Add test for supersets of ARM
cf2cd4cf 1312 architectures.
916660cb 1313
3c82a731
BM
1314Tue May 27 19:42:03 1997 Bob Manson <manson@charmed.cygnus.com>
1315
1316 * cofflink.c (_bfd_coff_final_link): Initialize global_to_static
c1292d9b 1317 member.
3c82a731 1318
177f3d7f
NC
1319Tue May 27 14:34:08 1997 Nick Clifton <nickc@cygnus.com>
1320
1321 * coff-arm.c (coff_arm_bfd_set_private_flags): Make global. It is
1322 called directly by gas/config/tc-arm.c.
cf2cd4cf 1323
70edb961
ILT
1324Tue May 27 15:58:53 1997 Richard Henderson <rth@tamu.edu>
1325
1326 * elf64-alpha.c (PLT_ENTRY_*): Use a new thread-safe format.
1327 (elf64_alpha_finish_dynamic_symbol): Fill it in properly.
1328
d82e4bf6
ILT
1329Mon May 26 14:05:13 1997 Ian Lance Taylor <ian@cygnus.com>
1330
1331 * coff-ppc.c (coff_ppc_relocate_section): If PE file, don't add
1332 section VMA.
1333
315dc1f4
FF
1334Mon May 26 10:57:48 1997 Fred Fish <fnf@cygnus.com>
1335
1336 * peicode.h (coff_bfd_print_private_bfd_data): #undef before #define.
1337 (coff_bfd_copy_private_bfd_data): Ditto.
1338 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Make static.
1339 (coff_arm_bfd_print_private_bfd_data): Ditto.
1340 (coff_arm_bfd_set_private_flags): Ditto.
1341 (coff_arm_bfd_copy_private_bfd_data): Ditto.
1342
e074d05e
FF
1343Fri May 23 15:14:58 1997 Fred Fish <fnf@cygnus.com>
1344
1345 * libcoff-in.h (struct coff_final_link_info): Add boolean
1346 global_to_static member for support of task linking.
1347 (_bfd_coff_write_task_globals): Add prototype.
1348 * libcoff.h: Regenerate.
1349 * coffcode.h (coff_write_object_contents): Use #ifdef to
1350 check RS6000COFF_C, to be consistent with all other uses
1351 in this file.
1352 * cofflink.c (_bfd_coff_final_link): If doing task linking,
1353 call _bfd_coff_write_task_globals.
1354 (_bfd_coff_link_input_bfd): If doing task linking, convert
1355 global functions to static.
1356 (_bfd_coff_write_global_sym): If doing task linking, convert
1357 global variables to static.
1358 (_bfd_coff_write_task_globals): New function.
1359start-sanitize-tic80
1360 * coff-tic80.c (TIC80COFF): Define this instead of just TIC80.
1361 (C_AUTOARG): #undef since it clashes with C_UEXT.
1362 (C_LASTENT): #undef since it clashes with C_STATLAB.
1363 * coffcode.h (coff_write_object_contents): Use TIC80COFF
1364 rather than TIC80.
1365 (coff_slurp_symbol_table): Use C_SYSTEM. Hide C_AUTOARG use
1366 when TIC80COFF defined (clashes with C_UEXT). Explicitly
1367 recognize C_UEXT, C_STATLAB, and C_EXTLAB as unsupported.
1368end-sanitize-tic80
1369
8ac5f940 1370start-sanitize-tic80
546d7a90
ILT
1371Fri May 23 12:38:24 1997 Ian Lance Taylor <ian@cygnus.com>
1372
1373 * coff-tic80.c (tic80_howto_table): Change overflow check for most
1374 PP relocations to complain_overflow_dont.
1375
8ac5f940
ILT
1376Thu May 22 20:22:14 1997 Ian Lance Taylor <ian@cygnus.com>
1377
1378 * coff-tic80.c (tic80_howto_table): Add PP relocations. Change
1379 name of R_RELLONG to "RELLONG". Set rightshift and complain for
1380 M_PPCR.
1381 (ppbase_reloc, glob15_reloc): New static functions.
1382 (glob16_reloc, local16_reloc): New static functions.
1383 (rtype2howto): Handle all relocation types.
1384 (coff_tic80_relocate_section): New static function.
1385 (coff_relocate_section): Define to coff_tic80_relocate_section.
1386 * Makefile.in (coff-tic80.o): Depends upon include/coff/tic80.h.
1387
1388end-sanitize-tic80
d2d70da5
ILT
1389Wed May 21 17:15:50 1997 Ian Lance Taylor <ian@cygnus.com>
1390
20a9631a
ILT
1391 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE or
1392 COFF_IMAGE_WITH_PE, don't subtract the section VMA from the symbol
1393 value.
1394 * coffgen.c (fixup_symbol_value): Add abfd parameter. Change all
1395 callers. If PE file, don't add section VMA.
1396 (coff_write_alien_symbol): If PE file, don't add section VMA.
1397 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1398 (_bfd_coff_write_global_sym): Likewise.
1399 (_bfd_coff_generic_relocate_section): Likewise.
1400
d2d70da5
ILT
1401 * peicode.h: Add & 0xffffffff when using ImageBase in case bfd_vma
1402 is 64 bits.
1403
e18683b7
NC
1404Wed May 21 09:58:10 1997 Nick Clifton <nickc@cygnus.com>
1405
1406 * cofflink.c (mark_relocs): Add new function to mark symbols which
d2d70da5 1407 are used by relocations.
c1292d9b 1408 (_bfd_coff_link_input_bfd): Add call to mark_relocs() and code to
d2d70da5 1409 suppress the skipping of symbols that have thus been marked.
e18683b7 1410
4e39c0f9
ILT
1411Tue May 20 18:45:26 1997 Ian Lance Taylor <ian@cygnus.com>
1412
1413 * coff-sh.c (sh_merge_private_data): New static function.
1414 (coff_bfd_merge_private_bfd_data): Define.
1415
69f3f9f7 1416start-sanitize-tic80
4e39c0f9
ILT
1417Mon May 19 14:46:00 1997 Mark Alexander <marka@cygnus.com>
1418
1419 * coff-tic80.c: Remove unnecessary #ifdefs.
1420 * config.bfd: Set targ_underscore to yes for tic80.
1421
69f3f9f7
MA
1422Mon May 19 14:26:36 1997 Mark Alexander <marka@cygnus.com>
1423
1424 * coff-tic80.c (NAMES_HAVE_UNDERSCORE): Define (fixes problem
1425 with unresolved external symbols in GDB).
1426
1427end-sanitize-tic80
efc02f66
JL
1428Fri May 16 10:23:03 1997 Jeffrey A Law (law@cygnus.com)
1429
c1292d9b
ILT
1430 * elf-m10300.c (elf32_mn10300_relax_section): Read in all
1431 the symbols associated with each BFD.
1432 (mn10300_elf_relax_delete_bytes): Don't adjust the same symbol
1433 more than once.
efc02f66
JL
1434 * elf-m10200.c: Likewise.
1435 * elf32-m32r.c: Likewise.
1436 * elf32-sh.c: Likewise.
1437
fd6c00ba
ILT
1438Fri May 16 12:10:52 1997 Ian Lance Taylor <ian@cygnus.com>
1439
1440 * elflink.h (elf_link_add_object_symbols): Don't decrease the
c1292d9b
ILT
1441 alignment of a common symbol. If two symbols that look like
1442 common symbols are found in two shared libraries, and the size is
1443 different, use the larger size, and warn if --warn-common. If a
fd6c00ba
ILT
1444 common symbol overrides a definition in a shared library, set the
1445 size to the larger size, and warn if --warn-common.
1446
4c4badea
NC
1447Thu May 15 14:31:28 1997 Nick Clifton <nickc@cygnus.com>
1448
1449 * cpu-arm.c (compatible): Allow default machine to be polymorphed
1450 into any other machine type.
1451
1452 * coffcode.h (coff_set_flags): Initialise flags variable to 0.
1453
1454 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): When merging
1455 data into an unitialised destination set its machine type as well.
1456
031dfce0
ILT
1457Thu May 15 16:40:20 1997 Ian Lance Taylor <ian@cygnus.com>
1458
1459 * elflink.h (elf_link_add_object_symbols): Force ELF symbol size
77bd8dfa
ILT
1460 to common symbol size. Consistently treat uninitialized symbols
1461 in shared objects as common symbols.
031dfce0 1462
46686c78
NC
1463Fri May 9 10:15:27 1997 Nick Clifton <nickc@cygnus.com>
1464
1465 * archures.c (constants): Added new constants to identify the
1466 type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
cf2cd4cf 1467 bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and bfd_mach_arm_4T.
46686c78
NC
1468
1469 * bfd-in2.h (constants): Added new constants to identify
1470 the type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
1471 bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and
1472 bfd_mach_arm_4T. This file is auto-magically generated from the
1473 archures.c file. This update is just to save work.
1474
1475 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data,
1476 coff_arm_bfd_print_private_bfd_data,
1477 coff_arm_bfd_set_private_flags,
1478 coff_arm_bfd_copy_private_bfd_data): Added these new functions.
cf2cd4cf 1479 (global): Macro redefinitions set up to use these new functions.
46686c78
NC
1480
1481 * coffcode.h (coff_mkobject_hook): Added call to
d2d70da5 1482 coff_arm_bfd_set_private_flags().
c1292d9b 1483 (coff_set_arch_mach_hook): Added code to set machine type based on
d2d70da5
ILT
1484 bits stored in internal flags.
1485 (coff_set_flags): Added code to set the new bits in the flags
1486 field based on the machine number.
46686c78
NC
1487 (function definition macros): Made all function definition macros
1488 conditional so that they can be overridden by target specific
1489 files.
1490
1491 * cpu-arm.c (compatible): Added this function. (arch_info_struct):
1492 Structure extended to include new types, one each for ARMv2,
1493 ARMv2a, ARMv3, ARMv3M, ARMv4 and ARMv4T.
1494
1495 * libcoff-in.h (struct coff_tdata): Added flags field.
cf2cd4cf 1496
3baa24ad
ILT
1497Fri May 9 17:40:02 1997 Ian Lance Taylor <ian@cygnus.com>
1498
64aaba23
ILT
1499 * config.bfd (i[3456]86-*-gnu*): Don't include Mach support.
1500
3baa24ad
ILT
1501 * config.bfd: Change #if 0 around uses of host_aout_vec to #if
1502 HAVE_host_aout_vec.
1503
aba5cc8b
MM
1504Mon May 5 13:57:32 1997 Mike Meissner <meissner@cygnus.com>
1505
1506 * coffgen.c (coff_find_nearest_line): If there are no syments,
1507 just return false.
1508
6a2922d5
ILT
1509Mon May 5 18:18:45 1997 Philip Blundell <pjb27@cam.ac.uk>
1510
1511 * config.bfd: cope with '*-*-linux-gnuaout' targets.
1512
1513Thu May 1 11:31:12 1997 Ian Lance Taylor <ian@cygnus.com>
1514
1515 * targmatch.sed: Add explicit \n characters to work around bug in
1516 HP/UX 10.20 sed program.
1517
412dfaed
ILT
1518Wed Apr 30 12:27:03 1997 Ian Lance Taylor <ian@cygnus.com>
1519
1520 * elf.c (copy_private_bfd_data): Cast csecs to avoid sign
1521 extension problems.
1522
3c8caeb7
ILT
1523Tue Apr 22 12:06:08 1997 Ian Lance Taylor <ian@cygnus.com>
1524
1525 * Makefile.in (do_maintainer_clean): Don't remove bfd-in2.h.
1526
f4236094
ILT
1527Mon Apr 21 11:21:31 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1528
1529 * elf32-m68k.c: Follow the last changes in elf32-i386.c:
1530 (struct elf_m68k_pcrel_relocs_copied, struct
1531 elf_m68k_link_hash_entry, struct elf_m68k_link_hash_table,
1532 elf_m68k_link_hash_traverse, elf_m68k_hash_table,
1533 elf_m68k_link_hash_newfunc, elf_m68k_link_hash_table_create,
1534 elf_m68k_discard_copies, bfd_elf32_bfd_link_hash_table_create):
1535 New definitions.
1536 (elf_m68k_check_relocs): If linking with -Bsymbolic, don't copy
1537 PC relative relocs for a global symbol defined in a regular
1538 object, and count the number of PC relative relocs copied for any
1539 global symbol.
1540 (elf_m68k_size_dynamic_sections): If linking with -Bsymbolic,
1541 traverse with elf_m68k_discard_copies.
1542
752eaefc
ILT
1543Sat Apr 19 22:50:14 1997 Ian Lance Taylor <ian@cygnus.com>
1544
9d71be72
ILT
1545 * elf32-i386.c (elf_i386_check_relocs): Only count PC relative
1546 relocs. From Jamie Lokier <jamie@rebellion.co.uk>.
1547
752eaefc
ILT
1548 * coffcode.h (coff_compute_section_file_positions): Force the
1549 potential last byte in the file to be written out when
1550 COFF_IMAGE_WITH_PE.
1551
e066f244
ILT
1552Thu Apr 17 13:46:56 1997 Per Fogelstrom <pefo@openbsd.org>
1553
a0412785 1554 * configure.host (mips*-*-openbsd*): New host.
e066f244 1555
81f01dd5
ILT
1556Thu Apr 17 11:10:54 1997 Ian Lance Taylor <ian@cygnus.com>
1557
f02004e9
ILT
1558 * elflink.h (elf_link_add_object_symbols): Only subtract the
1559 section VMA from the symbol value if this is a fully linked file.
1560
6e2183b1
ILT
1561 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define.
1562 (struct elf_i386_link_hash_entry): Define.
1563 (struct elf_i386_link_hash_table): Define.
1564 (elf_i386_link_hash_traverse): Define.
1565 (elf_i386_hash_table): Define.
1566 (elf_i386_link_hash_newfunc): New static function.
1567 (elf_i386_link_hash_table_create): New static function.
1568 (elf_i386_check_relocs): If linking with -Bsymbolic, don't copy
1569 PC relative relocs for a global symbol defined in a regular
1570 object, and count the number of PC relative relocs copied for any
1571 global symbol.
1572 (elf_i386_size_dynamic_sections): If linking with -Bsymbolic,
1573 traverse with elf_i386_discard_copies.
1574 (elf_i386_discard_copies): New static function.
1575 (bfd_elf32_bfd_link_hash_table_create): Define.
1576
81f01dd5
ILT
1577 From Gordon W. Ross <gwr@mc.com>:
1578 * aoutf1.h (MY_entry_is_text_address): Define if not defined.
1579 (sunos4_aout_backend): Use MY_entry_is_text_address.
1580
ebec2a6a
MH
1581start-sanitize-d30v
1582Wed Apr 16 12:43:32 1997 Martin Hunt <hunt@cygnus.com>
1583
1584 * elf32-d30v.c (elf_d30v_howto_table): Changed size of
1585 R_D30V_32_NORMAL to 2 (4 bytes).
1586
cf2cd4cf 1587end-sanitize-d30v
10888f10
ILT
1588Wed Apr 16 14:02:29 1997 Ian Lance Taylor <ian@cygnus.com>
1589
a895901a
ILT
1590 From Gordon W. Ross <gwr@mc.com>:
1591 * netbsd.h (N_SHARED_LIB): Define.
1592 (SEGMENT_SIZE): Don't define.
1593 * m68knetbsd.c (SEGMENT_SIZE): Don't define (revert change of
1594 April 11).
1595 * sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000.
1596 (SEGMENT_SIZE): Don't define.
1597
10888f10
ILT
1598 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size
1599 to sizeof Rela structure, not sizeof Rel structure. From Gary
1600 Thomas <g.thomas@opengroup.org>.
1601
a0c80726
ILT
1602Tue Apr 15 11:50:37 1997 Ian Lance Taylor <ian@cygnus.com>
1603
55aba333
ILT
1604 * aout-target.h (MY(callback)): If entry_is_text_address, adjust
1605 whenever entry is larger than text address, but only by whole
1606 pages. From Gordon W. Ross <gwr@mc.com>.
1607
9b31e6f5
ILT
1608 * Makefile.in (install): Depend upon installdirs. Use
1609 mkinstalldirs to build $(oldincludedir).
1610 (installdirs): New target.
1611
a0c80726
ILT
1612 * elflink.h (elf_link_add_object_symbols): Don't call check_relocs
1613 if this is a debugging section which we are stripping.
1614
1615Mon Apr 14 12:39:30 1997 Richard Henderson <rth@tamu.edu>
1616
1617 * elf64-alpha.c (elf64_alpha_object_p): Allocate the
1618 alpha-specific target data struct.
1619
e5d7e3df
ILT
1620Mon Apr 14 11:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
1621
1622 From Thomas Graichen <graichen@rzpd.de>:
1623 * Makefile.in: Always use $(SHELL) when running move-if-change.
1624 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
1625 * configure: Rebuild.
1626
4b8c8bb9
ILT
1627Fri Apr 11 15:43:24 1997 Ian Lance Taylor <ian@cygnus.com>
1628
3bc3351e
ILT
1629 * elfcode.h (elf_slurp_symbol_table): Only subtract the section
1630 VMA if this is an executable file or a shared object.
1631
faa0b8db
ILT
1632 * targets.c (netbsd_core_vec): Declare. From Gordon W. Ross
1633 <gwr@mc.com>.
1634
1635 * libaout.h (struct aout_backend_data): Add entry_is_text_address
1636 field.
1637 * aout-target.h (SEGMENT_SIZE): Define to TARGET_PAGE_SIZE at the
1638 start of the file. Remove uses later on which switch using
1639 ifdef.
1640 (MY(callback)): Handle entry_is_text_address.
1641 (MY_entry_is_text_address): Define if not defined.
1642 (MY(backend_data)): Initialize new field.
1643 * aoutf1.h (sunos4_aout_backend): Likewise.
1644 * i386aout.c (MY(backend_data)): Likewise.
1645 * i386mach3.c (MY(backend_data)): Likewise.
1646 * mipsbsd.c (MY(backend_data)): Likewise.
1647 * sparclynx.c (sparclynx_aout_backend): Likewise.
1648 * netbsd.h (SEGMENT_SIZE): Define if not defined.
1649 (MY_entry_is_text_address): Define.
a895901a 1650 * m68knetbsd.c (SEGMENT_SIZE): Define as 0x20000.
faa0b8db 1651
4b8c8bb9
ILT
1652 * xcofflink.c (bfd_xcoff_import_symbol): Handle importing a symbol
1653 whose name starts with `.'.
1654
3b1b0308
ILT
1655Fri Apr 11 11:57:15 1997 Niklas Hallqvist <niklas@appli.se>
1656
1657 * config.bfd: (i[3456]86-*-openbsd*, m68*-*-openbsd*,
1658 mips*el*-*-openbsd*, mips*-*-openbsd*, ns32k-*-openbsd*,
1659 powerpc-*-*bsd*, sparc-*-openbsd*): New targets.
1660 * configure.in (i[3456]86-*-openbsd*, mips*-*-openbsd*,
1661 m68*-*-openbsd*, ns32k-*-openbsd*, powerpc-*-*bsd*,
1662 sparc-*-openbsd*): New targets.
1663 * configure: Rebuild.
1664
57a3027b
ILT
1665Tue Apr 8 18:09:29 1997 Jamie Lokier <jamie@rebellion.co.uk>
1666
1667 * stabs.c (struct stab_section_info): New field
1668 `cumulative_skips'.
1669 (_bfd_link_section_stabs): Fill the above array.
1670 (_bfd_stab_section_offset): Use `cumulative_skips' to
1671 speed up offset calculation.
1672
a01362cc
JL
1673Tue Apr 8 00:01:31 1997 Jeffrey A Law (law@cygnus.com)
1674
69444014
JL
1675 * elf-mn10300.c (mn10300_elf_relax_section): Don't forget the
1676 addend for non pc-relative relocations.
1677
a01362cc
JL
1678 * elf-m10300.c (bfd_elf32_mn10300_reloc): Remove prototype
1679 for non-existent function.
1680
1681 * elf-m10300.c (mn10300_elf_relax_section): New function.
1682 (mn10300_elf_relax_delete_bytes): Likewise.
1683 (mn10300_elf_symbol_address_p): Likewise.
1684 (mn10300_elf_get_relocated_section_contents): Likewise.
1685 (bfd_elf32_bfd_relax_section): Define.
1686 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1687
418d5b05
ILT
1688Mon Apr 7 16:47:09 1997 Ian Lance Taylor <ian@cygnus.com>
1689
1690 * configure.host: Set SHLIB_LIBS.
1691 * configure.in: Substitute SHLIB_LIBS.
1692 * configure: Rebuild.
1693 * Makefile.in (SHLIB_LIBS): New variable.
1694 ($(SHLIB)): Use $(SHLIB_LIBS).
1695
d9654a71
MS
1696Mon Apr 7 10:53:52 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
1697
1698 * bfd-in.h bfd-in2.h: add bfd_section_lma macro to correspond
1699 with bfd_section_vma.
1700
5641f23e
ILT
1701Fri Apr 4 11:37:15 1997 Ian Lance Taylor <ian@cygnus.com>
1702
b872076e
ILT
1703 * configure.in: Update file names for bfd_elf32_mn10[23]00_vec.
1704 Correct CPU file names for mn10[23]00.
1705 * configure: Rebuild.
1706
ac664747
ILT
1707 * bfd.c (bfd_record_phdr): Cast count to size_t before
1708 subtraction.
1709
44fe6ab1
ILT
1710 * coff-ppc.c (dump_toc): Add cast to avoid warning from SunOS cc.
1711 * coff-rs6000.c (xcoff_read_ar_hdr): Likewise.
1712 (xcoff_write_archive_contents): LIkewise.
1713 * elf32-mips.c (_bfd_mips_elf_set_section_contents): Likewise.
1714 (mips_elf_create_procedure_table): Likewise.
1715 * peicode.h (pe_print_idata): Likewise.
1716 (pe_print_edata, pe_print_pdata, pe_print_reloc): Likewise.
1717 * xcofflink.c (xcoff_get_section_contents): Likewise.
1718 (_bfd_xcoff_canonicalize_dynamic_symtab): Likewise.
1719 (xcoff_link_add_symbols): Likewise.
1720 (xcoff_link_add_symbols): Likewise.
1721
0cea98f0
ILT
1722 * ppcboot.c (ppcboot_set_arch_mach): Make static.
1723 (ppcboot_bfd_print_private_bfd_data): Likewise.
1724
5641f23e
ILT
1725 * elf32-mips.c (elf_mips_ctor64_howto): Set complain_on_overflow
1726 to complain_overflow_signed.
1727
58b4a8f3
ILT
1728Thu Apr 3 11:51:54 1997 Ian Lance Taylor <ian@cygnus.com>
1729
1730 * VERSION: Set to 2.8.1.
1731
1732 * Branched binutils 2.8.
1733
1734 * elf32-ppc.c (ppc_elf_check_relocs): Don't check SEC_ALLOC when
1735 deciding whether to copy a reloc into a shared object.
1736 (ppc_elf_relocate_section): Likewise. Relocate R_PPC_RELATIVE
1737 relocs in unallocated sections.
1738 * elf32-sparc.c (elf32_sparc_relocate_section): Relocate
1739 R_SPARC_RELATIVE relocs in unallocated sections.
1740
acba322e
MM
1741Wed Apr 2 16:19:41 1997 Mike Meissner <meissner@cygnus.com>
1742
1743 * elf32-ppc.c (ppc_elf_check_relocs): Undo March 26 change and
1744 always create got section so that the _GLOBAL_OFFSET_TABLE_ label
1745 is always created.
1746
ab66cc8d
ILT
1747Wed Apr 2 10:49:07 1997 Ian Lance Taylor <ian@cygnus.com>
1748
ba254dc5
ILT
1749 * elflink.h (elf_link_add_object_symbols): Let a common symbol
1750 override an uninitialized symbol from a shared library with a
1751 smaller size.
f74e2365 1752
7a68d1f7
ILT
1753 * elf-m10200.c: Rename from elf32-mn10200.c.
1754 * elf-m10300.c: Rename from elf32-mn10300.c.
1755 * cpu-m10200.c: Rename from cpu-mn10200.c
1756 * cpu-m10300.c: Rename from cpu-mn10300.c
1757 * Makefile.in: Update accordingly.
1758
3072dce9
ILT
1759 * elf32-mips.c (elf_mips_ctor64_howto): New static variable.
1760 (elf_mips_isa): Move to earlier in file.
1761 (mips_reloc_map): Remove BFD_RELOC_CTOR entry.
1762 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR
1763 specially.
1764
ab66cc8d
ILT
1765 * elf32-mips.c (mips16_jump_reloc): Print a warning rather than
1766 calling abort.
1767
0f854557
ILT
1768Tue Apr 1 16:18:05 1997 Klaus Kaempf <kkaempf@progis.de>
1769
1770 * configure.com: New file.
1771 * config.h-vms: Remove file.
1772 * makefile.vms: Update for new configure scheme.
1773
8faaff9e
ILT
1774Mon Mar 31 23:28:39 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1775
0f854557
ILT
1776 * libcoff-in.h (ppc_allocate_toc_section): Declare.
1777 (ppc_process_before_allocation): Declare.
1778 * libcoff.h: Rebuild.
1779
8faaff9e
ILT
1780 * coffcode.h (coff_mkobject_hook): Declare if not a macro.
1781
5cfc9987
ILT
1782Mon Mar 31 16:29:50 1997 Joel Sherrill <joel@oarcorp.com>
1783
3418d8c4 1784 * config.bfd (hppa*-*-rtems*): New target, like hppa-*-*elf*.
5cfc9987 1785
34c68301
ILT
1786Mon Mar 31 16:11:35 1997 Ian Lance Taylor <ian@cygnus.com>
1787
1788 * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a
1789 symbol index for a R_IHCONST reloc.
1790
774dc17c
ILT
1791Mon Mar 31 15:40:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
1792
1793 * targmatch.sed: Do not use \(\) recursively.
1794
9e55b695
ILT
1795Fri Mar 28 14:44:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
1796
1797 * m68klinux.c (MACHTYPE_OK): Define.
1798 * i386linux.c (MACHTYPE_OK): Define.
1799
f3f3b475
ILT
1800Fri Mar 28 11:56:15 1997 Ian Lance Taylor <ian@cygnus.com>
1801
5f792743
ILT
1802 From David S. Miller <davem@caip.rutgers.edu> and H.J. Lu
1803 <hjl@gnu.ai.mit.edu>:
1804 * sparclinux.c: New file.
774dc17c
ILT
1805 * bfd-in.h (bfd_sparclinux_size_dynamic_sections): Declare.
1806 * bfd-in2.h: Rebuild.
5f792743
ILT
1807 * config.bfd (sparc-*-linuxaout*, sparc-*-linux*): New targets.
1808 * configure.in (sparclinux_vec): Add to list of vectors.
1809 * configure: Rebuild.
1810 * targets.c (sparclinux_vec): Declare.
1811 (bfd_target_vector): Add sparclinux_vec.
1812 * Makefile.in: Rebuild dependencies.
1813 (BFD32_BACKENDS): Add sparclinux.o.
1814 (BFD32_BACKENDS_CFILES): Add sparclinux.c.
1815
bebe5fbf
ILT
1816 * coff-mips.c (mips_ecoff_backend_data): Initialize new
1817 bfd_coff_backend_data field.
1818 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
1819
f0315e65
ILT
1820 * config.bfd: Add bfd_elf64_{big,little}mips_vec to targ_selvecs
1821 for mips*el*-*-linux* and mips*-*-linux*. From H.J. Lu
1822 <hjl@lucon.org> and Ralf Baechle <ralf@gnu.ai.mit.edu>.
1823
f3f3b475
ILT
1824 * bfd.c: Include "libiberty.h".
1825 (strerror): Don't declare.
1826 (bfd_errmsg): Call xstrerror rather than strerror.
1827
013b249f
ILT
1828Thu Mar 27 12:55:42 1997 Ian Lance Taylor <ian@cygnus.com>
1829
eb80d52a
ILT
1830 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Generate a COPY
1831 reloc even if the symbol is in the .bss section.
1832 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
1833 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
1834 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
1835
f89adeb7
ILT
1836 * coffcode.h (bfd_coff_backend_data): Add new field
1837 _bfd_coff_default_section_alignment_power.
1838 (bfd_coff_default_section_alignment_power): Define.
1839 (bfd_coff_std_swap_table): Initialize new field.
1840 * libcoff.h: Rebuild.
1841 * cofflink.c (coff_link_add_symbols): Limit alignment of a common
1842 symbol to the default section alignment.
1843
013b249f
ILT
1844 * COPYING: Update FSF address.
1845
0e9c4377
MH
1846start-sanitize-d30v
1847Thu Mar 27 00:45:57 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
1848
cf2cd4cf
UD
1849 * elf32-d30v.c (elf_d30v_howto_table): Fix a typo in the
1850 21-bit absolute that made it act as a relative.
0e9c4377 1851
cf2cd4cf 1852end-sanitize-d30v
537327bc
ILT
1853Wed Mar 26 14:50:20 1997 Ian Lance Taylor <ian@cygnus.com>
1854
0e9c4377
MH
1855 * elflink.c (_bfd_elf_create_linker_section): Don't set
1856 bss_section and rel_section from existing sections.
1857
537327bc
ILT
1858 * elf32-ppc.c (ppc_elf_check_relocs): Only create the got section
1859 if it is needed.
1860
60d1227a
SG
1861Tue Mar 25 22:26:56 1997 Stu Grossman (grossman@critters.cygnus.com)
1862
1863 * aoutx.h (some_aout_object_p): Change executable test to fix
1864 problems with embedded a.out systems.
1865
3cd5cf3d
ILT
1866Tue Mar 25 14:35:37 1997 Ian Lance Taylor <ian@cygnus.com>
1867
6717fb0d
ILT
1868 * stabs.c (_bfd_stab_section_offset): New function.
1869 * libbfd-in.h (_bfd_stab_section_offset): Declare.
1870 * libbfd.h: Rebuild.
1871 * elf32-i386.c (elf_i386_relocate_section): Adjust the offset of a
1872 stab reloc.
1873 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1874 * elf32-mips.c (mips_elf_relocate_section): Likewise.
1875 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1876 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1877 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1878
3cd5cf3d
ILT
1879 * stabs.c (_bfd_link_section_stabs): Copy over the first header
1880 symbol. Check for memory allocation failure of *psinfo.
1881 (_bfd_write_section_stabs): Add psinfo parameter. Change all
1882 callers. Set the value of the header symbol.
1883 * libbfd-in.h (_bfd_write_section_stabs): Update declaration.
1884 * libbfd.h: Rebuild.
1885
67e87a1d
FF
1886start-sanitize-tic80
1887Mon Mar 24 20:07:29 1997 Fred Fish <fnf@cygnus.com>
1888
1889 * coff-tic80.c (tic80_howto_table): Add R_ABS entry.
1890 (rtype2howto): Handle R_ABS reloc type. Also abort on unhandled
1891 reloc types, rather than silently failing to generate an output file.
1892
1893end-sanitize-tic80
e9148724
ILT
1894Mon Mar 24 13:41:00 1997 Ian Lance Taylor <ian@cygnus.com>
1895
e1ea3dd5
ILT
1896 * targmatch.sed: Use the hold space to put the #ifdef around the
1897 the string constant.
1898 * targets.c (UNSUPPORTED_TARGET): Don't define.
1899 (find_target): Don't check for UNSUPPORTED_TARGET.
1900 (bfd_set_default_target): Don't try to optimize by checking for
1901 default.
1902
032dc9ed
ILT
1903 * Makefile.in: Rebuild dependencies.
1904 (ALL_MACHINES_CFILES): Add cpu-m32r.c.
1905 (BFD32_BACKENDS_CFILES): Add elf32-m32r.c.
1906 (elf32-m32r.o): Remove explicit target.
1907
19d02576
ILT
1908 * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or
1909 i[3456]86-*-linux*.
1910
e9148724
ILT
1911 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't
1912 count section symbols for sections that were created by the
1913 linker, or are not allocatable or not loadable.
1914 (elf32_sparc_finish_dynamic_sections): Output output section
1915 symbols for section for which we made space for them.
1916
0727fe10
ILT
1917Fri Mar 21 13:08:26 1997 Ian Lance Taylor <ian@cygnus.com>
1918
1919 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is
1920 no .rela.plt section, don't output a DT_PLTGOT dynamic entry.
1921
ff22a9db
DE
1922Fri Mar 21 12:36:46 1997 Doug Evans <dje@canuck.cygnus.com>
1923
1924 * elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16.
1925 (m32r_hi16_list): New static local.
1926 (m32r_elf_hi16_reloc): Don't perform reloc, just queue it up.
1927 (m32r_elf_do_hi16_reloc): Delete.
1928 (m32r_elf_relocate_hi16): New function.
1929 (m32r_elf_lo16_reloc): New function.
1930 (m32r_elf_relocate_section): For HI16 relocs, scan for corresponding
1931 LO16 reloc.
1932
1933 Mon Mar 10 16:03:31 1997 Doug Evans <dje@seba.cygnus.com>
1934
1935 * elf32-m32r.c (m32r_elf_create_linker_section): Delete.
1936 (m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support.
1937 (m32r_elf_final_sda_base): New function.
1938 (m32r_elf_relocate_section): Rewrite sdata support.
1939 (m32r_elf_finish_dynamic_sections): Delete.
1940
34bc6ffc
ILT
1941Thu Mar 20 12:39:02 1997 Ian Lance Taylor <ian@cygnus.com>
1942
ac388f2a
ILT
1943 Based on patches from Philippe De Muyter <phdm@info.ucl.ac.be>.
1944 * coff-svm68k.c: New file. Just defines some macros and includes
1945 coff-m68k.c.
1946 * coff-m68k.c: Add functions to handle common addends, moved in
1947 from cf-m68klynx.c. Control them using COFF_COMMON_ADDEND macro.
1948 Control whether relocs are visible using STATIC_RELOCS.
1949 * cf-m68klynx.c: Simplify greatly: just define macros to control
1950 coff-m68k.c.
1951 * coff-aux.c: Likewise. Just leave add_one_symbol routine.
1952 * targets. (m68ksysvcoff_vec): Declare.
1953 (bfd_target_vector): Add m68ksysvcoff_vec.
1954 * config.bfd (m68*-motorola-sysv*): New target.
1955 * configure.in (m68ksysvcoff_vec): New vector.
1956 * configure: Rebuild.
1957 * Makefile.in: Rebuild dependencies.
1958 (BFD32_BACKENDS): Add coff-svm68k.o.
1959 (BFD32_BACKENDS_CFILES): Add coff-svm68k.c.
1960
b9576d75
ILT
1961 * binary.c (binary_set_section_contents): Don't get misled if the
1962 first section is not loadable. From Matthew L. Martin
1963 <mlm@xedia.com>.
1964
34bc6ffc
ILT
1965 * elflink.h (elf_bfd_final_link): Set the value of a section
1966 symbol to the section address unless doing a relocateable link.
1967
1968Tue Mar 18 23:03:17 1997 Richard Henderson <rth@tamu.edu>
1969
1970 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create
1971 .plt entry if we've taken the function's address.
1972 (elf64_alpha_merge_gots): Merge collected flags info as well.
1973
303e7257
ILT
1974Tue Mar 18 22:40:09 1997 H.J. Lu <hjl@lucon.org>
1975
1976 * Many files: Add function prototypes.
1977 * cpu-m68k.c (bfd_default_scan_num_mach): Don't declare.
1978 * ecofflink.c: Include "libcoff.h" and "libecoff.h".
1979 * elf32-ppc.c (ppc_elf_fake_sections): Make static.
1980 * opncls.c (bfd_openstreamr): Change stream parameter to PTR.
1981 * peicode.h: Change several void * parameters to PTR.
1982 * srec.c (srec_get_symbol_info): Make static.
1983 * syms.c (bfd_symbol_is_absolute): Remove.
7197adc4 1984 * Makefile.in: Rebuild dependencies.
303e7257 1985
939b2169
ILT
1986Tue Mar 18 12:58:08 1997 Ian Lance Taylor <ian@cygnus.com>
1987
e76386d2
ILT
1988 * elf32-m32r.c (m32r_elf_is_local_label_name): Remove.
1989 (bfd_elf32_bfd_is_local_label): Don't define.
1990
939b2169
ILT
1991 * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather
1992 than malloc.
1993
50ede03d
ILT
1994Mon Mar 17 11:32:53 1997 Ian Lance Taylor <ian@cygnus.com>
1995
508539ab
ILT
1996 * bfd-in.h: Don't include obstack.h.
1997 (struct bfd_hash_table): Change memory field to PTR.
1998 * bfd.c (struct _bfd): Change memory field to PTR.
1999 * bfd-in2.h: Rebuild.
2000 * libbfd-in.h (bfd_release): Declare as function, don't define as
2001 macro.
2002 * libbfd.h: Rebuild.
2003 * opncls.c: Include "objalloc.h" rather than "obstack.h". Use
2004 objalloc routines rather than obstack routines.
2005 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
2006 (getpagesize): Don't define.
2007 (_bfd_new_bfd): Don't set _bfd_chunksize.
2008 (bfd_openr): Free new bfd and objalloc on failure.
2009 (bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise.
2010 (bfd_alloc_size): Remove.
2011 (bfd_release): New function.
2012 * hash.c: Include "objalloc.h" rather than "obstack.h". Use
2013 objalloc routines rather than obstack routines.
2014 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
2015 * ecofflink.c: Include "objalloc.h" rather than "obstack.h". Use
2016 objalloc routines rather than obstack routines.
2017 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
2018 (struct accumulate): Change memory to struct objalloc *.
2019 * liboasys.h (oasys_data_type): Remove oasys_obstack field.
2020 * dep-in.sed: Don't remove obstack.h from dependency list.
2021 * Makefile.in: Rebuild dependencies.
2022 (BFD_H_DEPS): Remove obstack.h.
2023 (install): Don't install obstack.h.
2024 * Many files: Don't include "obstack.h".
2025 * VERSION: Bump.
2026
062a1b96
ILT
2027 * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove.
2028 * libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare.
2029 * libbfd.h: Rebuild.
2030 * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow.
2031 * sunos.c (sunos_add_dynamic_symbols): Likewise.
0103b447 2032 * srec.c (srec_scan): Rewrite to not use obstack_1grow.
062a1b96 2033
50ede03d
ILT
2034 * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove
2035 old version of bfd_alloc.
2036 * libbfd-in.h (bfd_alloc_by_size_t): Don't declare.
2037 * libbfd.h: Rebuild.
2038 * Several files: Call bfd_alloc rather than bfd_alloc_by_size_t.
2039
5e67a3c6
ILT
2040Sat Mar 15 15:24:18 1997 Ian Lance Taylor <ian@cygnus.com>
2041
2042 * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
2043 ELF local label syntax as well.
2044
7305cacd
FF
2045Sat Mar 15 10:16:42 1997 Fred Fish <fnf@cygnus.com>
2046
2047 * config.bfd (powerpc-*-beos*): New target.
2048 * configure.in (powerpc-*-beos*): Add case that explicitly
2049 does not set COREFILE for now. A future BeOS version is
2050 expected to support core files.
2051 * configure: Regenerate with autoconf.
2052
f56d634e
ILT
2053Fri Mar 14 16:43:22 1997 Ian Lance Taylor <ian@cygnus.com>
2054
4813bbed
ILT
2055 * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
2056 seen with a local symbol, rather than crashing.
2057
f56d634e
ILT
2058 * elfcode.h (elf_slurp_symbol_table): Don't try to read the
2059 version symbols if there aren't any.
2060
4507d858
FF
2061start-sanitize-tic80
2062Thu Mar 13 16:38:30 1997 Fred Fish <fnf@cygnus.com>
2063
2064 * coff-tic80.c (coff_rtype_to_howto): Define
2065 (coff_tic80_rtype_to_howto): Clone generic coff version and
2066 add code to handle the funky TI "internal relocations".
2067
2068end-sanitize-tic80
94ba939a
ILT
2069Thu Mar 13 14:08:53 1997 Ian Lance Taylor <ian@cygnus.com>
2070
37897db0
ILT
2071 * elflink.h (elf_link_add_object_symbols): Don't warn about type
2072 or size changes because of a weak symbol.
2073
94ba939a
ILT
2074 * cisco-core.c (SIGEMT): Define if not defined.
2075
e549b1d2
ILT
2076Wed Mar 12 21:36:05 1997 Ian Lance Taylor <ian@cygnus.com>
2077
2078 * elflink.h (elf_link_add_object_symbols): Use extsymoff when
2079 setting ever. Sanity check the version number. Sort out copying
2080 flags and other information when adding an indirect symbol.
2081 (NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic
2082 symbols added by the backend. Clear the entire contents of the
2083 versym section.
2084 (elf_export_symbol): Ignore indirect symbols.
2085 (elf_link_output_extsym): Accept a section without an owner in an
2086 assert.
2087 * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the
2088 version count. Correct the allocation of x_versymp.
2089
2090 * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of
2091 the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA.
2092 Don't return bfd_und_section_ptr when info->shared.
2093 (mips_elf_final_link): Set the alignment of .rtproc to 4, not 12.
2094 (mips_elf_create_dynamic_sections): Correct type: ^= for &=.
2095 (mips_elf_check_relocs): Resolve an indirect symbol in
2096 sym_hashes.
2097 (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into
2098 SHN_MIPS_TEXT or SHN_MIPS_DATA.
2099
2100 * elf.c (bfd_elf_print_symbol): Tweak version output slightly.
2101
2102Tue Mar 11 01:38:36 1997 Ian Lance Taylor <ian@cygnus.com>
2103
2104 From Eric Youngdale <eric@andante.jic.com>:
2105 * elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define.
2106 * elf.c (bfd_elf_print_symbol): Correct errors in last change.
2107 * elflink.h (elf_link_add_object_symbols): Handle cases in which a
2108 versioned symbol appears in both a regular and a shared object.
2109 (elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when
2110 appropriate. Improve error message.
2111 (struct elf_outext_info): Rename from elf_finfo_failed. Change
2112 all uses. Add localsyms field.
2113 (elf_bfd_final_link): When generating a shared library, call
2114 elf_link_output_extsym to output all local symbols.
2115 (elf_link_output_extsym): Handle symbols which were forced to
2116 become local.
2117
d6bfcdb5
ILT
2118Sun Mar 9 23:08:49 1997 Ian Lance Taylor <ian@cygnus.com>
2119
2120 From Eric Youngdale <eric@andante.jic.com>:
2121 * elf-bfd.h (elf_symbol_type): Add version field.
2122 * elfcode.h (elf_slurp_symbol_table): Set version field.
2123 * elflink.h (elf_link_add_object_symbols): When creating an
2124 indirect symbol for a default version symbol, set DEF_DYNAMIC if
2125 appropriate. Set up an indirection from the nondefault version of
2126 the symbol as well.
2127 (NAME(bfd_elf,size_dynamic_sections)): Call
2128 elf_link_assign_sym_version before checking whether there are any
2129 versions. Always record the version name as a dynamic symbol.
2130 Initialize counters.
2131 (elf_link_assign_sym_version): After finding a version, see if a
2132 symbol should be forced to local scope. Create a new version
2133 definition if appropriate.
2134 (elf_link_output_extsym): Correct indirect symbol handling.
2135 * elf.c (bfd_elf_print_symbol): Print version information.
2136 (bfd_section_from_shdr): Turn version sections into BFD sections.
2137 (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info
2138 if sh_info is not already set.
2139 (_bfd_elf_copy_private_section_data): Copy sh_info for version
2140 sections.
2141 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell
2142 _bfd_stringtab_add to copy the name into permanent memory if
2143 appropriate.
2144
7debe20c
ILT
2145Fri Mar 7 11:55:31 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2146
2147 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.
2148
358bb592
ILT
2149Fri Mar 7 10:37:30 1997 Ian Lance Taylor <ian@cygnus.com>
2150
ccd0e5e2
ILT
2151 * coffcode.h (bfd_coff_backend_data): Change
2152 _bfd_coff_compute_section_file_positions to return a boolean
2153 value. Change all callers.
2154 (coff_compute_section_file_positions): Change return type to
2155 boolean. If the size of the last section changed, then output a
2156 zero byte at the end of the file.
2157 * libcoff.h: Rebuild.
2158
e8c4696e
ILT
2159 * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space
2160 for at least 6 output symbols.
2161 (xcoff_write_global_symbol): When emitting TOC entry relocs, also
2162 emit a TC csect to represent the space they take up. For an XO
2163 symbol, just emit a reference, not a csect.
2164
4104dff6
ILT
2165 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
2166 Solaris doesn't like the combined options, and the -f is
2167 unnecessary.
5bd7c941 2168 (stamp-tshlink, install): Likewise.
4104dff6 2169
358bb592
ILT
2170 * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26
2171 handling when little endian.
2172
77bf22e6
JL
2173Thu Mar 6 13:51:51 1997 Jeffrey A Law (law@cygnus.com)
2174
5847e6dd
JL
2175 * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function.
2176 (mn10300_elf_relocate_section): Likewise.
2177 (elf_backend_relocate_section): Define.
2178
77bf22e6
JL
2179 * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE
2180 relocs. Replace them with generic PCREL_{8,16,32} relocs.
2181 (elf32_mn10300_howto_table): Likewise.
2182 (elf32_mn10300_reloc_map): Likewise.
2183 (bfd_elf32_mn10300_reloc): Delete unused function.
2184
13b58694
FF
2185Thu Mar 6 12:19:59 1997 Fred Fish <fnf@cygnus.com>
2186
2187start-sanitize-tic80
2188 * coff-tic80.c (rtype2howto): If passed a relocation type we don't
2189 understand, just set the howto field to NULL, and the caller will
2190 print an appropriate error message.
2191end-sanitize-tic80
2192 * coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and
2193 code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif
2194 block. Use NULL for initializations of "ptr" rather than bare 0.
2195 * coff-h8300.c: Fix typo in comment.
2196 * coff-h8500.c: Ditto.
2197 * coff-w65.c: Ditto
2198 * coff-z8k.c: Ditto.
cf2cd4cf 2199
da171461
DE
2200Wed Mar 5 13:59:09 1997 Doug Evans <dje@seba.cygnus.com>
2201
2202 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc.
2203 (m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
2204 m32r_elf_get_relocated_section_contents): First pass at relax support.
2205
da171461
DE
2206Mon Mar 3 13:27:09 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
2207
2208 * elflink.h (elf_link_add_object_symbols): Use correct sh_size
2209 entry for reading verdef records.
2210 Use correct braces for computing increments of extverdaux and
2211 exteverdef record pointers.
2212
4b4ac3ae
FF
2213start-sanitize-tic80
2214Sun Mar 2 22:47:54 1997 Fred Fish <fnf@cygnus.com>
2215
2216 * coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2
2217 instead of 4.
2218
2219end-sanitize-tic80
a48ef404
ILT
2220Sun Mar 2 16:25:35 1997 Ian Lance Taylor <ian@cygnus.com>
2221
2222 * elflink.h (elf_link_find_version_dependencies): Check that
2223 DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is
2224 set.
2225
84fd6e7e
FF
2226start-sanitize-tic80
2227Fri Feb 28 16:52:40 1997 Fred Fish <fnf@cygnus.com>
2228
2229 * coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC.
2230
2231end-sanitize-tic80
af4dffff
ILT
2232Fri Feb 28 15:06:45 1997 Ian Lance Taylor <ian@cygnus.com>
2233
73769e1f
ILT
2234 * targets.c (bfd_default_vector): Make non-const.
2235 (find_target): New static function, broken out of
2236 bfd_find_target.
2237 (bfd_set_default_target): New function.
2238 (bfd_find_target): Call find_target. When defaulting, use
2239 bfd_default_vector[0] if it is not NULL.
2240 * libbfd-in.h (bfd_default_vector): Adjust declaration.
2241 * bfd-in2.h, libbfd.h: Rebuild.
2242
af4dffff
ILT
2243 * syms.c (bfd_is_local_label): Return false if the symbol has no
2244 name.
2245 * coff-i960.c (coff_i960_is_local_label_name): New function.
2246 (coff_bfd_is_local_label_name): Define.
2247 * coff-m68k.c (m68k_coff_is_local_label_name): New function.
2248 (coff_bfd_is_local_label_name): Define.
2249 * coff-rs6000.c (xcoff_is_local_label_name): New function.
2250 (coff_bfd_is_local_label_name): Define.
2251 * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning
2252 with .. or _.L_ as local.
2253 * elf32-i386.c (elf_i386_is_local_label_name): New function.
2254 (bfd_elf32_bfd_is_local_label_name): Define.
2255 * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols
2256 beginning with $ as local.
2257
85d6f0b4
ILT
2258Thu Feb 27 18:36:23 1997 Ian Lance Taylor <ian@cygnus.com>
2259
e316f514
ILT
2260 * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name
2261 rather than comparing against info->lprefix.
2262 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2263 * elflink.h (elf_link_input_bfd): Likewise.
2264 * linker.c (_bfd_generic_link_output_symbols): Likewise.
2265 * xcofflink.c (xcoff_link_input_bfd): Likewise.
2266
2267 * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as
2268 _bfd_elf_is_local_label_name if not already defined.
2269 * elf.c (_bfd_elf_is_local_label_name): New function.
2270 * elf-bfd.h (_bfd_elf_is_local_label_name): Declare.
2271
2272 * coff-m88k.c (coff_bfd_is_local_label_name): Define.
2273 (m88k_is_local_label_name): New static function.
2274
2275 * coffcode.h (coff_bfd_is_local_label_name): Define as
2276 _bfd_coff_is_local_label_name if not already defined.
2277 * coffgen.c (_bfd_coff_is_local_label_name): New function.
2278 * libcoff-in.h (_bfd_coff_is_local_label_name): Declare.
2279 * libcoff.h: Rebuild.
cf2cd4cf 2280
35a3e78e
ILT
2281 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label
2282 to _bfd_is_local_label_name.
2283 (bfd_target): Likewise.
2284 * syms.c (bfd_is_local_label): Define as function, not macro.
2285 (bfd_is_local_name): Define.
2286 * libbfd.c (bfd_generic_is_local_label_name): Rename from
2287 bfd_generic_is_local_label, and take a string rather than a
2288 symbol.
2289 * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define.
2290 (_bfd_nosymbols_bfd_is_local_label_name): Define.
2291 (bfd_generic_is_local_label): Don't declare.
2292 (bfd_generic_is_local_label_name): Declare.
2293 * bfd-in2.h, libbfd.h: Rebuild.
2294 * All backends: Change local_label to local_label_name.
2295
85d6f0b4
ILT
2296 * elf32-mips.c (struct mips_got_info): Add assigned_gotno field.
2297 (mips_elf_relocate_got_local): Change return type to boolean.
2298 Don't assume that the first zero entry is unassigned; instead, use
2299 assigned_gotno.
2300 (mips_elf_relocate_section): Check return value of
2301 mips_elf_relocate_got_local.
2302 (mips_elf_create_got_section): Initialize assigned_gotno field.
2303
56819c99
MH
2304start-sanitize-d30v
2305Wed Feb 26 15:19:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
2306
2307 * elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit
2308 relocations.
2309
cf2cd4cf 2310end-sanitize-d30v
fa802cb0
ILT
2311Wed Feb 26 13:33:03 1997 Ian Lance Taylor <ian@cygnus.com>
2312
2313 * elflink.h (elf_link_input_bfd): Don't skip symbols from sections
2314 that have no contents merely because linker_mark is not set.
2315
2316Tue Feb 25 18:51:35 1997 Stan Shebs <shebs@andros.cygnus.com>
2317
2318 * config.bfd (mips*-*-lnews*): New target.
2319 * coff-mips.c (mips_relocate_section): Make assert compare
2320 content byteorder instead of header byteorder.
2321 (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian
2322 data.
55ef0d90 2323 * targets.c (bfd_target_vector): Add ecoff_biglittle_vec.
fa802cb0
ILT
2324 * configure.in (ecoff_biglittle_vec): Add case.
2325 * configure: Update.
2326
7b4be668
ILT
2327Tue Feb 25 00:32:49 1997 Ian Lance Taylor <ian@cygnus.com>
2328
b08f5ac2
ILT
2329 * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose
2330 name begins with ".note".
2331 (map_sections_to_segments): Add a PT_NOTE segment for any loadable
2332 section whose name begins with ".note".
2333 (get_program_header_size): Corresponding change.
2334
7b4be668
ILT
2335 * elf32-mips.c (mips_elf_relocate_section): Check for misaligned
2336 jal and for jal overflow.
2337
2338Mon Feb 24 17:53:14 1997 Ian Lance Taylor <ian@cygnus.com>
2339
2340 From Eric Youngdale <eric@andante.jic.com>:
2341 * elflink.h (elf_link_add_archive_symbols): If a default symbol is
2342 not found, try looking it up again without the version name.
2343 (elf_link_add_object_symbols): Always link against the dynamic
2344 symbol table of a dynamic object. When linking against a dynamic
2345 object, include version strings in symbol names, and set up
2346 version information. Add indirect symbols for default versions.
2347 (elf_link_create_dynamic_sections): Add special version sections.
2348 (struct elf_assign_sym_version_info): Define.
2349 (struct elf_find_verdep_info): Define.
2350 (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter. Set
2351 up version sections.
2352 (elf_adjust_dynamic_symbol): Ignore indirect symbols.
2353 (elf_link_find_version_dependencies): New static function.
2354 (elf_link_assign_sym_version): New static function.
2355 (elf_link_renumber_dynsyms): New static function.
2356 (struct elf_final_link_info): Add symver_sec field.
2357 (elf_bfd_final_link): Initialize finfo.symver_sec. Don't count
2358 local symbols of a dynamic object. Handle DT_VER* constants.
2359 (elf_link_output_extsym): Simplify BFD_ASSERT checking for a
2360 dynamic object. Skip indirect symbols from ELF objects. Remove
2361 the version name before choosing a hash bucket. Write out the
2362 version information if appropriate.
2363 (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN.
2364 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
2365 (bfd_elf64_size_dynamic_sections): Likewise.
2366 * bfd-in2.h: Rebuild.
2367 * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field.
2368 Change elf_link_hash_flags to unsigned short.
2369 (ELF_LINK_HIDDEN): Define.
2370 (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr,
2371 dynverdef_hdr, dynversym_section, dynverdef_section,
2372 dynverref_section, cverdefs, cverrefs, verdef, verref.
2373 (elf_dynversym, elf_dynverdef, elf_dynverref): Define.
2374 (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare.
2375 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare.
2376 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare.
2377 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare.
2378 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare.
2379 (_bfd_elf_slurp_version_tables): Declare.
2380 * elf.c (_bfd_elf_swap_verdef_in): New function.
2381 (_bfd_elf_swap_verdef_out): Likewise.
2382 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise.
2383 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise.
2384 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise.
2385 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise.
2386 (_bfd_elf_print_private_bfd_data): Add DT_VER* constants. Print
2387 version information if there is any.
2388 (_bfd_elf_link_hash_newfunc): Initialize verinfo field.
2389 (bfd_section_from_shdr): Handle SHT_GNU_ver* section types.
2390 (elf_fake_sections): Handle .gnu.version* section names.
2391 (assign_section_numbers): Handle SHT_GNU_ver* section types.
2392 (_bfd_elf_slurp_version_tables): New function.
2393 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include
2394 version name in string entered in dynamic hash table.
2395 * elfcode.h: Include fnmatch.h.
2396 * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic
2397 symbol which was forced to become local.
2398 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2399 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2400 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2401 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2402
7b951eed
JL
2403Fri Feb 21 16:15:18 1997 Jeffrey A Law (law@cygnus.com)
2404
2405 * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify
2406 somewhat.
2407 (mn10200_elf_relax_section): Correctly compute a symbol's value
2408 when the symbol is local, but not in the same section as we are
2409 relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16
2410 relaxing.
2411
77dd1a25
DE
2412Fri Feb 21 13:55:14 1997 Doug Evans <dje@seba.cygnus.com>
2413
2414 * elf32-m32r.c: Rewrite to use ELF backend linker.
2415 Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns.
2416 Add small data area support (R_M32R_SDA16).
2417 * reloc.c: Document BFD_RELOC_M32R_SDA16.
2418 * bfd-in2.h,libbfd.h: Regenerated.
2419
fd395661
JL
2420Thu Feb 20 23:50:31 1997 Jeffrey A Law (law@cygnus.com)
2421
2422 * elf32-mn10200.c (mn10200_elf_relax_section): New function.
2423 (mn10200_elf_relax_delete_bytes): Likewise.
2424 (mn10200_elf_symbol_address_p): Likewise.
2425 (mn10200_elf_get_relocated_section_contents): Likewise.
2426 (bfd_elf32_bfd_relax_section): Define.
2427 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
64af6679
JL
2428
2429 * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
2430 (mn10200_elf_relocate_section): Likewise.
2431 (elf_backend_relocate_section): Define.
2432
fd8d7c31
MH
2433start-sanitize-d30v
2434Tue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
2435
2436 * Makefile.in, archures.c, config.bfd, configure.in, elf.c,
cf2cd4cf 2437 reloc.c, targets.c: New target, elf-*-D30V.
fd8d7c31
MH
2438
2439 * bfd-in2.h, configure, libbfd.h: Rebuilt.
2440
2441 * cpu-d30v.c, elf32-d30v.c: New files.
cf2cd4cf
UD
2442
2443end-sanitize-d30v
92a956e8
FF
2444Tue Feb 18 15:31:48 1997 Fred Fish <fnf@cygnus.com>
2445
2446 * reloc.c (struct reloc_howto_struct): Fix typo in comment.
2447 * bfd-in2.h: Regenerated.
2448start-sanitize-tic80
2449 * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function.
2450 (rtype2howto): Add function.
2451 (tic80_howto_table): Add.
2452end-sanitize-tic80
cf2cd4cf 2453
92a956e8
FF
2454Tue Feb 18 11:41:00 1996 Dawn Perchik <dawn@cygnus.com>
2455
2456 * sysdep.h: Don't define errno in MSVC if error.h is included.
2457
8d1ba96e
JL
2458Tue Feb 18 10:04:13 1997 Jeffrey A Law (law@cygnus.com)
2459
2460 * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
2461 is initialized before it is used.
2462
8ceca983
ILT
2463Mon Feb 17 11:28:40 1997 Ian Lance Taylor <ian@cygnus.com>
2464
2465 * hp300hpux.c (convert_sym_type): Don't convert a secondary common
2466 symbol into a weak undefined symbol; leave it as a common symbol.
2467
54626f1a
ILT
2468Fri Feb 14 19:08:03 1997 Ian Lance Taylor <ian@cygnus.com>
2469
2470 * elflink.h (elf_link_add_object_symbols): Don't issue a warning
2471 about a symbol defined in a dynamic object if it has already been
2472 defined in a regular object.
2473
236969ac
ILT
2474Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)
2475
2476 * makefile.vms: Add gcc flags to allow compiling with current gcc
2477 snapshot
2478 (targmatch.h): New dependency.
2479
54626f1a
ILT
2480 * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for
2481 openVMS/Alpha.
2482 * evax.h (ALPHA_R_CODEADDR): New relocation.
2483 * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for
2484 openVMS/Alpha.
2485 * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this
2486 relocation.
2487 * bfd-in2.h, libbfd.h: Rebuild.
2488
2489 Restrict symbol length to 64 bytes, case preserving:
2490 * evax-emh.c (_bfd_evax_write_emh): Remove case hacking.
2491 * evax-misc.c (_bfd_evax_case_hack_symbol): Remove.
2492 (_bfd_evax_length_hash_symbol): Added.
2493 * evax-etir.c (_bfd_evax_write_etir): Call
2494 _bfd_evax_length_hash_symbol before output of symbol.
2495 * evax-egsd.c (_bfd_evax_write_egsd): Likewise.
2496 * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove.
2497
2498 * evax-emh.c: Output filename to object file without path.
2499
2500 * evax-egsd.c: New sections for local and global commons.
2501
2502 * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c,
2503 evax-misc.c, evax.h: Remove 8 bit characters from copyright
2504 notices. Replace AXP with Alpha.
2505
62332d05
ILT
2506Wed Feb 12 18:10:30 1997 Ian Lance Taylor <ian@cygnus.com>
2507
2508 * sunos.c (sunos_create_dynamic_sections): We need the dynamic
2509 sections if we are creating a shared library.
2510
3883007e
DE
2511Tue Feb 11 15:45:43 1997 Doug Evans <dje@canuck.cygnus.com>
2512
2513 * configure.host (i386-windows): Don't set host64=true.
2514
a4183ba5
ILT
2515Tue Feb 11 15:27:32 1997 Ian Lance Taylor <ian@cygnus.com>
2516
2517 * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.
2518 (elf_mips16_gprel_howto): New static variable.
2519 (mips16_gprel_reloc): New static function.
2520 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL.
2521 (mips_info_to_howto_rel): Handle R_MIPS16_GPREL.
2522 (mips_elf_relocate_section): Handle R_MIPS16_GPREL.
2523 * reloc.c (BFD_RELOC_MIPS16_GPREL): Define.
2524 * bfd-in2.h, libbfd.h: Rebuild.
2525
97cbfc23 2526Mon Feb 10 23:25:00 1997 Doug Evans <dje@seba.cygnus.com>
b9c5ee68
DE
2527
2528 * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true
2529 for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}.
2530
276c2d7d
GRK
2531start-sanitize-r5900
2532 Fri Feb 7 16:20:17 1997 Gavin Koch <gavin@cygnus.com>
cf2cd4cf 2533
276c2d7d 2534 * config.bfd: add r5900
cf2cd4cf
UD
2535
2536end-sanitize-r5900
ba4a4594
ILT
2537Fri Feb 7 12:39:11 1997 Ian Lance Taylor <ian@cygnus.com>
2538
2539 * elflink.h (elf_link_input_bfd): If we've discarded a section,
2540 the output section will be the absolute section; don't print an
2541 assertion message for that case when doing a relocateable link.
2542
e900e695
ILT
2543Thu Feb 6 16:55:43 1997 Ian Lance Taylor <ian@cygnus.com>
2544
2545 * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
2546 (struct mips_elf_link_hash_entry): Add new fields fn_stub,
2547 need_fn_sub, call_stub, and call_fp_stub.
2548 (struct mips_elf_link_hash_table): Add field mips16_stubs_seen.
2549 (mips_elf_link_hash_newfunc): Initialize new fields.
2550 (mips_elf_link_hash_table_create): Likewise.
2551 (mips_elf_relocate_section): Redirect relocations to use mips16
2552 stubs when appropriate.
2553 (mips_elf_check_relocs): Attach stub sections to the appropriate
2554 symbol. Set need_fn_stub when appropriate.
2555 (mips_elf_always_size_sections): New static function.
2556 (mips_elf_check_mips16_stubs): New static function.
2557 (elf_backend_always_size_sections): Define.
2558 * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.
2559
2560 * elflink.h (elf_link_input_bfd): Discard local symbols that are
2561 attached to sections which are not being included in the link.
2562
5b61a02a
ILT
2563Wed Feb 5 13:20:17 1997 Ian Lance Taylor <ian@cygnus.com>
2564
2565 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
2566 symbol value when computing the addend for a pc_relative
2567 pcrel_offset reloc.
2568
bcb686ca
ILT
2569Mon Feb 3 11:54:06 1997 Ian Lance Taylor <ian@cygnus.com>
2570
5a50eec6
ILT
2571 * cofflink.c (_bfd_coff_generic_relocate_section): If doing a
2572 relocateable link, just skip pc_relative pcrel_offset relocs.
2573 * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto
2574 structure for an ARM26 reloc which can be resolved.
2575 (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the
2576 reloc can be resolved.
2577
bcb686ca
ILT
2578 * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
2579 error in overflow check for R_RELBYTE.
2580
167dc907
ILT
2581Fri Jan 31 14:07:27 1997 Ian Lance Taylor <ian@cygnus.com>
2582
6c58561e
ILT
2583 * ieee.c (ieee_slurp_section_data): Pick up the start address.
2584 From Mark Rasin <mark.rasin@telrad.co.il>.
2585
167dc907
ILT
2586 * aoutx.h (aout_link_write_symbols): Don't apply discard_l to
2587 debugging symbols.
2588
1a2faf1f
JL
2589Wed Jan 29 00:00:49 1997 Jeffrey A Law (law@cygnus.com)
2590
2591 * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
2592 (elf_mn10200_howto_table): Likewise.
2593 (mn10200_reloc_map): Likewise.
2594
1d5c6cfd
DE
2595Mon Jan 27 12:07:35 1997 Doug Evans <dje@seba.cygnus.com>
2596
2597 * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.
2598 * bfd-in2.h, libbfd.h: Regenerated.
2599 * elf32-m32r.c: Add support for them.
2600
9950f925
ILT
2601Mon Jan 27 12:25:02 1997 Ian Lance Taylor <ian@cygnus.com>
2602
54aa1dea
ILT
2603 * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.
2604 * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt.
54aa1dea
ILT
2605 * elf32-v850.c (v850_elf_final_link_relocate): Remove used
2606 r_format and r_pcrel. Always return a value.
54aa1dea
ILT
2607 * riscix.c (MY_final_link_callback): Define to dummy value.
2608
9950f925
ILT
2609 * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
2610 relocations against the text segment, look up the output name of
2611 the reloc section.
2612 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2613 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
2614 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2615 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2616 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2617
0716c2e9 2618start-sanitize-tic80
8c00b01d
FF
2619Wed Jan 22 15:40:28 1997 Fred Fish <fnf@cygnus.com>
2620
2621 * coff-tic80.c (tic80coff_vec): Use correct data put/get
2622 routines for little endian data.
2623 * coffcode.h (coff_write_object_contents): Set magic to
2624 TIC80_ARCH_MAGIC for TIc80.
2625
0716c2e9
FF
2626Tue Jan 21 12:32:43 1997 Fred Fish <fnf@cygnus.com>
2627
2628 * coff-tic80.c (tic80coff_vec): Change to little endian data
2629 as the default.
2630
2631end-sanitize-tic80
db109ca2
ILT
2632Thu Jan 16 17:45:57 1997 Ian Lance Taylor <ian@cygnus.com>
2633
2634 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
2635 auxiliary_filters parameter to be const char * const *. Accept a
2636 NULL terminated array.
2637 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
2638 (bfd_elf32_size_dynamic_sections): Update declaration.
2639 * bfd-in2.h: Rebuild.
2640
2641Wed Jan 15 11:21:32 1997 Ian Lance Taylor <ian@cygnus.com>
2642
2643 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a
2644 NOTYPE symbol in a text section as a FUNC symbol.
2645
2646 * coffcode.h (coff_compute_section_file_positions): Force
2647 relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
2648
e1616e16
DE
2649Tue Jan 14 08:46:33 1997 Doug Evans <dje@canuck.cygnus.com>
2650
2651 * libaout.h (machine_type): Reserve several values for sparclet.
2652
4af93ad0
MM
2653start-sanitize-tic80
2654Mon Jan 13 22:39:08 1997 Michael Meissner <meissner@tiktok.cygnus.com>
2655
2656 * config.bfd (tic80-*-*): Don't require 'coff'.
2657
91eb4378 2658end-sanitize-tic80
0ce71ebd
MM
2659Mon Jan 13 19:36:25 1997 Michael Meissner <meissner@tiktok.cygnus.com>
2660
2661 * elf32-v850.c (v850_elf_howto_table): Set the special_function
2662 table to v850_elf_reloc for all non-standard relocations.
2663 (v850_elf_check_relocs): Add check for h being non-null.
2664 (v850_elf_reloc): Add R_V850_ZDA_OFFSET support. Use switch
2665 statement instead of multiple ifs.
2666 (v850_elf_relocate_section): Fix up error message, don't just call
2667 abort.
2668
483e1b91
JL
2669Mon Jan 6 13:28:35 1997 Jeffrey A Law (law@cygnus.com)
2670
09a7bde3 2671 * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
40131692
JL
2672 Use bfd_elf_generic_reloc as special function for all relocs.
2673 (bfd_elf32_mn10200_reloc): Remove unnecessary function.
2674
2675 * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for
483e1b91
JL
2676 24bit pc-relative reloc.
2677
28eb95aa
FF
2678start-sanitize-tic80
2679Fri Jan 3 16:33:00 1997 Fred Fish <fnf@cygnus.com>
2680
2681 * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
2682 * coff-tic80.c (tic80coff_vec): Data byte order is big endian and
2683 header byte order is little endian. Use correct bfd_get and
2684 bfd_put routines for little endian headers.
2685 * coffcode.h (coff_set_arch_mach_hook): Set arch to
2686 bfd_arch_tic80 for TIC80_ARCH_MAGIC number.
2687
2688end-sanitize-tic80
b3ef3894
JL
2689Fri Jan 3 16:54:08 1997 Jeffrey A Law (law@cygnus.com)
2690
2691 * reloc.c: Add BFD_RELOC_24.
2692 * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs.
2693 (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes.
2694 * bfd-in2.h, libbfd.h: Rebuilt.
2695
ff12f303
ILT
2696Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>
2697
2698 elf64-alpha multiple .got rewrite:
2699
2700 * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry.
2701 (bfd_elf*_mkobject): Don't define here ...
2702 * elfxx-target.h: ... but rather here. Default always_size_sections
2703 hook to NULL.
cf2cd4cf 2704 * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was
ff12f303
ILT
2705 what the #defines in elf-bfd.h transmuted it to anyway.
2706
2707 * section.c: Add SEC_LINKER_CREATED flag.
2708 * bfd-in2.h: Rebuild.
2709 * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to
2710 relocation section flags.
2711 (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of
2712 SEC_IN_MEMORY to recognize generated bits.
2713 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections):
2714 Likewise.
2715 * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections,
2716 mips_elf_create_compact_rel_section, mips_elf_create_got_section,
2717 mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise.
2718 * elf32-ppc.c (ppc_elf_create_linker_section,
2719 ppc_elf_size_dynamic_sections): Likewise.
2720 * elf32-sparc.c (elf32_sparc_check_relocs,
2721 elf32_sparc_size_dynamic_sections): Likewise.
cf2cd4cf 2722 * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to
ff12f303
ILT
2723 section flags.
2724 (_bfd_elf_create_dynamic_sections): Likewise.
2725 (_bfd_elf_make_linker_section_rela): Likewise.
2726 * elflink.h (elf_link_create_dynamic_sections): Likewise.
2727 (bfd_elf,size_dynamic_sections): Call the always_size_sections hook.
2728 (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY
2729 to identify generated bits.
2730 (elf_link_input_bfd): Likewise.
2731
2732 * elf64-alpha.c: Rewrite everything touching relocations.
2733
de224d6a
MM
2734Fri Jan 3 11:42:53 1997 Michael Meissner <meissner@tiktok.cygnus.com>
2735
2736 * elf32-v850.c (all functions and static variables): Go through
2737 and regularize names to be of the form v850_elf_<xxx>.
2738 (toplevel): Include <elf/v850.h>.
2739 (enum reloc_type): Move to include/elf/v850.h.
2740 (v850_elf_check_relocs): For common variables, if the variable is
2741 referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable
2742 into the appropriate section.
2743 (elf_backend_check_relocs): Define.
2744
afaed5e9
MM
2745Tue Dec 31 15:15:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2746
2747 * elf32-v850.c (elf_v850_howto_table): Fix some spacing.
2748
148437ec
ILT
2749Tue Dec 31 14:44:50 1996 Ian Lance Taylor <ian@cygnus.com>
2750
7c342fc5
ILT
2751 * config.bfd (mips*el-*-linux*): New target.
2752 (mips*-*-linux*): New target.
2753
2754 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
2755 Return a useful value.
2756
6ded6615
ILT
2757 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
2758
dda7af9f
ILT
2759 * configure.in: Check ac_cv_func_mmap_fixed_mapped, not
2760 ac_cv_func_mmap.
2761 * configure: Rebuild.
ab98712a
ILT
2762 * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
2763 ac_cv_func_mmap in bfd/configure.host.
dda7af9f 2764
148437ec
ILT
2765 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add
2766 filter_shlib and auxiliary_filter_shlib parameters.
2767 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and
2768 DT_FILTER.
2769 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
2770 (bfd_elf64_size_dynamic_sections): Likewise.
2771 * bfd-in2.h: Rebuild.
2772
1eeccb22
ILT
2773Mon Dec 30 18:48:52 1996 Ian Lance Taylor <ian@cygnus.com>
2774
2775 * xcofflink.c (xcoff_build_ldsyms): When exporting all defined
2776 symbols, don't export a symbol which is defined by an object in an
2777 archive which contains shared objects.
2778
60b26712 2779start-sanitize-tic80
fc46a9ec
FF
2780Mon Dec 30 16:12:58 1996 Fred Fish <fnf@cygnus.com>
2781
2782 * archures.c (enum bfd_architecture): Add bfd_arch_tic80
2783 for TI TMS320c80 (MVP).
2784 (bfd_archures_list): Add bfd_tic80_arch.
2785 * bfd-in2.h: Regenerate by running "make headers".
2786
60b26712
FF
2787Sun Dec 29 16:18:52 1996 Fred Fish <fnf@cygnus.com>
2788
2789 * cpu-tic80.c (bfd_tic80_arch): Add struct.
2790 * configure.in (case $vec): Correct typo, "tb" not "tp".
2791 Also add cofflink.o for tic80coff_vec.
2792 * configure: Regenerate with autoconf.
2793
2794end-sanitize-tic80
412f8c93
ILT
2795Mon Dec 30 11:54:56 1996 Ian Lance Taylor <ian@cygnus.com>
2796
2797 * libbfd.c: Patch up the mmap code so that it is only built if BFD
2798 is configured with --with-mmap.
2799
5a608f5b 2800start-sanitize-tic80
fc46a9ec 2801Sun Dec 29 10:48:57 1996 Fred Fish <fnf@cygnus.com>
5a608f5b
FF
2802
2803 * Makefile.in (BFD32_BACKENDS): Add coff-tic80.o
2804 (ALL_MACHINES): Add cpu-tic80.o
2805 (cpu-tic80.o, coff-tic80.o): Add dependencies.
2806 * coff-tic80.c: Add skeleton, cloned from another coff config.
2807 * coffcode.h (coff_write_object_contents): Set magic to TIC80MAGIC
2808 for TIc80.
2809
2810end-sanitize-tic80
60b26712 2811Fri Dec 27 20:56:41 1996 Fred Fish <fnf@cygnus.com>
cd6213ff
FF
2812
2813 * TODO: Correct a misspelling.
2814start-sanitize-tic80
2815 * coff-tic80.c: New file for TI TMS320C80 (MVP).
2816 * cpu-tic80.c: New file for TI TMS320C80 (MVP).
2817 * configure.in (case $vec): Add tic80coff_vec entry.
2818 * configure: Regenerate with autoconf.
2819 * archures.c (bfd_tic80_arch): Declare.
2820 * bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80.
2821 * config.bfd (case ${targ}): Add tic80*-*-coff* target.
2822 * targets.c (tic80coff_vec): Add decl as extern bfd_target.
2823 (bfd_target_vector): Add tic80coff_vec entry.
2824end-sanitize-tic80
2825
6b8ec6f3
ILT
2826Fri Dec 27 11:48:12 1996 H.J. Lu <hjl@lucon.org>
2827
2828 * elflink.h (elf_buckets): Add some more values for larger
2829 binaries.
2830
78650abd
ILT
2831Thu Dec 26 18:36:54 1996 Ian Lance Taylor <ian@cygnus.com>
2832
2833 * Makefile.in (install): Move subdir_do out of conditional. From
2834 Fred Fish <fnf@cygnus.com>.
2835
8d16fe5c
JL
2836Wed Dec 18 10:04:30 1996 Jeffrey A Law (law@cygnus.com)
2837
2838 * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
2839 32 bit relocs.
2840 (elf_mn10200_howto_table): Likewise.
2841 (mn10200_reloc_map): Likewise.
2842
69e2ff18
ILT
2843Tue Dec 17 11:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
2844
e4f4813f
ILT
2845 * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a
2846 mips16 symbol during the link.
2847 (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a
2848 mips16 symbol.
2849 (mips_elf_link_output_symbol_hook): New static function.
2850 (elf_backend_link_output_symbol_hook): Define.
2851
69e2ff18
ILT
2852 * elf.c (bfd_elf_print_symbol): Print the st_other field if it is
2853 not zero.
2854
e85f2fbd
ILT
2855Mon Dec 16 14:38:39 1996 Ian Lance Taylor <ian@cygnus.com>
2856
2857 * elf.c (bfd_section_from_shdr): Don't check for reloc sections
2858 against SEC_DEBUGGING sections here (revert patch of December 5).
2859 * elfcode.h (elf_object_p): Check for them here, instead.
2860
e35765a9
ILT
2861Sun Dec 15 14:46:06 1996 Ian Lance Taylor <ian@cygnus.com>
2862
2863 * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
2864 * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to
2865 slurp_reloc_table.
2866 (_bfd_elf_get_dynamic_reloc_upper_bound): New function.
2867 (_bfd_elf_canonicalize_dynamic_reloc): New function.
2868 * elf-bfd.h (struct elf_size_info): Update declaration of
2869 slurp_reloc_table.
2870 (_bfd_elf_get_dynamic_reloc_upper_bound): Declare.
2871 (_bfd_elf_canonicalize_dynamic_reloc): Declare.
2872 * elfxx-target.h: Use new dynamic reloc routines by default.
2873 * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic
2874 parameter.
2875
6270adfb
ILT
2876Fri Dec 13 13:18:49 1996 Dan Wilder <dan@gasboy.com>
2877
2878 * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k
2879 if NAMES_HAVE_UNDERSCORE is defined.
2880
21e45f82
DE
2881Fri Dec 13 11:13:23 1996 Doug Evans <dje@canuck.cygnus.com>
2882
2883 * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
2884
e7bab9df
MM
2885Thu Dec 12 15:07:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2886
2887 * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the
2888 supported relocs.
2889
a5147005
ILT
2890Thu Dec 12 14:55:41 1996 Ian Lance Taylor <ian@cygnus.com>
2891
440f3914
ILT
2892 * elflink.h (elf_link_add_object_symbols): Only add a weak
2893 symbol if the real definition is in the dynamic symbol table.
2894 After finding the real definition, then, if it is dynamic, add the
2895 weak symbol to the dynamic symbol table.
2896
e5c3708d
ILT
2897 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
2898
a5147005
ILT
2899 * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
2900 function.
2901 (ppcboot_bfd_print_private_bfd_data): Don't take the address of an
2902 array.
2903
2904Tue Dec 10 23:23:52 1996 Jeffrey A Law (law@cygnus.com)
2905
2906 * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
2907 variants.
2908 (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise.
2909 (bfd_elf32_mn10300_reloc): Write data in little endian format.
2910 * reloc.c: Remove mn10300 big endian relocs.
2911 * bfd-in2.h, libbfd.h: Rebuilt.
2912
2913 * elf32-mn10200.c: Update from elf32-mn10300.c.
cf2cd4cf 2914
207e944c
JL
2915Fri Dec 6 15:18:05 1996 Jeffrey A Law (law@cygnus.com)
2916
31cffd2e
JL
2917 * elf32-mn10300.c (elf_symbol_leading_char): Define.
2918
207e944c
JL
2919 * elf32-mn10300.c: Add some comments.
2920
6dcf1ef5
ILT
2921Fri Dec 6 17:16:43 1996 Ian Lance Taylor <ian@cygnus.com>
2922
2923 * ihex.c (ihex_scan): Always initialize buf before jumping to
2924 error_return.
2925 (ihex_read_section): Likewise.
2926
d28f058e
JL
2927Thu Dec 5 22:29:18 1996 Jeffrey A Law (law@cygnus.com)
2928
2929 * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial-
2930 inplace for most relocs.
2931
80be821d
ILT
2932Thu Dec 5 13:24:46 1996 Ian Lance Taylor <ian@cygnus.com>
2933
2934 * elflink.h (elf_link_add_object_symbols): Calling check_relocs
2935 even if SEC_ALLOC is not set.
2936 * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC
2937 when deciding whether to copy a reloc into a shared object.
2938 (elf_i386_relocate_section): Likewise.
2939 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
2940 (elf32_sparc_relocate_section): Likewise.
2941 * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a
2942 reloc section if it is not set in the source section.
2943 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
2944 * elf.c (bfd_section_from_shdr): Mark a reloc section associated
2945 with a SEC_DEBUGGING section as SEC_DEBUGGING.
2946
e5c4495c
MM
2947Wed Dec 4 14:18:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2948
2949 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that
2950 expects a .got.plt until we actually create it.
2951
179b58d9
ILT
2952Mon Dec 2 12:13:51 1996 Ian Lance Taylor <ian@cygnus.com>
2953
e5c4495c
MM
2954 * cofflink.c (_bfd_coff_generic_relocate_section): Print an error
2955 message for bfd_reloc_outofrange, rather than aborting. From
2956 Philippe De Muyter <phdm@info.ucl.ac.be>.
2957
179b58d9
ILT
2958 * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in
2959 a relocateable link, don't try to process them. From Heinz Wrobel
2960 <wrobel@lpr.e-technik.tu-muenchen.de>.
2961
943686fa
JL
2962Mon Dec 2 00:39:24 1996 Jeffrey A Law (law@cygnus.com)
2963
2964 * elf32-mn10300.c (mn10300_info_howto): Renamed from
a5147005 2965 mn10300_info_howto_rel. Tweak reloc argument to be an
943686fa
JL
2966 Elf32_Internal_Rela.
2967 (USE_RELA): Define instead of USE_REL.
2968 (elf_info_to_howto, elf_info_howto_rel): Corresponding changes.
2969
0e0f4106
PS
2970Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2971
2972 * configure.in, configure: Handle mips*-sgi-irix6*.
2973 * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32
2974 core files.
2975
15aafe49
ILT
2976Wed Nov 27 12:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
2977
2978 * elf32-i386.c (elf_i386_relocate_section): Warn about a
2979 relocation against a symbol defined in a section with no output
2980 section.
2981
6c02f1a0
ILT
2982Tue Nov 26 11:07:31 1996 Ian Lance Taylor <ian@cygnus.com>
2983
dfc7020d
ILT
2984 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS.
2985 * configure, config.in: Rebuild with autoconf 2.12.
2986
6c02f1a0
ILT
2987 * elf-bfd.h (struct elf_link_hash_entry): Add other field.
2988 * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field.
2989 (swap_out_syms): Set st_other from existing st_other field.
2990 * elflink.h (elf_link_add_object_symbols): Store st_other in hash
2991 table other field.
2992 (elf_link_output_extsym): Set the other field from the global hash
2993 table entry.
2994 * elf32-mips.c (enum reloc_type): Add R_MIPS16_26.
2995 (elf_mips16_jump_howto): New static variable.
2996 (mips16_jump_reloc): New static function.
2997 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP.
2998 (mips_info_to_howto_rel): Handle R_MIPS16_26.
2999 (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26
3000 to a mips16 symbol.
3001 * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs.
3002 * bfd-in2.h, libbfd.h: Rebuild.
3003 * cpu-mips.c (arch_info_struct): Add mips:16 entry.
3004
f082b5ea
ILT
3005Mon Nov 25 11:23:32 1996 Ian Lance Taylor <ian@cygnus.com>
3006
3007 * configure.host: Use long long for mips-sgi-irix6*.
3008
3009 * coffswap.h (coff_swap_scnhdr_out): Make line number overflow
3010 only a warning. From Philippe De Muyter <phdemuyt@ulb.ac.be>.
3011
12fdaaf8
JL
3012Mon Nov 25 08:52:29 1996 Jeffrey A Law (law@cygnus.com)
3013
3014 * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function.
3015 (enum reloc_type): Add more reloc types.
3016 (elf32_mn10300_howto_table): Update for new reloc types.
3017 (elf32_mn10300_reloc_map): Update for new reloc types.
3018 * reloc.c: Add some new relocs for the mn10300 series.
3019 * bfd-in2.h, libbfd.h: Rebuilt.
cf2cd4cf 3020
23def276
JL
3021Sat Nov 23 13:26:18 1996 Jeffrey A Law (law@cygnus.com)
3022
3023 * som.c (setup_sections): Don't lose for a space which has
3024 no data, but some symbols.
3025
a600a89e
ILT
3026Fri Nov 22 11:32:13 1996 Ian Lance Taylor <ian@cygnus.com>
3027
3028 * sunos.c (struct sunos_link_hash_table): Add got_needed field.
3029 (sunos_link_hash_table_create): Initialize got_needed.
3030 (sunos_create_dynamic_sections): Only set .got section size if it
3031 is not already set. Set got_needed.
3032 (bfd_sunos_size_dynamic_sections): Check got_needed. Only set
3033 sdynptr, and only handle dynamic sections, if dynamic sections are
3034 needed.
3035 (sunos_scan_std_relocs): Pass false to create_dynamic_sections.
3036 Initialize .got section.
3037 (sunos_scan_ext_relocs): Likewise.
3038 (sunos_write_dynamic_symbol): Set up PLT entry even if this is not
3039 a dynamic symbol.
3040 (sunos_finish_dynamic_link): Check got_needed. Only set up
3041 dynamic linking information if needed.
3042
aa09d6b2 3043Thu Nov 21 10:31:31 1996 Rob Savoye (rob@cygnus.com)
cf2cd4cf 3044
aa09d6b2
RS
3045 * config.bfd: Added VersaDOS format to the Ericsson configuration.
3046
c3239e66
JL
3047Wed Nov 20 16:31:31 1996 Jeffrey A Law (law@cygnus.com)
3048
3049 * elf32-mn10300.c: Rough cut at relocs for the mn10300.
3050
c3239e66
JL
3051Wed Nov 13 08:12:38 1996 Jeffrey A Law (law@cygnus.com)
3052
3053 * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h
3054 anymore.
3055
c3239e66
JL
3056Tue Nov 12 13:30:00 1996 Dawn Perchik <dawn@cygnus.com>
3057
3058 * filemode.c: Include sysdep.h.
3059 * ihex.c: Add casts to eliminate compiler warnings.
3060 * sunos.c: Add casts to eliminate compiler warnings.
3061
9e23db76
MM
3062Mon Nov 11 10:37:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3063
3064 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt
3065 section.
3066 (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC. Make
3067 appropriate relocations in the .so file if shared.
3068 (ppc_elf_relocate_section): Ditto.
3069
affcfcf9
DE
3070Tue Oct 29 15:03:02 1996 Doug Evans <dje@canuck.cygnus.com>
3071
3072 * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
3073 complain_overflow_unsigned.
3074
421a2956
MH
3075Tue Oct 29 12:53:46 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3076
3077 * elf32-d10v.c (elf_d10v_howto_table): Don't complain on
3078 overflows for R_D10V_16 and R_D10V_18.
3079
061cc10b
ILT
3080Tue Oct 29 13:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
3081
3082 * ieee.c (ieee_write_section_part): Use LMA rather than VMA.
3083 (do_with_relocs): Likewise.
3084 (do_as_repeat): Likewise.
3085 (copy_expression): Likewise.
3086
3087Fri Oct 25 16:56:40 1996 Ian Lance Taylor <ian@cygnus.com>
3088
3089 * ieee.c (ieee_write_external_part): Correctly record whether
3090 there is an external part.
3091
061cc10b
ILT
3092Thu Oct 24 14:32:52 1996 Jeffrey A Law (law@cygnus.com)
3093
3094 * elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly
3095 handle tda offsets for sld.w and sst.w instructions.
3096 Fix alignment check in sld.w and sst.w tda reloc handling.
3097
27c7e907
SG
3098Thu Oct 24 09:08:47 1996 Stu Grossman (grossman@critters.cygnus.com)
3099
3100 * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows.
3101
90ffe48b
JL
3102Wed Oct 23 00:53:16 1996 Jeffrey A Law (law@cygnus.com)
3103
3104 * elf32-v850.c: Add comments about assumptions about
3105 char, short & long sizes.
3106 (elf32_v850_bfd_final_link_relocate): Fix sign extension
3107 problems for several relocs.
3108
3109 * elf32-v850.c (elf32_v850_howto_table): Fix typo in
3110 R_V850_SDA_OFFSET entry.
3111
84be2a8f
ILT
3112Wed Oct 23 00:20:34 1996 Ian Lance Taylor <ian@cygnus.com>
3113
3114 * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym.
3115 Store import file index in ldindx.
3116 (xcoff_build_ldsyms): Assume that ldsym was not previously
3117 allocated. For an imported symbol, copy ldindx into l_ifile.
3118
725b96f5
JL
3119Tue Oct 22 19:20:38 1996 Jeffrey A Law (law@cygnus.com)
3120
c322f1b5 3121 * elf32-v850.c (elf_v850_howto_table): Fix ordering of
90ffe48b
JL
3122 R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET. Fix various
3123 fields in R_V850_TDA_OFFSET.
c322f1b5 3124 (elf32_v850_bfd_final_link_relocate): Tweak pc-relative
90ffe48b 3125 relocs to work more like other relocs. Handle R_V850_TDA_OFFSET
c322f1b5
JL
3126 relocations.
3127
725b96f5
JL
3128 * elf32-v850.c: Include bfdlink.h.
3129 (bfd_elf32_v850_reloc): Return an error if we get a reloc
3130 we can't handle.
3131 (elf32_v850_bfd_final_link_relocate): New function.
3132 (v850_elf_relocation_section): Likewise.
3133 (elf_backend_relocate_section): Define.
3134
40c0ea5a
ILT
3135Tue Oct 22 17:22:43 1996 Ian Lance Taylor <ian@cygnus.com>
3136
3137 * binary.c (binary_set_section_contents): Ignore sections which
3138 don't have SEC_LOAD and SEC_ALLOC set.
3139
9c52f4b2
JL
3140Mon Oct 21 12:13:05 1996 Jeffrey A Law (law@cygnus.com)
3141
3142 * linker.c (_bfd_generic_final_link): Avoid losing static
3143 symbols in the .bss section.
3144
bd4dd3d0
ILT
3145Mon Oct 21 10:54:58 1996 Ian Lance Taylor <ian@cygnus.com>
3146
68553b63
ILT
3147 * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64.
3148 (mips32_64bit_reloc): New static function.
3149 (mips_reloc_map): Add entry for BFD_RELOC_64.
3150 (mips_elf_relocate_section): Handle R_MIPS_64.
3151
bd4dd3d0
ILT
3152 * linker.c (default_indirect_link_order): Print an error message
3153 when attempting to do a relocateable link with different object
3154 file formats, rather than calling abort.
3155
56910544
DE
3156Thu Oct 17 10:43:29 1996 Doug Evans <dje@canuck.cygnus.com>
3157
3158 * reloc.c (m32r relocs): Rename them.
3159 * bfd-in2.h, libbfd.h: Regenerated.
3160 * elf32-m32r.c: Update.
3161 (m32r_elf_10_pcrel_reloc): New function.
3162 (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it.
3163 (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks.
3164
e1d98a0a
JL
3165Wed Oct 16 11:24:35 1996 Jeffrey A Law (law@cygnus.com)
3166
4948949e
JL
3167 * linker.c (_bfd_generic_final_link): Set "linker_mark" for
3168 all sections that will be included in the output file.
3169 (_bfd_generic_link_output_symbols): Discard symbols in sections
3170 which are being discarded.
b6d08fce
JL
3171 * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET,
3172 R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET.
3173 (elf_v850_howto_table): Corresponding changes.
3174 (elf_v850_reloc_map): Corresponding changes.
3175 * reloc.c: Add additional V850 relocations.
3176 * bfd-in2.h, libbfd.h: Rebuilt.
3177
e1d98a0a
JL
3178 * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we
3179 no longer want in pc-relative relocs.
3180
05f1baaa
JL
3181Tue Oct 15 22:17:37 1996 Jeffrey A Law (law@cygnus.com)
3182
3183 * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
3184 accept a reloc against an undefined sybmol!
3185
1336da39
SG
3186Tue Oct 15 16:17:28 1996 Stu Grossman (grossman@critters.cygnus.com)
3187
3188 * elf32-v850.c: Define elf_symbol_leading_char to be '_'.
3189
c24453fe
ILT
3190Tue Oct 15 12:40:41 1996 Ian Lance Taylor <ian@cygnus.com>
3191
ede836b9
ILT
3192 * VERSION: Bump for new relocation.
3193
c24453fe
ILT
3194 * hosts/i386bsd.h: If NBPG is not defined, define it as
3195 PAGE_SIZE, for recent versions of FreeBSD.
3196
e7a50458
ILT
3197Mon Oct 14 12:37:26 1996 Ian Lance Taylor <ian@cygnus.com>
3198
3199 * configure.host: Use `long long' as the 64 bit type on a Solaris
3200 host, since both gcc and the SunPRO compilers support it.
3201
6b31fd3a
ILT
3202Mon Oct 14 11:17:24 1996 Richard Henderson <rth@tamu.edu>
3203
cf2cd4cf 3204 * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a
6b31fd3a
ILT
3205 mistake to have reused the ECOFF LITERAL for ELF since they have
3206 different semantics.
3207 * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL.
3208 * bfd-in2.h, libbfd.h: Rebuild.
3209
3210 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got
3211 section overflow.
3212
3213 * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a
3214 dynamic relocation for an undefweak symbol when we are building
3215 a static executable.
3216
f20f2474
SS
3217Thu Oct 10 11:15:06 1996 Stan Shebs <shebs@andros.cygnus.com>
3218
3219 * mpw-make.sed (config.bfd, targmatch.sed): Edit references to
3220 point explicitly to srcdir.
3221 (targmatch.h): Edit references to point explicitly to objdir.
3222
3e222a5a
ILT
3223Thu Oct 10 14:14:23 1996 Ian Lance Taylor <ian@cygnus.com>
3224
3225 * config.bfd: When setting targ_cpu, don't get confused by
3226 linux-gnu.
3227
81501797
SG
3228Tue Oct 8 08:51:19 1996 Stu Grossman (grossman@critters.cygnus.com)
3229
3230 * configure.host: Add support for windows host (a build done
3231 under the Microsoft build environment).
3232
fe4ff515
ILT
3233Tue Oct 8 11:40:16 1996 Ian Lance Taylor <ian@cygnus.com>
3234
1c4794f5
ILT
3235 * elflink.h (elf_link_add_object_symbols): If a symbol is a weak
3236 definition in a dynamic object, add it to the dynamic symbol table
3237 if any dynamic object mentions it. Reverts part of last patch.
3238
9d81de19
ILT
3239 * sunos.c (struct sunos_link_hash_table): Add got_base field.
3240 (sunos_link_hash_table_create): Initialize got_base.
3241 (bfd_sunos_size_dynamic_sections): If the .got section is more
3242 than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to
3243 0x1000.
3244 (sunos_check_dynamic_reloc): Subtract got_base from a base
3245 relative relocation.
3246
fe4ff515
ILT
3247 * elf32-mips.c (elf_mips_isa): New static function.
3248 (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking
3249 -mips1 and -mips2 code together, or -mips3 and -mips4 code.
3250
1233f74b
ILT
3251Mon Oct 7 11:44:17 1996 Ian Lance Taylor <ian@cygnus.com>
3252
3253 * archive.c (do_slurp_coff_armap): Only treat archive as little
3254 endian for i960 COFF.
3255
a3d5a706
ILT
3256Fri Oct 4 13:49:01 1996 Ian Lance Taylor <ian@cygnus.com>
3257
65f56a58
ILT
3258 * coffcode.h (coff_compute_section_file_positions): Adjust sofar
3259 by the change in size of the section when EXEC_P is not set.
3260
a9dd34a9
ILT
3261 * coff-m68k.c (coff_rtype_to_howto): Define if not defined.
3262 (m68kcoff_rtype_to_howto): New static function.
3263 * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section
3264 VMA to the addend for a PC relative reloc.
3265
05a68c24
ILT
3266 * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on
3267 HP/UX 10.20.
3268 * Makefile.in: Rebuild dependencies.
3269
a3d5a706
ILT
3270 * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when
3271 som.h is included.
3272
c00ae065
JL
3273Fri Oct 4 11:41:39 1996 Jeffrey A Law (law@cygnus.com)
3274
3275 * Makefile.in: Remove explicit dependencies for mn10200 and
3276 mn10300 files.
3277 (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c.
3278 (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c
3279 (dependencies): Rebuilt.
3280
dee99794
ILT
3281Thu Oct 3 16:57:51 1996 Ian Lance Taylor <ian@cygnus.com>
3282
1d871eb7
ILT
3283 * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms
3284 during this function.
3285
6b5af55c
ILT
3286 * elflink.c (_bfd_elf_create_linker_section): Only use an existing
3287 section if the flags are compatible.
3288
dee99794
ILT
3289 * configure.in: Add havevecs, and put it in tdefaults.
3290 * mpw-config.in: Likewise.
3291 * configure: Rebuild.
3292 * targmatch.sed: New file; a sed script to build targmatch.h from
3293 config.bfd.
3294 * config.bfd: Add #if, #endif, and comments for targmatch.h.
3295 * targets.c: Include "fnmatch.h".
3296 (struct targmatch): Define.
3297 (bfd_target_match): Define by including targmatch.h.
3298 (bfd_find_target): If the target is not found by name, search for
3299 it as a configuration triplet.
3300 * Makefile.in: Rebuild dependencies.
3301 (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o,
3302 i386dynix.o, m68k4knetbsd.o, and riscix.o.
3303 (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c,
3304 hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c.
3305 (HFILES): Add targmatch.h. Also, alphabetize and reindent.
3306 (CFILES): Remove i386dynix.c and hp300bsd.c.
3307 (targmatch.h): New target.
3308 (do_clean): Remove targmatch.h.
3309
3310 * configure.in: Add BFD_NEED_DECLARATION(getenv).
3311 * acconfig.h: Add NEED_DECLARATION_GETENV.
3312 * configure, config.in: Rebuild.
3313 * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv.
3314 * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
3315
ae1b99e4
JL
3316Thu Oct 3 09:29:09 1996 Jeffrey A Law (law@cygnus.com)
3317
3318 * cpu-mn10x00.c, elf32-mn10x00: Removed.
3319 * cpu-mn10200.c, cpu-mn10300.c: New files.
3320 * elf32-mn10200.c, elf32-mn10300.c: New files.
3321 * Makefile.in: Break mn10x00 support into two separate
3322 configurations, mn10200 and mn10300.
3323 * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise.
3324 * bfd-in2.h, configure: Rebuilt.
3325
4c7f3fde
JM
3326Thu Oct 3 15:38:19 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
3327
3328 * Makefile.in (do_clean): Move config.log to do_distclean.
3329
efc2b064
JL
3330Wed Oct 2 21:40:55 1996 Jeffrey A Law (law@cygnus.com)
3331
3332 * cpu-mn10x00.c, elf32-mn10x00.c: New files.
3333 * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o.
3334 (BFD32_BACKENDS): Similarly for elf32-mn10x00.o.
3335 (elf32-mn10x00.o): Add dependencies.
3336 * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00.
3337 (bfd_mn10x00_arch): Declare.
3338 (bfd_archures_list): Add bfd_mn10x00_arch.
3339 * config.bfd: Add mn10x00-*-*.
3340 * configure.in: Add bfd_elf32_mn10x00_vec.
3341 * elf.c (prep_headers): Handle bfd_arch_mn10x00.
3342 * targets.c (bfd_elf32_mn10x00_vec): Declare.
3343 (bfd_target_vector): Add bfd_elf32_mn10x00_vec.
3344 * bfd-in2.h, configure: Rebuilt.
cf2cd4cf 3345
bf53bd9f
ILT
3346Wed Oct 2 15:46:45 1996 Klaus Kaempf <kkaempf@progis.de>
3347
3348 openVMS/Alpha: Provide filename and case_hack flags via
3349 symbol table from gas.
3350 Add case_hack code for symbol output from vax/vms.
3351 * evax-alpha.c (evax_initialize): Remove filename handling,
3352 filename is provided via symbol table.
3353 (evax_get_symtab): Use local symbol count when setting up table.
3354 * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when
3355 debugging.
3356 (_bfd_evax_write_egsd): Skip file name symbol.
3357 * evax-emh.c (get_vms_time_string): Local function now.
3358 (_bfd_evax_write_emh): Extract source filename and case_hack flags
3359 from symbol table.
3360 * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names
3361 through _bfd_evax_case_hack_symbol.
3362 * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New
3363 functions.
3364 (_bfd_evax_basename): Removed.
3365 (_bfd_get_vms_time_string): Moved to evax-emh.c.
3366 * evax.h (evax_private_data_struct): Remove filename.
3367 (flag_hash_long_names, flag_show_after_trunc,
3368 flag_no_hash_mixed_case, vms_name_mapping): New flags for
3369 vms_case_hack.
3370
263d4a62
ILT
3371Wed Oct 2 12:02:02 1996 Ian Lance Taylor <ian@cygnus.com>
3372
a0fe6c2d
ILT
3373 * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl.
3374 (N_GETMID_NET, N_GETFLAG_NET): Likewise.
3375 (NO_SWAP_MAGIC): Don't define.
3376 (SWAP_MAGIC): Define.
3377
263d4a62
ILT
3378 * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
3379 no hash table entry for a global symbol.
3380
161ac690
ILT
3381Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com>
3382
3383 * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
3384
0db6249c
ILT
3385Tue Oct 1 12:31:39 1996 Ian Lance Taylor <ian@cygnus.com>
3386
8dd53b5c
ILT
3387 * cofflink.c (coff_link_add_symbols): Don't override a meaningful
3388 symbol type with T_NULL. Warn if symbol type changes. Based on
e5c4495c 3389 patch from Philippe De Muyter <phdm@info.ucl.ac.be>.
8dd53b5c 3390
0db6249c
ILT
3391 * elflink.h (elf_link_add_object_symbols): Only put a symbol from
3392 a dynamic object in the dynamic symbol table if it is referenced
3393 or defined by a regular object.
3394
0db6249c
ILT
3395Fri Sep 27 18:41:07 1996 Stu Grossman (grossman@critters.cygnus.com)
3396
3397 * elf32-v850.c (bfd_elf32_v850_is_local_label): New function to
3398 remove dwarf local labels. Shrinks binaries by a factor of 3!
3399
0db6249c
ILT
3400Mon Sep 23 13:33:00 1996 Ian Lance Taylor <ian@cygnus.com>
3401
3402 * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section
3403 by hand, rather than by calling bfd_make_section.
3404
80675684
DE
3405Mon Sep 23 09:23:41 1996 Doug Evans <dje@seba.cygnus.com>
3406
3407 * reloc.c: Rename m32r relocs.
3408 * bfd-in2.h, libbfd.h: Rebuilt.
3409 * elf32-m32r.c: Update.
80675684 3410
a5a43df1
ILT
3411Fri Sep 20 11:43:43 1996 Ian Lance Taylor <ian@cygnus.com>
3412
e12ab364
ILT
3413 * aoutx.h (aout_link_input_section_ext): When doing a relocateable
3414 link, adjust the symbol index of a base relative reloc. Don't
3415 change the addend of a PC relative reloc if pcrel_offset is set.
3416 * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for
3417 a relocateable link.
3418
a5a43df1
ILT
3419 * reloc.c (bfd_perform_relocation): Apply the relocation even if
3420 it is zero, in case src_mask matters.
3421 (bfd_install_relocation): Likewise.
3422
e425358f
ILT
3423Thu Sep 19 11:03:06 1996 Ian Lance Taylor <ian@cygnus.com>
3424
3425 * xcofflink.c (xcoff_link_add_symbols): Always initialize
3426 keep_syms.
3427 (_bfd_xcoff_bfd_final_link): Don't set target_index
3428 to an uninitialized value.
3429
7f21c97c
ILT
3430Tue Sep 17 14:18:31 1996 Ian Lance Taylor <ian@cygnus.com>
3431
3432 * coffcode.h (coff_slurp_line_table): Warn about illegal symbol
3433 indices, rather than crashing.
3434 (coff_slurp_reloc_table): Likewise. Check whether the howto field
3435 is NULL.
8d784abe
ILT
3436 * coff-sh.c (sh_relocate_section): Check for an illegal symbol
3437 index.
7f21c97c 3438
9859bc31
ILT
3439Mon Sep 16 12:39:36 1996 Ian Lance Taylor <ian@cygnus.com>
3440
1153e84b
ILT
3441 * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D
3442 reloc to 0.
3443 (coff_arm_adjust_symndx): New static function.
3444 (coff_adjust_symndx): Define.
3445
9859bc31
ILT
3446 * srec.c (srec_scan): Accept multiple symbols on a single line.
3447 From Pascal Martin <pmartin@alsys.com>.
3448
3449 * README: New file.
3450
f8b82e49
DE
3451Fri Sep 13 14:32:42 1996 Doug Evans <dje@canuck.cygnus.com>
3452
3453 * aoutf1.h (MY_bfd_merge_private_bfd_data): Define.
3454 (sunos_merge_private_bfd_data): New function.
3455
0a7b8735
ILT
3456Fri Sep 13 15:50:57 1996 Ian Lance Taylor <ian@cygnus.com>
3457
76d30c3f
ILT
3458 * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather
3459 than input BFD.
3460 (bfd_merge_private_bfd_data): Likewise.
3461 * section.c (bfd_copy_private_section_data): Likewise.
3462 * syms.c (bfd_copy_private_symbol_data): Likewise.
3463 * bfd-in2.h: Rebuild.
3464 * aout-target.h (MY_bfd_copy_private_section_data): Check that
3465 both BFD's are the right flavour.
3466 * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise.
3467 * elf.c (_bfd_elf_copy_private_symbol_data): Likewise.
3468 * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise.
3469 (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3470 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise.
3471 (ppc_elf_merge_private_bfd_data): Likewise.
3472 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise.
3473 * peicode.h (pe_bfd_copy_private_section_data): Likewise.
3474
0a7b8735
ILT
3475 * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for
3476 R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes
3477 its sanity check.
3478
3ebefb07
DE
3479Thu Sep 12 11:45:57 1996 Doug Evans <dje@seba.cygnus.com>
3480
3481 * reloc.c: Add m32r relocs.
3482 * bfd-in2.h, libbfd.h: Rebuilt.
6cb9c903 3483 * cpu-m32r.c,elf32-m32r.c: New files.
3ebefb07 3484
cacfb845
ILT
3485Thu Sep 12 11:10:05 1996 Ian Lance Taylor <ian@cygnus.com>
3486
3487 * ieee.c (ieee_vec): Set symbol_leading_char field to '_'.
3488
d7775b43
ILT
3489Wed Sep 11 11:57:56 1996 Ian Lance Taylor <ian@cygnus.com>
3490
e461da9b
ILT
3491 * tekhex.c (first_phase): Change type parameter from char to int.
3492 (out): Likewise.
3493 (pass_over): Change func to expect int, not char.
3494
d7775b43
ILT
3495 * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
3496 rather than SEC_LOAD when aligning the file offset for the first
3497 section in a segment.
3498
ea3f0585
FF
3499Tue Sep 10 16:18:30 1996 Fred Fish <fnf@cygnus.com>
3500
3501 * syms.c (coff_section_type): Make arg const.
3502 * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg
3503 to make_bfd_asection().
3504 * elf-bfd.h (bfd_section_from_phdr): Add prototype.
3505 * elfcode.h (bfd_section_from_phdr): Remove prototype.
3506 (_bfd_elf_stringtab_init): Remove prototype.
3507
3508 * netbsd-core.c (swap_abort): Add prototype.
3509 * aix386-core.c (swap_abort): Ditto & make static
3510 * hpux-core.c (swap_abort): Ditto & make static.
3511 * irix-core.c (swap_abort): Ditto & make static.
3512 * ptrace-core.c (swap_abort): Ditto & make static.
3513 * trad-core.c (swap_abort): Ditto & make static.
3514 * coffswap.h (coff_swap_reloc_in): Ditto.
3515 (coff_swap_reloc_out): Ditto.
3516 (coff_swap_filehdr_in): Ditto.
3517 (coff_swap_filehdr_out): Ditto.
3518 (coff_swap_sym_in): Ditto.
3519 (coff_swap_sym_out): Ditto.
3520 (coff_swap_aux_in): Ditto.
3521 (coff_swap_aux_out): Ditto.
3522 (coff_swap_lineno_in): Ditto.
3523 (coff_swap_lineno_out): Ditto.
3524 (coff_swap_aouthdr_in): Ditto.
3525 (coff_swap_aouthdr_out): Ditto.
3526 (coff_swap_scnhdr_in): Ditto.
3527 (coff_swap_scnhdr_out): Ditto.
3528 * ihex.c (ihex_sizeof_headers): Ditto.
3529 * tekhex.c (getsym): Ditto.
3530 (find_chunk): Ditto & make static.
3531 (insert_byte): Ditto.
3532 (first_phase): Ditto.
3533 (pass_over): Ditto.
3534 (tekhex_get_symtab): Ditto & make static.
3535 (tekhex_get_symtab_upper_bound): Ditto & make static.
3536 (tekhex_mkobject): Ditto.
3537 (tekhex_object_p): Ditto.
3538 (move_section_contents): Ditto.
3539 (tekhex_get_section_contents): Ditto.
3540 (tekhex_set_arch_mach): Ditto & make static.
3541 (tekhex_set_section_contents): Ditto.
3542 (writevalue): Ditto.
3543 (writesym): Ditto.
3544 (out): Ditto.
3545 (tekhex_write_object_contents): Ditto.
3546 (tekhex_sizeof_headers): Ditto.
3547 (tekhex_make_empty_symbol): Ditto.
3548 (tekhex_get_symbol_info): Ditto.
3549 (tekhex_print_symbol): Ditto.
3550 * irix-core.c (make_bfd_asection): Ditto.
3551 (irix_core_core_file_p): Ditto.
3552 (irix_core_core_file_failing_command): Ditto.
3553 (irix_core_core_file_failing_signal): Ditto.
3554 (irix_core_core_file_matches_executable_p): Ditto.
3555 (irix_core_make_empty_symbol): Ditto.
3556 * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto.
3557 * srec.c (srec_new_symbol): Ditto.
3558 (srec_get_section_contents): Ditto.
3559 (srec_set_arch_mach): Ditto.
3560 (srec_set_section_contents): Ditto.
3561 (internal_srec_write_object_contents): Ditto.
3562 (srec_write_object_contents): Ditto.
3563 (symbolsrec_write_object_contents): Ditto.
3564 (srec_sizeof_headers): Ditto.
3565 (srec_make_empty_symbol): Ditto.
3566 (srec_get_symtab_upper_bound): Ditto.
3567 (srec_get_symtab): Ditto.
3568 (srec_print_symbol): Ditto and make static.
3569 * elf.c (elf_read): Ditto
3570 (assign_section_numbers): Ditto.
3571 (elf_fake_sections): Ditto.
3572 (sym_is_global): Ditto.
3573 (elf_map_symbols): Ditto.
3574 (get_program_header_size): Ditto.
3575 * coffgen.c (make_a_section_from_file): Ditto.
3576 (coff_real_object_p): Ditto.
3577 (fixup_symbol_value): Ditto.
3578 (build_debug_section): Ditto.
3579 (copy_name): Ditto.
3580 * syms.c (coff_section_type): Ditto.
cf2cd4cf 3581
00d7a64b
JL
3582Mon Sep 9 22:36:01 1996 Jeffrey A Law (law@cygnus.com)
3583
3584 * bfd-in2.h: Rebuilt after m32r changes.
3585
71d7d44f
DE
3586Mon Sep 9 12:31:22 1996 Doug Evans <dje@canuck.cygnus.com>
3587
66e4c229 3588 * config.bfd,configure.in,configure: Add m32r support.
f0c12b73 3589 * Makefile.in,archures.c,elf.c,targets.c: Likewise.
71d7d44f
DE
3590 * config.bfd: Keep target list alphabetically sorted.
3591
629f776a
JL
3592Mon Sep 9 11:48:41 1996 Jeffrey A Law (law@cygnus.com)
3593
3594 * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
3595 to add in the constant part found in the instruction itself.
3596 (case R_V850_HI16_S): Likewise.
3597
9c85b19d
MH
3598Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3599
3600 * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
3601 and R_D10V_18 to be 1 (word).
3602
4be2140e
ILT
3603Thu Sep 5 15:23:08 1996 Ian Lance Taylor <ian@cygnus.com>
3604
3605 * stabs.c (_bfd_link_section_stabs): If the output_section field
3606 of either section is bfd_abs_section, then the linker is
3607 discarding the section and we should not optimize it.
3608
0cd98b92
DE
3609Tue Sep 3 12:16:20 1996 Doug Evans <dje@canuck.cygnus.com>
3610
3611 * Makefile.in (aout-sparcle.o): New target.
3612 * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian.
3613 * config.bfd (sparclet-*-aout*): Add case.
3614 * configure.in (sparcle_aout_vec): Add case.
3615 * configure: Regenerated.
0cd98b92
DE
3616 * targets.c (sparcle_aout_vec): Declare.
3617 (bfd_target_vector): Add sparcle_aout_vec.
3618 * aout-sparcle.c: New file.
3619
7b0af209 3620Tue Sep 3 00:57:02 1996 Jeffrey A Law (law@cygnus.com)
b5ef63c4 3621
e73b6ae6
JL
3622 * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
3623 low order sign bit propogation for R_V850_HI16_S.
3624
3625 * elf32-v850.c (bfd_elf32_v850_reloc): New function for
7b0af209
JL
3626 handling V850 specific relocs.
3627 (elf_v850_howto_table): Use the new function for some
3628 relocations. Twiddle masks & shifts for some relocs.
3629 Set partial_inplace where needed.
3630
7b0af209
JL
3631Mon Sep 2 12:12:34 1996 Ian Lance Taylor <ian@cygnus.com>
3632
3633 * cpu-mips.c: Add an explicit mips:3000 entry, and change the
3634 default architecture to a machine number of 0.
3635 * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number
3636 for E_MIPS_ARCH_1.
3637 (_bfd_mips_elf_merge_private_bfd_data): If the machine number of
3638 the output BFD is the default, set it from the first input BFD.
3639
7b0af209
JL
3640Sun Sep 1 18:38:01 1996 Jeffrey A Law (law@cygnus.com)
3641
3642 * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs
3643 insert at bitpos zero. The HI16 relocs are shifted right
3644 by 16 bits. Fix src_mask for all relocs.
3645 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is
3646 little endian!
3647 (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little
3648 endian!
b5ef63c4 3649
bde9d875
ILT
3650Sun Sep 1 15:41:08 1996 Ian Lance Taylor <ian@cygnus.com>
3651
3652 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
3653 Rewrite to use BFD file read routines and to avoid using a fixed
3654 length for the file name.
3655
237b5c4c
JL
3656Sat Aug 31 10:22:25 1996 Jeffrey A Law (law@cygnus.com)
3657
3658 * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.
3659 (elf_v850_howto_table): Add support for R_V850_{32,16,8}.
3660 (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8}
3661 to R_V850_{32,16,8}.
3662
01b49cb3
C
3663Fri Aug 30 18:06:04 1996 J.T. Conklin <jtc@hippo.cygnus.com>
3664
3665 * elf32-v850.c (reloc_type): Add R_V850_HI16_S.
3666 (elf_v850_howto_table): Add info for HI16_S reloc.
3667 (v850_reloc_map): Add HI_16_S reloc.
3668 * reloc.c: Define BFD_RELOC_V850_* relocs.
3669
492cfc71
ILT
3670Fri Aug 30 11:49:19 1996 Ian Lance Taylor <ian@cygnus.com>
3671
c86158e5
ILT
3672 Add SH ELF support.
3673 * elf32-sh.c: New file.
3674 * elf.c (prep_headers): Handle bfd_arch_sh.
3675 * elfcode.h (write_relocs): Handle absolute symbol.
3676 * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare.
3677 (_bfd_elf64_link_read_relocs): Declare.
3678 * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from
3679 elf_link_read_relocs. Make globally visible. Change all
3680 callers.
3681 (elf_link_input_bfd): Get external symbols from cache in
3682 symtab_hdr->contents. Get contents from cache in
3683 elf_section_data.
3684 * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not
3685 already defined.
3686 * reloc.c: Define BFD_RELOC_SH_* relocs.
3687 * libbfd-in.h (_bfd_sh_align_load_span): Declare.
3688 * coff-sh.c (sh_insns_conflict): Fix a return value.
3689 (_bfd_sh_align_load_span): New globally visible function, broken
3690 out of sh_align_load.
3691 (sh_align_load): Call _bfd_sh_align_load_span.
3692 (sh_swap_insns): Change relocs parameter to PTR.
3693 * bfd-in2.h, libbfd.h: Rebuild.
3694 * targets.c (bfd_elf32_sh_vec): Declare.
3695 (bfd_elf32_shl_vec): Declare.
3696 * config.bfd (sh-*-elf*): New target.
3697 * configure.in (bfd_elf32_sh_vec): New target vector.
3698 (bfd_elf32_shl_vec): New target vector.
3699 * configure: Rebuild.
3700 * Makefile.in: Rebuild dependencies.
3701 (BFD32_BACKENDS): Add elf32-sh.o.
3702 (BFD32_BACKENDS_CFILES): Add elf32-sh.c.
3703
3704 * elf.c (map_sections_to_segments): Check that LMA does not skip a
3705 page before checking D_PAGED.
3706
492cfc71
ILT
3707 * ihex.c (ihex_scan): Removed unnecessary extbase variable.
3708 (ihex_write_object_contents): Remove extbase; always use segbase
3709 instead.
3710
f7954d86
MM
3711Thu Aug 29 16:52:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3712
3713 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
3714 * configure.host (i[345]86-*-*): Ditto.
3715 * config.bfd (i[345]86-*-*): Ditto.
3716 * configure: Regenerate.
3717
3718 * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86
3719 elf.
3720
3721Tue Aug 27 09:18:18 1996 Jeffrey A Law (law@cygnus.com)
3722
3723 * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument.
3724 * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype.
3725 * som.c (hppa_som_gen_reloc_type): Add new argument. If
3726 we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that
3727 will have an ST_CODE type, change the symbol's type to ST_DATA.
3728 * som.c (hppa_som_gen_reloc_type): Update prototype.
3729
4da624dd
ILT
3730Tue Aug 27 00:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
3731
3732 * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for
3733 R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible.
3734 (mips_elf_size_dynamic_sections): Don't require .got to exist.
3735 (mips_elf_finish_dynamic_sections): Likewise.
3736
9461513b
ILT
3737Thu Aug 22 10:54:38 1996 Ian Lance Taylor <ian@cygnus.com>
3738
1c952df6
ILT
3739 * configure.host (HLDENV): New variable to set. Set it for
3740 *-*-sysv4*, since those linkers may not support -R but they always
3741 support LD_RUN_PATH.
3742
9461513b
ILT
3743 * libieee.h (NSECTIONS): Don't define.
3744 (ieee_data_struct): Change section_table to asection **. Add
3745 section_table_size.
3746 * ieee.c (get_section_entry): If the table isn't big enough, make
3747 it bigger.
3748 (ieee_slurp_sections): Remove assertion about number of sections.
3749 (ieee_object_p): Adjust initialization of ieee to match changes to
3750 the structure.
3751
3752 * xcofflink.c (xcoff_mark): Don't copy relocs for undefined
3753 symbols merely because we are generating a shared library.
3754 (xcoff_build_ldsyms): Don't set up global linkage code for an
3755 undefined symbol merely because we are generating a shared
3756 library.
3757
0c1d95c7 3758Tue Aug 20 15:06:05 1996 J.T. Conklin <jtc@hippo.cygnus.com>
cf2cd4cf 3759
0c1d95c7
C
3760 * Makefile.in (ALL_MACHINES): Add cpu-v850.o.
3761 (BFD32_BACKENDS) Add elf32-v850.o.
3762 * archures.c: Add bfd_v850_arch.
3763 * bfd-in2.h: Add bfd_v850_arch.
3764 * config.bfd (v850-*-*): New target.
3765 * configure: (bfd_elf32_v850_vec) New vector.
3766 * configure.in: (bfd_elf32_v850_vec) New vector.
3767 * cpu-v850.c: New file.
3768 * elf.c (prep_headers): Added case bfd_arch_v850.
3769 * elf32-v850.c: New file.
3770 * targets.c (bfd_elf32_v850_vec): New vector.
cf2cd4cf 3771
0c1d95c7
C
3772Fri Aug 16 16:25:35 1996 Ian Lance Taylor <ian@cygnus.com>
3773
3774 * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define
3775 a function code symbol for an XMC_XO symbol.
3776
22edd547
SS
3777Thu Aug 15 12:33:29 1996 Stan Shebs <shebs@andros.cygnus.com>
3778
3779 * mpw-config.in: Update editing of autoconf vars to reflect
3780 Jul 18 configure.in change.
3781 * mpw-make.sed: Update editing of include pathnames to be
3782 more general, add @DASH_C_FLAG@ to explicit compile rule edit.
3783
3784Thu Aug 15 10:35:13 1996 Richard Henderson <rth@tamu.edu>
3785
3786 * elf64-alpha.c (elf64_alpha_output_extsym): The section from
3787 which to offset to get the .plt entry address is ".plt".
3788
53ef6e60
JSC
3789Thu Aug 15 16:40:30 1996 James G. Smith <jsmith@cygnus.co.uk>
3790
3791 * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM,
3792 BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET):
3793 Added, for internal use by the ARM gas.
3794 * libbfd.h: Rebuilt
3795 * bfd-in2.h: Rebuilt
3796
37d7888d
ILT
3797Wed Aug 14 17:02:09 1996 Richard Henderson <rth@tamu.edu>
3798
3799 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo
3800 in section dynidx start.
3801
e38d6d36
ILT
3802Tue Aug 13 14:35:38 1996 Ian Lance Taylor <ian@cygnus.com>
3803
3804 * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
3805 name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an
3806 optimization for g++.
3807
ae20860e
MM
3808Tue Aug 13 17:04:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3809
3810 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has
3811 the -mrelocatable-lib bit set and the other doesn't, clear the
3812 -mrelocatable-lib bit in the header.
3813
4596421b
ILT
3814Sat Aug 10 22:59:17 1996 Ian Lance Taylor <ian@cygnus.com>
3815
3816 * elflink.h (elf_link_add_object_symbols): Do not resolve a common
3817 symbol against a STT_FUNC symbol in a shared library.
3818
f11e3f62
ILT
3819Fri Aug 9 12:44:57 1996 Ian Lance Taylor <ian@cygnus.com>
3820
410bc61d
ILT
3821 * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
3822 symbol is found, automatically define the corresponding function
3823 code.
3824
d92099f1
ILT
3825 * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
3826 if sym.n_numaux is not zero.
3827 (_bfd_coff_link_input_bfd): Permit the symbol and the hash table
3828 entry to disagree about the number of aux entries if the symbol
3829 has zero.
3830
f11e3f62
ILT
3831 * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
3832 section if it might be needed, not just if info->shared.
3833 (mips_elf_adjust_dynamic_symbol): Make room for a null element at
3834 the start of .rel.dyn if we are going to use it.
3835 (mips_elf_finish_dynamic_sections): Only clear the first element
3836 of .rel.dyn if the size is greater than zero.
3837
fbc4ed7d
ILT
3838Thu Aug 8 16:24:55 1996 Ian Lance Taylor <ian@cygnus.com>
3839
b2a05baf
ILT
3840 * xcofflink.c (xcoff_link_input_bfd): If we already called the
3841 undefined_symbol callback for a symbol, then don't issue any more
3842 warnings about loader relocs.
3843 (_bfd_ppc_xcoff_relocate_section): Don't do any further processing
3844 after calling the undefined_symbol callback.
3845
fbc4ed7d
ILT
3846 * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
3847 (xcoff_link_add_symbols): Permit multiple definitions of a symbol
3848 as the AIX linker seems to do.
3849
8612a388
ILT
3850Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>
3851
3852 * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
3853 (evax_initialize): Remove evax_reloc_table.
3854 (evax_close_and_cleanup): Ditto.
3855 (reloc_nil): Ditto.
3856 (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
3857 entries.
3858 (evax_bfd_reloc_type_lookup): Ditto.
3859 * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
3860 cooked_size == raw_size.
3861 * evax-emh.c (_bfd_evax_register_filename): Remove.
3862 * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
3863 * evax-misc.c (add_new_contents): Malloc section at full size.
3864 (_bfd_save_evax_section): Memcpy section contents directly.
3865 * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
3866 (evax_reloc_table): Remove.
3867
3868 * hosts/alphavms.h (O_ACCMODE): Define if needed.
3869
3870 * makefile.vms: Add better support for DEC C compilation
3871 Add evax.h dependencies
3872
3873 * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
3874 (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
3875 (BFD_RELOC_ALPHA_BASEREG): Remove.
3876 * bfd-in2.h, libbfd.h: Rebuild.
3877
320a5c6b
SG
3878Thu Aug 8 08:17:32 1996 Stu Grossman (grossman@critters.cygnus.com)
3879
3880 * archive.c (bsd_write_armap): Ifdef around calls to getuid and
3881 getgid if _WIN32 is defined.
3882 * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef.
3883
2055bf85
SG
3884Wed Aug 7 23:19:00 1996 Stu Grossman (grossman@critters.cygnus.com)
3885
3886 * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
3887 Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
3888 include file.
3889 * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE
3890 isn't defined.
3891
85fe9d3e
ILT
3892Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
3893
3894 * configure.in: Call BFD_NEEDED_DECLARATION on strstr and
3895 realloc.
3896 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
3897 (NEED_DECLARATION_REALLOC): New macro.
3898 * configure, config.in: Rebuild.
3899 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
3900 (realloc): Declare if NEED_DECLARATION_REALLOC.
3901
3902 * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
3903 <strings.h> if they exist.
3904
3905 * ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
3906
9b3307b0
ILT
3907Wed Aug 7 12:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
3908
cc425b55
ILT
3909 * cpu-i386.c (i8086_arch): Architecture info for the i8086.
3910
9b3307b0
ILT
3911 Based on patches from Eric Valette <valette@crf.canon.fr>:
3912 * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
3913 LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
3914 (elf_howto_table): Add entries for new relocs.
3915 (elf_i386_reloc_type_lookup): Handle new relocs.
3916 (elf_i386_info_to_howto): Just call abort.
3917 (elf_i386_info_to_howto_rel): Check that the reloc type is valid.
3918 (elf_i386_relocate_section): Likewise.
3919
75e3a45a
MH
3920Tue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3921
3922 * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
3923
191d910c
ILT
3924Mon Aug 5 13:42:41 1996 Ian Lance Taylor <ian@cygnus.com>
3925
b944e7e8
ILT
3926 * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
3927 only get the LMA from the phdr if they are in the same part of the
3928 file.
3929
191d910c
ILT
3930 * elf.c (map_sections_to_segments): Rewrite tests for starting a
3931 new segment to make them more comprehensible. If the relationship
3932 between the LMA and the VMA changed, start a new segment. Don't
3933 check dynsec when deciding whether to start a new segment for a
3934 writeable section; -N will now handle this.
3935
e751d506
JL
3936Thu Aug 1 22:43:08 1996 Jeffrey A Law (law@cygnus.com)
3937
3938 * libhppa.h: Remove "esel" changes. Not the right approach.
3939 * som.c: Corresponding changes.
3940 (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
3941 which don't have a SOM symbol type associated with them.
3942 Reverses a 1994 change.
3943
cdb88e87
ILT
3944Wed Jul 31 15:50:55 1996 Ian Lance Taylor <ian@cygnus.com>
3945
3946 Make ld -N more reasonable for ELF:
3947 * elf.c (map_sections_to_segments): If D_PAGED is not set, set
3948 phdr_in_section to false, and always use a single load segment.
3949 (elf_sort_sections): Sort sections by LMA after VMA.
3950 (assign_file_positions_for_segments): If D_PAGED is not set, don't
3951 align to maxpagesize.
3952 (assign_file_positions_except_relocs): Likewise.
3953 * elfcode.h (elf_object_p): If a section is loaded but not page
3954 aligned, clear D_PAGED.
3955
d1b40d8e
JSC
3956Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk>
3957
3958 * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
3959 Added, for internal use by the ARM gas.
3960 * libbfd.h: Rebuilt
3961 * bfd-in2.h: Rebuilt
3962
ad240a82
JL
3963Tue Jul 30 14:14:57 1996 Jeffrey A Law (law@cygnus.com)
3964
3965 * libhppa.h (R_HPPA_ESEL): New field selector.
3966 (e_esel): Similarly.
3967 * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel,
3968 then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream.
3969 (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR.
3970
fb4dc1eb
ILT
3971Tue Jul 30 13:31:27 1996 Ian Lance Taylor <ian@cygnus.com>
3972
3973 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
3974 archive search before looking for stripped dynamic objects.
3975
b223f950
ILT
3976Fri Jul 26 17:51:39 1996 Ian Lance Taylor <ian@cygnus.com>
3977
3978 * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
3979 symbol a warning rather than an error.
3980
64f808f9
ILT
3981Wed Jul 24 12:02:53 1996 Ian Lance Taylor <ian@cygnus.com>
3982
3983 * elf.c (assign_file_positions_for_segments): Track the virtual
3984 memory position separately from the file position, and use it to
3985 compute the alignment adjustment.
3986
11609502
MH
3987Tue Jul 23 10:43:31 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
3988
3989 * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long"
3990 and fixed mask on R_D10V_10_PCREL_L.
3991
9bd65136
ILT
3992Mon Jul 22 15:30:30 1996 Ian Lance Taylor <ian@cygnus.com>
3993
bf9884d4
ILT
3994 * elf64-mips.c: Include "aout/ar.h".
3995 (mips_elf64_slurp_armap): New static function.
3996 (mips_elf64_write_armap): New static function.
3997 (bfd_elf64_archive_*): Define.
3998 * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined.
3999 Use instead of bfd_generic_archive_p.
4000 (bfd_elfNN_write_archive_contents): Define if not defined. Use
4001 instead of _bfd_write_archive_contents.
4002 (bfd_elfNN_mkdarchive): Define if not defined. Use instead of
4003 _bfd_generic_mkarchive.
4004 (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use
4005 bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than
4006 _bfd_archive_coff.
4007 (TARGET_LITTLE_SYM): Likewise.
4008 * archive.c (bfd_slurp_armap): Check for and reject an archive map
4009 name of /SYM64/.
4010 * Makefile.in: Rebuild dependencies.
4011
4012 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle
4013 SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and
4014 SHT_MIPS_EVENTS sections.
4015 (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE,
4016 SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS
4017 sections.
4018 (_bfd_mips_elf_fake_sections): Likewise.
4019
9bd65136
ILT
4020 * libecoff.h (ecoff_data_type): Add rdata_in_text field.
4021 * ecoff.c (ecoff_compute_section_file_positions): Copy
4022 rdata_in_text from backend info to tdata. Clear it if any data
4023 section comes before .rdata.
4024 (_bfd_ecoff_write_object_contents): Use rdata_in_text field in
4025 tdata rather than backend info.
4026
194141a9
ILT
4027Fri Jul 19 18:15:51 1996 Ian Lance Taylor <ian@cygnus.com>
4028
4029 * configure.in: Fix test for whether a compiler has a 64 bit
4030 type. From Jim Wilson <wilson@cygnus.com>.
4031
a8a3d83a
ILT
4032Thu Jul 18 15:39:10 1996 Ian Lance Taylor <ian@cygnus.com>
4033
f4e14cb9
ILT
4034 * configure.host (mips-sgi-irix6*): New host.
4035
4036 * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
4037 (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
4038 BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h
4039 to AC_OUTPUT call.
4040 * configure: Rebuild.
4041 * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
4042 (BFD_HOST_64_BIT): Define conditionally.
4043 (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
4044 (bfd_vma): Typedef as BFD_HOST_U_64_BIT.
4045 (symvalue, bfd_size_type): Likewise.
4046 * bfd-in2.h: Rebuild.
4047 * Makefile.in (do_clean): Remove bfd-tmp.h.
4048 (do_distclean): Remove bfd-in3.h.
4049 (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
4050 (bfd-in3.h): New target.
4051
74556b94
ILT
4052 * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From
4053 Andrew Gierth <ANDREWG@microlise.co.uk>.
4054
ab659fd6
ILT
4055 * configure.host: Set INSTALL_SHLIB.
4056 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
4057 * configure: Rebuild.
4058 * Makefile.in (install): Use @INSTALL_SHLIB@.
4059
e8c249cb
ILT
4060 * config.bfd (mips*-*-irix6*): New target.
4061 * configure.host: Handle Irix 6 shared library like Irix 5.
4062
a8a3d83a
ILT
4063 * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD
4064 symbol for a magic name.
4065 (xcoff_link_input_bfd): Don't change the reloc symbol for an
4066 XMC_TD symbol.
4067 (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
4068 XMC_TD symbol.
4069
b576c7b3
SS
4070Thu Jul 18 11:36:31 1996 Stan Shebs <shebs@andros.cygnus.com>
4071
4072 * mpw-config.in: Add ELF support to mips config, create the
4073 elf32-target.h file in the object dir.
4074 * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
4075
2ba0d82d
KK
4076Wed Jul 17 18:02:32 1996 Kim Knuttila <krk@cygnus.com>
4077
4078 * coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
4079 Also removed most abort calls, in favor of using bfd reporting.
4080
b576c7b3 4081Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
50bd50d4 4082
b576c7b3
SS
4083 * Makefile.in (ALL_MACHINES): Add cpu-d10v.o.
4084 (BFD32_BACKENDS) Add elf32-d10v.o.
50bd50d4
MH
4085 * archures.c: Add bfd_d10v_arch.
4086 * bfd-in2.h: Add bfd_d10v_arch.
4087 * config.bfd (d10v-*-*): New target.
4088 * configure: (bfd_elf32_d10v_vec) New vector.
4089 * configure.in: (bfd_elf32_d10v_vec) New vector.
4090 * cpu-d10v.c: New file.
4091 * elf.c (prep_headers): Added case bfd_arch_d10v.
4092 * elf32-d10v.c: New file.
4093 * libbfd.h: Rebuild.
b576c7b3
SS
4094 * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L,
4095 BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define.
50bd50d4 4096 * targets.c (bfd_elf32_d10v_vec): New vector.
cf2cd4cf 4097
2ce9802e
KK
4098Wed Jul 17 10:58:55 1996 Kim Knuttila <krk@cygnus.com>
4099
4100 * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
4101
9676e446 4102Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com)
3cc21bf6 4103
9676e446
SG
4104 * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and
4105 bfd_mach_i386_i8086 machine types.
3cc21bf6 4106
f7171978
ILT
4107Wed Jul 10 12:42:56 1996 Ian Lance Taylor <ian@cygnus.com>
4108
4109 * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
4110 and _FINI sections.
4111
74e2ab38
ILT
4112Wed Jul 10 11:18:21 1996 Richard Henderson <rth@tamu.edu>
4113
4114 * coffcode.h (coff_set_section_contents): A/UX does not require
4115 special handling of the _LIB section.
4116
01cfaa6b
JL
4117Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com)
4118
4119 * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
4120 value for R_RELBYTE.
4121
4122 * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
4123 array if one was allocated.
4124
eb52b9dc
ILT
4125Tue Jul 9 12:21:54 1996 Ian Lance Taylor <ian@cygnus.com>
4126
4127 From Kazumoto Kojima <kkojima@kk.info.kanagawa-u.ac.jp>:
4128 * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields
4129 use_rld_obj_head and rld_value.
4130 (mips_elf_link_hash_table_create): Initialize new fields.
4131 (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as
4132 dynamic.
4133 (mips_elf_create_dynamic_sections): Create .rld_map section. If
4134 __rld_obj_head symbol not seen, create an __rld_map symbol.
4135 (mips_elf_size_dynamic_sections): Make space in .rld_map section.
4136 Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry.
4137 (mips_elf_finish_dynamic_symbol): Save value of __rld_map or
4138 __rld_obj_head symbol.
4139 (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP.
4140
56b4cbaa
ILT
4141Mon Jul 8 16:18:03 1996 Ian Lance Taylor <ian@cygnus.com>
4142
9b292d4c
ILT
4143 * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
4144
dab45734
ILT
4145 * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use
4146 ppc_elf_addr16_ha_reloc.
4147 (ppc_elf_addr16_ha_reloc): New static function.
4148
56b4cbaa
ILT
4149 * coff-mips.c (struct mips_hi): Define.
4150 (mips_refhi_list): New static variable.
4151 (mips_refhi_addr, mips_refhi_addend): Remove.
4152 (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs.
4153 (mips_reflo_reloc): Process mips_refhi_list.
4154 (mips_relhi_list): New static variable.
4155 (mips_relhi_addr, mips_relhi_addend): Remove.
4156 (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs.
4157 (mips_rello_reloc): Process mips_relhi_list.
4158 (mips_relocate_section): Permit an arbitrary number of REFHI or
4159 RELHI relocs before the associated REFLO or RELLO reloc.
4160
b777c6a7
ILT
4161Fri Jul 5 19:27:49 1996 Ian Lance Taylor <ian@cygnus.com>
4162
4163 * aout-target.h (MY(callback)): Set reloc_count fields.
4164
100b65dd
ILT
4165Thu Jul 4 12:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
4166
48f3aaf3
ILT
4167 * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
4168 sections unless this is a SunOS link.
4169
100b65dd
ILT
4170 * VERSION: Set to 2.7.1.
4171
4172 * Released binutils 2.7.
4173
a31e14f4
ILT
4174Wed Jul 3 14:59:47 1996 Ian Lance Taylor <ian@cygnus.com>
4175
4d3daf4f
ILT
4176 * i386aout.c: Include "aout/aout64.h".
4177 (i386aout_write_object_contents): New static function.
4178 (MY_write_object_contents): Define.
4179
a31e14f4
ILT
4180 * netbsd.h (MY(write_object_contents)): Make sure that
4181 adjust_sizes_and_vmas is called before fiddling with the magic
4182 number.
4183
d2d04f7a
ILT
4184Tue Jul 2 23:30:39 1996 Ian Lance Taylor <ian@cygnus.com>
4185
4186 * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
4187
4f6ee760
ILT
4188Sun Jun 30 13:34:33 1996 Ian Lance Taylor <ian@cygnus.com>
4189
4190 * libbfd-in.h (itos, stoi): Don't define.
4191 * libbfd.h: Rebuild.
4192 * i386lynx.c (KEEPIT): Define as udata.i.
4193 (NAME(lynx,swap_std_reloc_out)): Don't use stoi.
4194 (NAME(lynx,swap_ext_reloc_out)): Likewise.
4195 * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than
4196 flags. Don't use stoi.
4197
4198 * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
4199
4200 * elf.c (map_sections_to_segments): Don't start a new segment for
4201 a writable section if it's on the same page as the previous
4202 segment. Reset the writable variable for a readonly section.
4203
dfb89b82
KK
4204Sat Jun 29 16:18:51 1996 Kim Knuttila <krk@cygnus.com>
4205
4206 * peicode.h (coff_swap_aouthdr_in): Missing initializations of
4207 first_thunk_address, thunk_size, and import_table_size.
4208 * peicode.h: Improved some diagnostics regarding edata sections.
4209
4210 * coff-ppc.c (coff_ppc_relocate_section): Earlier error check
4211 on IMGLUE relocs.
4212 (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
4213 (TARGET_LITTLE_SYM): Added missing D_PAGED.
4214
8e80606f
ILT
4215Fri Jun 28 13:48:45 1996 Ian Lance Taylor <ian@cygnus.com>
4216
f93fb275
ILT
4217 * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol
4218 with XCOFF_DEF_DYNAMIC set is really defined.
4219 (xcoff_link_check_dynamic_ar_symbols): Likewise.
4220 (xcoff_link_add_symbols): Only create special sections if using an
4221 XCOFF hash table.
4222
8e80606f
ILT
4223 * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
4224 aixcoff-rs6000.
4225 (bfd_install_relocation): Likewise.
4226
eec2f824
ILT
4227Fri Jun 28 11:17:00 1996 Richard Henderson <rth@tamu.edu>
4228
4229 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
4230 field.
4231 (ALPHA_ELF_LINK_HASH_LU_ADDR): Define.
4232 (ALPHA_ELF_LINK_HASH_LU_MEM): Define.
4233 (ALPHA_ELF_LINK_HASH_LU_FUNC): Define.
4234 (elf64_alpha_link_hash_newfunc): Initialize flags field.
4235 (elf64_alpha_check_relocs): Record types of LITUSE entries that
4236 are found for LITERAL relocs.
4237 (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address
4238 taken, we cannot generate a .plt entry for the symbol.
4239
5304aea9
ILT
4240Thu Jun 27 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
4241
4242 * configure.in: Add AC_ISC_POSIX, and check for setitimer and
4243 sysconf functions (for gprof).
4244 * configure, config.in: Rebuild.
4245
017047d4
ILT
4246Wed Jun 26 16:29:02 1996 Ian Lance Taylor <ian@cygnus.com>
4247
f292bbe9
ILT
4248 * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in
4249 an archive if it has a map. If the object file has the wrong
4250 xvec, reject it.
4251
566e2325
ILT
4252 * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
4253 BRADDR, SREL16, SREL32, or SREL64 reloc against an external
4254 symbol.
4255 (alpha_relocate_section): Likewise.
4256
017047d4
ILT
4257 * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof.
4258 (coff_swap_filehdr_out): Use FILHSZ, not sizeof.
4259 (coff_swap_sym_out): Use SYMESZ, not sizeof.
4260 (coff_swap_aux_out): Use AUXESZ, not sizeof.
4261 (coff_swap_lineno_out): Use LINESZ, not sizeof.
4262 (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof.
4263 (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof.
4264 * peicode.h: Corresponding changes.
4265
cb73f5d7
MM
4266Tue Jun 25 15:28:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4267
4268 * elflink.h (elf_create_pointer_linker_section): Comment out code
4269 dealing with making GOT pointers negative of the GOT symbol for
4270 now.
4271
297a4f1a
ILT
4272Tue Jun 25 11:41:24 1996 Richard Henderson <rth@tamu.edu>
4273
4274 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
4275 increment the .rela.plt size until after we're done creating the
4276 .plt entry.
4277 (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
4278 .rela.plt offset directly rather than calculating it.
4279
dbbfec07 4280Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
cf2cd4cf
UD
4281
4282 * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir):
01e58ff6 4283 Use autoconf-set values.
cf2cd4cf
UD
4284 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
4285 includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set
01e58ff6 4286 values.
dbbfec07
JM
4287 (docdir): Deleted.
4288 * configure.in (AC_PREREQ): autoconf v2.5 or higher.
4289 * configure: Rebuilt.
cf2cd4cf 4290
50004d8d
JL
4291Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com)
4292
4293 * som.c (som_write_fixups): Fix typo in R_END_TRY for exception
4294 handling code > 1k away.
4295
4296Mon Jun 24 18:41:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4297
4298 * elflink.h (elf_create_pointer_linker_section): If DEBUG is
4299 defined, output whenever the symbol is updated.
4300
2e0567eb
ILT
4301Mon Jun 24 17:58:12 1996 Jouke Numan <jnuman@bazis.nl>
4302
4303 * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
4304 section to 0 if user_set_vma is set.
4305 * elflink.h (elf_bfd_final_link): Likewise.
4306
4307Sun Jun 23 20:42:51 1996 Doug Evans <dje@canuck.cygnus.com>
4308
4309 Partially undo patch of Jun 20.
4310 * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE.
4311 (coff_compute_section_file_positions): Likewise.
4312 (coff_write_object_contents): Likewise. Re-add deleted code, but
4313 use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE.
4314 * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef.
4315
bff4a496
ILT
4316Fri Jun 21 17:38:15 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
4317
4318 * config.bfd: Add support for *-*-rtems* configurations.
cf2cd4cf 4319
7ae6550f
ILT
4320Fri Jun 21 15:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
4321
4322 * elf.c (prep_headers): Add bfd_arch_alpha case.
4323
e8f46717
ILT
4324Fri Jun 21 12:35:27 1996 Richard Henderson <rth@tamu.edu>
4325
4326 * elf64-alpha.c: New file.
4327 * config.bfd (alpha-*-linuxecoff*): New target.
4328 (alpha-*-linux*, alpha-*-elf*): New targets.
4329 * configure.in (bfd_elf64_alpha_vec): New vector.
4330 * configure: Rebuild.
4331 * targets.c (bfd_elf64_alpha_vec): Declare.
4332 (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
4333 * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
4334 * bfd-in2.h, libbfd.h: Rebuild.
4335 * Makefile.in: Rebuild dependencies.
4336 (BFD64_BACKENDS): Add elf64-alpha.o.
4337 (BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
4338
bacecac8
ILT
4339Thu Jun 20 18:14:25 1996 Ian Lance Taylor <ian@cygnus.com>
4340
4341 * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
4342 than relying on a right shift of 32.
4343
9ca108cd
DE
4344Thu Jun 20 11:00:57 1996 Doug Evans <dje@canuck.cygnus.com>
4345
b9110a3c
DE
4346 * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
4347 ifdef to COFF_WITH_PE.
4348 (coff_compute_section_file_positions): Likewise.
4349 (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE.
4350 * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
4351 * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
4352 COFF_IMAGE_WITH_PE, always include.
4353
9ca108cd
DE
4354 * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
4355
c2073f05
ILT
4356Wed Jun 19 11:37:52 1996 Ian Lance Taylor <ian@cygnus.com>
4357
7fc6a16a
ILT
4358 * elf.c (map_sections_to_segments): Fix up the test for -Ttext to
4359 approximate the correct answer if SIZEOF_HEADERS was not used.
4360
c2073f05
ILT
4361 * binary.c (binary_set_section_contents): Set section file
4362 position based on LMA rather than VMA.
4363
4838929e
ILT
4364Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <manfred@lts.sel.alcatel.de>
4365
4366 * linker.c (_bfd_generic_link_output_symbols): Don't output any
4367 symbols if info->strip == strip_all.
4368
4369Tue Jun 18 15:17:36 1996 Jeffrey A. Law <law@rtl.cygnus.com>
4370
4371 * coff-h8300.c: Remove #if 0 code.
4372 (compatable): Don't allow mixing/matching of different architectures.
cf2cd4cf 4373
4838929e
ILT
4374 * archures.c (bfd_mach_h8300s): Add.
4375 * bfd-in2.h: Rebuilt.
4376 * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
4377 (BADMAG): Likewise.
4378 (h8300_reloc16_estimate): Likewise.
4379 (h8300_reloc16_extra_cases): Likewise.
4380 (h8300_bfd_link_add_symbols): Likewise.
4381 * coffcode.h (coff_set_arch_mach_hook): Likewise.
4382 (coff_set_flags): Likewise.
4383 * cpu-h8300.c (h8300_scan): Likewise.
4384 Add H8/S to bfd_h8300_arch list.
4385
c3d8e071
ILT
4386Tue Jun 18 14:42:58 1996 Klaus Kaempf <kkaempf@progis.de>
4387
4388 Added support for Alpha OpenVMS:
4389 * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files.
4390 * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files.
4391 * config.h-vms, makefile.vms: New files.
4392 * config.bfd (alpha-*-*vms*): New target.
4393 * configure.in (evax_alpha_vec): New target vector.
4394 * configure: Rebuild.
4395 * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define.
4396 (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define.
4397 * targets.c (bfd_target_evax_flavour): Define.
4398 (evax_alpha_vec): Declare.
4399 (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec
4400 if BFD64 is defined.
4401 * bfd-in2.h, libbfd.h: Rebuild.
4402 * Makefile.in: Rebuild dependencies.
4403 (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o,
4404 evax-emh.o, and evax-misc.o.
4405 (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c,
4406 evax-etir.c, evax-emh.c, and evax-misc.c.
4407 (HFILES): Add evax.h.
4408
142aa7d9
ILT
4409Tue Jun 18 13:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
4410
4411 * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
4412 pointer.
4413 (h8300_bfd_link_add_symbols): Likewise.
4414
b658d64d
JL
4415Mon Jun 17 10:06:50 1996 Jeffrey A. Law <law@rtl.cygnus.com>
4416
4417 * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
4418 * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
4419
2df1e84b
ILT
4420Mon Jun 17 12:49:11 1996 Ian Lance Taylor <ian@cygnus.com>
4421
4422 * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
4423 for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
4424 created.
4425 (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
4426 R_MIPS_32 relocs if creating a shared library.
4427
4428Thu Jun 13 20:14:51 1996 Doug Evans <dje@canuck.cygnus.com>
4429
4430 * peicode.h (add_data_entry): Use pei_section_data rather than
4431 _cooked_size. Corresponds to May 13 change in coffcode.h.
4432
8100e72c
ILT
4433Thu Jun 13 10:23:40 1996 Ian Lance Taylor <ian@cygnus.com>
4434
51bc9642
ILT
4435 * cofflink.c (_bfd_coff_final_link): Handle long section names.
4436 * coffcode.h (coff_write_object_contents): If there are long
4437 section names, always set the f_symptr field, even if there are no
4438 symbols.
4439 * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
4440 if there are no symbols.
4441
8100e72c
ILT
4442 * coffgen.c (make_a_section_from_file): Check return value of
4443 _bfd_coff_read_string_table.
4444 (coff_real_object_p): Check return value of
4445 make_a_section_from_file.
4446 (_bfd_coff_read_string_table): Check that there are some symbols
4447 before trying to read the string table size.
4448
0e3bd85e
ILT
4449Wed Jun 12 11:16:37 1996 Ian Lance Taylor <ian@cygnus.com>
4450
ed675a04
ILT
4451 * xcofflink.c (xcoff_link_add_symbols): When considering whether
4452 to replace a symbol in a dynamic object with a symbol from another
4453 dynamic object, do the replacement if the existing symbol is
4454 global linkage code.
4455
49144784
ILT
4456 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
4457 for _ptrgl, and treat it as global linkage code.
4458
0e3bd85e
ILT
4459 * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
4460 filename or N_SO symbol past the offset, and use it to indicate
4461 that there is no line number or function when appropriate.
4462
a5c7acea
ILT
4463Tue Jun 11 15:24:48 1996 Ian Lance Taylor <ian@cygnus.com>
4464
4465 * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
4466 common symbol defined by the linker. Don't export function code
4467 even if export_defineds is set.
4468
4469Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com)
4470
4471 * coff-h8300.c (howto_table): Add new entries for R_BCC_INV
4472 and R_JMP_DEL.
4473 (rtype2howto): Handle R_BCC_INV and R_JMP_DEL.
4474 (h8300_symbol_address_p): New function.
4475 (h8300_reloc16_estimate): Eliminate jumps made unnecessary by
4476 relaxing.
4477
890f5b7f
JL
4478Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com)
4479
4480 * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
4481 problems.
4482 (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
4483 correctly for the two variants. Allow relaxing if the target
4484 is 128 bytes away since after relaxation it'll be 126 bytes away.
4485 (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
4486 "dot" and "value". Allow relaxing if the target is 128 bytes
4487 away since after relaxation it'll be 126 bytes away.
4488 * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
4489 the given section until nothing changes.
4490
0593fc16
ILT
4491Thu Jun 6 15:24:45 1996 Richard Henderson <rth@tamu.edu>
4492
4493 * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
4494 alignment hack--we can get the lnnoptr info another way without
4495 suddenly increasing the alignment requirements. Set the flags for
4496 the _PDATA section.
4497 (ecoff_compute_section_file_positions): Do so.
4498
9b263b79
ILT
4499Thu Jun 6 11:24:37 1996 Ian Lance Taylor <ian@cygnus.com>
4500
bbf7c335
ILT
4501 * ieee.c (ieee_write_object_contents): Put a timestamp in the file
4502 to keep the HP emulator database happy.
4503
9b263b79
ILT
4504 * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
4505 From Kevin Buettner <kev@primenet.com>.
4506
4507Wed Jun 5 15:16:04 1996 Ian Lance Taylor <ian@cygnus.com>
4508
4509 * aoutx.h (translate_to_native_sym_flags): Don't try to print the
4510 name of a NULL section.
4511
26145b15
ILT
4512Tue Jun 4 18:53:58 1996 Ian Lance Taylor <ian@cygnus.com>
4513
4514 * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
4515 set, always call the notice callback.
4516
4517 * VERSION: Increment for bfdlink.h change.
4518
3a2080d8
ILT
4519Mon Jun 3 11:01:53 1996 Ian Lance Taylor <ian@cygnus.com>
4520
9d175198
ILT
4521 * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
4522 (sh_relax_delete_bytes): Correct handling of differently sized
4523 trailing alignment reloc.
4524
5a04f1bd
ILT
4525 * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
4526 * bfd-in2.h: Rebuild.
4527 * configure.in: Warn if there is no known 64 bit type.
4528 * configure: Rebuild.
4529
60c8b04f
ILT
4530 * Makefile.in: Rebuild dependencies.
4531 (BFD32_BACKENDS): Add ppcboot.o.
4532 (BFD32_BACKENDS_CFILES): Add ppcboot.c.
4533
3a2080d8
ILT
4534 * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
4535 From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>.
4536
903612a2
ILT
4537Sat Jun 1 21:49:58 1996 Ian Lance Taylor <ian@cygnus.com>
4538
4539 * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
4540 (bfd_mips_elf64_swap_reginfo_out): Move from here...
4541 * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
4542 (bfd_mips_elf64_swap_reginfo_out): ...to here.
4543
38893c8c
ILT
4544Fri May 31 13:51:28 1996 Ian Lance Taylor <ian@cygnus.com>
4545
bc05732b
ILT
4546 * elf64-mips.c: Improve reloc special_functions and handling of
4547 SHT_MIPS_OPTIONS section.
4548 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
4549 mips_elf_hi16_reloc and make globally visible.
4550 (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
4551 make globally visible.
4552 (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
4553 make globally visible.
4554 (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
4555 and make globally visible.
4556 (gprel16_with_gp): Check howto->src_mask before using value in
4557 insn.
4558 (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
4559 and make globally visible.
4560 (gprel32_with_gp): Check howto->src_mask before fetching value.
4561 (bfd_mips_elf_swap_options_in): New function.
4562 (bfd_mips_elf_swap_options_out): New function.
4563 (_bfd_mips_elf_set_private_flags): Rename from
4564 mips_elf_set_private_flags and make globally visible.
4565 (_bfd_mips_elf_copy_private_bfd_data): Rename from
4566 mips_elf_copy_private_bfd_data and make globally visible.
4567 (_bfd_mips_elf_merge_private_bfd_data): Rename from
4568 mips_elf_merge_private_bfd_data and make globally visible.
4569 (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
4570 for a SHT_MIPS_OPTIONS section.
4571 (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
4572 (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
4573 name of a SHT_MIPS_OPTIONS section.
4574 (_bfd_mips_elf_set_section_contents): New function.
4575 (mips_elf32_section_processing): Set the GP value in a
4576 SHT_MIPS_OPTIONS section.
4577 (_bfd_mips_elf_find_nearest_line): Rename from
4578 mips_elf_find_nearest_line and make globally visible.
4579 (bfd_elf32_set_section_contents): Define.
4580 * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
4581 (_bfd_mips_elf_lo16_reloc): Declare.
4582 (_bfd_mips_elf_gprel16_reloc): Declare.
4583 (_bfd_mips_elf_got16_reloc): Declare.
4584 (_bfd_mips_elf_gprel32_reloc): Declare.
4585 (_bfd_mips_elf_set_private_flags): Declare.
4586 (_bfd_mips_elf_copy_private_bfd_data): Declare.
4587 (_bfd_mips_elf_merge_private_bfd_data): Declare.
4588 (_bfd_mips_elf_find_nearest_line): Declare.
4589 (_bfd_mips_elf_set_section_contents): Declare.
4590
38893c8c
ILT
4591 * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
4592 elf_info_to_howto.
4593 (elf_info_to_howto): Define.
4594 * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
4595 elf_info_to_howto.
4596 (elf_info_to_howto): Define.
4597 * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
4598 elf_info_to_howto.
4599 (elf_info_to_howto): Define.
4600
4601 * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
4602 R_MOV16B[12], to match change in coff/internal.h.
4603
cabd8fa0
ILT
4604Thu May 30 12:38:49 1996 Ian Lance Taylor <ian@cygnus.com>
4605
00176555
ILT
4606 * elf64-mips.c: Extensive additions to provide better support for
4607 writing files and for gas.
4608 * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
4609 of mips_elf_object_p.
4610 (mips_elf32_object_p): Rename from mips_elf_object_p; call
4611 _bfd_mips_elf_object_p.
4612 (_bfd_mips_elf_final_write_processing): Rename from
4613 mips_elf_final_write_processing and make globally visible.
4614 (_bfd_mips_elf_fake_sections): Rename from
4615 mips_elf_fake_sections and make globally visible.
4616 (_bfd_mips_elf_section_from_bfd_section): Rename from
4617 mips_elf_section_from_bfd_section and make globally visible.
4618 (_bfd_mips_elf_section_processing): New function, broken out of
4619 mips_elf_section_processing.
4620 (mips_elf32_section_processing): Rename from
4621 mips_elf_section_processing; call
4622 _bfd_mips_elf_section_processing.
4623 (_bfd_mips_elf_symbol_processing): Rename from
4624 mips_elf_symbol_processing and make globally visible.
4625 (_bfd_mips_elf_read_ecoff_info): Rename from
4626 mips_elf_read_ecoff_info and make globally visible.
4627 (mips_elf32_ecoff_debug_swap): Rename from
4628 mips_elf_ecoff_debug_swap.
4629 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
4630 struct symbol_cache_entry.
4631 (_bfd_elf_validate_reloc): New function, moved in from
4632 elfcode.h:validate_reloc.
4633 * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
4634 to _bfd_elf_validate_reloc. Change all callers.
4635 * elf-bfd.h (bfd_section_from_shdr): Declare.
4636 (_bfd_elf_symbol_from_bfd_symbol): Declare.
4637 (_bfd_elf_validate_reloc): Declare.
4638 (_bfd_mips_elf_object_p): Declare.
4639 (_bfd_mips_elf_fake_sections): Declare.
4640 (_bfd_mips_elf_section_from_bfd_section): Declare.
4641 (_bfd_mips_elf_section_processing): Declare.
4642 (_bfd_mips_elf_symbol_processing): Declare.
4643 (_bfd_mips_elf_read_ecoff_info): Declare.
4644 (_bfd_mips_elf_final_write_processing): Declare.
4645 * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
4646 if already defined.
4647
cabd8fa0
ILT
4648 * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
4649 (mips_elf_final_write_processing): Likewise.
4650
d1bf45aa
ILT
4651Wed May 29 16:15:29 1996 Ian Lance Taylor <ian@cygnus.com>
4652
4653 64-bit MIPS ELF ABI objdump support:
4654 * elf64-mips.c: New file.
4655 * Makefile.in: Rebuild dependencies.
4656 (BFD64_BACKENDS): Add elf64-mips.o.
4657 (BFD64_BACKENDS_CFILES): Add elf64-mips.c.
4658 * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
4659 bfd_elf64_littlemips_vec to targ_selvecs.
4660 (mips*-*-elf*): Likewise.
4661 * confingure.in: Add bfd_elf64_bigmips_vec and
4662 bfd_elf64_littlemips_vec to vector switch.
4663 * configure: Rebuild.
4664 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
4665 broken out of mips_elf_section_from_shdr.
4666 (mips_elf32_section_from_shdr): Rename from
4667 mips_elf_section_from_shdr. Call new function.
4668 (elf_backend_section_from_shdr): Update name of renamed function.
4669 * elf-bfd.h (struct elf_size_info): Change second parameter of
4670 write_out_phdrs to be const. Likewise for second parameter of
4671 swap_symbol_out.
4672 (struct bfd_elf_section_data): Add rel_hdr2 field.
4673 (bfd_elf32_swap_symbol_in): Change second parameter to be const.
4674 (bfd_elf32_swap_symbol_out): Likewise.
4675 (bfd_elf32_swap_reloc_in): Likewise.
4676 (bfd_elf32_swap_reloc_out): Likewise.
4677 (bfd_elf32_swap_reloca_in): Likewise.
4678 (bfd_elf32_swap_reloca_out): Likewise.
4679 (bfd_elf32_swap_phdr_in): Likewise.
4680 (bfd_elf32_swap_phdr_out): Likewise.
4681 (bfd_elf32_swap_dyn_in): Likewise.
4682 (bfd_elf32_swap_dyn_out): Likewise.
4683 (bfd_elf32_slurp_symbol_table): Declare.
4684 (bfd_elf32_write_shdrs_and_ehdr): Declare.
4685 (bfd_elf32_write_out_phdrs): Declare.
4686 (bfd_elf64_swap_symbol_in): Change second parameter to be const.
4687 (bfd_elf64_swap_symbol_out): Likewise.
4688 (bfd_elf64_swap_reloc_in): Likewise.
4689 (bfd_elf64_swap_reloc_out): Likewise.
4690 (bfd_elf64_swap_reloca_in): Likewise.
4691 (bfd_elf64_swap_reloca_out): Likewise.
4692 (bfd_elf64_swap_phdr_in): Likewise.
4693 (bfd_elf64_swap_phdr_out): Likewise.
4694 (bfd_elf64_swap_dyn_in): Likewise.
4695 (bfd_elf64_swap_dyn_out): Likewise.
4696 (bfd_elf64_slurp_symbol_table): Declare.
4697 (bfd_elf64_write_shdrs_and_ehdr): Declare.
4698 (bfd_elf64_write_out_phdrs): Declare.
4699 (_bfd_mips_elf_section_from_shdr): Declare.
4700 * elf.c (bfd_section_from_shdr): Remove assertion requiring
4701 SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc
4702 section for the section, add the new one to rel_hdr2. Increment
4703 reloc_count rather than setting it.
4704 * elfcode.h (elf_slurp_symbol_table): Define name as macro.
4705 Remove static declaration.
4706 (elf_write_shdrs_and_ehdr): Define name as macro.
4707 (elf_write_out_phdrs): Likewise.
4708 (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
4709 (elf_swap_shdr_in, elf_swap_shdr_out): Declare.
4710 (elf_swap_symbol_in): Change second parameter to be const.
4711 (elf_swap_symbol_out): Likewise.
4712 (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
4713 (elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
4714 (elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
4715 (elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
4716 (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
4717 (elf_write_out_phdrs): Rename from write_out_phdrs. Change second
4718 parameter to be const. Make non-static.
4719 (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
4720 Make non-static.
4721 (elf_slurp_symbol_table): Make non-static.
4722 (NAME(_bfd_elf,size_info)): Update names of renamed functions.
4723 * elfxx-target.h (elf_info_to_howto): Define if not defined.
4724 (elf_backend_size_info): Likewise.
4725 (elfNN_bed): Use elf_backend_size_info.
4726 * targets.c (bfd_elf64_bigmips_vec): Declare.
4727 (bfd_elf64_littlemips_vec): Declare.
4728 (bfd_target_vector): Add bfd_elf64_bigmips_vec and
4729 bfd_elf64_littlemips_vec if BFD64 is defined.
cf2cd4cf 4730
d1bf45aa
ILT
4731 * libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
4732
7dd3d45a
ILT
4733Tue May 28 11:42:08 1996 Ian Lance Taylor <ian@cygnus.com>
4734
07692951
ILT
4735 * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
4736 zeroes, in alignment holes.
4737
a4322a77
ILT
4738 * configure: Rebuild with autoconf 2.10.
4739
7dd3d45a
ILT
4740 * aoutx.h (NAME(aout,find_nearest_line)): Make room for the
4741 potential leading underscore in the allocated buffer.
4742
0293d5b0
MM
4743Fri May 24 14:28:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4744
4745 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
4746 symbols into .sbss if this is a relocatable link.
4747
a5d0cd50
ILT
4748Thu May 23 12:26:24 1996 Ian Lance Taylor <ian@cygnus.com>
4749
4750 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
4751 undefined symbols when creating a shared library.
4752
4753Fri May 17 13:54:15 1996 Ian Lance Taylor <ian@cygnus.com>
4754
4755 * coff-sh.c: Add a bunch of new code and static const arrays to
4756 support aligning loads and stores on four byte memory boundaries.
4757 Also:
4758 (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
4759 R_SH_LABEL.
4760 (sh_relax_section): Look for R_SH_CODE relocs. If we find one,
4761 call sh_align_loads.
4762 (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs
4763 as unused.
4764
c403d358
ILT
4765Thu May 16 16:34:13 1996 Ian Lance Taylor <ian@cygnus.com>
4766
4767 * cache.c (bfd_open_file): Unlink the file before opening it for
4768 write. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
4769
4770 * opncls.c (bfd_fdopenr): Set opened_once.
4771
2f710e17
ILT
4772Tue May 14 12:35:32 1996 Ian Lance Taylor <ian@cygnus.com>
4773
ff60fc3a
ILT
4774 * som.c (som_slurp_reloc_table): Clear external_relocs cache after
4775 freeing it.
4776
2f710e17
ILT
4777 * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
4778 the code unconditionally.
4779
efb33f6b
ILT
4780Mon May 13 19:51:37 1996 Ian Lance Taylor <ian@cygnus.com>
4781
4782 * libcoff-in.h (struct pei_section_tdata): Define structure.
4783 (pei_section_data): Define macro.
4784 * libcoff.h: Rebuild.
4785 * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
4786 store s_paddr field in pei_section_data.
4787 (coff_compute_section_file_positions): Use pei_section_data rather
4788 than _cooked_size, and don't overwrite an existing value.
4789 (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
4790 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
4791 * peicode.h (coff_bfd_copy_private_section_data): Define if
4792 COFF_IMAGE_WITH_PE.
4793 (pe_bfd_copy_private_section_data): New static function if
4794 COFF_IMAGE_WITH_PE.
4795
5ecd6d7f
ILT
4796Wed May 8 16:10:38 1996 Ian Lance Taylor <ian@cygnus.com>
4797
db1e2aa7
ILT
4798 * srec.c (srec_set_arch_mach): Write as a function rather than a
4799 macro definition.
4800
5ecd6d7f
ILT
4801 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
4802 no map, just check each member in turn to see whether it is
4803 required.
4804
aefee5c8
MM
4805Wed May 8 09:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4806
4807 * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
4808 table. Call BFD_ASSERT to validate header size, instead of
4809 calling fatal.
4810 (ppcboot_bfd_print_private_bfd_data): Put quotes around partition
4811 name.
4812
0d1fcbbb
MM
4813Tue May 7 16:10:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4814
4815 * ppcboot.c: New target for looking at PPCbug boot records.
4816
4817 * config{ure.in,.bfd}: Add support for ppcboot target.
4818 * targets.c: Ditto.
4819 * configure: Regenerate.
cf2cd4cf 4820
f4597f8c
JL
4821Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com)
4822
4823 * coff-h8300.c (howto_table): Update names to match recent
4824 changes to include/coff/internal.h. Fix minor errors in the
4825 existing relocs. Add R_MOVL1 and R_MOVL2.
4826 (rtype2howto): Similarly.
4827 (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
4828 existing relaxing code and peform more relaxing.
4829 (h8300_reloc16_extra_cases): Likewise.
4830
0dc70e1a
JL
4831Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com)
4832
4833 * reloc16.c (bfd_coff_reloc16_get_value): Handle common
4834 symbols correctly.
4835
d1b8ccb0
PS
4836Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4837
4838 * elfcode.h (elf_object_p): Reject generic ELF target if
4839 e_machine matches an alternate machine code in a specific backend.
4840
4841 * netbsd-core.c (netbsd_core_vec): Remove initializer for
4842 obsolete align_power_min field.
4843
c9f5444e
JL
4844Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com)
4845
4846 * coff-h8300.c (reloc_howto_type): Add howto entry for
4847 R_PCRWORD_B.
4848 (rtype2howto): Handle R_PCRWORD_B.
4849 (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
4850 (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit
4851 pc-relative branch (R_PCRWORD) into an 8bit pc-relative
4852 branch (R_PCWORD_B).
4853
4ad842aa
ILT
4854Fri May 3 10:47:41 1996 Ian Lance Taylor <ian@cygnus.com>
4855
340d654f
ILT
4856 * aoutx.h (translate_from_native_sym_flags): Set the section for
4857 BSF_CONSTRUCTOR symbols.
4858
4ad842aa
ILT
4859 * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
4860 last_bf_index.
4861
9c7a5748
DE
4862Wed May 1 18:39:32 1996 Doug Evans <dje@canuck.cygnus.com>
4863
4864 * coffcode.h (coff_write_object_contents): In comdat section lookup,
4865 stop looking when section is found.
4866
622c93a3
ILT
4867Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com>
4868
e8f3bb64 4869 * coffcode.h (STRING_SIZE_SIZE): Define.
9aac8e83
ILT
4870 (styp_to_sec_flags): Handle long symbol names when looking for the
4871 section symbol.
e8f3bb64
ILT
4872 (bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
4873 (bfd_coff_long_section_names): Define.
4874 (coff_write_object_contents): Handle long section names.
4875 (bfd_coff_std_swap_table): Initialize new field.
4876 * libcoff.h: Rebuild.
4877 * coffgen.c (make_a_section_from_file): Handle long section
4878 names.
4879 (coff_write_symbols): Handle long section names.
4880 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
4881 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4882 * pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
4883 * pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
4884 * pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
4885 * pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
4886 * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
4887 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.
4888
622c93a3
ILT
4889 * bout.c (b_out_callback): Set lma of sections.
4890 (b_out_bfd_get_relocated_section_contents): Rename in_abfd
4891 parameter to output_bfd. Used input_bfd instead of output_bfd in
4892 several places.
4893
6b725f83
ILT
4894Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com>
4895
b7d1158a
ILT
4896 * aoutx.h (translate_from_native_sym_flags): Don't create
4897 SEC_CONSTRUCTOR sections.
4898 * ecoff.c (ecoff_set_symbol_info): Likewise.
4899
6b725f83
ILT
4900 * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
4901 From Don Bowman <bowman@waterloo.hp.com>.
4902
e28a1e77
DE
4903Tue Apr 30 17:06:32 1996 Doug Evans <dje@canuck.cygnus.com>
4904
4905 * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
4906 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
4907
abec70b9
ILT
4908Mon Apr 29 13:15:17 1996 Ian Lance Taylor <ian@cygnus.com>
4909
4910 * elf32-mips.c (struct mips_elf_link_hash_entry): Add
4911 mips_32_relocs field.
4912 (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
4913 (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
4914 relocs against a global symbol which is not defined in a regular
4915 file.
4916 (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
4917 against a global symbol, increment mips_32_relocs.
4918 (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
4919 the symbol is not defined in a regular file, make room in the
4920 .rel.dyn section.
4921
ecba7a3a
ILT
4922Fri Apr 26 18:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
4923
656c5b6d
ILT
4924 * ecoff.c (ecoff_compute_section_file_positions): Track the real
4925 file position and the virtual file position separately. Set
4926 filepos information bsaed on the real file position.
4927 (_bfd_ecoff_set_section_contents): Handle .lib sections like the
4928 Jan 23 change to coffcode.h.
4929
ecba7a3a
ILT
4930 * som.c (som_slurp_symbol_table): Set the symbol count to the
4931 number of BFD symbols created.
4932
e25a7988
MM
4933Fri Apr 26 12:34:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4934
4935 * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the
4936 output file if linking shared objects. Loop to check all relocs,
4937 rather than returning false on first error.
4938
5c28a96e
MM
4939Thu Apr 25 13:25:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4940
3f7ca26b
MM
4941 * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case.
4942 (ppc_elf_additional_program_headers): If .interp section, bump #
4943 of program headers by 1.
4944 (ppc_elf_adjust_dynamic_symbol): Flesh out support.
4945 (ppc_elf_size_dynamic_sections): Add support for .plt section.
4946 (ppc_elf_check_relocs): Print out filename in debug code. Enable
4947 PLT support.
4948 (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
4949 debug output.
4950 (ppc_elf_relocate_section): If the output section isn't defined,
4951 don't abort, just give an error message.
4952
5c28a96e
MM
4953 * elflink.c (_bfd_elf_create_dynamic_sections): If the section
4954 being created is .sdata or .sdata2, don't make the symbol dynamic.
4955
f5d65485
ILT
4956Wed Apr 24 14:04:07 1996 Ian Lance Taylor <ian@cygnus.com>
4957
4958 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
4959 members of an archive for dynamic objects with no symbols, and
4960 pass them directly to check_archive_element.
4961 (xcoff_link_check_ar_symbols): Pass dynamic objects to
4962 xcoff_link_check_dynamic_ar_symbols.
4963 (xcoff_link_check_dynamic_ar_symbols): New static function.
4964
4965 * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
4966 from _bfd_nodynamic to _bfd_xcoff.
4967 * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
4968 Declare.
4969 (_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
4970 (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
4971 (_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
4972 * libcoff.h: Rebuild.
4973 * xcofflink.c (xcoff_swap_ldrel_in): New static function.
4974 (xcoff_get_section_contents): New static function.
4975 (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
4976 (_bfd_xcoff_canonicalize_dynamic_symtab): New function.
4977 (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
4978 (xcoff_dynamic_reloc): New static variable.
4979 (_bfd_xcoff_canonicalize_dynamic_reloc): New function.
4980 (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
cf2cd4cf 4981
f5d65485
ILT
4982Tue Apr 23 12:48:42 1996 Ian Lance Taylor <ian@cygnus.com>
4983
4984 * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even
4985 if reloc_entry->addend is not 0.
4986 (CALC_ADDEND): Just set the addend to reloc.r_offset.
4987
34249b2f
DE
4988Mon Apr 22 18:29:01 1996 Doug Evans <dje@canuck.cygnus.com>
4989
4990 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
4991 R_SPARC_GLOB_JMP.
4992 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4993 Add entries for R_SPARC_[56].
4994 (sparc_reloc_map): Add entries for R_SPARC_[56].
4995
af50cd91
ILT
4996Mon Apr 22 15:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
4997
1726b8f0
ILT
4998 Optimize linking of stabs in sections as used in ELF and COFF.
4999 * stabs.c: New file.
5000 * libbfd-in.h (_bfd_link_section_stabs): Declare.
5001 (_bfd_write_section_stabs): Declare.
5002 (_bfd_write_stab_strings): Declare.
5003 * libbfd.h: Rebuild.
5004 * libcoff-in.h (struct coff_section_tdata): Add stab_info field.
5005 (struct coff_link_hash_table): Add stab_info field.
5006 * libcoff.h: Rebuild.
5007 * cofflink.c (_bfd_coff_link_hash_table_init): Initialize
5008 stab_info field.
5009 (coff_link_add_symbols): Call _bfd_link_section_stabs if
5010 appropriate.
5011 (_bfd_coff_final_link): Write out stab strings hash table.
5012 (_bfd_coff_link_input_bfd): Handle optimized stabs sections.
5013 * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
5014 hash table.
5015 * elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
5016 (struct bfd_elf_section_data): Add stab_info field.
5017 * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
5018 field.
5019 * elflink.h (elf_link_add_object_symbols): If appropriate, call
5020 _bfd_link_section_stabs.
5021 (elf_bfd_final_link): Write out stab strings hash table.
5022 (elf_link_input_bfd): Handle optimized stabs sections.
5023 * reloc.c (_bfd_final_link_relocate): Check address against
5024 _raw_size rather than _cooked_size.
5025 * Makefile.in: Rebuild dependencies.
5026 (BFD_LIBS): Add stabs.o
5027 (BFD_LIBS_CFILES): Add stabs.c.
5028
5029 * VERSION: Increment for bfdlink.h change.
5030
af50cd91
ILT
5031 * coffgen.c (coff_renumber_symbols): Correct handling of
5032 BSF_NOT_AT_END common symbols.
5033
f9fa5df3
ILT
5034Fri Apr 19 19:21:56 1996 Ian Lance Taylor <ian@cygnus.com>
5035
5036 * coff-ppc.c (record_toc): Add cast to avoid warning.
5037 (ppc_allocate_toc_section): Likewise.
5038 (coff_ppc_relocate_section): Remove ANSI C string concatenation.
5039 (ppc_coff_reloc_type_lookup): Remove unreached code.
5040 * coffcode.h (coff_write_object_contents): Don't take the address
5041 of an array.
5042 * peicode.h (pe_print_idata): Add casts to avoid warning.
5043 (pe_print_edata): Likewise.
5044 (pe_print_reloc): Remove ANSI C string concatenation.
5045
d6e0e2f7
ILT
5046Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com>
5047
5048 * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
5049 and last_bf fields.
5050 * libcoff.h: Rebuild.
5051 * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
5052 symbols.
5053 (coff_swap_aux_out): Likewise.
5054 * peicode.h (coff_swap_aux_in): Likewise.
5055 (coff_swap_aux_out): Likewise.
5056 * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
5057 symbols.
5058 * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
5059 field.
5060 (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
5061 Fix up .bf endndx link fields.
5062 * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
5063 field.
5064 * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
5065 symbols.
5066
221d1e19
MM
5067Wed Apr 17 12:08:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5068
5069 * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
5070 on Solaris PowerPC systems doesn't get confused.
5071
5072 * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
5073 #ifdef PPC.
5074
5075 * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument.
5076 (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't
5077 update did_reg and did_reg2.
5078
8f9a56c6
ILT
5079Wed Apr 17 13:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
5080
f97fca78
ILT
5081 * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
5082
8f9a56c6
ILT
5083 * linker.c (_bfd_generic_link_add_one_symbol): When calling the
5084 callback routines, pass h->root.string rather than name, in case
5085 copy is true and name is transient.
5086
603fdf16
SG
5087Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
5088
5089 * elfcore.h: Add support for core files with multiple threads.
5090 (Primarily for Solaris.)
5091
a2d914e1
ILT
5092Tue Apr 16 13:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
5093
cdf23557
ILT
5094 * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
5095 section->orelocation is NULL.
5096
a2d914e1
ILT
5097 * coffgen.c (bfd_coff_get_syment): New function.
5098 (bfd_coff_get_auxent): New function.
5099 * bfd-in.h (bfd_coff_get_syment): Declare.
5100 (bfd_coff_get_auxent): Declare.
5101 * bfd-in2.h: Rebuild.
5102
5cf36a32
ILT
5103Mon Apr 15 19:06:59 1996 Ian Lance Taylor <ian@cygnus.com>
5104
5105 * elf32-mips.c (struct mips_hi16): Define.
5106 (mips_hi16_addr, mips_hi16_addend): Remove.
5107 (mips_hi16_list): New static variable.
5108 (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
5109 (mips_elf_lo16_reloc): Process mips_hi16_list.
5110 (mips_elf_relocate_section): Permit an arbitrary number of HI16
5111 relocs before the associated LO16 reloc.
5112
b7fce5be
ILT
5113Wed Apr 10 00:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
5114
176512da
ILT
5115 * versados.c (versados_scan): Check bfd_alloc return value.
5116 (versados_object_p): Check all bfd_read return values. Require
5117 that lang field be less than 10, to avoid confusion with Intel Hex
5118 files.
5119
18de3f19
ILT
5120 * libaout.h (WRITE_HEADERS): Write out the relocs even if there
5121 aren't any symbols.
5122 * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
5123 not 0, for an absolute symbol.
5124 (NAME(aout,swap_ext_reloc_out)): Likewise.
5125
66ab4152
ILT
5126 * ihex.c (ihex_scan): Accept a length of 4 for record type 5.
5127 (ihex_write_object_contents): For a large start address, output
5128 the full 32 bit address in record type 5.
5129
b7fce5be
ILT
5130 * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
5131 to int to avoid promotion problems in prototype.
5132
f1b45745
ILT
5133Tue Apr 9 11:44:21 1996 Ian Lance Taylor <ian@cygnus.com>
5134
f400f358
ILT
5135 * configure.host: Use ${srcdir} when looking for picfrag.
5136
3d9a5986
ILT
5137 * configure.host: Switch on ${libdir}, not $(libdir). From
5138 alan@spri.levels.unisa.edu.au (Alan Modra).
5139
f1b45745
ILT
5140 * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
5141 entry point, not just for DYNAMIC objects.
5142 * sunos.c (sunos_add_dynamic_symbols): Always call
5143 sunos_create_dynamic_sections. If called with a non DYNAMIC
5144 object, don't do anything else.
5145 (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
5146
6f21f2e3
ILT
5147Mon Apr 8 12:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
5148
639b5a09
ILT
5149 * configure.in: Permit --enable-shared to specify a list of
5150 directories.
5151 * configure: Rebuild.
5152
6f21f2e3
ILT
5153 * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
5154 host when configuring with --enable-shard.
5155
3f5f565b
ILT
5156Fri Apr 5 12:24:13 1996 Ian Lance Taylor <ian@cygnus.com>
5157
1ac75f5c
ILT
5158 * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
5159 <jdp@polstra.com>.
5160
1a9951a9
ILT
5161 * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
5162 to avoid crashing in bfd_hash_replace.
5163
f1ac3acb 5164 * sysdep.h: Use #ifdef, not #if.
3f5f565b 5165
eb5f58e0
ILT
5166Thu Apr 4 23:32:23 1996 Ian Lance Taylor <ian@cygnus.com>
5167
5168 * config.in: Rebuild.
5169
ab1aa5cd
FF
5170Thu Apr 4 18:49:09 1996 Fred Fish <fnf@cygnus.com>
5171
5172 * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
5173 (AC_CHECK_HEADERS): Check for sys/time.h
5174 (AC_HEADER_TIME): Add macro.
5175 * configure: Rebuild.
5176 * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
5177 to control what combination of <time> and <sys/time.h>
5178 get included.
cf2cd4cf 5179
d1f74cd2
DE
5180Tue Apr 2 13:11:53 1996 Doug Evans <dje@canuck.cygnus.com>
5181
5182 * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
5183 (aout_32_sunos4_write_object_contents): Likewise.
5184 * aoutx.h (NAME(aout,machine_type)): Handle
5185 bfd_mach_sparc_{sparclet,sparclite}.
5186 * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
5187 (bfd_mach_sparc_v9_p): Update.
5188 * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
5189 * libaout.h (enum machine_type): Add M_SPARCLET.
5190 * sunos.c (MACHTYPE_OK): Define.
5191 * bfd-in2.h: Regenerated.
5192
1dad72bd
ILT
5193Tue Apr 2 00:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
5194
19bfbcbe
ILT
5195 * elf-bfd.h (struct elf_link_hash_table): Add hgot field.
5196 * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
5197 * elflink.c (_bfd_elf_create_got_section): Store the
5198 _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
5199 * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
5200 global offset table goes over 0x1000, set the value of
5201 _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
5202 (elf32_sparc_relocate_section): Subtract the offset of
5203 _GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
5204
1dad72bd
ILT
5205 * elfcode.h: Don't include <string.h>.
5206
ca4e2190
JL
5207Mon Apr 1 10:39:24 1996 Jeffrey A Law (law@cygnus.com)
5208
5209 * linker.c (_bfd_generic_link_hash_newfunc): Renamed from
5210 generic_link_hash_newfunc. All references changed.
5211 * genlink.h (_bfd_generic_link_hash_newfunc): Declaration
5212 moved here from libbfd-in.h.
5213 * libbfd-in.h: Corresponding changes.
5214 * libbfd.h: Regenerated.
5215
ce6a7731
ILT
5216Mon Apr 1 12:35:36 1996 Ian Lance Taylor <ian@cygnus.com>
5217
aad53b0d
ILT
5218 * aoutx.h (aout_link_input_section_std): When reporting an
5219 overflow error, use the name of the symbol in the hash table if
5220 available.
5221 (aout_link_input_section_ext): Likewise.
5222
ce6a7731
ILT
5223 * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
5224 defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
5225
323b430f
SC
5226Sun Mar 31 01:58:41 1996 steve chamberlain <sac@slash.cygnus.com>
5227
5228 * peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
5229 * coffcode.h (coff_compute_section_file_positions): Likewise.
5230 (coff_write_object_contents): Likewise.
cf2cd4cf 5231
7fc1cd16
ILT
5232Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com>
5233
5a28331f
ILT
5234 * section.c (SEC_LINK_ONCE): Define.
5235 (SEC_LINK_DUPLICATES): Define.
5236 (SEC_LINK_DUPLICATES_DISCARD): Define.
5237 (SEC_LINK_DUPLICATES_ONE_ONLY): Define.
5238 (SEC_LINK_DUPLICATES_SAME_SIZE): Define.
5239 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
5240 * bfd-in2.h: Rebuild.
5241 * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
5242 SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
5243 (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
5244 into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set
5245 SEC_LINK_ONCE, and look through the symbol table for the setting
5246 for SEC_LINK_DUPLICATES.
5247 (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
5248 set for a section, find the section symbol in the symbol table,
5249 and set the aux entry based on SEC_LINK_DUPLICATES.
5250 * coffgen.c (coff_print_symbol): Add a space before "checksum".
5251 * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
5252 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
5253 * coff-i386.c (i386coff_vec): Likewise.
5254 * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
5255
7fc1cd16
ILT
5256 * VERSION: Bump to 2.6.1.
5257 * Makefile.in (stamp-h): Depend upon VERSION.
5258
9399a257
JL
5259Thu Mar 28 23:48:49 1996 Jeffrey A Law (law@cygnus.com)
5260
5261 * libbfd-in.h (generic_link_hash_newfunc): Add declaration.
5262 * libbfd.h: Rebuilt.
5263 * linker.c (generic_link_hash_newfunc): No longer static.
5264 * coffcode.h (coff_bfd_link_hash_create): Allow specific targets
5265 to override.
5266 * coff-h8300.c: Add two derived hash tables and their associated
5267 funtions and #defines for use by the h8300 linker.
5268 (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
5269 the function vector as needed. Place the address of the function
5270 vector entry in the location specified by the R_MEM_INDIRECT reloc.
5271 Rewrite the vectors section contents as necessary.
cf2cd4cf 5272 (h8300_bfd_link_add_symbols): New function for the h8300 linker.
9399a257
JL
5273 (coff_bfd_link_add_symbols): Define to use h8300 specific version.
5274 (coff_bfd_link_hash_table_create): Likewise.
5275
506f2bb4
ILT
5276Thu Mar 28 17:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
5277
5278 * libhppa.h: If gcc 2.7 or higher, declare all the functions with
5279 __attribute__ ((__unused__)) so that -Wall doesn't warn about
5280 them.
5281 (hppa_rebuild_insn): Pass pointer to correct type to
5282 low_sign_unext and dis_assemble_21.
5283
05a84ae1
DE
5284Thu Mar 28 11:00:36 1996 Doug Evans <dje@canuck.cygnus.com>
5285
5286 * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
5287 Stick with sparc-*-{sysv4*,solaris2*}.
5288
919cf4b5
ILT
5289Wed Mar 27 10:43:34 1996 Ian Lance Taylor <ian@cygnus.com>
5290
8230f31c
ILT
5291 * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
5292 (coff_swap_aux_out): Swap out extra PE x_scn fields.
5293 * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
5294 * coffgen.c (coff_print_symbol): If any of the extra PE x_scn
5295 fields is non-zero, print them.
5296
9addd1d4
ILT
5297 * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
5298 ifdef. Remove unused variables.
5299 (ppc_record_data_in_toc_entry): Ifdef out. Removed unused
5300 variables.
5301 (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
5302 (get_symbol_value): Ifdef out.
5303 (pe_ppc_reloc): Ifdef out. Remove unused variables.
5304 (coff_ppc_relocate_section): Remove unused variables. Make
5305 fprintf strings and argument types correspond. Put before_addr in
5306 DEBUG_RELOC ifdef.
ff0e4a93
ILT
5307 (dump_toc): Make fprintf strings and argument types correspond.
5308 (ppc_process_before_allocation): Remove unused variables. Always
5309 return a value.
9addd1d4
ILT
5310 (ppc_reflo_reloc): Ifdef out.
5311 (ppc_addr32nb_reloc): Ifdef out.
5312 (ppc_coff_rtype2howto): Make fprintf strings and argument types
5313 correspond.
5314 (coff_ppc_rtype_to_howto): Likewise.
5315 (ppc_coff_swap_sym_in_hook): Remove unused variables.
5316
5317 * peicode.h (pe_print_idata): Move otherwise unused variables into
5318 the #ifdef where they are used. Always return a value.
ff0e4a93
ILT
5319 (pe_print_edata): Make fprintf strings and argument types
5320 correspond. Always return a value.
9addd1d4
ILT
5321 (pe_print_pdata): Removed unused variable addr_value. Always
5322 return a value.
5323 (pe_print_reloc): Remove unused variable onaline. Make fprintf
ff0e4a93 5324 strings and argument types correspond. Always return a value.
9addd1d4
ILT
5325
5326 * elf32-ppc.c (ppc_elf_fake_sections): Return true.
5327 (ppc_elf_finish_dynamic_symbol): Move definition of unused
5328 variable rela inside #if 0 section where it is used.
5329
c877bdf1
ILT
5330 * ns32k.h: New file.
5331 * cpu-ns32k.h: Include ns32k.h. Rename externally visible
5332 functions to start with _bfd_.
5333 * aout-ns32k.c: Include ns32k.h. Change references to renamed
5334 functions in cpu-ns32k.h.
5335 * Makefile.in: Rebuild dependencies.
5336 (HFILES): Add ns32k.h.
5337
ff0e4a93
ILT
5338 * section.c (struct sec): Add linker_mark field. Change
5339 user_set_vma and reloc_done to be single bit fields.
5340 (STD_SECTION): Update accordingly.
7ec49f91
ILT
5341 * bfd-in2.h: Rebuild.
5342 * aoutx.h (NAME(aout,final_link)): Mark sections included in the
5343 link.
5344 (aout_link_input_bfd): Don't link unmarked sections.
5345 * cofflink.c (_bfd_coff_final_link): Mark sections included in the
5346 link.
5347 (_bfd_coff_link_input_bfd): Don't link unmarked sections.
5348 * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
5349 the link.
5350 * elflink.h (elf_bfd_final_link): Mark sections included in the
5351 link.
5352 (elf_link_input_bfd): Don't link unmarked sections.
5353 * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
5354 in the link.
5355 (xcoff_link_input_bfd): Don't link unmarked sections.
5356
919cf4b5
ILT
5357 * coffswap.h (coff_swap_scnhdr_out): Include section name in
5358 overflow error messages.
5359
986cf3b8
ILT
5360Tue Mar 26 15:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
5361
fd681dcd
ILT
5362 * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
5363 is not set, print "BFD: " before the error message.
5364
986cf3b8
ILT
5365 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
5366 Miles Bader <miles@gnu.ai.mit.edu>.
5367 * configure: Rebuild.
5368
3998d526
ILT
5369Fri Mar 22 12:17:00 1996 Ian Lance Taylor <ian@cygnus.com>
5370
c3dffbd7
ILT
5371 * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
5372 symbols.
5373
3998d526
ILT
5374 * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
5375 m68k-aout, m68k-coff, and m68k-elf targets.
5376
e4d27380
ILT
5377Fri Mar 22 11:33:44 1996 Martin Anantharaman <martin@goofy.imech.uni-duisburg.de>
5378
5379 * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
5380 (ieee_generic_stat_arch_elt): Restructured to prevent
5381 ieee_object_p from being called repeatedly.
5382
51776a11
SC
5383Thu Mar 21 11:00:47 1996 steve chamberlain <sac@slash.cygnus.com>
5384
5385 * coffcode.h (coff_write_object_contents): Allocate
5386 buffers large enough for any FILEHDR or AOUTHDR.
5387
5388Thu Mar 21 16:28:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
5389
5390 * ecofflink.c (lookup_line): New static function, renamed and
5391 slighly changed from old _bfd_ecoff_locate_line.
5392 (_bfd_ecoff_locate_line): Cache line number information. Use
5393 lookup_line for actual lookup.
5394
9e4ebb1b
MM
5395Thu Mar 21 14:59:11 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5396
5397 * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
5398 multiple of 20 bytes.
5399
9e7427a4
ILT
5400Thu Mar 21 13:54:40 1996 Ian Lance Taylor <ian@cygnus.com>
5401
51776a11
SC
5402 * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
5403 allocate ecoff_find_line, and don't initialize by hand.
5404 * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
5405 mips_elf_find_line, and don't call memset.
5406
9e7427a4
ILT
5407 * coffcode.h (coff_compute_section_file_positions): If not
5408 producing a final executable, don't consider sofar when aligning
5409 the section to the correct size.
5410
5411Wed Mar 20 16:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
5412
5413 * coffcode.h (coff_add_missing_symbols): Ifdef out.
5414 (coff_write_object_contents): Don't call coff_add_missing_symbols.
5415 * coffgen.c (coff_section_symbol): Ifdef out.
5416
e7f9ba4f
ILT
5417Mon Mar 18 12:54:41 1996 Ian Lance Taylor <ian@cygnus.com>
5418
5419 * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
5420 output_bfd is not NULL.
5421
34c4d647
DE
5422Thu Mar 14 17:12:06 1996 Doug Evans <dje@charmed.cygnus.com>
5423
5424 * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
5425 of bfd_alloc (fixes fix_line not being initialized).
5426 Delete zeroing of fix_{value,tag,end,scnlen} fields.
5427
4e054247
JL
5428Thu Mar 14 16:06:06 1996 Jeffrey A Law (law@cygnus.com)
5429
57289b5c
JL
5430 * coffcode.h: Allow specific backends to override the
5431 bfd_link_add_symbols routine.
5432
4e054247
JL
5433 * coff-h8300.c: Include genlink.h.
5434 (howto_table): Add R_MEM_INDIRECT.
5435 (rtype2howto): Support R_MEM_INDIRECT.
5436 (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
5437 for now.
cf2cd4cf 5438
a10d3dec
ILT
5439Tue Mar 12 12:41:17 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
5440
5441 * coff-alpha.c (alpha_relocate_section): Use
5442 info->callbacks_warning, rather than _bfd_error_handler, for
5443 "multiple gp" warning.
5444
ea2488ad
ILT
5445Tue Mar 12 12:10:55 1996 Ian Lance Taylor <ian@cygnus.com>
5446
8881b321
ILT
5447 * linker.c (bfd_wrapped_link_hash_lookup): New function.
5448 (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
5449 table string. Use bfd_wrapped_link_hash_lookup.
5450 (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
5451 table string.
5452 * aoutx.h (aout_link_write_symbols): Use the name from the hash
5453 table, if any, when writing out symbols.
5454 (aout_link_input_section_std): Use the name from the hash table,
5455 if any, when reporting undefined symbols.
5456 (aout_link_input_section_ext): Likewise.
5457 (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
5458 * bout.c (get_value): Likewise.
5459 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
5460 * ecoff.c (ecoff_reloc_link_order): Likewise.
5461 * elflink.h (elf_link_add_object_symbols): Likewise.
cf2cd4cf 5462 (elf_reloc_link_order): Likewise.
8881b321
ILT
5463 * linker.c (_bfd_generic_link_output_symbols): Likewise.
5464 (_bfd_generic_reloc_link_order): Likewise.
5465 (default_indirect_link_order): Likewise.
5466 * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
5467 * sunos.c (sunos_add_one_symbol): Likewise.
5468 * xcofflink.c (xcoff_link_add_symbols): Likewise.
5469 (bfd_xcoff_link_count_reloc): Likewise.
5470 (xcoff_reloc_link_order): Likewise.
5471
5472 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
5473 into -1 for intern->rss.
5474
ea2488ad
ILT
5475 * configure: Rebuild with autoconf 2.8.
5476
c189fdfb
ILT
5477Mon Mar 11 12:28:31 1996 Ian Lance Taylor <ian@cygnus.com>
5478
5479 * stab-syms.c (__define_stab_duplicate): Define.
5480 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
5481 switch.
5482 * bfd-in.h (bfd_get_stab_name): Declare.
5483 * bfd-in2.h: Rebuild.
5484 * Makefile.in: Rebuild dependencies.
5485 (BFD_LIBS): Add stab-syms.o.
5486 (BFD_LIBS_CFILES): Add stab-syms.c.
5487 (BFD32_BACKENDS): Remove stab-syms.o.
5488 (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
5489 * configure.in: Don't list stab-syms.o in bfd_backends.
5490 * configure: Rebuild.
5491 * libaout.h (aout_stab_name): Don't declare.
5492 * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
5493 not aout_stab_name.
5494
5495Fri Mar 8 11:26:20 1996 Ian Lance Taylor <ian@cygnus.com>
5496
5497 * elf.c (assign_file_positions_for_segments): Adjust file offset
5498 for section alignment even if SEC_LOAD is not set.
5499
c5bde1ef
ILT
5500Tue Mar 5 12:02:23 1996 Ian Lance Taylor <ian@cygnus.com>
5501
8f218e05
ILT
5502 * configure.in: Don't set SHLIB or SHLINK to an empty string,
5503 since they appear as targets in Makefile.in.
5504 * configure: Rebuild.
5505
c5bde1ef
ILT
5506 * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
5507 don't fiddle with a symbol which is not defined anywhere.
5508
cb84f028
ILT
5509Mon Mar 4 12:49:16 1996 Ian Lance Taylor <ian@cygnus.com>
5510
4e59f523
ILT
5511 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
5512 though they are defined in a shared library.
5513 (xcoff_build_ldsyms): Likewise.
5514
ea2504d5
ILT
5515 * coffgen.c (coff_find_nearest_line): Don't look at the line
5516 numbers for the section if section->lineno is NULL.
5517
cb84f028
ILT
5518 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
5519 message rather than calling BFD_ASSERT.
5520 * elfcode.h (write_relocs): Check return value of
5521 _bfd_elf_symbol_from_bfd_symbol.
5522
6e036cf7
MM
5523Fri Mar 1 09:42:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5524
5525 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
5526 for .sbss section.
5527
d08435de
JL
5528Wed Feb 28 11:25:47 1996 Jeffrey A Law (law@cygnus.com)
5529
5530 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
5531 and R_HPPA_NLRSEL.
5532 (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
5533 hppa_reloc_field_selector_type_alt.
5534 (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
5535 * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
5536 selectors.
5537 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
5538
09609415
ILT
5539Wed Feb 28 11:00:24 1996 Ian Lance Taylor <ian@cygnus.com>
5540
5541 * elf.c (assign_file_positions_for_segments): Adjust the segment
5542 memory size for the alignment of a SEC_ALLOC section, not just a
5543 SEC_LOAD section.
5544
55626bf0
ILT
5545Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5546
5547 * m68klinux.c: New file.
5548 * hosts/m68klinux.h: New file.
5549 * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
5550 * configure.in (m68*-*-linux*): New native host.
5551 (m68klinux_vec): New vector.
5552 * configure: Rebuild.
5553 * targets.c (m68klinux_vec): Declare.
5554 * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
5555 bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
5556 * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
5557 declaration from bfd_linux_size_dynamic_sections.
5558 (bfd_m68klinux_size_dynamic_sections): Declare.
5559 * bfd-in2.h: Rebuild.
5560 * Makefile.in: Rebuild dependencies.
5561 (BFD32_BACKENDS): Add m68klinux.o.
5562 (BFD32_BACKENDS_CFILES): Add m68klinux.c.
5563
6c7b3090
JL
5564Tue Feb 27 11:31:34 1996 Jeffrey A Law (law@cygnus.com)
5565
5566 * libhppa.h (pa_arch): Add pa20.
5567 (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
5568 (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
5569 (hppa_field_adjust): Handle e_nsel.
5570 * som.c: Provide default definitions for many new relocs found only
5571 in hpux10 include files.
5572 (som_fixup_formats): Add several new relocs from hpux10.
5573 (som_hppa_howto_table): Add hpux10 relocs.
5574 (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
5575
14fd4616
SS
5576Mon Feb 26 12:52:48 1996 Stan Shebs <shebs@andros.cygnus.com>
5577
5578 * mpw-make.sed: Edit out recent shared library support, and
5579 rules to rebuild .h files using doc/chew.
5580
3d9f042c
ILT
5581Mon Feb 26 14:48:39 1996 David Mosberger-Tang <davidm@AZStarNet.com>
5582
5583 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
5584 size even of sections with no contents.
5585
bdec6228
ILT
5586Mon Feb 26 14:01:13 1996 Ian Lance Taylor <ian@cygnus.com>
5587
88358469
ILT
5588 * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
5589 starting with '$' the way we skip names starting with '.'. When
5590 updating x_endndx, don't be fooled by an index which has been
5591 merged.
5592
bdec6228
ILT
5593 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
5594 struct/union/enum type with no elements.
5595
053ae1d7
ILT
5596Sat Feb 24 11:38:58 1996 Ian Lance Taylor <ian@cygnus.com>
5597
15f4406c
ILT
5598 * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
5599
c8435133
ILT
5600 * archive.c (bfd_generic_archive_p): If the first file in the
5601 archive can not be recognized as an object, don't assume that this
5602 is the wrong format.
5603
053ae1d7
ILT
5604 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
5605 format is not bfd_object.
5606 (bfd_elf_get_dt_soname): Likewise.
5607
ea74d979
ILT
5608Wed Feb 21 13:58:04 1996 Ian Lance Taylor <ian@cygnus.com>
5609
5610 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
5611 reloc.
5612
871a3f3b
C
5613Tue Feb 20 16:22:44 1996 J.T. Conklin <jtc@rtl.cygnus.com>
5614
5615 * bfd.c (tdata): Add netbsd_core_data.
5616 * bfd-in2.h: Regenerated.
5617
5618Tue Feb 20 16:50:02 1996 Ian Lance Taylor <ian@cygnus.com>
5619
fe6fc35f
ILT
5620 * sunos.c (SUNOS_CONSTRUCTOR): Define.
5621 (sunos_add_one_symbol): Don't let a symbol from a dynamic object
5622 override a constructor symbol. Set SUNOS_CONSTRUCTOR when
5623 appropriate.
5624
871a3f3b
C
5625 * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
5626 to get the symbol index, matching 14 Jul 95 change.
5627
d3785301
FF
5628Tue Feb 20 08:26:27 1996 Fred Fish <fnf@phydeaux.cygnus.com>
5629
5630 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
5631 Remove duplicate definition of gp.
5632
60a49e7f
ILT
5633Mon Feb 19 12:37:41 1996 Ian Lance Taylor <ian@cygnus.com>
5634
81bdcecf
ILT
5635 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
5636 assume that we can set the GP value and then get the same value,
5637 since it won't be true if the output file is neither ELF nor
5638 ECOFF.
5639 * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
5640 _bfd_get_gp_value here.
5641 (mips_gprel_reloc): Don't assume we can set and get the GP value.
5642 * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
5643 mips_elf_final_gp.
5644 (mips_elf_lo16_reloc): Likewise.
5645 (mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
5646 Don't require that the BFD be ELF.
5647 (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
5648 (mips_elf_gprel32_reloc): Likewise.
5649 (mips_elf_relocate_section): Don't assume we can set and get the
5650 GP value.
5651 (mips_elf_finish_dynamic_symbol): Don't bother to use
5652 _bfd_get_gp_value here.
5653
5654 * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
5655 Don't change epdr between malloc and free. Be careful not to free
5656 NULL pointers. Zero out the first RPDR.
5657
7b61165a
ILT
5658 * configure.host: On Linux, only pass -rpath option if $(libdir)
5659 is neither /lib nor /usr/lib. From Alan Modra
5660 <alan@mullet.Levels.UniSA.Edu.Au>.
5661
60a49e7f
ILT
5662 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
5663 dt_name.
5664 (elf_dt_name): Rename from elf_dt_needed_name.
5665 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
5666 elf_dt_needed_name.
5667 (bfd_elf_get_dt_soname): New function.
5668 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
5669 elf_dt_needed_name. Save the SONAME back in elf_dt_name.
5670 * bfd-in.h (bfd_elf_get_dt_soname): Declare.
5671 * bfd-in2.h: Rebuild.
5672
b268e261
DE
5673Mon Feb 19 02:50:23 1996 Doug Evans <dje@charmed.cygnus.com>
5674
5675 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
5676 _bfd_sparc_elf_reloc_type_lookup.
5677 (bfd_elf32_bfd_reloc_type_lookup): Update.
5678 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
5679 (sparc64_elf_howto_table): Define.
5680 (sparc_reloc_map): Define.
5681 (sparc64_elf_reloc_type_lookup): New function.
5682 (sparc_elf_wdisp16_reloc): New function.
5683 (elf_info_to_howto): Use sparc64_elf_howto_table.
5684 (sparc64_elf_relocate_section): Likewise.
5685 (bfd_elf64_bfd_reloc_type_lookup): Update.
5686
9e2ef098
ILT
5687Sun Feb 18 15:02:25 1996 Ian Lance Taylor <ian@cygnus.com>
5688
5689 * configure.host: Check for 'do not mix' from native linker before
5690 trying to use -rpath.
5691
4c70373f
ILT
5692Fri Feb 16 12:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
5693
cba3f8a9
ILT
5694 * bfd.c (_bfd_get_gp_value): New function.
5695 (_bfd_set_gp_value): New function.
5696 * libbfd-in.h (_bfd_get_gp_value): Declare.
5697 (_bfd_set_gp_value): Declare.
5698 * libbfd.h: Rebuild.
5699 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
5700 _bfd_get_gp_value and _bfd_set_gp_value rather than referring
5701 directly to the fields in the tdata information.
5702 (alpha_relocate_section): Likewise.
5703 * coff-mips.c (mips_adjust_reloc_in): Likewise.
5704 (mips_gprel_reloc): Likewise.
5705 (mips_relocate_section): Likewise.
5706 * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
5707 (mips_elf_lo16_reloc): Likewise.
5708 (mips_elf_final_gp): Likewise.
5709 (mips_elf_gprel16_reloc): Likewise.
5710 (mips_elf_gprel32_reloc): Likewise.
5711 (mips_elf_relocate_section): Likewise.
5712 (mips_elf_finish_dynamic_symbol): Likewise.
5713
4c70373f
ILT
5714 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
5715
a0a2dd54
ILT
5716Thu Feb 15 11:29:13 1996 Ian Lance Taylor <ian@cygnus.com>
5717
f54c7482 5718 * configure.in: Call AC_PROG_CC before configure.host.
65eed095
ILT
5719 * configure: Rebuild.
5720 * configure.host: Don't set information which autoconf should
5721 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
65eed095 5722
14293419
ILT
5723 * configure.host: Remove go32 and win32 host information, since it
5724 should no longer be needed.
5725
edf3fe48
ILT
5726 * elf.c (map_sections_to_segments): If we have a .dynamic section,
5727 then start a new segment rather than put a writable section in a
5728 readonly segment.
5729
b5e4f369
ILT
5730 * configure.host: Set RPATH_ENVVAR.
5731
f2e33e27
ILT
5732 * Makefile.in: Rebuild dependencies.
5733
a0a2dd54
ILT
5734 * elflink.c (_bfd_elf_create_linker_section): Remove unused
5735 zero_section variable.
5736
52c6bc4d
ILT
5737Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
5738
5739 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
5740 ($(srcdir)/libbfd.h): Rename from libbfd.h.
5741 ($(srcdir)/libcoff.h): Rename from libcoff.h.
5742
c9e5279f
ILT
5743Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
5744
cb50baea
ILT
5745 * ieee.c (ieee_write_expression): Only use an R variable for a
5746 local symbol. Don't output a zero offset. Handle a zero address.
5747 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
5748 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
5749 PCREL_OFFSET.
5750 (parse_expression): Don't try to handle multiple occurrences of a
5751 P variable. Handle I variables differently from X variables. Fix
5752 the order of minus expressions.
5753 (ieee_slurp_external_symbols): Generate an I variable for an NN
5754 record. Fix handling of ATI and ATX records.
5755 (ieee_slurp_sections): Only set minimal section attributes.
5756 Adjust them later, based on the section contents.
5757 (ieee_object_p): Read in the file until just after the ME record.
5758 Call ieee_slurp_section_data to set the section flags.
5759 (do_one): Add iterations parameter. Only repeat the first load
5760 item. Set the section and file reloc flags.
5761 (ieee_slurp_section_data): Set section flags. Pass iterations to
5762 do_one.
5763 (ieee_canonicalize_reloc): Handle I variables.
5764 (do_with_relocs): Only emit relocation size when necessary.
5765 Increase MAXRUN to 127. Change ov to be assigned, and take
5766 src_mask and pcrel_offset into account.
5767 (ieee_write_data_part): Skip sections that are not loaded.
5768 (ieee_write_external_part): Don't output optional last entry of WX
5769 records.
5770 (ieee_write_me_part): Make setting of me_record neater.
5771 (ieee_generic_stat_arch_elt): Get the size of an archive element.
5772
c9e5279f
ILT
5773 * syms.c (stt): Add entries for zerovars, vars, and code.
5774
5775 * elfcode.h (validate_reloc): New static function.
5776 (write_relocs): Call validate_reloc for non ELF relocs.
5777
5778 * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
5779 (TARGET_BIG_SYM): Use elf_symbol_leading_char.
5780 (TARGET_LITTLE_SYM): Likewise.
5781
5782 * config.bfd (m68*-*-psos*): New target.
5783
d9d65be6
ILT
5784Tue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu>
5785
5786 * i386msdos.c: Remove some #if 0 code.
5787 (msdos_write_object_contents): Don't include empty sections in the
5788 size computation, regardless of their address.
5789
5790Tue Feb 13 15:36:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5791
5792 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
5793 is NULL, ie, the -r switch is used.
5794
db5970c7
ILT
5795Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com>
5796
e9f03cd4
ILT
5797 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
5798 (BFD_RELOC_MIPS_GOT_LO16): Define.
b7384d22 5799 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
e9f03cd4
ILT
5800 * bfd-in2.h, libbfd.h: Rebuild.
5801 * elf32-mips.c (mips_reloc_map): Map new relocs.
5802
fe7c066a
ILT
5803 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
5804
1ab628e4
ILT
5805 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
5806 $(SHLINK).
5807
db5970c7
ILT
5808 * ieee.c (get_symbol): Set the section to bfd_abs_section.
5809 (do_with_relocs): If EXEC_P is set and there are no relocs, use a
5810 simple number for the section address, rather than an expression.
5811 Limit the number of bytes between relocs to MAXRUN.
5812 (ieee_write_me_part): Set me_record to the file offset after the
5813 start address.
5814 (ieee_write_processor): New static function.
5815 (ieee_write_object_contents): Use ieee_write_processor.
5816
318b7c18
ILT
5817Fri Feb 9 10:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
5818
db5970c7
ILT
5819 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
5820
5821 * coff-aux.c: Change include of aux.h to aux-coff.h.
318b7c18 5822
56b64690
ILT
5823Thu Feb 8 14:01:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5824
5825 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
5826 relocation put the addend both in the reloc entry and the data.
5827 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
5828 GOT offset value.
5829
5830 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
5831 a R_68K_PCxx reloc against a defined global symbol directly.
5832 (elf_m68k_check_relocs): Don't count such a reloc.
5833
5834 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
5835 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
5836 symbol for now, otherwise always record the symbol as dynamic.
5837 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
5838 is not referenced by a dynamic object, and we are not making a
5839 shared object, then don't make a PLT entry. If we do make a PLT
5840 entry, make sure the symbol has been recorded as dynamic.
5841
5d649ca8
ILT
5842Wed Feb 7 13:56:06 1996 Ian Lance Taylor <ian@cygnus.com>
5843
5844 * configure.host: When making a shared library, set HLDFLAGS to
5845 pass an appropriate -rpath option. Use the make variable SONAME
5846 as the shared library soname, rather than computing it here. On
5847 SunOS, build stamp-tshlink in place of $(SHLINK).
5848 * Makefile.in (SONAME): New variable.
5849 ($(SHLINK)): Make a link to the transformed name, as well.
5850 (stamp-tshlink): New target.
5851 (install): Skip stamp-tshlink during install.
5852
8cc98cd5
MM
5853Wed Feb 7 13:37:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5854
56b64690
ILT
5855 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
5856 linker sections have been set up yet.
5857
8cc98cd5
MM
5858 * elf.c (make_mapping): Add an additional argument to suppress
5859 making the first section include the program headers.
5860 (map_sections_to_segments): If the user used -Ttext such that the
5861 program headers are on a different page, do not set the flags
5862 saying that this section includes the program headers.
5863
fe16107d
C
5864Tue Feb 6 14:04:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
5865
5866 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
5867 don't define TRAD_HEADER.
5868 * configure: Rebuild.
5869
5870 * netbsd-core.c: New file, support for NetBSD core files.
5871 * hosts/*nbsd.h: Removed.
5872
f1783016
DE
5873Tue Feb 6 11:47:49 1996 Doug Evans <dje@charmed.cygnus.com>
5874
5875 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
5876 (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
5877 * libbfd.h, bfd-in2.h: Regenerated.
5878 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
5879 bfd_elf32_bfd_reloc_type_lookup.
5880 (reloc_type{,_names}): Deleted.
5881 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
5882 Add sparc64 relocs.
5883 (sparc_reloc_map): Add sparc64 relocs.
5884 (sparc_elf_notsupported_reloc): New static function.
5885 (sparc_elf_wdisp16_reloc): New static function.
5886 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
5887 (elf32_sparc_relocate_section): Likewise.
5888 (bfd_elf32_bfd_reloc_type_lookup): Define.
5889 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
5890 (reloc_type{,_names}): Deleted.
5891 (elf_sparc_howto_table): Deleted.
5892 (sparc_reloc_map): Deleted.
5893 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
5894 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
5895
48fd00b6
ILT
5896Tue Feb 6 12:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
5897
2300e217
ILT
5898 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
5899 *-*-hpux* host.
5900
48fd00b6
ILT
5901 * Makefile.in (program_transform_name): New variable.
5902 (install): Transform library name before installing it.
5903
8adca582
ILT
5904Mon Feb 5 10:38:27 1996 Ian Lance Taylor <ian@cygnus.com>
5905
cbe75cb6
ILT
5906 * archures.c (bfd_mach_i960_hx): Define.
5907 * bfd-in2.h: Rebuild.
5908 * cpu-i960.c (scan_960_mach): Accept machine "hx".
5909 (MATRIX): Expand entries for HX.
5910 (arch_info_struct): Add i960:hx entry.
5911 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
5912 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
5913 (coff_set_flags): Handle bfd_mach_i960_hx.
5914
44f795f7
ILT
5915 Support for building as a shared library, based on patches from
5916 Alan Modra <alan@spri.levels.unisa.edu.au>:
5917 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
5918 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
5919 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
5920 * configure: Rebuild.
5921 * configure.host: If --enable-shared, adjust shared library stuff
5922 based on the host. If the host is SunOS, and the linker supports
5923 -rpath, set HLDFLAGS to use it.
5924 * Makefile.in (ALLLIBS): New variable.
5925 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
5926 (COMMON_SHLIB, SHLINK): New variables.
5927 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
5928 (STAGESTUFF): Remove variable.
5929 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
5930 $(TARGETLIB).
5931 (stamp-ofiles): New target, like old ofiles target, but build
5932 using a temporary file and move-if-change, and touch stamp-ofiles
5933 when done.
5934 (ofiles): Just depend upon stamp-ofiles.
5935 (stamp-piclist, piclist): New targets.
5936 ($(SHLIB), $(SHLINK)): New targets.
5937 (targets.o, archures.o): Build twice if PICFLAG is set.
5938 (do_mostlyclean): Remove pic/*.o.
5939 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
5940 stamp-piclist.
5941 (do_distclean): Remove pic and stamp-picdir.
5942 (install): Install shared libraries.
5943 ($(OFILES)): Depend upon stamp-picdir.
5944 (stamp-picdir): New target.
5945
cb62d2bc
ILT
5946 * libcoff-in.h: Add comment reminding people that libcoff.h is a
5947 generated file.
5948 * libcoff.h: Rebuild.
5949
8adca582
ILT
5950 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
5951 flavour of a section with no owner.
5952
5953 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
5954 ELF_LINK_NON_ELF flag.
5955 (mips_elf_create_got_section): Likewise.
5956
5957 * elf.c: Revert last change, since it breaks dynamic linking.
5958 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
5959 field.
5960 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
5961 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
5962 (elfNN_bed): Don't initialize want_hdr_in_seg field.
5963
5964Sun Feb 4 20:45:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5965
5966 * elf.c (assign_file_positions_for_segments): If the backend does
5967 not want the elf header or the program headers in the address
5968 space, do not include them in the calculations.
5969
5970 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
5971 function to determine if we need additional program headers.
5972 (ppc_elf_modify_segment_map): Define as a NOP function for now.
5973 (ppc_elf_create_linker_section): .sdata2 is a read-only section.
5974
0f09ddd4
ILT
5975Sat Feb 3 23:00:03 1996 Ian Lance Taylor <ian@cygnus.com>
5976
5977 * coffcode.h: Move today's libcoff.h change into coffcode.h.
5978
b48f10ba
FF
5979Sat Feb 3 15:43:44 1996 Fred Fish <fnf@cygnus.com>
5980
0f09ddd4
ILT
5981 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
5982 back into one line. Some compilers (sunos 4.1.3 for example)
5983 won't accept args split across more than one line.
b48f10ba 5984
50761d3b
SC
5985Fri Feb 2 11:42:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
5986
5987 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
5988 * configure: Regenerate.
5989
9dce8260
JL
5990Fri Feb 2 12:12:16 1996 Jeffrey A Law (law@cygnus.com)
5991
5992 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
5993 try to do arithmetic on a void *, cast it to a unsigned char * first.
5994
6c55897c
ILT
5995Thu Feb 1 16:04:06 1996 Ian Lance Taylor <ian@cygnus.com>
5996
869b7d80
ILT
5997 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
5998 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
5999 ELF_LINK_NON_ELF.
6000 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
6001 flag for a newly defined symbol.
6002 (NAME(bfd_elf,record_link_assignment)): Likewise.
6003 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
6004 set the DEF or REF_REGULAR flags correctly.
6005
6f6956c6
ILT
6006 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
6007 (libbfd.h, libcoff.h): Corresponding change.
6008
6c55897c
ILT
6009 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
6010 a PLT32 reloc as dynamic.
6011 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
6012 is not referenced by a dynamic object, and we are not making a
6013 shared object, then don't make a PLT entry. If we do make a PLT
6014 entry, make sure the symbol has been recorded as dynamic.
6015
b06136f2
SC
6016Wed Jan 31 17:23:32 1996 Steve Chamberlain <sac@slash.cygnus.com>
6017
6018 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
6019 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
6020 (powerpcle-*-cygwin32): New.
6021 * peicode.h (add_data_entry): Get address from vma.
6022
5c867ecd
MM
6023Wed Jan 31 16:23:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6024
6025 * elflink.c (_bfd_elf_create_linker_section): If the symbol
6026 attached to the section has already been created as an undefined
6027 symbol, treat it as if it hasn't been created yet.
6028
28c16b55
ILT
6029Wed Jan 31 16:16:53 1996 Ian Lance Taylor <ian@cygnus.com>
6030
6031 * elflink.h (elf_bfd_final_link): Don't output initial dummy
6032 symbol or section symbols if stripping all symbols and this is not
6033 a relocateable link. Don't output the symbol string table if
6034 there are no symbols.
6035 (elf_link_flush_output_syms): Don't do anything if there are no
6036 symbols to flush.
6037
d19df9b5
ILT
6038Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
6039
6040 * coff-aux.c: New file.
6041 * hosts/m68kaux.h: New file.
6042 * config.bfd (m68*-apple-aux*): New target.
6043 * configure.in (m68*-apple-aux*): New native host.
6044 (m68kaux_coff_vec): New vector.
6045 * configure: Rebuild.
6046 * targets.c (m68kaux_coff_vec): Declare.
6047 * coffcode.h (bfd_coff_backend_data): Add field
6048 _bfd_coff_link_add_one_symbol.
6049 (bfd_coff_link_add_one_symbol): Define.
6050 (compare_arelent_ptr): New static function if TARG_AUX.
6051 (coff_write_relocs): If TARG_AUX, sort the relocs.
6052 (coff_write_object_contents): Set A/UX aouthdr magic number.
6053 (coff_link_add_one_symbol): Define if not defined.
6054 (bfd_coff_std_swap_table): Initialize new field.
6055 * libcoff.h: Rebuild.
6056 * cofflink.c (coff_link_add_symbols): Call
6057 bfd_coff_link_add_one_symbol rather than
6058 _bfd_generic_link_add_one_symbol.
6059 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
6060 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
6061 * coff-mips.c (mips_ecoff_backend_data): Likewise.
6062 * Makefile.in: Rebuild dependencies.
6063 (BFD32_BACKENDS): Add coff-aux.o.
6064 (BFD32_BACKENDS_CFILES): Add coff-aux.c.
6065
a796aafd
ILT
6066Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6067
6068 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
6069 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
6070
a8763553
ILT
6071Tue Jan 30 12:09:04 1996 Ian Lance Taylor <ian@cygnus.com>
6072
66761e59
ILT
6073 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
6074 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
6075 (maintainer-clean): Warn about deleting special files.
6076 (bfd-in2.h, libbfd.h, libcoff.h): New targets.
6077
cf5138e3
ILT
6078 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
6079 warning symbols correctly.
6080 * elf32-i386.c (elf_i386_relocate_section): Likewise.
6081 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6082 * elf32-mips.c (mips_elf_relocate_section): Likewise.
6083 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6084 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6085 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6086
a8763553
ILT
6087 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
6088 warnings.
6089
bdd2e7f1
KK
6090Mon Jan 29 14:27:24 1996 Kim Knuttila <krk@cygnus.com>
6091
cf2cd4cf 6092 * libcoff-in.h: aligned newly exported names with bfd naming
bdd2e7f1
KK
6093 conventions. Removed an erroneous define of POWERPC_LE_PE.
6094 * libcoff.h: Rebuild.
6095 * cofflink.c, coff-ppc.c: the above function name changes
6096
d2bb6c79
ILT
6097Mon Jan 29 13:06:28 1996 Ian Lance Taylor <ian@cygnus.com>
6098
eb5bc1f3
ILT
6099 From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
6100 * ecoff.c (struct extsym_info): Define.
6101 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
6102 to ecoff_link_write_external.
6103 (ecoff_link_write_external): Accept a struct extsym_info pointer.
6104 Strip symbols when appropriate.
6105
052b35d2
ILT
6106 Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
6107 * syms.c (BSF_OBJECT): Define.
6108 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
6109 * bfd-in2.h: Rebuild.
6110 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
6111 STT_OBJECT symbol.
6112 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
6113 is set.
6114
53787b23
ILT
6115 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
6116 copying relocs into a shared object, treat a defined global symbol
6117 as a local symbol.
6118 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6119 * elf32-mips.c (mips_elf_relocate_section): Likewise.
6120 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6121
d2bb6c79
ILT
6122 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
6123 real defined symbol, not to a weak defined symbol.
6124
13d1a4dd
KK
6125Mon Jan 29 11:34:36 1996 Kim Knuttila <krk@cygnus.com>
6126
6127 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
6128 and made a few static functions externs.
6129
6130 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
6131 POWERPC_LE_PE hack in cofflink.
6132
6133 * libcoff-in.h: promoted the following from cofflink.c to allow
6134 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
cf2cd4cf 6135 coff_debug_merge_element, struct coff_debug_merge_type,
13d1a4dd
KK
6136 coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
6137 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
cf2cd4cf 6138 coff_debug_merge_hash_lookup, coff_link_section_info,
13d1a4dd
KK
6139 coff_final_link_info, coff_debug_merge_hash_newfunc,
6140 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
6141
6142 * libcoff.h: re-gen'd
6143
86aac8ea
ILT
6144Fri Jan 26 18:33:35 1996 Ian Lance Taylor <ian@cygnus.com>
6145
6146 * syms.c: Include "bfdlink.h".
6147 (struct stab_find_info): Define.
6148 (_bfd_stab_section_find_nearest_line): New function.
6149 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
6150 * libbfd.h: Rebuild.
6151 * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
6152 * elf.c (_bfd_elf_find_nearest_line): Try calling
6153 _bfd_stab_section_find_nearest_line before searching the ELF
6154 symbol table. Find the closest STT_FUNC symbol, not the last one.
6155 * libcoff-in.h (coff_data_type): Add line_info field.
bdd2e7f1 6156 * libcoff.h: Rebuild.
86aac8ea
ILT
6157 * coffgen.c (coff_find_nearest_line): Try calling
6158 _bfd_stab_section_find_nearest_line before searching the COFF
6159 symbol table.
6160 * Makefile.in: Rebuild dependencies.
6161
6162Fri Jan 26 16:11:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6163
6164 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
6165 4 bytes, so we get the correct value when updating the register
6166 field in little endian mode.
6167
43d36aad
ILT
6168Thu Jan 25 12:14:16 1996 Ian Lance Taylor <ian@cygnus.com>
6169
f0a97077
ILT
6170 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
6171 entry_section fields. Add sntoc and snentry fields.
6172 * libcoff.h: Rebuild.
6173 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
6174 not toc_section and entry_section (the COFF file does not have any
6175 sections at this point).
6176 (coff_write_object_contents): Set o_snentry and o_sntoc from
6177 snentry and sntoc rather than entry_section and toc_section.
6178 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
6179 snentry, not toc_section and entry_section.
6180 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
6181 entry_section from hentry.
6182 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
ea2504d5 6183 set snenty.
f0a97077
ILT
6184 (xcoff_link_input_bfd): Set sntoc, not toc_section.
6185 (xcoff_write_global_symbol): Get toc_section from sntoc, rather
6186 than using toc_section directly.
6187
9b4598d0
ILT
6188 * archures.c: Add missing `.' in enum bfd_architecture.
6189 * bfd-in2.h: Rebuild.
6190
43d36aad
ILT
6191 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
6192 Robert Lipe <robertl@arnet.com>.
6193
eb82bc60
MM
6194Thu Jan 25 12:08:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6195
6196 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
6197 to sections we allocate. Use bfd_zalloc to allocate initialial
6198 sections, not bfd_alloc.
6199 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
6200 SDA{,2}I16 relocations.
6201 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
6202 whether to put something in .sbss or not.
6203 (ppc_elf_relocate_section): Add support for more relocations. Add
c1e65e24
MM
6204 in sec->output_offset where appropriate. Make error messages
6205 include the symbol name.
eb82bc60
MM
6206
6207 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
6208 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
6209 doesn't get redefined messages if -shared.
6210
6211 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
6212 section if the rel_section field has been set up.
6213
9d621c7d
MM
6214Wed Jan 24 20:40:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6215
6216 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
6217 relocations.
6218
75c9ddc9
DE
6219Wed Jan 24 10:38:34 1996 Doug Evans <dje@charmed.cygnus.com>
6220
6221 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
6222 of flags, only flags used are controlled by mach number. Bump up
6223 output file mach number to highest of input file mach numbers.
6224 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
6225 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
6226
72c513bc
DE
6227 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
6228 bfd_elf64_sparc_vec support.
6229
3cbe19d2
MM
6230Tue Jan 23 14:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6231
6232 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
6233 the embedded bit is set on some objects and not on others. Just
6234 or it together.
d8fd85ad
MM
6235 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
6236 relocations.
3cbe19d2 6237
5eb83ede
ILT
6238Tue Jan 23 14:22:45 1996 Ian Lance Taylor <ian@cygnus.com>
6239
4a3d3b42
ILT
6240 * coffcode.h (coff_new_section_hook): Don't try to align the
6241 .stabstr section.
6242
5eb83ede
ILT
6243 * coffcode.h (coff_set_section_contents): Fix the handling of the
6244 .lib section to work even if the entire section contents are
6245 written at once. From Gvran Uddeborg <gvran@uddeborg.pp.se> and
6246 Robert Lipe <robertl@arnet.com>.
6247
05f927dd
MM
6248Mon Jan 22 18:45:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6249
6250 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
6251 memory here for contents.
6252
6253 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
6254 _SDA2_BASE_ by 32768.
6255 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
6256 started using. Allocate contents for .sdata and .sdata2 sections
6257 also.
6258 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
6259 rather than _name.
6260 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
6261 size _SDA{,2}_BASE_.
6262 (ppc_elf_relocate_section): Change how sdata{,2} relocations are
6263 done.
6264
5bc513b4
DE
6265Mon Jan 22 08:52:04 1996 Doug Evans <dje@charmed.cygnus.com>
6266
5a5bac64
DE
6267 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
6268
5bc513b4 6269 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
5bc513b4 6270 (bfd_mach_sparc_{v8plus,v8plusa}): Define.
5bc513b4 6271 (bfd_mach_sparc_v9a): Define.
049f3d4c 6272 (bfd_mach_sparc_v9_p): Define.
5bc513b4
DE
6273 * bfd-in2.h: Regenerated.
6274 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
6275 bfd_mach_sparc_v9.
d3366d23 6276 * elf64-sparc.c (sparc64_elf_object_p): Likewise.
5bc513b4
DE
6277 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
6278 to bfd_elf32_sparc_vec.
6279 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
5bc513b4 6280 Add v8plus{,a} support.
5bc513b4 6281 Add v9a support.
768b8ade 6282 (sparc_compatible): New function.
5bc513b4 6283 * elf32-sparc.h: #include "elf/sparc.h".
75c9ddc9 6284 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
5bc513b4 6285 elf32_sparc_final_write_processing): New functions.
75c9ddc9 6286 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
5bc513b4 6287 elf_backend_final_write_processing): Define.
5bc513b4 6288
3b3753b8
MM
6289Mon Jan 22 11:21:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6290
6291 * elf-bfd.h (struct elf_link_hash_entry): Add
6292 linker_section_pointer field.
6293 (enum elf_linker_section_enum): Enumeration for new way of
6294 creating linker dynamic sections and symbols.
6295 (elf_linker_section{,_pointers}): New structures for creating
6296 dynamic sections and symbols.
6297 (elf_obj_tdata): Add linker_section_pointers and linker_section
6298 fields.
6299 (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
6300 (_bfd_elf_create_linker_section): New declarations.
6301 (_bfd_elf_find_pointer_linker_section): Ditto.
6302 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
6303 (_bfd_elf_make_linker_section_rela): Ditto.
6304
6305 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
6306
6307 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
6308 (ppc_elf_create_linker_section): New function to create the
6309 sections .got, .sdata, and .sdata2.
6310 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
6311 needed.
6312 (ppc_elf_check_relocs): Support more of the eabi relocations.
6313 (ppc_elf_relocate_section): Ditto.
6314 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
6315 if the .sdata{,2} + .sbss{,2} section size is > 32k.
6316
6317 * elflink.h (elf_create_pointer_linker_section): New function to
6318 create initialized pointers in dynamic linker sections.
6319 (elf_finish_pointer_linker_section): Actually intialize the
6320 pointers created above.
6321
6322 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
6323 macros to provide both 32 and 64 bit versions of
6324 elf_create_pointer_linker_section.
6325 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
6326 provide both 32 and 64 bit versions of
6327 elf_finish_pointer_linker_section.
6328
6329 * elflink.c (_bfd_elf_create_linker_section): New function to
6330 create a linker section.
6331 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
6332 given address in the linker pointer offsets created for a given
6333 symbol.
6334 (_bfd_elf_make_linker_section_rela): Make a RELA section
6335 corresponding to the generated linker section.
6336
6b3eb07e
DE
6337Sat Jan 20 08:36:10 1996 Doug Evans <dje@canuck.cygnus.com>
6338
6339 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
6340
e7894f6b
KK
6341Thu Jan 18 18:25:34 1996 Kim Knuttila <krk@cygnus.com>
6342
6343 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
6344 (coff_ppc_relocate_section): Handle special values for gcc built dlls.
6345 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
6346 Also begin the toc at 4 as an eye catcher ('31313131' marks the first
6347 toc entry in an objdump) for now.
cf2cd4cf 6348 (ppc_do_last, ppc_get_last): New function - needed to save processing
e7894f6b 6349 the toc owner to the end.
cf2cd4cf 6350 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
e7894f6b
KK
6351 toc owner last.
6352
cf2cd4cf
UD
6353 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
6354 toc owner from being done till last. Must define POWERPC_LE_PC
e7894f6b
KK
6355 to enable it.
6356
6357 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
6358
6359 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
6360 to INFO.
6361 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
6362 SizeOfImage for PowerPC. Ignore the size of the .junk section.
6363
80b99ca0
ILT
6364Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
6365
6366 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
6367
df96df4c
ILT
6368Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
6369
6370 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
6371 back to first.
6372 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
6373
d49ddb85
ILT
6374Tue Jan 16 15:10:49 1996 Ian Lance Taylor <ian@cygnus.com>
6375
6376 * elf.c (assign_file_positions_for_segments): Don't increment file
6377 offset for a segment which contains no loadable sections.
6378
4500a112
MM
6379Mon Jan 15 17:46:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6380
6381 * reloc.c: Add new PowerPC relocations.
6382 * {bfd-in2,libbfd}.h: Regenerate.
6383
6384 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
6385 (ppc_elf_reloc_type_lookup): Lookup new relocations.
6386
252239f8
ILT
6387Mon Jan 15 14:29:44 1996 Ian Lance Taylor <ian@cygnus.com>
6388
20ab764e
ILT
6389 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
6390 entries.
6391
0a4ffa2d
ILT
6392 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
6393 info->shared.
6394
45ca3195
ILT
6395 * coffgen.c (coff_find_nearest_line): Don't try to cache
6396 information in sections that are not owned by a BFD. From Richard
6397 Henderson <richard@atheist.tamu.edu>.
6398
252239f8
ILT
6399 * elf32-mips.c: Numerous changes to dynamic linking code, mostly
6400 from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
6401 * elflink.h (elf_link_output_extsym): Remove special check for
6402 _rld_new_interface.
6403
6404 * ecoffswap.h: Add prototypes for static functions.
6405
bd2d10c0
MM
6406Sun Jan 14 21:36:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6407
6408 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
6409 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
6410 references.
6411 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
6412 to satisfy a TOC16 relocation. Rewrite unsupported relocation
6413 support. Begin support for R_PPC_SDA{2,}REL.
6414
1c3a295b
MM
6415Sat Jan 13 09:36:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6416
6417 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
6418 create the .got and .got.neg sections.
6419 (ppc_elf_size_dynamic_sections): Call it.
6420 (ppc_elf_check_relocs): Call it.
6421 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
6422 (ppc_elf_check_relocs): Add error messages for relocations we
6423 don't yet support. Do not include R_PPC_SDAREL16 like a GOT
6424 relocation.
6425
57081126
MM
6426Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6427
6428 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
6429 section flags for V.4 and eabi.
6430
3c38b3df
ILT
6431Fri Jan 12 13:59:16 1996 Ian Lance Taylor <ian@cygnus.com>
6432
14899eb7
ILT
6433 * elf.c (assign_file_positions_for_segments): If a segment
6434 contains no sections, don't mark it as readable.
6435
98bb57ad
ILT
6436 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
6437 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
6438
02fcd126
ILT
6439 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
6440 dynamic section, if there is one.
6441 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
6442 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
6443 (bfd_elf64_swap_dyn_in): Likewise.
6444 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
6445 PTR.
6446 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
6447
3c38b3df
ILT
6448 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
6449 DT_TEXTREL entry because of .rel.plt. From Martin Pirker
6450 <pirker@eiunix.tuwien.ac.at>.
6451
83f4323e
MM
6452Thu Jan 11 17:06:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6453
6454 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
6455 PowerPC V.4 and eabi.
6456 * bfd-in2.h: Regenerate.
6457 * libfd.h: Regenerate.
6458
6459 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
6460
6461 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
6462 section type and SHF_EXCLUDE section flag, turning them into the
6463 appropriate bfd section flag.
6464
a0271667
ILT
6465Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
6466
c9746fb6
ILT
6467 * xcofflink.c (xcoff_link_add_symbols): Create the special
6468 sections if we see a DYNAMIC object, in case that is the only
6469 XCOFF input object we see.
cf2cd4cf 6470
5b3b9ff6
ILT
6471 * elf32-mips.c: Extensive changes for a start at dynamic linking
6472 support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
6473
6474 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
6475 (struct elf_backend_data): Remove
6476 elf_backend_create_program_headers field. Add
6477 elf_backend_additional_program_headers and
6478 elf_backend_modify_segment_map fields.
6479 * elfxx-target.h (elf_backend_type_change_ok): Define if not
6480 defined.
6481 (elf_backend_additional_program_headers): Likewise.
6482 (elf_backend_modify_segment_map): Likewise.
6483 (elf_backend_create_program_headers): Don't define.
6484 (elfNN_bed): Change to account for field changes.
6485 * elf.c (assign_file_positions_for_segments): Call new
6486 modify_segment_map backend function. Don't call old
6487 create_program_headers backend function.
6488 (get_program_header_size): Call additional_program_headers rather
6489 than create_program_headers.
6490 * elflink.h (elf_link_add_object_symbols): Initialize
6491 type_change_ok from new backend field.
6492 (elf_link_output_extsym): Don't warn if _rld_new_interface is
6493 defined.
6494 (elf_reloc_link_order): Treat a reloc against a defined symbol as
6495 a reloc against the appropriate section.
6496
761f377f
ILT
6497 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
6498 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
6499 (elf_flags_init): Rename from elf_ppc_flags_init.
6500 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
6501 elf_ppc_flags_init.
6502 (ppc_elf_copy_private_bfd_data): Likewise.
6503 (ppc_elf_merge_private_bfd_data): Likewise.
6504
a0271667
ILT
6505 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
6506 relocation entries.
6507
64d5f5d0
ILT
6508Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
6509
6510 * coff-alpha.c (alpha_relocate_section): During final link, allow
6511 output .lita section to be bigger than 64k by adjusting gp value
6512 on a per-input section basis.
6513 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
6514 field.
6515 (struct ecoff_section_tdata): Add gp field.
6516
c40d9c77
ILT
6517Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com>
6518
64d5f5d0
ILT
6519 Handle Alpha ECOFF changes in OSF/1 3.2.
6520 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
6521 field.
6522 * coff-alpha.c: Include "aout/ar.h".
6523 (alpha_ecoff_get_relocated_section_contents): Don't require an
6524 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
6525 3.2 doesn't generate one.
6526 (alpha_relocate_section): Likewise.
6527 (alpha_ecoff_slurp_armap): Define.
6528 (alpha_ecoff_slurp_extended_name_table): Define.
6529 (alpha_ecoff_construct_extended_name_table): Define.
6530 (alpha_ecoff_truncate_arname): Define.
6531 (alpha_ecoff_write_armap): Define.
6532 (alpha_ecoff_generic_stat_arch_elt): Define.
6533 (alpha_ecoff_update_armap_timestamp): Define.
6534 (ARFZMAG): Define.
6535 (alpha_ecoff_read_ar_hdr): New static function.
6536 (alpha_ecoff_get_elt_at_filepos): New static function.
6537 (alpha_ecoff_openr_next_archived_file): New static function.
6538 (alpha_ecoff_get_elt_at_index): New static function.
6539 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
6540 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
6541 _bfd_ecoff to alpha_ecoff.
6542 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
6543 field from backend structure, rather than always calling
6544 _bfd_get_elt_at_filepos.
6545 * coff-mips.c (mips_ecoff_backend_data): Initialize
6546 get_elt_at_filepos field.
6547 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
6548 from _bfd_generic_read_ar_hdr with minor changes.
6549 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
6550 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
6551 * libbfd.h: Rebuild.
6552
6553 * bfd-in.h (BFD_IN_MEMORY): Define.
6554 * libbfd-in.h (struct bfd_in_memory): Define.
6555 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
6556 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
6557 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
6558 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
6559 * bfd.c (struct _bfd): Change iostream field from char * to PTR.
6560 (bfd_get_size): Handle BFD_IN_MEMORY flag.
6561 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
6562 (bfd_open_file): Cast to PTR, not char *, when setting iostream.
6563 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
6564 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
6565 iostream.
6566 (bfd_openstreamr): Likewise.
6567 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
6568 BFD_IN_MEMORY is not set.
6569 * riscix.c (riscix_some_aout_object_p): Likewise.
6570 * bfd-in2.h, libbfd.h: Rebuild.
6571
6572 * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
6573 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
6574 (bfd_get_elt_at_index): Define.
6575 * archive.c (_bfd_generic_get_elt_at_index): Rename from
6576 bfd_get_elt_at_index. Change index parameter from int to
6577 symindex.
6578 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
6579 (_bfd_noarchive_get_elt_at_index): Define.
6580 (_bfd_archive_bsd_get_elt_at_index): Define.
6581 (_bfd_archive_coff_get_elt_at_index): Define.
6582 * bfd-in2.h, libbfd.h: Rebuild.
6583 * aout-target.h (MY_get_elt_at_index): Define if not defined.
6584 * coff-rs6000.c (xcoff_get_elt_at_index): Define.
6585 * ieee.c (ieee_get_elt_at_index): Define.
6586 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
6587 * oasys.c (oasys_get_elt_at_index): Define.
6588 * som.c (som_get_elt_at_index): Define.
6589
c40d9c77
ILT
6590 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
6591 numbers to the .text section.
6592
efa77952
ILT
6593Mon Jan 8 17:00:57 1996 Ian Lance Taylor <ian@cygnus.com>
6594
6595 * ieee.c (ieee_write_debug_part): Change return type to boolean.
6596 If there is a SEC_DEBUGGING section, get the contents of the debug
6597 information part from it.
6598 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
6599 section in memory.
6600 (ieee_write_object_contents): Check ieee_write_debug_part return.
6601
767f22d5
FF
6602Thu Jan 4 17:12:37 1996 Fred Fish <fnf@cygnus.com>
6603
6604 * config.bfd (i[345]86-*-freebsd*): Add target.
6605 * configure.in (i386freebsd_vec): Add vec.
6606 * configure: Regenerate.
6607 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
6608 (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
6609 Rebuild dependencies..
6610 * freebsd.h: New file.
6611 * i386freebsd.c: New file.
6612 * targets.c (i386freebsd_vec): Declare.
6613 (bfd_target_vector): Add i386freebsd_vec.
6614 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
6615 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
cf2cd4cf 6616
f8254a3c
ILT
6617Thu Jan 4 16:27:46 1996 Ian Lance Taylor <ian@cygnus.com>
6618
6619 * ieee.c (ieee_slurp_debug): New static function.
6620 (ieee_object_p): Call it.
6621 (ieee_slurp_section_data): Skip debugging sections.
6622 (ieee_get_reloc_upper_bound): Likewise.
6623 (ieee_get_section_contents): Likewise.
6624 (ieee_canonicalize_reloc): Likewise.
6625 (ieee_write_section_part): Likewise.
6626 (ieee_write_debug_part): Likewise.
6627 (ieee_write_data_part): Likewise.
6628 (init_for_output): Likewise.
6629
07a159db
MM
6630Wed Jan 3 19:42:47 1996 Michael Meissner <meissner@wogglebug.tiac.net>
6631
6632 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
6633 work.
6634 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
6635 relocs, since ppc_elf_relocate_section handles the linker case.
6636 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
6637 used.
6638 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
6639 ppc_elf_relocate_section since that is now the only caller.
6640 (ppc_elf_relocate_section): Ditto.
6641
d812945a
ILT
6642Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
6643
6644 * coffcode.h (coff_write_object_contents): If we don't know the
6645 section of the entry point for an XCOFF executable, always set the
6646 entry address to -1.
6647
3a56d0b4
MM
6648Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6649
6650 * elf.c (bfd_section_from_shdr): Add support for note sections.
6651
c4406e50
ILT
6652Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
6653
d812945a
ILT
6654 * bfd-in.h (struct _symbol_info): Add stab_type field.
6655 * bfd-in2.h: Rebuild.
6656 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
6657
c4406e50
ILT
6658 * elf32-ppc.c: Remove trailing newline from calls to
6659 _bfd_error_handler.
6660 (ppc_elf_merge_private_bfd_data): Only warn about endianness
6661 difference if target endianness is known.
6662
08556813
MM
6663Thu Dec 21 12:43:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6664
6665 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
6666 old style TOC16 references without using R_PPC_GOT.
6667 (ppc_reloc_type): Ditto.
6668 (ppc_elf_reloc_type_lookup): Add support for TOC16.
6669 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
6670 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
6671 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
6672 (ppc_elf_check_relocs): New function for GOT/PLT support that is
6673 work in progress.
6674 (ppc_elf_adjust_dynamic_symbol): Ditto.
6675 (ppc_elf_adjust_dynindx): Ditto.
6676 (ppc_elf_size_dynamic_sections): Ditto.
6677 (ppc_elf_finish_dynamic_symbol): Ditto.
6678 (ppc_elf_finish_dynamic_sections): Ditto.
6679 (ELF_DYNAMIC_INTERPRETER): Define.
6680
86587dd4
KR
6681Wed Dec 20 19:14:18 1995 Ken Raeburn <raeburn@cygnus.com>
6682
6683 * elf.c (copy_private_bfd_data): When attaching sections to
6684 segments ignore sections that won't be allocated. Patch from
6685 Andreas Schwab.
6686
bf7f243f
KR
6687Tue Dec 19 20:01:43 1995 Ken Raeburn <raeburn@cygnus.com>
6688
6689 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
6690 anything else.
6691
d9518e2e
ILT
6692Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com>
6693
6694 * coff-i960.c (CALC_ADDEND): Define.
6695 (coff_i960_relocate_section): Add the input section VMA to the
6696 addend for PC relative relocs.
6697
6698Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com>
6699
6700 * peicode.h (pe_print_pdata): Must test the entire entry for zero
6701 to correctly terminate.
6702
010a405a
ILT
6703Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com>
6704
dc092b6b
ILT
6705 * targets.c (enum bfd_endian): Define.
6706 (bfd_target): Rename byteorder_big_p to byteorder, and change it
6707 from boolean to enum bfd_endian. Change header_byteorder_big_p
6708 correspondingly.
6709 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
6710 (bfd_header_big_endian, bfd_header_little_endian): New macros.
6711 * bfd-in2.h: Rebuild.
6712 * All targets: Change initialization of byteorder and
6713 header_byteorder to use enum bfd_endian values rather than
6714 booleans.
6715 * All files: Change all references to byteorder_big_p and
6716 header_byteorder_big_p to use new bfd_*_endian macros.
6717
010a405a
ILT
6718 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
6719 s_vaddr.
6720 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
6721 vma.
6722 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
6723
fcb43906
SC
6724Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com>
6725
6726 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
6727
0d709d31
ILT
6728Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com>
6729
14578105
ILT
6730 * ieee.c: Lots of minor cleanups. Make many functions return
6731 errors rather than calling abort. Also:
6732 (ieee_write_twobyte): Remove; change callers to call existing
6733 ieee_write_2bytes function.
6734 (ieee_write_expression): Don't output the section twice when
6735 outputting a local symbol. Don't emit an extraneous zero if there
6736 is only one term.
6737 (ieee_slurp_sections): Set the lma as well as the vma.
6738 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
6739
0d709d31
ILT
6740 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
6741 a recognized one or bfd_arch_unknown.
6742 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
6743 to succeed.
6744 (ihex_get_symtab): Likewise.
6745
14dc2f77
ILT
6746Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com>
6747
6748 * aoutx.h: Include <ctype.h>.
6749 (struct aout_link_includes_table): Define.
6750 (struct aout_link_includes_totals): Define.
6751 (struct aout_link_includes_entry): Define.
6752 (aout_link_includes_lookup): Define macro.
6753 (struct aout_final_link_info): Add includes field.
6754 (aout_link_includes_newfunc): New static function.
6755 (NAME(aout,final_link)): Initialize includes hash table.
6756 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
6757
480ccad5
SS
6758Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com>
6759
6760 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
6761
3920d9c9
KK
6762Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com>
6763
6764 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
6765
207345f2
KK
6766Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com>
6767
6768 * peicode.h (pe_print_reloc): New function to dump the .reloc section.
6769 (pe_print_private_bfd_data): call pe_print_reloc.
6770 * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
6771 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
6772 up some debugging as well.
6773
273c019e
ILT
6774Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com>
6775
6776 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
6777 <rfg@monkeys.com>.
6778
010d9f2d
ILT
6779Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com>
6780
6781 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
6782 when setting sections to NULL.
6783
4a4a66bd
ILT
6784Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com>
6785
6786 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
6787 field.
6788 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
6789 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
6790 for all symbols.
6791 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
6792 * bfd-in2.h: Rebuild.
6793
545bf026
KK
6794Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com>
6795
6796 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
6797
1f4ae0d6
ILT
6798Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com>
6799
55cac920
ILT
6800 * ihex.c (ihex_scan): Handle record types 4 and 5.
6801 (ihex_object_p): Permit types 4 and 5.
6802 (ihex_set_section_contents): Remove check for out of range
6803 addresses.
6804 (ihex_write_object_contents): Generate types 4 and 5.
6805
1f4ae0d6
ILT
6806 * elflink.h (elf_link_output_extsym): Just ignore warning and
6807 indirect references to symbols which don't really exist.
6808
53d45489
KK
6809Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com>
6810
6811 * peicode.h (pe_print_idata): Minor format fixes
6812 (pe_print_edata): New function. Under private printing, this formats
6813 the edata section of a PE file.
6814 (pe_print_private_bfd_data): Added call to pe_print_edata.
6815
361e8876
DE
6816Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
6817
6818 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
6819 index, don't call stoi.
6820
58142f10
ILT
6821Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com>
6822
ffd15489
ILT
6823 * srec.c (srec_scan): Set lma as well as vma.
6824
6825 * ihex.c: New file; support for Intel Hex format.
6826 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
6827 (ihex_vec): Declare.
6828 (bfd_target_vector): Always include ihex_vec.
6829 * bfd.c (struct _bfd): Add ihex_data field to tdata union.
6830 * Makefile.in: Rebuild dependencies.
6831 (BFD_LIBS): Add ihex.o
6832 (BFD_LIBS_CFILES): Add ihex.c.
6833 * bfd-in2.h: Rebuild.
6834
ae0a6bea
ILT
6835 * elf.c (assign_file_positions_for_segments): Sort the sections in
6836 each segment.
6837 (get_program_header_size): Return the right size if segment_map is
6838 not NULL.
6839 (copy_private_bfd_data): Don't bother to sort the sections.
6840
6841 * bfd.c (bfd_record_phdr): New function.
6842 * bfd-in.h (bfd_record_phdr): Declare.
6843 * bfd_in2.h: Rebuild.
6844
ce0ee4bf
ILT
6845 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
6846 BFD_ASSERT.
6847
58142f10
ILT
6848 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
6849 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
6850 bfd_size_type.
6851 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
6852 (bfd_zmalloc): Change declaration.
6853 * libbfd.h: Rebuild.
6854 * Many files: Use bfd_malloc and bfd_realloc rather than malloc
6855 and realloc. Don't set bfd_error_no_memory if they fail.
6856
59066248
KK
6857Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com>
6858
6859 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
cf2cd4cf 6860 uses as well. Added a new howto to deal with TOCREL16 relocs that
59066248
KK
6861 are TOCDEFN as well.
6862 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
6863 to handle RVA relocs from dlltool.
6864 (ppc_coff_rtype2howto): TOCDEFN reloc addition.
6865 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
6866 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
6867
cf2cd4cf 6868 * coffcode.h (coff_set_alignment_hook): check idata$X sections
59066248
KK
6869 to get the right section alignment.
6870
6933148a
ILT
6871Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com>
6872
6873 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
6874 p_paddr if p_paddr is zero.
6875 (make_mapping): Set includes_filehdr and includes_phdrs for first
6876 PT_LOAD segment.
6877 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
6878 segment.
6879 (assign_file_positions_for_segments): Handle includes_filehdr and
6880 includes_phdrs. Remove special handling of PT_PHDR and first
6881 PT_LOAD segments.
6882 (copy_private_bfd_data): Set includes_filehdr and includes_phdr
6883 when appropriate. Remove special handling of PT_PHDR segment.
6884 Use a more complex condition for when a section is included in a
6885 segment to handle Solaris linker oddities.
6886
f62fed1c
ILT
6887Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
6888
6889 * coff-m88k.c (howto_table): Reformatted for easier reading;
6890 special_function now points to new function m88k_special_reloc.
6891 (howto_hvrt16): Function previously used for handling HVRT16 relocs
6892 removed.
6893 (rtype2howto): Do not add reloc's r_offset to the addend, this will
6894 be done correctly by m88k_special_reloc.
6895 (reloc_processing): New function to be used by RELOC_PROCESSING.
6896 (RELOC_PROCESSING): Define to call reloc_processing.
6897
64ecde46
ILT
6898Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com>
6899
b00c57ec
ILT
6900 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
6901 (pe_print_pdata): Likewise.
6902
a9713b91
ILT
6903 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
6904 obstack_alloc fails.
6905 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
6906 fails.
6907 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
6908 * Many files: don't set bfd_error_no_memory if one of the above
6909 routines fails.
6910
3dbf33ee
ILT
6911 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
6912 if p_paddr_valid is set.
6913 (copy_private_bfd_data): New static function.
6914 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
6915
44ef8897
ILT
6916 * elf.c (assign_file_positions_for_segments): Fix case where extra
6917 program headers were allocated.
6918
27fb8f29
ILT
6919 * elf.c (_bfd_elf_print_private_bfd_data): New function.
6920 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
6921 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
6922 _bfd_elf_print_private_bfd_data.
6923
64ecde46
ILT
6924 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
6925 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
6926 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
6927 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
6928 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
6929 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
6930 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
6931
fd0198f0
ILT
6932Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com>
6933
6934 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
6935 * elf.c (make_mapping): New static function.
6936 (map_sections_to_segments): New static function.
6937 (elf_sort_sections): New static function.
6938 (assign_file_positions_for_segments): New static function.
6939 (map_program_segments): Remove.
6940 (get_program_header_size): Remove sorted_hdrs, count, and
6941 maxpagesize parameters. Simplify.
6942 (assign_file_positions_except_relocs): When generating an
6943 executable, use assign_file_positions_for_segments.
6944 (elf_sort_hdrs): Remove.
6945 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
6946 to get_program_header_size.
6947
3b3f7625
ILT
6948Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com>
6949
1ff0461b
ILT
6950 * hp300hpux.c (MY(callback)): Set lma as well as vma.
6951
80c8485c
ILT
6952 * configure, config.in: Regenerate with autoconf 2.7.
6953
3b3f7625
ILT
6954 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
6955 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
6956
fa63d1ef
ILT
6957Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
6958
a877f591
ILT
6959 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
6960 (ecoff_sec_to_styp_flags): Likewise.
6961 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
6962 (ecoff_set_symbol_info): Handle scRConst.
6963 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
6964 (ecoff_compute_section_file_positions): Handle .rconst section.
6965 (_bfd_ecoff_write_object_contents): Likewise.
6966 (ecoff_link_check_archive_element): Handle scRConst.
6967 (ecoff_link_add_externals): Likewise.
6968 (ecoff_link_write_external): Handle .rconst section.
6969 (ecoff_reloc_link_order): Likewise.
6970 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
6971 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
6972 section.
6973 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
6974
fa63d1ef
ILT
6975 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
6976 DEF_DYNAMIC flag is set.
6977
25bada65
KR
6978Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
6979
6980 * host-aout.c: If TRAD_HEADER is defined, include it.
6981
7938b4cb
ILT
6982Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
6983
85e493f0
ILT
6984 * aclocal.m4 (AC_PROG_CC): Remove local definition.
6985 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
6986 (BFD_NEED_DECLARATION): New function.
6987 * configure.in: Use BFD_NEED_DECLARATION.
bd77213b
ILT
6988 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
6989 * configure, config.in: Rebuild with autoconf 2.6.
85e493f0 6990
83dcdc61
ILT
6991 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
6992 special_sections before returning when called with a non XCOFF
6993 BFD.
6994
7938b4cb
ILT
6995 * coffgen.c (coff_renumber_symbols): Sort common symbols with
6996 global symbols.
6997
6998 * coffcode.h (coff_compute_section_file_positions): Only pad the
6999 previous section to force file alignment when creating an
7000 executable.
7001
b5403ad7
ILT
7002Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
7003
a418e05d
ILT
7004 * coffcode.h (coff_compute_section_file_positions): If
7005 RS6000COFF_C, set up the .debug section.
7006
b5403ad7
ILT
7007 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
7008 if it is not large enough to accomodate the entire TOC area with
7009 signed 16 bit offsets.
7010 (xcoff_write_global_symbol): Handle negative TOC offsets in global
7011 linkage code.
7012 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
7013 TOC anchor to use the TOC value used in the output file.
7014
90a7abbc
ILT
7015Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com>
7016
7017 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
7018 (_bfd_coff_read_string_table): Likewise.
7019
177b1932
DE
7020Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
7021
7022 * pe-arm.c: Fix typos.
7023 * coff-arm.c: Likewise.
7024
7025Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com>
7026
7027 * coff-ppc.c (list_ele): Added "cat"egory member.
7028 (record_toc): New category parameter (priv or pub).
7029 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
7030 (ppc_process_before_allocation): Removed embrionic data-in-toc from
7031 the mainline. It addes extra toc cells in error.
7032 (ppc_coff_swap_sym_in_hook): Added some documentation.
7033 (dump_toc): Can now diagnose "virtual toc" chicanery.
7034
e34314c4
ILT
7035Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
7036
7037 * elf-bfd.h (struct elf_link_hash_table): Change type of
7038 dynsymcount and bucketcount fields from size_t to bfd_size_type.
7039
73a68447
ILT
7040Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com>
7041
535e9e29
ILT
7042 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
7043 pointerize C_LEAFSTAT or C_LEAFEXT entries.
7044
73a68447
ILT
7045 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
7046 DT_INIT and DT_FINI entries if the _init or _fini symbol is
7047 defined or mentioned in a regular file.
7048
cd2b2402
KK
7049Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com>
7050
7051 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
7052 (coff_ppc_relocate_section): Handle TOCDEFN attribute
7053 (coff_ppc_relocate_section): Correct REL24 handling
7054 (ppc_process_before_allocation): Correct TOCDEFN handling
7055
7056 * peicode.h (dir_names): Added name descriptions
7057
b218076e
KR
7058Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com>
7059
7060 * VERSION: Updated to cygnus-2.6.
7061
7062Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com>
7063
7064 * targets.c (m68k4knetbsd_vec): Declare.
7065
e9f30616
ILT
7066Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com>
7067
7068 * targets.c (bfd_target): Change type of second argument to
7069 _bfd_print_private_bfd_data from void * to PTR.
7070 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
7071 using PTR rather than void *.
7072 * bfd-in2, libbfd.h: Rebuild.
7073 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
7074 to PTR.
7075 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
7076 _bfd_generic_bfd_print_private_bfd_data rather than casting
7077 bfd_true.
7078
ae75c4a4
KR
7079Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com>
7080
7081 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
7082 "DO NOT DELETE" lines or blank lines that mkdep writes on some
7083 systems.
7084 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
7085 BFD64_BACKENDS_CFILES): New variables.
7086 (CFILES): Use them.
cf2cd4cf 7087
bebcd3db
ILT
7088Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com>
7089
4b71e164
ILT
7090 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
7091 not at the file position of the first section.
7092 * coffcode.h (coff_compute_section_file_positions): Avoid using
7093 unportable #elif.
7094 (coff_write_object_contents): When generating a PPC PE executable
7095 with no symbols, round up the file size to a COFF_PAGE_SIZE
7096 boundary.
7097 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
7098 don't write out a string table.
7099
631b10f4
ILT
7100 * elf.c (bfd_section_from_shdr): When using a different section
7101 header, pass the new one to _bfd_elf_make_section_from_shdr.
7102 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
7103 (elf_map_symbols): Add section VMA to symbol value when comparing
7104 against 0.
7105 (_bfd_elf_compute_section_file_positions): Only build symbol table
7106 if there are some symbols. Set file offset of symtab and strtab
7107 sections.
7108 (assign_file_positions_except_relocs): Remove dosyms parameter.
7109 Change all callers. Never set file offset of symtab and strtab
7110 sections.
7111 (_bfd_elf_copy_private_section_data): New function.
7112 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
7113 (_bfd_elf_copy_private_symbol_data): New function.
7114 (swap_out_syms): Check for special mapping of st_shndx created by
7115 copy_private_symbol_data.
7116 * elfxx-target.h: Use new copy routines.
7117 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
7118 (_bfd_elf_copy_private_section_data): Declare.
7119
7120 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
7121
7122 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
7123 C_NT_WEAK.
7124
bebcd3db
ILT
7125 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
7126 _bfd_dummy_target, matching the recent change to archive
7127 recognition.
7128
7ad4ba81
ILT
7129Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com>
7130
afa67334
ILT
7131 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
7132 arithmetic on PTR types.
7133
f2bd8915
ILT
7134 * aout-target.h (MY(callback)): Set the lma of the sections.
7135
7ad4ba81
ILT
7136 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
7137 symbol into a reloc against the section.
7138
93b6a3f8
KK
7139Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com>
7140
7141 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
7142 glue for the relocs: IMGLUE and IFGLUE.
7143 (record_toc): new function - tracks toc contents
7144 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
7145 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
7146 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
7147 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
125d37c4 7148 (ppc_record_toc_entry): Removed a debug define (duh)
93b6a3f8
KK
7149
7150 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
7151 (pe_print_idata): New function - formats the idata section data
7152 (pe_print_pdata): New function - formats the pdata section data
7153 (pe_print_private_bfd_data): calls to above
7154
c769947b
SS
7155Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com>
7156
7157 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
7158 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
7159 TARGET_SYM and TARGET_NAME for vector and BFD name.
7160 * coff-pmac.c (pmac_xcoff_vec): Remove.
7161 (TARGET_SYM, TARGET_NAME): Define.
7162 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
7163 machine to 0, not all PowerMacs are 601s.
7164
7165Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com>
7166
7167 * elfcode.h (elf_object_p): Read in any program headers.
7168 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
7169 based on the program headers, if any.
7170 (elf_fake_sections): Set sh_addr from the vma, not the lma.
7171 (map_program_segments): Set p_paddr of program headers based on
7172 the lma.
7173
ee174815
ILT
7174Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
7175
839087b7
ILT
7176 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
7177 failure.
7178
922530a6
ILT
7179 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
7180 trying to do a relocateable link with a non-a.out object file.
7181
7182 * archive.c (bfd_generic_archive_p): Check the first object file
7183 in an archive even if target_defaulted is set. If the object file
7184 has the wrong xvec, reject it.
7185
a1774c51
ILT
7186 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
7187 be represented, report the name via _bfd_error_handler.
7188 (translate_to_native_sym_flags): Likewise.
7189 * elf32-mips.c (mips_elf_final_link): Likewise.
7190 * oasys.c (oasys_write_sections): Likewise.
7191
4a378b13
ILT
7192 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
7193 which checks for STYP_OVRFLO sections.
7194 (coff_compute_section_file_positions): If RS6000COFF_C, handle
7195 reloc and lineno count overflows.
7196 (coff_write_object_contents): Call coff_count_linenumbers before
7197 coff_compute_section_file_positions. If RS6000COFF_C, handle
7198 reloc and lineno count overflows.
7199 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
7200 relocs before dealing with .pad sections. Count overflow section
7201 headers when handling .pad sections.
7202
7906bf87
ILT
7203 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
7204 if RS6000COFF_C.
7205
ee174815
ILT
7206 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
7207 (struct xcoff_link_hash_table): Add descriptor_section and
7208 special_sections fields.
7209 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
7210 (xcoff_link_add_symbols): Set linkage section alignment. Create
7211 descriptor section. Check for magic symbol names (_text, etc.),
7212 and record them in special_sections if found. Set
7213 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
7214 descriptor field to point back to the function code symbol.
7215 (xcoff_sweep): Always mark the special descriptor_section.
7216 (bfd_xcoff_export_symbol): Check whether the symbol might be a
7217 function descriptor, and mark it if it is.
7218 (bfd_xcoff_size_dynamic_sections): Add new special_sections
7219 parameter, and fill it in. Allocate space for the descriptor
7220 section.
7221 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
7222 global linkage code. If an undefined function descriptor is
7223 exported, arrange to define it. Warn about any other undefined
7224 exported symbol.
7225 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
7226 (xcoff_write_global_symbol): Create a function descriptor when
7227 necessary.
7228 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
7229 * bfd-in2.h: Rebuild.
7230
0e829f18
KK
7231Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com>
7232
7233 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
7234 (ppc_coff_link_hash_table): new types for hashing
7235 (ppc_coff_link_hash_newfunc): hash entry constructor
7236 (ppc_coff_link_hash_table_init): hash table initializer
7237 (ppc_coff_link_hash_table_create): hash table constructor
7238 (ppc_record_toc_entry): changed references to hash table
7239 (coff_ppc_relocate_section): changed references to hash table
7240
7241 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
7242 * libcoff.h: Rebuild
7243
7244 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
7245 (coff_link_add_symbols): removed toc_offset init
7246
7ac84736
KR
7247Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com>
7248
b27cc4bc
KR
7249 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
7250 first.
7251
7ac84736
KR
7252 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
7253 if it is given and mmep is available.
7254 * acconfig.h: Undef USE_MMAP.
7255 * configure, config.in: Regenerated.
7256 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
7257 table handling the old way.
7258 (aout_get_external_symbols): Don't complain if last byte of string
7259 table is nonzero.
7260 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
7261 (bfd_free_window) [! USE_MMAP]: Don't define.
7262 (bfd_get_file_window,
7263 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
7264
1b3b0c03
ILT
7265Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
7266
7267 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
7268 0xffff0000.
7269
092abcdf
ILT
7270Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
7271
33698029
ILT
7272 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
7273 compatible with AMD generated COFF files. Try to support both AMD
7274 and GNU formats simultaneously.
7275 (coff_a29k_relocate_section): Likewise.
7276
0bb8ff19
ILT
7277 * libbfd.c (bfd_get_file_window): Change writable parameter from
7278 int to boolean; update all callers. Pass MAP_SHARED if not
7279 writable--it's required on Solaris. Cast fprintf argument to
7280 avoid warning.
7281 * bfd-in.h (bfd_get_file_window): Update declaration.
7282 * bfd-in2.h: Rebuild.
7283 * aoutx.h: Update calls to bfd_get_file_window.
7284
0634a431
ILT
7285 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
7286 Change all uses.
7287 (xcoff_swap_ldhdr_in): New static function.
7288 (xcoff_swap_ldsym_in): New static function.
7812bf9c 7289 (xcoff_find_reloc): Handle the case of a single reloc correctly.
0634a431
ILT
7290 (xcoff_link_add_symbols): If we just created a descriptor, pass it
7291 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
417acf22 7292 Handle XTY_ER/XMC_XO symbols correctly.
0634a431
ILT
7293 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
7294 rather than normal symbol table.
417acf22
ILT
7295 (bfd_xcoff_import_symbol): It's not an error if the symbol is
7296 already defined with the same absolute value.
0634a431
ILT
7297 (xcoff_mark): When considering called symbols, check whether the
7298 descriptor is from a dynamic object, rather than the symbol
7299 itself.
7300 (xcoff_build_ldsyms): Likewise.
7301
092abcdf
ILT
7302 * libbfd.c (bfd_get_file_window): Change return type to boolean.
7303 Cast realloc and malloc return values. If malloc or realloc fail,
7304 set bfd_error_no_memory.
7305 * bfd-in.h (bfd_get_file_window): Change type to boolean.
7306 * bfd-in2.h: Rebuild.
7307
d6f41a7d
KK
7308Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com>
7309
7310 * coff-ppc.c (ppc_record_toc_entry): new function.
7311 (in_reloc_p): changed return value.
7312 (coff_ppc_relocate_section): much rework.
7313 (ppc_allocate_toc_section): new function.
7314 (ppc_process_before_allocation): new function.
7315 (ppc_coff_swap_sym_in_hook): new function.
7316
7317 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
7318 (coff_link_add_symbols): initialize toc_offset.
7319
7320 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
7321 (coff_swap_aouthdr_out): Added more sections to the data
7322 dictionary for the pe file header. Also changed linker version
7323 number on the ppc side.
7324 (dir_names): small improvements to the dictionary printing.
7325 (pe_mkobject_hook): save the file level flags.
7326
7327 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
7328 (pe_tdata): added real_flags field
7329 (coff_tdata): added local_toc_sym_map and access macro
7330
7331 * libcoff.h (coff_link_hash_entry): added toc_offset field
7332 (pe_tdata): added real_flags field
7333 (coff_tdata): added local_toc_sym_map and access macro
7334
7335 * coffcode.h (coff_set_alignment_hook): added hook for PE.
7336 (coff_mkobject): init for local_toc_sym_map
7337 (coff_write_object_contents): set the internal_a.magic to
7338 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
7339 ppc compilers use.
7340
6bc200f2
ILT
7341Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com>
7342
c0971298
ILT
7343 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
7344 entries until both the line number address and the function name
7345 address are too large.
7346
6a468850
ILT
7347 * configure.in: Call AC_CHECK_PROG to find and cache AR.
7348 * configure: Rebuilt.
7349
6bc200f2
ILT
7350 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
7351 is defined in the environment.
7352
c44bf94c
JL
7353Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com)
7354
7355 * som.c (som_get_section_contents_in_window): Define to use
7356 generic version.
7357
cf587de8
ILT
7358Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
7359
7360 * coff-i860.c: New file, based on coff-i386.c.
7361 * cpu-i860.c: New file, based on cpu-i386.c.
7362 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
7363 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
7364 targets, using i860coff_vec.
7365 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
7366 trad-core.o and hosts/i860mach3.h.
7367 (i860coff_vec): Use coff-i860.o and cofflink.o.
7368 * configure: Rebuild.
7369 * Makefile.in: Rebuild dependencies.
7370 (ALL_MACHINES): Add cpu-i860.o.
7371 (BFD32_BACKENDS): Add coff-i860.o.
7372 (CFILES): Add cpu-i860.c and coff-i860.c.
7373 * targets.c (i860coff_vec): Declare.
cf2cd4cf 7374 (bfd_target_vector): Add &i860coff_vec.
cf587de8
ILT
7375 * archures.c (bfd_i860_arch): Declare.
7376 (bfd_archures_list): Add &bfd_i860_arch.
7377 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
7378 (coff_set_flags): Handle bfd_arch_i860.
7379 (coff_write_object_contents): Handle I860 a.out magic number.
7380
83c23fca
ILT
7381Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com>
7382
7383 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
7384 the created .tc section to 2.
7385 (xcoff_mark): Don't keep a .loader reloc for a call to an
7386 undefined symbol when creating a shared library.
7387 (xcoff_build_ldsyms): When creating a shared library, generate
7388 global linkage code for a call to an undefined symbol.
7389
5d9eb9c3
KR
7390Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com>
7391
7392 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
7393 BFD32_BACKENDS, BFD64_BACKENDS.
7394 (.dep1): Put mkdep output in a separate file.
7395 Rebuilt dependencies.
7396
ffacb892
KR
7397 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
7398 value.
7399
4fe6d901
KR
7400 Permit use of mmap when available:
7401
7402 * configure.in: Check for mmap, madvise, mprotect.
7403 * config.in, configure: Regenerated.
7404
7405 * libbfd.c (struct _bfd_window_internal): Define type.
7406 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
7407 functions.
7408 (ok_to_map): New static variable for debugging.
7409 (_bfd_generic_get_section_contents_in_window): New function.
7410 * bfd-in.h (bfd_window_internal): Declare type.
7411 (bfd_window): Define type.
7412 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
7413 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
7414 Declare.
7415
7416 * libaout.h (struct aoutdata): Add two window fields.
7417 (obj_aout_sym_window, obj_aout_string_window): New macros.
7418 * aoutx.h (some_aout_object_p): Initialize windows.
7419 (aout_get_external_symbols): Get symbol data and strings in
7420 windows instead of explicitly allocated buffers.
7421 (slurp_symbol_table): Free window instead of memory.
7422 (bfd_free_cached_info): Release windows instead of freeing storage
7423 directly.
7424 (aout_link_free_symbols): Ditto.
7425
7426 * targets.c (bfd_target): Add new field for
7427 get_section_contents_in_window.
7428 (BFD_JUMP_TABLE_GENERIC): Updated.
7429 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
7430 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
7431 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
7432 macros for get_section_contents_in_window field.
7433
d9e771e3
FF
7434Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com>
7435
7436 * core.c: Renamed to corefile.c
7437 * makefile.dos (OBJS): Change core.o to corefile.o
7438 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
cf2cd4cf 7439
583db7a8
ILT
7440Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com>
7441
7442 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
7443 to o. Clobber and restore the list of new csects around the call
7444 to _bfd_generic_link_add_one_symbol, in case it wants to report a
7445 linker error and the linker wants to read the symbol table. Reset
7446 the line number count of a real section even if it has no relocs.
7447 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
7448
7449 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
7450 is too small.
7451
68aed7db
ILT
7452Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com>
7453
18a9609c
ILT
7454 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
7455 an undefined symbol in a shared link.
7456
68aed7db
ILT
7457 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
7458 oldtype from bfd_link_order_type to bfd_link_hash_type. From
7459 phdm@info.ucl.ac.be (Philippe De Muyter).
7460
7f82c7e1
ILT
7461Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
7462
7463 * coff-m88k.c (rtype2howto): New static function.
7464 (RTYPE2HOWTO): Use it rather than a macro definition.
7465
7466 * coffcode.h (coff_write_object_contents): set internal_a.magic
7467 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
7468
4c8b9746 7469 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
7f82c7e1
ILT
7470 define TRAD_HEADER to new file hosts/delta68.h.
7471 m88*-motorola-sysv*, however, does use ptrace-core.o.
7472 * hosts/delta68.h: New file.
7473
7474 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
7475 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
7476
619c7730
KR
7477Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com>
7478
7479 * i386linux.c (MY(vec)): Declare before use.
7480
73246ff8
ILT
7481Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
7482
e8d6d5d0
ILT
7483 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
7484 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
7485
b2193cc5
ILT
7486 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
7487 BFD is not of the right type.
7488 (bfd_elf_get_needed_list): Likewise.
7489 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
7490 * sunos.c (bfd_sunos_get_needed_list): Likewise.
7491 * xcofflink.c (XCOFF_XVECP): Define.
7492 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
7493 of the right type.
7494 (bfd_xcoff_import_symbol): Likewise.
7495 (bfd_xcoff_export_symbol): Likewise.
7496 (bfd_xcoff_link_count_reloc): Likewise.
7497 (bfd_xcoff_record_link_assignment): Likewise.
7498 (bfd_xcoff_size_dynamic_sections): Likewise.
7499
baabeb74
ILT
7500 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
7501 table index against the number of symbols for a base relative
7502 reloc.
7503
73246ff8
ILT
7504 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
7505 static function.
7506 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
7507 full_aouthdr flag here...
7508 (_bfd_xcoff_bfd_final_link): ...not here.
7509
6ab826bd
FF
7510Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
7511
7512 * libelf.h: Rename to elf-bfd.h to avoid conflict with
7513 systems that have a system <libelf.h>.
7514 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
7515 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
7516 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
7517 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
7518 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
7519 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
7520 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
7521
999cc186
ILT
7522Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
7523
0652d579
ILT
7524 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
7525 set, set BSF_WEAK in symbol. Change all callers.
7526 (ecoff_get_extr): Set weakext based on BSF_WEAK.
7527 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
7528 _bfd_generic_link_add_one_symbol.
7529 (ecoff_indirect_link_order): Check that the section tdata relocs
7530 are not NULL before using them.
7531
999cc186
ILT
7532 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
7533 define TRAD_HEADER as hosts/alphalinux.h.
7534 * configure: Rebuild.
7535 * hosts/alphalinux.h: New file.
7536 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
7537 not int.
7538
e6080520
ILT
7539Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
7540
2bd0aeb9
ILT
7541 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
7542 C_ECOMM storage classes.
7543
e6080520
ILT
7544 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
7545 of xcoff_mark.
7546 (xcoff_mark): Call xcoff_mark_symbol.
7547 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
7548 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
7549 doing it by hand.
7550 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
7551
5fe14a9f
ILT
7552Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
7553
f630a0a4
ILT
7554 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
7555 field.
7556 (xcoff_find_reloc): New static function.
7557 (xcoff_link_add_symbols): Use it.
7558 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
7559 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
7560 relocate the value of C_DECL.
7561
5fe14a9f
ILT
7562 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
7563
dff77ed7
SC
7564Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
7565
7566 * cofflink.c (_bfd_coff_generic_relocate_section): Make
7567 callback decide what goes in .relocs.
7568 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
7569 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
7570 there is one.
7571
697a8fe8
ILT
7572Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
7573
7574 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
7575 absolute section.
7576
2d7de17d
ILT
7577Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
7578
7579 * xcofflink.c: More improvements, mostly to fix handling of
7580 constructors and a few other special cases.
7581 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
7582 zero, reverting yesterday's change.
7583 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
7584 (bfd_xcoff_link_count_reloc): Declare.
7585 (bfd_xcoff_record_link_assignment): Declare.
7586 * bfd-in2.h: Rebuild.
7587
f552f751
NH
7588Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
7589
4906b2a3 7590 * PORTING, aout-arm.c, aout-encap.c, aout-target.h,
f552f751
NH
7591 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
7592 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
7593 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
7594 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
7595 Change PAGE_SIZE to TARGET_PAGE_SIZE.
7596
7597 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
7598 format.
7599
7600 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
7601 segments includes the a.out header. See to that the magic number
7602 *always* is big-endian.
7603
7604 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
7605 m68k4k NetBSD configurations.
7606
7607 * configure.in, configure: Separate i386 & mips NetBSD
7608 configurations from other BSD ones. Don't assume DEC is the only
7609 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
7610 configurations. Add support for m68k4k NetBSD object format.
7611
7612 * libaout.h: Added M_68K4K_NETBSD magic.
6fd1f40d
NH
7613
7614 * m68k4knetbsd.c: New file.
cf2cd4cf 7615
f552f751
NH
7616 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
7617
7618 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
7619 <machine/endian.h>.
7620
6fd1f40d 7621 * hosts/mipsnbsd.h: New file.
cf2cd4cf 7622
867d923d
ILT
7623Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
7624
7625 * xcofflink.c: Numerous changes to get closer to a working XCOFF
7626 linker.
7627 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
7628 toc_section, and entry_section fields.
7629 (struct xcoff_section_tdata): Remove ldrel_count field.
7630 * libcoff.h: Rebuild.
7631 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
7632 fields.
7633 (coff_compute_section_file_positions): If RS6000COFF_C, generate
7634 full a.out header if full_aouthdr is set in xcoff_data.
7635 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
7636 based on sections stored in xcoff_data.
7637 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
7638 fields.
aad2c618
ILT
7639 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
7640 (rs6000coff_vec): Set symbol_leading_char to '.'.
867d923d
ILT
7641 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
7642 value stored in ret rather than returning a pointer value.
cf2cd4cf 7643
6bd9ffdb
MM
7644Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7645
7646 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
7647 format for now.
7648
9d14250f
JL
7649Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
7650
7651 * som.c (som_slurp_string_table): Allocate the strings with malloc
7652 since they're free'd by free_cached_info.
7653 (som_slurp_symbol_table): Similarly for the symbol table.
7654
a2bd0529
PB
7655Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
7656
7657 * Makefile.in (diststuff): Don't make headers.
7658
28a0c103
ILT
7659Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
7660
356cd465
ILT
7661 * Makefile.in: Rebuild dependencies.
7662
1edd3a7b
ILT
7663 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
7664 output_bfd is not SunOS.
7665 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
7666 non-SunOS input files.
7667
28a0c103
ILT
7668 * xcofflink.c: Extensive changes to support linking shared objects
7669 and generating a .loader section.
7670 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
b73322d9
ILT
7671 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
7672 last_symndx, and ldrel_count fields.
28a0c103
ILT
7673 * libcoff.h: Rebuild.
7674 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
7675 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
7676 is set.
7677 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
7678 (bfd_xcoff_export_symbol): Declare.
7679 (bfd_xcoff_size_dynamic_sections): Declare.
7680 * bfd-in2.h: Rebuild.
7681
aadf04f7
SS
7682Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
7683
7684 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
7685 * configure: Rebuild.
7686 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
7687 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
7688 contents.
7689 (pmac_xcoff_vec): Update to use new xcoff support.
7690 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
7691 (xcoff_write_armap): Declare buf as unsigned char.
7692 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
7693
7694 * mpw-make.sed: Generalize subdir_do edit.
cf2cd4cf 7695
ddf4639b
JL
7696Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
7697
7698 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
7699 correctly. Don't initialize asect->vma.
7700
e7bedf65
KR
7701Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
7702
7703 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
7704 something a little less than the page size.
7705
7706Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
7707
7708 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
7709
3a70e298
SC
7710Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
7711
7712 * coff-i386.c (coff_i386_reloc_type_lookup): New.
7713 * coffcode.h (coff_write_object_contents): If .bss is before
7714 .data us that as data_start.
7715 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
7716 calc correct.
7717 * peicode.h (add_data_entry): Use _cooked_size of data directory.
7718 (coff_swap_outhdr_out): Hardwire in version number.
cf2cd4cf 7719
5a2846e3
KR
7720Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
7721
3c3a5268
KR
7722 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
7723 major and minor to *_vno, since the former are also macros in
7724 SunOS header files. Cast result of bfd_alloc to appropriate
7725 type.
7726
5a2846e3
KR
7727 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
7728 before assigning to sec_data.
7729
0f6c885e
ILT
7730Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
7731
7732 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
7733 now relative to the section, not absolute.
7734 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
7735 get the file name when there is a N_SO directory name. When
7736 handling stabs, remember that section->vma was added to the
7737 offset.
7738
11fa6636
ILT
7739Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
7740
7741 * sunos.c (struct sunos_link_hash_table): Add needed field.
7742 (sunos_link_hash_table_create): Call bfd_release, not free.
7743 (sunos_link_hash_table_create): Initialize needed field.
7744 (sunos_add_dynamic_symbols): Record needed objects.
7745 (bfd_sunos_get_needed_list): New function.
7746 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
7747 * bfd-in2.h: Rebuild.
7748
c974e19e
SC
7749Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
7750
7751 * libcoff-in.h (pe_data_type.in_reloc_p): New.
7752
22a35f0b
ILT
7753Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
7754
54406786
ILT
7755 * bfd-in.h (struct bfd_link_needed_list): Rename from
7756 bfd_elf_link_needed_list.
7757 * bfd-in2.h: Rebuild.
7758 * elf.c, elflink.h, libelf.h: Corresponding changes.
7759
dd984644
ILT
7760 Add start at AIX linker support; no shared libraries yet.
7761 * xcofflink.c: New file.
7762 * configure.in (rs600coff_vec): Use xcofflink.o.
7763 * configure: Rebuild.
7764 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
7765 fields.
7766 (struct xcoff_section_tdata): Define.
7767 (xcoff_section_data): Define macro.
7768 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
7769 (_bfd_xcoff_bfd_link_add_symbols): Declare.
7770 (_bfd_xcoff_bfd_final_link): Declare.
7771 (_bfd_ppc_xcoff_relocate_section): Declare.
7772 * libcoff.h: Rebuild.
7773 * coff-rs6000.c: Clean up a bit.
7774 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
7775 cputype, csects, and debug_indices.
7776 (xcoff_copy_private_bfd_data): Copy cputype.
7777 (xcoff_howto_table): Rename from rs6000coff_howto_table.
7778 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
7779 (xcoff_reloc_type_lookup): Rename from
7780 rs6000coff_reloc_type_lookup.
7781 (coff_relocate_section): Define.
7782 (_bfd_xcoff_sizeof_headers): Define.
7783 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
7784 (_bfd_xcoff_bfd_relax_section): Define.
7785 (_bfd_xcoff_bfd_link_split_section): Define.
7786 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
7787 coff.
7788 * coffcode.h (coff_compute_section_file_positions): If AIX,
7789 increment sofar by SMALL_AOUTSZ if not executable.
7790 (coff_write_object_contents): If AIX, always output an a.out
7791 header; if not executable, header size of SMALL_AOUTSZ.
7792 * hash.c (struct bfd_strtab_hash): Add xcoff field.
7793 (_bfd_stringtab_init): Initialize xcoff field.
7794 (_bfd_xcoff_stringtab_init): New function.
7795 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
7796 (_bfd_stringtab_emit): In XCOFF mode, write out length.
7797 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
7798 * libbfd.h: Rebuild.
7799 * Makefile.in: Rebuild dependencies.
7800 (BFD32_BACKENDS): Add xcofflink.o.
7801 (CFILES): Add xcofflink.c.
7802
22a35f0b
ILT
7803 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
7804 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
7805 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
7806
fb417a21
MM
7807Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7808
7809 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
7810
7811Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
7812
7813 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
7814 * config.in: Regenerated.
7815
7816 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
7817 (_bfd_chunksize): New variable.
7818 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
7819 for obstack chunk size.
7820 * configure.in: Check for getpagesize.
7821 * configure: Regenerated.
7822
7823 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7824
7825 * trad-core.c (rawptr): Make it a local variable of
7826 ptrace_unix_core_file_p.
7827
b1e46369
SC
7828Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
7829
7830 * coff-arm.c (in_reloc_p): New.
7831 * coff-i386.c (in_reloc_p): New.
7832 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
7833 (coff_write_object_contents): Only set has_reloc_section
7834 if PE_IMAGE.
7835 * cofflink.c (_bfd_coff_generic_relocate_section): Call
7836 in_reloc_p to decide if reloc should be emitted.
7837 * libcoff.h (pe_data_type.in_reloc_p): New.
7838 * peicode.h (pe_mkobject): Initialize in_reloc_p.
7839
ee9f09cd
ILT
7840Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
7841
b1e46369
SC
7842 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
7843 (_bfd_coff_read_internal_relocs): Likewise.
7844 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
7845 (_bfd_coff_read_internal_relocs): Likewise.
7846
ee9f09cd
ILT
7847 * elflink.h (elf_link_add_object_symbols): Correct conditions
7848 under which type and size change warnings are issued.
7849
78b31b6b
ILT
7850Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
7851
7852 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
7853 a symbol which is not in a real section.
7854 (coff_write_native_symbol): Corresponding change.
7855
7856 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
7857 coff_link_hash_newfunc and make non-static.
7858 (_bfd_coff_link_hash_table_init): New function, broken out of
7859 _bfd_coff_link_hash_table_create.
7860 (_bfd_coff_link_hash_table_create): Use it.
7861 (process_embedded_commands): Make static.
7862 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
7863 (_bfd_coff_link_hash_table_init): Declare.
7864 * libcoff.h: Rebuild.
7865
7866 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
7867 field in XCOFF tdata.
7868 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
7869 U802ROMAGIC, for clarity. Try to set arch and machine correctly
7870 based on cputype stored in a.out header, or in n_type of initial
7871 .file symbol.
7872 (coff_write_object_contents): Set cputype correctly in a.out
7873 header.
7874 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
7875 warnings.
7876 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
7877 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
7878 old resv1 field.
7879 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
7880 * libcoff.h: Rebuild.
7881
7882 * cpu-rs6000.c (rs6000_compatible): New static function.
7883 (bfd_rs6000_arch): Use it.
7884 * cpu-powerpc.c (powerpc_compatible): New static function.
7885 (arch_info_struct): Define various flavours of PowerPC.
7886 (bfd_powerpc_arch): Use powerpc_compatible. Point at
7887 arch_info_struct.
7888
9dd7e56f
FF
7889Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
7890
78b31b6b 7891 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9dd7e56f 7892
8235c112
ILT
7893Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
7894
7895 * elflink.h (elf_link_add_object_symbols): Don't warn about
7896 changing the size or type if the old definition was weak.
7897
0322af0d
ILT
7898Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
7899
49488f2b
ILT
7900 * coffcode.h (combined_entry_type): Add fix_line field.
7901 (coff_slurp_line_table): Warn if we try to set the lineno field of
7902 a symbol twice.
7903 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
7904 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
7905 * coffgen.c (coff_mangle_symbols): Handle fix_line.
7906 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
7907 absolute section.
7908 (coff_print_symbol): Print fix_value symbols in a useful fashion.
7909 * libcoff.h: Rebuild.
7910
5f710a3a
ILT
7911 * libcoff-in.h (struct xcoff_tdata): Define.
7912 (xcoff_data): Define.
7913 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
7914 * bfd-in2.h, libcoff.h: Rebuild.
7915 * coff-rs6000.c (xcoff_mkobject): New static function.
7916 (coff_mkobject): Define.
7917 (xcoff_copy_private_bfd_data): New static function.
7918 (coff_bfd_copy_private_bfd_data): Define.
7919 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
7920 signed to bitfield.
7921 (rs6000coff_vec): Add DYNAMIC to object_flags.
7922 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
7923 .loader sections specially.
7924 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
7925 section alignment from the XCOFF tdata information.
7926 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
7927 F_SHROBJ, and copy the extra a.out header information into the
7928 XCOFF tdata structure.
7929 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
7930 F_DYNLOAD and the extra a.out header information.
7931 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
7932 C_HIDEXT symbol with attached csect information.
7933 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
7934 in the o_maxdata field.
7935 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
7936 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
7937 end if BSF_NOT_AT_END is set.
3f2c5b2d 7938
0322af0d
ILT
7939 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
7940 _bfd_read_ar_hdr_fn.
7941 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
7942 * bfd-in2.h, libbfd.h: Rebuild.
7943 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
7944 return value.
7945 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
7946 (bfd_slurp_bsd_armap_f2): Likewise.
7947 (_bfd_slurp_extended_name_table): Likewise.
7948
3266eaff
KR
7949Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
7950
7951 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7952
7953 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
7954 when the symbol table is empty.
7955
7956 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
7957 space for section symbols, since we don't output them either.
7958 (elf_m68k_adjust_dynindx): Removed.
7959
7960 * ptrace-core.c (rawptr): Make it a local variable of
7961 ptrace_unix_core_file_p.
3266eaff 7962
249479fa
MM
7963Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
7964
45b5d2f0
MM
7965 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
7966 NULL.
7967
249479fa
MM
7968 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
7969 Mac object file formats.
7970
c53fac12
ILT
7971Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
7972
4372f33f
ILT
7973 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
7974 auxent if there isn't one.
7975 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
7976 rather than FILNMLEN as the maximum name length.
7977
0fc9ada9
ILT
7978 * coffcode.h (bfd_coff_backend_data): Add new field
7979 _bfd_coff_print_aux.
7980 (bfd_coff_print_aux): New static function.
7981 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
7982 scnlen field of an XTY_LD csect aux entry.
7983 (coff_print_aux): New static function.
7984 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
7985 in coff_pointerize_aux_hook.
7986 (bfd_coff_std_swap_table): Initialize new field.
7987 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
7988 * libcoff.h: Rebuild.
7989 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
7990 * coff-mips.c (mips_ecoff_backend_data): Likewise.
7991
7860fe38
ILT
7992 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
7993 if there are symbols, for native AIX ld compatibility.
7994
c80cc833
ILT
7995 * coffcode.h (bfd_coff_backend_data): Add new field
7996 _bfd_coff_pointerize_aux_hook.
7997 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
7998 or I960, and as 0 otherwise.
7999 (bfd_coff_std_swap_table): Initialize new field.
8000 * libcoff.h: Rebuild.
8001 * coffgen.c (coff_pointerize_aux): Change parameters to take
8002 symbol pointer instead of type and class, and to take aux index.
8003 Call _bfd_coff_pointerize_aux_hook if it is defined.
8004 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
8005 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
8006 * coff-mips.c (mips_ecoff_backend_data): Likewise.
8007
c53fac12
ILT
8008 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
8009 read-only/host-only support.
8010
8011 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
8012 BSF_LOCAL.
d11e6b52
ILT
8013 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
8014 RS6000COFF_C.
c53fac12
ILT
8015
8016 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
8017 BFD_JUMP_TABLE_ARCHIVE accordingly.
8018 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
8019 (_bfd_compute_and_write_armap): Declare.
8020 (_bfd_generic_read_ar_hdr): Declare.
8021 (_bfd_read_ar_hdr): Define.
8022 (_bfd_noarchive_read_ar_hdr): Define.
8023 (_bfd_archive_bsd_read_ar_hdr): Define.
8024 (_bfd_archive_coff_read_ar_hdr): Define.
8025 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
8026 _bfd_read_ar_hdr instead.
8027 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
8028 (_bfd_compute_and_write_armap): Rename from
8029 compute_and_write_armap. Make non-static. Change all callers.
8030 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
8031 than _bfd_snarf_ar_hdr.
8032 * aout-target.h (MY_read_ar_hdr): Define if not defined.
8033 * ieee.c (ieee_read_ar_hdr): Define.
8034 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
8035 * oasys.c (oasys_read_ar_hdr): Define.
8036 * som.c (som_read_ar_hdr): Define.
8037 * bfd-in2.h, libbfd.h: Rebuild.
8038
f8e47484
SC
8039Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
8040
8041 * peicode.c (coff_swap_filehdr_in): If symptr is
8042 zero, there aren't any symbols, even if nsyms is set.
8043
2b874a2d
ILT
8044Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
8045
aca73687
ILT
8046 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
8047 field.
8048 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
8049 sections, and set styp correctly for them: .got, .hash, .dynamic,
8050 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
8051 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
8052 types.
8053 (ecoff_sort_hdrs): New static function.
8054 (ecoff_compute_section_file_positions): Return boolean, not void.
8055 Sort the sections by VMA before looking through them. Put the
8056 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
8057 section on an appropriate boundary within the page.
8058 (ecoff_compute_reloc_file_positions): Check return value of
8059 ecoff_compute_section_file_positions.
8060 (_bfd_ecoff_set_section_contents): Likewise.
8061 (_bfd_ecoff_write_object_contents): Check for various Alpha
8062 section types when incrementing text_size and data_size. Call
8063 adjust_headers backend function if it exists.
8064 * coff-alpha.c (alpha_adjust_headers): New static function.
8065 (alpha_ecoff_backend_data): Initialize adjust_headers field.
8066 * coff-mips.c (mips_ecoff_backend_data): Likewise.
8067
2b874a2d
ILT
8068 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
8069
c780e5db
JL
8070Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
8071
8072 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
8073 of ALTERNATE_AIX_CORE_FORMAT.
8074 * configure.in (aix4): No longer need CORE_FLAGS.
8075 * configure: Updated.
8076
2a01c351
KR
8077Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
8078
8079 NS32k changes from Ian Dall:
8080 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
8081 macros.
8082 (aout_link_input_section_std, aout_link_input_section_ext,
8083 aout_link_reloc_link_order): Call them instead of _bfd_*
8084 versions.
8085 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
8086 to zero.
8087 (backend_data): Use it instead of hardcoded zero.
8088
8089 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
8090 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
8091
8092 * ns32knetbsd.c: Include bfd.h.
8093 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
8094 (MY_bfd_reloc_type_lookup): Declare function too.
8095 * pc532-mach.c (set_sizes): Don't declare.
8096 (MY_text_includes_header, MY_exec_header_not_counted): Define.
8097 (backend_data, MY_backend_data): Don't define.
8098
8099 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
8100 ns32k-*-lites* like ns32k-*-netbsd*.
8101
8102 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
8103 compile on lites.
8104
5944d75b
ILT
8105Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
8106
8107 * coffcode.h (coff_write_object_contents): Restore setting
8108 f_timdat to 0, deleted on August 22.
8109
db344f82
SC
8110Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
8111
8112 * coffcode.h (coff_bfd_copy_private_symbol_data,
8113 coff_bfd_copy_private_section_data,
8114 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
8115 * peicode.h (coff_bfd_copy_private_bfd_data): New
8116 (pe_bfd_copy_private_bfd_data): New.
8117 (coff_swap_scnhdr_in): Swap bss size into the right place.
8118 (pe_print_private_bfd_data): Add some newlines.
5944d75b 8119
c780e5db 8120Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
97f1feda
JL
8121
8122 * som.c (setup_sections): Don't die if a space has no subspaces.
8123
3d7c42c9
ILT
8124Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
8125
8126 * elflink.h (elf_link_add_object_symbols): Don't let a weak
8127 dynamic symbol override a common symbol. Don't change the size or
8128 type if they have been set and the new symbol is not a definition.
8129 Warn if the size or type changes.
8130
c780e5db 8131Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
709af562
JL
8132
8133 * som.c (som_begin_writing): Don't write the symbol table or
8134 symbol strings.
8135 (som_finish_writing): Write them here. Place them after the
8136 subspace data, but before the relocs.
8137
8138Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
8139
8140 * sunos.c (sunos_add_one_symbol): Just pass false, not
8141 info->shared_library, to sunos_create_dynamic_sections.
8142 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
8143 section.
8144 (sunos_check_dynamic_reloc): Remove .text section assertion.
8145
7009e451
SS
8146Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
8147
8148 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
8149 * configure, configure.in: Add pmac_xcoff_vec case.
8150 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
8151 * coff-pmac.c: New file, PowerMac XCOFF support.
8152 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
8153 * targets.c (pmac_xcoff_vec): Declare.
8154
8155 * mpw-config.in: Various changes to be compatible with the
8156 autoconf-based configury.
8157 * mpw-make.sed: New file, sed commands to translate Unix
8158 makefile into MPW syntax.
8159 * mpw-make.in: Remove.
8160 * hosts/mpw.h: Remove.
8161 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
8162 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
8163
b91537be
SC
8164Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
8165
8166 * binary.c (binary_get_symtab): Return an empty string on error.
8167 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
8168
30360a6f
KK
8169Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
8170
8171 * coff-ppc.c: Reformatted according to gnu conventions
8172 Removed irrelevant "if 0" code
8173
20d1e233
ILT
8174Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
8175
69fd4fdd
ILT
8176 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
8177 symbols rather than as indirect symbols.
8178 (MY(slurp_symbol_table)): Don't do anything special about
8179 secondary symbols.
8180
46b5a892
ILT
8181 * coffcode.h (coff_new_section_hook): Make sure that the alignment
8182 of .ctors and .dtors sections is no larger than 2.
8183
9db59230
ILT
8184 * sunos.c (sunos_add_one_symbol): Don't change
8185 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
8186 undef list.
8187 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
8188 dynamic symbols when creating a shared library.
8189 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
8190 shared library.
8191 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
8192 written even if it is not defined in a regular object.
8193 (sunos_write_dynamic_symbol): Use plt_offset for the address of
8194 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
8195 rather than the constant 22.
8196 (sunos_check_dynamic_reloc): Handle creating a shared library.
8197 (sunos_finish_dynamic_link): Set the first entry in the GOT to
8198 zero when creating a shared library.
8199 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
8200 write it out at the start of the symbol table.
8201
20d1e233
ILT
8202 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
8203
a11e10fe
DE
8204Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
8205
8206 * config.bfd: Add arm-*-coff.
8207 * configure.in, configure: Add armcoff_{little,big}_vec.
8208 * targets.c (armcoff_{little,big}_vec): Declare.
8209 (bfd_target_vector): Add armcoff_{little,big}_vec.
8210 * coff-arm.c (armcoff_{little,big}_vec): Always define.
8211
99062cfc
ILT
8212Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
8213
8214 * targets.c (bfd_find_target): Remove debugging code.
8215
deacbe0f
KK
8216Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
8217
cf2cd4cf 8218 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
deacbe0f
KK
8219 support on powerpc.
8220 * Makefile.in: added *-ppc files
8221 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
8222 allow pe based .o's to be shared with other tools on ppc/NT
8223 * config.bfd: added powerpc[le]-[pe|winnt] config support
cf2cd4cf 8224 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
deacbe0f
KK
8225 * peicode.h: Added more section flags for PE on ppc
8226 Added coff_swap_filehdr_out to allow peicode.h to be
8227 used for non-image PE files on ppc.
8228 Check for image, or not, before copying pe_opthdr
8229 * targets.c: Added new bfd's
30360a6f
KK
8230 * targets.c: Removed two inactive bfds that shouldn't have made it this
8231 far.
deacbe0f 8232
d22b02e0
MM
8233Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
8234
8235 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
8236 explicit values to initialize all relocs. Change all users.
8237 (ppc_elf_brtaken_inner): New function to handle branch predicition
8238 relocs.
8239 (ppc_elf_brtaken_reloc): Ditto.
8240 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
8241 relocs use ppc_elf_unsupported_reloc.
8242 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
8243 needs to be reported.
8244 (ppc_elf_relocate_section): Support branch prediction relocs.
8245
fcf490c0
ILT
8246Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
8247
e6cb7b41
ILT
8248 * bfd.c (bfd_assert): Remove \n from string passed to
8249 _bfd_error_handler.
8250
1af85fbb
ILT
8251 * coff-i386.c: (TWO_DATA_SECS): Don't define.
8252 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
8253 (bfd_coff_make_section_hook): Don't define.
8254 (coff_make_section_hook): Remove.
8255 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
8256 (styp_to_sec_flags): Likewise.
8257 (coff_write_object_contents): Likewise.
8258 (bfd_coff_std_swap_table): Don't initialize make_section_hook
8259 field.
8260 * libcoff.h: Rebuild.
8261 * coffgen.c (make_a_section_from_file): Just call
8262 bfd_make_section_anyway, not bfd_make_section or
8263 bfd_coff_make_section_hook.
8264 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
8265 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
8266 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
8267 make_section_hook field.
8268 * coff-mips.c (mips_ecoff_backend_data): Likewise.
8269
fcf490c0
ILT
8270 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
8271 pointers into value field for warning and indirect symbols; just
8272 leave the value field alone.
8273 * linker.c (generic_link_add_symbol_list): Use next symbol for
8274 warning and indirect symbols, rather than looking in symbol value.
8275 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
8276 parameter. Change all callers. Remove support for indirect
8277 symbols; it didn't work anyhow.
8278 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
8279 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
8280 * bfd-in2.h: Rebuild.
8281
cc47d19a
MM
8282Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
8283
8284 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
8285 go back to telling the tools this reloc operates on 32 bits.
8286
81449d47
ILT
8287Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
8288
7a7fbffb
ILT
8289 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
8290 rather than a direct fprintf.
8291 * archive.c (_bfd_write_archive_contents): Likewise.
8292 * coffcode.h (coff_slurp_symbol_table): Likewise.
8293 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
8294 (ppc_elf_unsupported_reloc): Likewise.
8295 (ppc_elf_relocate_section): Likewise.
8296 * i386linux.c (linux_tally_symbols): Likewise.
8297 (linux_finish_dynamic_link): Likewise.
8298 * osf-core.c (osf_core_core_file_p): Likewise.
8299 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
8300 * som.c (som_sizeof_headers): Likewise.
8301 * srec.c (srec_bad_byte): Likewise.
8302 * bfd.c (bfd_assert): Likewise. Also change file to be const.
8303 * libbfd-in.h (bfd_assert): Declare first parameter const.
8304 * libbfd.h: Rebuild.
8305 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
8306 bfd_reloc_overflow is enough.
8307 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
8308 * coff-h8500.c (rtype2howto): Likewise.
8309 * coff-z8k.c (rtype2howto): Likewise.
8310 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
8311 * elf.c (_bfd_elf_get_lineno): Likewise.
8312 (_bfd_elf_no_info_to_howto): Likewise.
8313 (_bfd_elf_no_info_to_howto_rel): Likewise.
8314 * hp300hpux.c (convert_sym_type): Likewise.
8315 (MY(swap_std_reloc_in)): Likewise.
8316 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
8317
f1c6dd5d
ILT
8318 * libaout.h (struct aoutdata): Add line_buf field.
8319 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
8320 and filename_buffer. Instead, use a malloc buffer stored in the
8321 new line_buf field. Remove length restrictions.
8322
f0500a41
ILT
8323 * coffgen.c (string_size): Remove static variable.
8324 (debug_string_size, debug_string_section): Likewise.
8325 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
8326 and debug_string_size_p parameters. Use them instead of the
8327 global variables. Change all callers.
8328 (coff_write_symbol): Likewise.
8329 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
8330 (coff_write_symbols): Add local variables to replace removed
8331 global variables.
8332
25b5a53d
ILT
8333 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
8334 function, and line_base fields.
8335 * libcoff.h: Rebuild.
8336 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
8337 information, rather than using static variables.
8338
641ac26a
ILT
8339 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
8340 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
8341
81449d47
ILT
8342 * init.c (initialized): Remove static variable.
8343 (bfd_init): Don't bother setting initialized.
8344 (bfd_check_init): Remove.
8345 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
8346 * libbfd.h: Rebuild.
8347
138b9b81
PS
8348Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8349
8350 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
8351 size for full core dumps. Copy core file header to private data.
8352 (rs6000coff_core_file_failing_command,
8353 rs6000coff_core_file_failing_signal): New functions to extract
8354 the file name and terminating signal from the core file.
8355 * coff-rs6000.c: Use them.
8356
2ffbb79a
ILT
8357Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
8358
8359 Change arch info to be const, initialized at compile time.
8360 * archures.c: Reindent many functions. Change CONST to const.
8361 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
8362 nothing set it anyhow. Make next const.
8363 (bfd_arch_info_list): Remove.
8364 (bfd_archures_list): Rename from archures_init_table. Change from
8365 a table of function pointers to a table of bfd_arch_info_type
8366 structure addresses.
8367 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
8368 (bfd_lookup_arch): Likewise.
8369 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
8370 const pointer.
8371 (bfd_default_arch_struct): Make const.
8372 (bfd_arch_init, bfd_arch_linkin): Remove.
8373 (bfd_get_arch_info): Return a const pointer.
8374 * init.c (bfd_init): Don't call bfd_arch_init.
8375 * bfd.c (struct _bfd): Make arch_info const.
8376 * bfd-in2.h: Rebuild.
8377 * libbfd.h: Rebuild.
8378 * configure.in: Put & before everything in $selarchs.
8379 * configure: Rebuild.
8380 * cpu-*.c: Change bfd_*_arch from a function which calls
8381 bfd_arch_linkin to a const structure.
8382 * ieee.c (ieee_object_p): Make arch const.
8383
02f85cda
MM
8384Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
8385
8386 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
8387 PowerPC V.4.
8388 * bfd-in2.h: Regenerate.
8389 * libbfd.h: Regenerate.
8390
8391 * elf32-ppc.c (reloc_type): Update names to match current draft.
8392 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
8393 relative. Update names to current V.4 draft.
8394 (ppc_elf_reloc_type_lookup): Add support for more relocations.
8395 (ppc_elf_relocate_section): Rename relocations to match draft.
8396
dd82c578
MM
8397Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
8398
8399 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
8400 compiled with -mrelocatable-lib to be linked with either normal
8401 modules or -mrelocatable modules.
8402
f69e888e
ILT
8403Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
8404
e18c4e8f
ILT
8405 * coffcode.h (coff_write_object_contents): Clear the vstamp field
8406 in the a.out header.
8407
f69e888e
ILT
8408 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
8409 a reloc against a local symbol, even if it's not a section.
8410
a5655244
ILT
8411Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
8412
8413 * targets.c (bfd_target): Remove unused align_power_min field.
8414 * bfd-in2.h: Rebuild.
8415 * All backends: Remove initialization of align_power_min.
8416
500d7394
SC
8417Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
8418
8419 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
500d7394 8420
049df0a8
ILT
8421Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
8422
8423 * config.bfd (mips-dec-netbsd*): New target.
8424 * configure.host (mips-dec-netbsd*): New host.
8425 * configure.in (mips-dec-netbsd*): New native.
8426 * configure: Rebuild.
8427
1862bbd8
ILT
8428Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
8429
8430 Make the COFF backend linker merge common types:
8431 * cofflink.c (struct coff_debug_merge_element): Define.
8432 (struct coff_debug_merge_type): Define.
8433 (struct coff_debug_merge_hash_entry): Define.
8434 (struct coff_debug_merge_hash_table): Define.
8435 (coff_debug_merge_hash_table_init): Define.
8436 (coff_debug_merge_hash_table_free): Define.
8437 (coff_debug_merge_hash_lookup): Define.
8438 (struct coff_final_link_info): Add debug_merge field.
8439 (coff_debug_merge_hash_newfunc): New static function.
8440 (_bfd_coff_final_link): Allocate and free debug_merge table.
8441 (coff_link_input_bfd): Merge identical enum, struct and union
8442 types.
8443
a208a70f
ILT
8444Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
8445
8446 Convert i960 COFF to use COFF backend linker.
8447 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
8448 structure to store the symbol being used.
8449 (coff_i960_start_final_link): New static function.
8450 (coff_i960_relocate_section): New static function.
8451 (coff_i960_adjust_symndx): New static function.
8452 (coff_start_final_link): Define.
8453 (coff_relocate_section): Define.
8454 (coff_adjust_symndx): Define.
8455 * coffcode.h (bfd_coff_backend_data): Add new callback function
8456 _bfd_coff_start_final_link.
8457 (bfd_coff_start_final_link): Define.
8458 (coff_start_final_link): Define if not defined.
8459 (bfd_coff_std_swap_table): Add coff_start_final_link.
8460 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
8461 visible.
8462 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
8463 function callback is not NULL.
8464 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
8465 (_bfd_coff_internal_syment_name): Declare.
8466 * libcoff.h: Rebuild.
8467 * configure.in (icoff_big_vec): Add cofflink.o.
8468 (icoff_little_vec): Likewise.
8469 * configure: Rebuild.
8470
f0abedbe
FF
8471Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
8472
8473 * Makefile.in (clean-info): Remove extraneous tab from line
8474 following action.
8475
aa4b3dc5
ILT
8476Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
8477
8478 * cofflink.c (coff_link_input_bfd): Fail if a section with no
8479 contents has relocs.
8480
4ca63811 8481Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
beee31b1
SC
8482
8483 * coffcode.h (coff_compute_section_file_positions): Keep the
cf2cd4cf 8484 raw size safe.
beee31b1
SC
8485 (coff_write_object_contents): Remember if it's a relocatable
8486 file.
8487 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
8488 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
8489 if relocatable file. Swap out saved raw size.
8490
ae115e51
ILT
8491Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
8492
9521bac3
ILT
8493 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
8494 (maintainer-clean): Rename from realclean, passing
8495 maintainer-clean down to subdirectories, but leave realclean as a
8496 synonym.
8497
4ca63811
ILT
8498 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
8499 warning callback.
8500
5aa4c3ff
ILT
8501 * dep-in.sed: Remove config.h from generated dependencies.
8502
396aaeb2
ILT
8503 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
8504 broken out of sunos_canonicalize_dynamic_symtab.
8505 (sunos_canonicalize_dynamic_symtab): Call new function
8506 sunos_slurp_dynamic_symtab.
8507 (sunos_add_dynamic_symbols): Add three new parameters. Return the
8508 dynamic symbol table to the caller.
8509 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
8510 callback to override the symbols being read.
8511 * libaout.h (struct aout_backend_data): Add three new parameters
8512 to add_dynamic_symbols callback.
8513
ae115e51
ILT
8514 Extensive minor changes to avoid various gcc warnings. Also:
8515 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
8516 * archures.c (bfd_arch_info_type): Change mach field from long to
8517 unsigned long.
8518 (bfd_lookup_arch): Change machine parameter from long to unsigned
8519 long.
8520
b088e4b2
ILT
8521Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
8522
8523 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
8524 a symbol with a non-zero plt_offset.
8525
1dff7902
ILT
8526Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
8527
2b71e1e4
ILT
8528 * elfcode.h (align_file_position): Remove; not used.
8529
1dff7902
ILT
8530 * configure.in: Only check for <sys/procfs.h> on a native system,
8531 and make sure it defines prstatus_t.
8532 * configure: Rebuild.
8533
870015b1
ILT
8534Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
8535
535c89f0
ILT
8536 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
8537
936b870c
ILT
8538 * config.in: Rename from config.h.in.
8539 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
a7873a6c 8540 Check for config.h:config.in when creating stamp-h.
936b870c 8541 * configure: Rebuild.
a7873a6c
ILT
8542 * Makefile.in (stamp-h): Depend upon config.in rather than
8543 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
8544 calling config.status.
936b870c 8545
870015b1
ILT
8546 * Makefile.in (do_distclean): Remove config.h and stamp-h.
8547 (Makefile): Just rebuild Makefile.
8548 (config.h, stamp-h): New targets.
8549 * configure.in: Create stamp-h when rebuilding config.h.
8550 * configure: Rebuild.
8551
b7577823
ILT
8552Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
8553
8554 * configure.in: Call AC_CONFIG_HEADER. Substitute
8555 HOST_64BIT_LONG. Check that various header files exist. Check
8556 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
8557 and/or free need to be declared. Don't make a link to sysdep.h.
8558 Define TRAD_HEADER for various hosts.
8559 * configure: Rebuild.
8560 * configure.host: Don't set my_host. Add definitions taken from
8561 host header files for various entries. Remove entries which now
8562 do nothing.
8563 * acconfig.h: New file.
8564 * config.h.in: New file, built by autoheader.
8565 * sysdep.h: New file.
8566 * Makefile.in (do_distclean): Don't remove sysdep.h.
8567 (RECONFIG): Remove.
8568 (LOCAL_H_DEPS): New variable.
8569 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
8570 $(RECONFIG).
8571 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
8572 ($(OPTIONAL_BACKENDS)): Likewise.
8573 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
8574 looking through sysdep.h.
8575 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
8576 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
8577 (fprintf_vma, sprintf_vma): Likewise.
8578 (int64_type, uint64_type): Don't define.
8579 * bfd-in2.h: Rebuild.
8580 * archures.c, bfd.c, srec.c: Include <ctype.h>.
8581 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
8582 * lynx-core.c: Include stuff from old hosts/lynx.h.
8583 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
8584 rather than NO_FCNTL.
8585 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
8586 rather than NATIVE_HPPAHPUX_COMPILER.
8587 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
8588 is defined.
8589 * hosts/*.h: Remove all header files which merely include,
8590 declare, and define things. Leave header files which define
8591 information needed by trad-core.c.
8592
8593 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
8594 (BFD_CC_FOR_BUILD): Define.
8595 * configure.in: Use BFD_CC_FOR_BUILD.
8596 * configure: Rebuild.
8597
7a93ebdd
ILT
8598Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
8599
4c2e4d0e
ILT
8600 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
8601 * configure: Rebuild.
8602
7a93ebdd
ILT
8603 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
8604 a global symbol.
8605
866bb9e5
JM
8606Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
8607
8608 * config.bfd: i386pe_ve -> i386pe_vec.
8609
2b79a104
ILT
8610Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
8611
f515fb2f
ILT
8612 * configure.host: Incorporate host Makefile fragments by setting
8613 shell variables.
8614 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
8615 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
8616 value based on whether the code is being compiled by a cross
8617 compiler. Don't substitute host_makefile_frag or frags.
8618 * aclocal.m4: New file to define local AC_PROG_CC.
8619 * configure: Rebuild.
8620 * Makefile.in (INSTALL): Set to @INSTALL@.
8621 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
8622 (INSTALL_DATA): Set to @INSTALL_DATA@.
8623 (AR): Set to @AR@.
8624 (CC): Define as @CC@.
8625 (CFLAGS): Set to @CFLAGS@.
8626 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
8627 (@host_makefile_frag@): Remove.
8628 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
8629 after other options.
8630 (config.status): Remove dependency upon @frags@.
8631 * config/*.mh, config/README: Remove.
8632
2b79a104
ILT
8633 * config.bfd: Rewrite to incorporate the contents of the Makefile
8634 fragments by setting shell variables, rather than merely returning
8635 the name of a Makefile fragment.
8636 * configure.in: Use shell variables set by config.bfd rather than
8637 looking at the target Makefile fragment files. Don't substitute
8638 target_makefile_frag. Do substitute TDEFINES.
8639 * configure: Rebuild.
8640 * Makefile.in (@target_makefile_frag@): Remove.
8641 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
8642 * config/*.mt: Remove.
8643
2cb159a5
KR
8644Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
8645
8646 * configure.in: Put changequote lines around "i[345]86" patterns
8647 section of core file support.
8648
ef07871c
JL
8649Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
8650
8651 * som.c (som_bfd_print_private_bfd_data): Define to use the
8652 generic version.
8653
1613e075
SC
8654Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
8655
8656 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
8657 entry, text_start and data_start.
8658
a52a3ce8
ILT
8659Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
8660
a21227ef
ILT
8661 * Makefile.in (OFILES): Remove $(TDEPFILES).
8662 * config/apollo.mt (TDEPFILES): Remove.
8663 * config/README: Update.
8664
a52a3ce8
ILT
8665 * configure.in: For a native configuration, set COREFILE and
8666 COREFLAG based on the canonical host name.
8667 * configure: Rebuild.
8668 * Makefile.in: Rebuild dependencies.
8669 (ALL_CFLAGS): Add @COREFLAG@.
8670 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
8671 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
8672 support routines. Check LYNX_CORE rather than HOST_LYNX.
8673 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
8674 * i386lynx.c: Likewise.
8675 * m68klynx.c: Likewise.
8676 * sparclynx.c: Likewise.
8677 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
8678 * *-core.c: Comment changes.
8679 * config/decstation.mh (HDEPFILES): Remove.
8680 (HDEFINES): Remove -DTRAD_CORE.
8681 * config/irix3.mh (RANLIB): Remove.
8682 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
8683 (HDEFINES): Remove -DIRIX_CORE.
8684 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
8685 (HDEFINES): Remove -DTRAD_CORE.
8686 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
8687 * config/ultra3.mh (RANLIB): Remove.
8688 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
8689 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
8690 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
8691 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
8692 * config/hppahpux.mh, config/hppaosf.mh: Remove.
8693 * config/i386aix.mh, config/i386bsd.mh: Remove.
8694 * config/i386linux.mh, config/i386mach3.mh: Remove.
8695 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
8696 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
8697 * config/mipsmach3.mh, config/news-mips.mh: Remove.
8698 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
8699 * config/rs600.mh, config/rs6000lynx.mh: Remove.
8700 * config/solaris2.mh, config/stratus.mh: Remove.
8701 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
8702 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
8703
d6f672b8
ILT
8704Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
8705
8706 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
8707 DT_FINI entry if the appropriate symbol is not in the hash table.
8708
8709 * libelf.h (struct elf_backend_data): Add create_program_headers
8710 and want_hdr_in_seg fields.
8711 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
8712 defined.
8713 (elf_backend_create_program_headers): Likewise.
8714 (elfNN_bed): Initialize create_program_headers and
8715 want_hdr_in_seg.
8716 * elf.c (get_program_header_size): Call create_program_headers
8717 backend routine.
8718 (map_program_segments): Check want_hdr_in_seg backend field. Call
8719 create_program_headers backend routine.
8720
8721 * elf.c (assign_file_positions_except_relocs): Align non allocated
8722 sections when creating an executable.
8723
8724 * elfcode.h (elf_swap_phdr_in): Make non static.
8725 (elf_swap_phdr_out): Make non static.
8726 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
8727 (bfd_elf32_swap_phdr_out): Declare.
8728 (bfd_elf64_swap_phdr_in): Declare.
8729 (bfd_elf64_swap_phdr_out): Declare.
8730
8731 * ecofflink.c (ecoff_collect_shuffle): New static function.
8732 (_bfd_ecoff_get_accumulated_pdr): New function.
8733 (_bfd_ecoff_get_accumulated_sym): New function.
8734 (_bfd_ecoff_get_accumulated_ss): New function.
8735 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
8736 (_bfd_ecoff_get_accumulated_sym): Declare.
8737 (_bfd_ecoff_get_accumulated_ss): Declare.
8738 * libbfd.h: Rebuild.
8739
0cb70568
ILT
8740Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
8741
d6f672b8
ILT
8742 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
8743
0cb70568
ILT
8744 * elflink.h (elf_link_add_object_symbols): Handle indirect and
8745 warning symbols. If any section is named .gnu.warning.XXX, treat
8746 the contents as a warning to be issued if the symbol XXX is
8747 referenced.
8748 (elf_link_output_extsym): For an indirect or warning symbol, just
8749 output the symbol it points to.
8750
8751 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
8752 if bfd_hash_allocate fails, since it will already be set.
8753 (generic_link_hash_newfunc): Likewise.
8754 (archive_hash_newfunc): Likewise.
8755 (hash_entry_bfd): New static function.
8756 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
8757 callback. Allocate a new warning using the hash table newfunc.
8758 Use bfd_hash_replace to update the entry in the hash table, rather
8759 than assuming we can copy the fields with structure assignment.
8760
8761 * hash.c (bfd_hash_replace): New function.
8762 * bfd-in.h (bfd_hash_replace): Declare.
8763 * bfd-in2.h: Rebuild.
8764
f14db880
JSC
8765Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
8766
8767 * config.bfd: Add mips*vr4300-*-elf* target.
8768 * config/mipsbvr4300.mt: Added.
8769
1613e075 8770See file ChangeLog.2
e6d739eb 8771
41126f15
JK
8772\f
8773Local Variables:
c6c7035c 8774mode: change-log
41126f15 8775left-margin: 8
6ec3bb6a
ILT
8776fill-column: 74
8777version-control: never
8778End:
This page took 0.622491 seconds and 4 git commands to generate.