* libhppa.h (HPPA_R_ARG_RELOC): Delete.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
2a6d0fe7
JL
1Fri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com)
2
3 * libhppa.h (HPPA_R_ARG_RELOC): Delete.
4 (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise.
5
23bc299b
MM
61999-07-01 Mark Mitchell <mark@codesourcery.com>
7
8 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
9 fields.
10 (_bfd_elf_init_reloc_shdr): New function.
11 * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than
12 bfd_alloc followed by memset.
13 (_bfd_elf_init_reloc_shdr): New function, split out from ...
14 (elf_fake_sections): Here.
15 (assign_section_numbers): Assign section numbers for the second
16 relocation section, if required.
17 * elflink.h (elf_link_output_relocs): New function.
18 (elf_link_size_reloc_section): Likewise.
19 (elf_bfd_final_link): Use elf_link_size_reloc_section.
20 (elf_link_input_bfd): Use elf_link_output_relocs.
21
22 * elf32-mips.c (_bfd_mips_elf_fake_sections): Use
23 _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
24
17bb48e0
JL
25Thu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com)
26
27 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL
28 with 22bit format.
29
7403cb63
MM
301999-06-28 Mark Mitchell <mark@codesourcery.com>
31
32 * elf32-mips.c (mips_elf_got_info): Move declaration before
33 prototypes. Change global_gotsym to be a pointer to a hash entry,
34 rather than a number index.
35 (mips_elf_link_hash_entry): Move declaration before prototypes.
36 (mips_elf_irix6_finish_dynamic_symbol): New function.
37 (mips_elf_sign_extend): Likewise.
38 (mips_elf_high): Likewise.
39 (mips_elf_higher): Likewise.
40 (mips_elf_highest): Likewise.
41 (mips_elf_global_got_index): Likewise.
42 (mips_elf_local_got_index): Likewise.
43 (mips_elf_got_offset_from_index): Likeiwse.
44 (mips_elf_record_global_got_symbol): Likewise.
45 (mips_elf_got_page): Likewise.
46 (mips_elf_next_lo16_addend): Likewise.
47 (mips_elf_calculate_relocation): Likewise.
48 (mips_elf_obtain_contents): Likewise.
49 (mips_elf_perform_relocation): Likewise.
50 (mips_elf_assign_gp): Likewise.
51 (mips_elf_sort_hash_table_f): Likewise.
52 (mips_elf_sort_hash_table): Likewise.
53 (mips_elf_got_section): Likewise.
54 (mips_elf_got_info): Likewise.
55 (mips_elf_create_local_got_entry): Likewise.
56 (mips_elf_got16_entry): Likewise.
57 (mips_elf_create_dynamic_relocation): Likewise.
58 (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP.
59 (mips_elf_final_gp): Use mips_elf_assign_gp.
60 (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols
61 into SHN_SCOMMON automatically on IRIX6.
62 (mips_elf_add_symbol_hook): Likewise.
63 (mips_elf_relocate_section): Rewrite, using
64 mips_elf_calculate_relocation and mips_elf_perform_relocation.
65 (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME.
66 Don't deal with .rld_map on IRIX6.
67 (mips_elf_create_got_section): Adjust use of global_gotsym. Set
68 section flags appropriately for .got.
69 (mips_elf_check_relocs): Handle IRIX6 relocations making use of
70 the got. Call mips_elf_record_global_got_symbol and allocate
71 local got space appropriately.
72 (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned
73 char *. Rework calculation of GOT size. Sort dynamic symbol
74 table entries so entries that do not require GOT entries appear at
75 the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead
76 code dealing with DT_INIT and DT_FINI. Remove fiddling with
77 global_gotsym.
78 (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT
79 entries.
80 (mips_elf_finish_dynamic_symbol): Use
81 mips_elf_irix6_finish_dynamic_symbol.
82 (mips_elf_finish_dynamic_sections): Correct off-by-one error
83 setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for
84 change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6.
85
0dda5f7a
ILT
861999-06-30 Ian Lance Taylor <ian@zembu.com>
87
88 * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
89 relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
90
04f7c78d
NC
911999-06-04 Philip Blundell <philb@gnu.org>
92
93 * elf32-arm.h (elf_backend_got_header_size): Define.
94 (elf_backend_plt_header_size): Likewise.
95
a72747a3
NC
961999-06-28 Jim Pick <jim@jimpick.com>
97
98 * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined
99
caf3d37c
JL
100Tue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com)
101
102 * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as
103 relocation function.
104 * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function.
105
9886bd43
MM
1061999-06-27 Mark Mitchell <mark@codesourcery.com>
107
303f629d
MM
108 * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro.
109 (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise.
110 (MIPS_ELF_STUB_SECTION_NAME): Likewise.
111 (_bfd_mips_elf_section_from_shdr): Use them.
112 (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list
113 of GP-relative sections.
114 (_bfd_mips_elf_set_section_contents): Use them.
115 (_bfd_mips_elf_section_processing): Share code between .sdata and
116 .lit4/.lit8 sections. Set appropriate flags for .srdata.
117 (mips_elf_additional_program_headers): Add handling for
118 PT_MIPS_OPTIONS segment on IRIX6.
119 (mips_elf_modify_segment_map): Likeiwse.
120 (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI.
121 Include the options sections on IRIX6. Don't look for GP-relative
122 sections by name; use SHF_MIPS_GPREL instead.
123 (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for
124 the N32 ABI.
125 (mips_elf_create_dynamic_sections): Don't muck about with section
126 alignments and such on IRIX6.
127 (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
128 (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the
129 fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use
130 bfd_zalloc rather than bfd_alloc and memset.
131 (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
132 Don't assert the existence of .rld_map on IRIX6.
133 (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME.
134
9886bd43
MM
135 * elf32-mips.c (mips_elf_adjust_dynindx): Remove.
136 (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx
137 instead.
138
a94a7c1c
MM
1391999-06-26 Mark Mitchell <mark@codesourcery.com>
140
c6142e5d
MM
141 * elf32-mips.c (mips_elf_swap_msym_in): New function.
142 (mips_elf_swap_msym_out): New function.
143 (mips_elf_create_msym_section): Likewise.
144 (MIPS_ELF_MSYM_SECTION_NAME): New macro.
145 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
146 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
147 section not named .msym.
148 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
149 .msym directly. Set appropriate attributes for the .msym
150 section.
151 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
152 (mips_elf_link_hash_newfunc): Clear it.
153 (mips_elf_create_dynamic_sections): Create the .msym section
154 on IRIX6.
155 (mips_elf_size_dynamic_sections): Allocate space for the
156 .msym section. Add a DT_MIPS_MSYM entry.
157 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for
158 the symbol.
159 (mips_elf_finish_dynamic_sections): Assign a value for
160 DT_MIPS_MSYM. Add .msym entries for the section symbols as well.
161
a94a7c1c
MM
162 * elf32-mips.c (irix_compat_t): New enumeration.
163 (ABI_N32_P): New macro.
164 (IRIX_COMPAT): Likewise.
165 (SGI_COMPAT): Implement in terms of IRIX_COMPAT.
166 (mips_elf_relocate_section): Fix typo.
167
254f5c45
ILT
1681999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
169
170 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections
171 as writable PE sections.
172
f623be2b
RH
1731999-06-26 David Mosberger <davidm@hpl.hp.com>
174
175 * dwarf2.c (struct arange): New type.
176 (struct comp_unit): Replace LOW and HIGH by member ARANGE.
177 (arange_add): New function.
178 (decode_line_info): Keep track of address ranges that a compilation
179 unit covers.
180 (comp_unit_contains_address): Return true if address is contained
181 in _any_ of the address ranges associated with a compilation unit.
182 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line
183 on the first comp_unit that contains the address.
184
69dd2e2d
RH
1851999-06-26 David Mosberger <davidm@hpl.hp.com>
186
187 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer.
188 (decode_line_info): Add variable STASH and initialize it to point
189 to the per-bfd dwarf2_debug info. Remove static variable
190 dwarf_line_buffer and use stash->dwarf_line_buffer in its place.
191
0429ebd0
ILT
1921999-06-26 Ian Lance Taylor <ian@zembu.com>
193
1d7b28df
ILT
194 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic
195 shared library to have an undefined symbol.
196
0429ebd0
ILT
197 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
198 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch.
199
4517897e
JL
200Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com)
201
202 * elf-hppa.c (elf_hppa_final_write_processing): New function.
203 * elf32-hppa.c: Remove everything related to symbol extension
204 sections & records. Use the common elf_hppa_final_write_processing.
205
f0c2e336
MM
2061999-06-22 Mark Mitchell <mark@codesourcery.com>
207
208 * elflink.h (size_dynamic_sections): Use user-specified init/fini
209 functions instead of _init/_fini if requested.
210
03ae5f59
ILT
2111999-06-23 Ian Lance Taylor <ian@zembu.com>
212
213 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link
214 field.
215
464e1740
ILT
2161999-06-22 Ian Lance Taylor <ian@zembu.com>
217
218 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
219 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
220 field to 0, not -1.
221 (ppc_elf_finish_dynamic_sections): Check for positive section
222 dynindx field, rather than comparing against -1.
223 (ppc_elf_relocate_section): Only return false if undefined_symbol
224 or reloc_overflow fail, not always upon encountering an error.
225
2f5116e2
MM
2261999-06-22 Mark Mitchell <mark@codesourcery.com>
227
228 * elflink.h (link_read_relocs): Explicitly cast external_relocs to
229 bfd_byte * before performing pointer arithmetic.
230
9e103c9c
JL
231Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com)
232
233 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA
234 support.
235 * elf32-hppa.c: Include elf-hppa.h.
236 (ARCH_SIZE): Define.
237 (elf_hppa_reloc_type_lookup): Delete. Found in the common code
238 now.
239 (elf32_hppa_info_to_howto): Similarly.
240 (elf_hppa_howto_table): Similarly.
241 (elf_hppa_reloc_type_lookup): Similarly.
242 (hppa_elf_gen_reloc_type): Similarly.
243 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
244
232fb1a3
NC
2451999-06-22 Nick Clifton <nickc@cygnus.com>
246
247 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
248 handling R_V850_22_PCREL relocation.
249
271025eb
ILT
2501999-06-21 Ian Lance Taylor <ian@zembu.com>
251
252 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
253 type.
254
0bde07d4
RH
255Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com>
256
257 * section.c (_bfd_strip_section_from_output): Ignore sections
258 DISCARDed by the link script.
259
f800e11d
ILT
2601999-06-19 Ian Lance Taylor <ian@zembu.com>
261
262 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
263 Remove unused local variable spp.
264
265 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
266 the entry symbol is not set.
267
72b60c23
RH
268Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
269
270 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
271 GPDISP or LITUSE in a relocatable link.
272
aec89efb
JR
273Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
274
275 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
276 * (alloc_dwarf1_func): Likewise.
277
5ba624b0
JL
278Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
279
280 * libhppa.h: Fix various formatting errors.
281 (assemble_3); Rewrite using CATENATE.
282 (assemble_17): Fix various bugs.
283
59d23ada
NC
2841999-06-16 Nick Clifton <nickc@cygnus.com>
285
286 * elf32-mcore.c (R_MCORE_RAW): Fix definition.
287
0c3ff40b
RH
2881999-06-15 Richard Henderson <rth@cygnus.com>
289
290 * section.c (SEC_SHORT): Define.
291 * bfd-in2.h: Rebuild.
292
42751cf3
MM
2931999-06-13 Mark Mitchell <mark@codesourcery.com>
294
78de0b43
MM
295 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
296 Remove abfd parameter. Use _bfd_strip_section_from_output.
297 (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
298
42751cf3
MM
299 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
300 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
301 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
302 function.
303 (bfd_elf_size_dynamic_sections): Use it.
304
3e269912
ILT
3051999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au>
306
307 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
308 complain_overflow_bitfield to complain_overflow_signed.
309
6b5bd373
MM
3101999-06-13 Mark Mitchell <mark@codesourcery.com>
311
312 * elflink.h (elf_link_read_relocs_from_section): New function,
313 split out from ...
314 (elf_link_read_relocs): Here. Use it for both relocation
315 sections.
316
57e21bef
MM
3171999-06-12 Mark Mitchell <mark@codesourcery.com>
318
319 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
320 asect->reloc_count is valid.
321
cc3bfcee
ILT
3221999-06-12 Ian Lance Taylor <ian@zembu.com>
323
324 * elf32-mips.c (mips_elf32_section_processing): Permit a
325 SHT_MIPS_REGINFO section to have a size of 0.
326
7a50d4ac
ILT
3271999-06-12 David O'Brien <obrien@freebsd.org>
328
329 * config.bfd (alpha*-*-freebsd*): New target.
330 (i[3456]86-*-freebsd*): Now defaults to ELF.
331
f5f9cc4f
ILT
3321999-06-11 Ian Lance Taylor <ian@zembu.com>
333
44257b8b
ILT
334 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
335 wrap if the relocation covers the high bit of an address.
336
f5f9cc4f
ILT
337 * dwarf2.c (decode_line_info): Remove unused variable first_time.
338
60dac299
RH
3391999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
340
341 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
342 instead of R_SPARC_max.
343 (sparc64_elf_info_to_howto): Likewise.
344 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
345 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
346
9d7428a9
RH
3471999-06-07 Richard Henderson <rth@cygnus.com>
348
349 * section.c (_bfd_strip_section_from_output): Remove output
350 sections with no initial link_order.
351
3c82f80f
NC
3521999-06-07 Nick Clifton <nickc@cygnus.com>
353
354 * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
355
eb519dff
AS
356Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
357
358 * Makefile.am (SOURCE_HFILES): Add missing headers.
359 * Makefile.in: Regenerated.
360
7f7e7b68
MM
3611999-06-06 Mark Mitchell <mark@codesourcery.com>
362
363 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
364 the N32 ABI.
365
dc1bc0c9
RH
3661999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
367
368 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
369 range undefweak symbols.
370 * hash.c: Add missing comma after @xref{}
371 * linker.c: Likewise.
372
79e5982f
NC
3731999-06-04 Nick Clifton <nickc@cygnus.com>
374
375 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
376 if not defined.
377 * elf32-gen.c (ELF_MAXPAGESIZE): Define.
378 * elf32-i860.c (ELF_MAXPAGESIZE): Define.
379 * elf32-i960.c (ELF_MAXPAGESIZE): Define.
380 * elf64-gen.c (ELF_MAXPAGESIZE): Define.
381
4a54b465
ILT
3821999-06-04 Ian Lance Taylor <ian@zembu.com>
383
384 * Makefile.am: Rebuild dependencies.
385 (BFD32_BACKENDS): Add dwarf1.lo.
386 (BFD32_BACKENDS_CFILES): Add dwarf1.c.
387 * Makefile.in: Rebuild.
388
7714a18c
NC
3891999-06-04 Nick Clifton <nickc@cygnus.com>
390
391 * Makefile.am: Add epoc-arm-pe target.
392 * Makefile.in: Regenerate.
393 * pe-arm.c: Only redefine interworking function names if they have
394 not already been redefined.
395 * pei-arm.c: Only redefine interworking function names if they have
396 not already been redefined.
397 * epoc-pe-arm.c: Redefine interworking function names to avoid a
398 name space clash.
399 * epoc-pei-arm.c: Redefine interworking function names to avoid a
400 name space clash.
401
dece4658
NC
4021999-06-03 Nick Clifton <nickc@cygnus.com>
403
404 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
405
a9d024b8
AS
406Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
407
408 * elf.c (elf_fake_sections): Undo change of 1999-05-10.
409
06e1ba78
JR
410Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
411
412 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
413 start / stop for recalculating of r_addend of R_SH_SWITCH*.
414
084aa3aa
JR
415Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
416
417 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
418 in other text sections.
419
875f7f69
JR
420Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
421
422 * libbfd.c (_bfd_generic_verify_endian_match): New function.
423 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
424 * libbfd.h: Regenerate.
425 * coff-sh.c (sh_merge_private_data): Delete.
426 (coff_bfd_merge_private_bfd_data): Change to
427 _bfd_generic_verify_endian_match.
428 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
429
6a9d5c9a
UD
4301999-06-03 Ulrich Drepper <drepper@cygnus.com>
431
432 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
433
a3e38ad3
ILT
4341999-06-03 Ian Lance Taylor <ian@zembu.com>
435
436 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
437 prototype.
438 (bfd_elf32_arm_process_before_allocation): Likewise.
439 * bfd-in2.h: Rebuild.
440
159002ff
RH
4411999-06-03 David Mosberger <davidm@hpl.hp.com>
442
443 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
444 track of end_sequence markers.
445 (add_line_info): Add END_SEQUENCE arg.
446 (decode_line_info): Don't try to infer lo_pc and hi_pc from the
447 debug-line info---it doesn't work right if a compilation unit
448 consists of multiple discontiguous code-sequences. It would be
449 worthwhile to optimize for the common case where a compilation
450 unit results in a contiguous set of code sequences, but this is
451 quite tricky to get right for arbitrary DWARF2 files.
452 (lookup_address_in_line_info_table): Don't use the last line entry
453 for a compilation unit for anything with an address higher than
454 this line entry. Also, check for end_sequence markers to
455 correctly handle discontinuities.
456 (_bfd_dwarf2_find_nearest_line): When checking previously loaded
457 compilation units, check all compilation units with each->high==0
458 just like when reading compilation units.
459
460 * dwarf2.c (decode_line_info): Initialize table->files and
461 table->last_line to NULL to avoid segfaults due to random
462 values in these members.
463 (concat_filename): Check for out-of-range file number before
464 indexing filename table. Segfaults suck.
465
466 * dwarf2.c (decode_line_info): Don't truncate address to least
467 significant 32 bits (breaks 64 bit targets).
468 (lookup_address_in_function_table): Ditto.
469 (comp_unit_contains_address): Ditto.
470
42fdc509
MM
4711999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>>
472
473 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
474 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
475 (mips_elf64_howto_table_rela): Likewise.
476
477 * elfcode.h (elf_slurp_reloc_table_from_section): New function,
478 split out from ...
479 (elf_slurp_reloc_table): Here. Use it to handle the case where a
480 single section has two associated relocation sections.
6a9d5c9a 481
9d8cefa9
RH
4821999-06-02 Mark Salter <msalter@cygnus.com>
483
484 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
485 COFF_WITH_PE defined.
486
c9fca91d
NC
4871999-06-02 Nick Clifton <nickc@cygnus.com>
488
489 * pe-arm.c: Rename global arm interworking functions to avoid name
490 collision when all targets BFD is built.
491 * pei-arm.c: Ditto.
492
bf572ba0
MM
4931999-05-31 Mark Mitchell <mark@codesourcery.com>
494
495 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
496 may_use_rel_p, may_use_rela_p, default_use_rela_p.
497 (bfd_elf_section_data): Add use_rela_p.
498 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
499 (_bfd_elf_new_section_hook): Likewise.
500 (elf_fake_sections): Use may_use_rela_p, etc., instead of
501 use_rela_p.
502 (_bfd_elf_copy_private_section_data): Copy use_rela_p.
503 * elfcode.h (write_relocs): Determine whether or not use rela
504 relocs based on the relocation section header.
505 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
506 instead of use_rela_p.
507 * elfxx-target.h (elf_backend_may_use_relp): New macro.
508 (elf_backend_may_use_rela_p): Likewise.
509 (elf_backend_default_use_rela_p): Likewise.
510 (elfNN_bed): Use them.
6a9d5c9a 511
3fe702fd
RH
512Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
513
514 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
515
3f830999
MM
516Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
517
518 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
519 (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
520 (BFD_RELOC_MIPS_GOT_OFST): Likewise.
521 (BFD_RELOC_MIPS_GOT_DISP): Likewise.
522 * bfd-in2.h: Regenerated.
523 * libbfd.h: Likewise.
524 * elf32-mips.c (mips_info_to_howto_rela): New function.
525 (USE_REL): Adjust for new conventions.
526 (MINUS_ONE): New macro.
527 (elf_mips_howto_table): Add R_MIPS_SUB.
6a9d5c9a 528 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
3f830999
MM
529 and MIPS_GOT_DISP.
530 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
531 .MIPS.content section.
532 (_bfd_mips_elf_fake_sections): Treat all sections that begin
533 with .MIPS.content as .MIPS.content sections. Set
534 SHF_MNIPS_NOSTRIP for such section.
535 (elf_info_to_howto): Define to mips_info_to_howto_rela.
536 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
537 MIPS_GOT_OFST, and MIPS_GOT_DISP.
538
70f06c4a
AS
539Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
540
015985c9
AS
541 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
542 variable.
543
70f06c4a 544 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
6a9d5c9a 545 `else'.
70f06c4a 546
2ef994e0
NC
5471999-05-30 Philip Blundell <philb@gnu.org>
548
549 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
550 1993-03-25 (!!). Take into account the bitmasks for the reloc so
551 the addend does not overflow into the rest of the word.
552
ba96a88f
NC
5531999-05-29 Nick Clifton <nickc@cygnus.com>
554
555 * bfd-in.h: Amend prototype for
556 bfd_elf32_arm_process_before_allocation .
557 * bfd-in.h: Regenerate.
6a9d5c9a 558
ba96a88f
NC
559 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
560 elements in a fixed sized array.
561 (ARM_ELF_ABI_VERSION): Define.
562 (ARM_ELF_OS_ABI_VERSION): Define.
563 (R_ARM_THM_ABS5): Fix rightshift and size.
564 (R_ARM_THM_PC22): Fix size.
565 (R_ARM_PLT32): Define Howto.
566 (find_howto): New function: Locate a howto based on a reloc
567 number.
568 (elf32_arm_info_to_howto): Use find_howto if necessary.
569 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
570 bfd_reloc_code_real_type.
571 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
572 and BFD_RELOC_VTABLE_ENTRY.
573 (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
574
575 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
576 elements in a fixed sized array.
577 (ARM_ELF_ABI_VERSION): Define.
578 (ARM_ELF_OS_ABI_VERSION): Define.
579 (R_ARM_THM_ABS5): Fix rightshift and size.
580 (R_ARM_THM_PC22): Fix size.
581 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
582 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
583 bfd_reloc_code_real_type.
584
585 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
586 no_pipeline_knowledge.
587 (elf32_arm_link_hash_create): Initialise new field to zero.
588 (bfd_elf32_arm_process_before_allocation): Add new paraemter:
589 no_pipeline_knowledge. Use this parameter to initialise the field
590 in the globals data structure.
591 (elf32_arm_final_link_relocate): Only add in pipeline offset if
592 no_pipeline_knowledge is false and the binary is from an old
593 toolchain.
594 (elf32_arm_merge_private_data): Generate an error if an attempt is
595 made to linl together big endian and little endian code.
596 (elf32_arm_post_process_headers): New function: Initialise the
597 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
6a9d5c9a 598 header.
ba96a88f
NC
599 (elf_backend_post_process_headers): Define.
600
e6c51ed4
NC
6011999-05-28 Nick Clifton <nickc@cygnus.com>
602
603 * elf-bfd.h (struct elf_backend_data): Add new field:
604 elf_backend_post_process_headers.
605
606 * elfxx-target.h (elf_backend_post_process_headers): Define to
607 NULL if not already defined.
6a9d5c9a 608 (elfNN_bed): Initialise elf_backend_post_process_headers field.
e6c51ed4
NC
609
610 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
611 to zero.
612 (_bfd_elf_compute_section_file_positions): Call
6a9d5c9a 613 elf_backend_post_process_headers if defined.
e6c51ed4 614
633fd09f
ILT
6151999-05-28 Ian Lance Taylor <ian@zembu.com>
616
617 * configure.in: Check whether getuid and getgid exist.
618 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
619 HAVE_GETGID are not defined, respectively.
620 (bfd_write_armap): Don't special case on _WIN32 for getuid and
621 getgid.
622 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
623 * configure, config.in: Rebuild.
624
b2ef150d
ILT
6251999-05-28 Martin Dorey <mdorey@madge.com>
626
627 * elf32-i960.c: New file.
628 * elf.c (prep_headers): Handle bfd_arch_i960.
629 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
630 * config.bfd (i960-*-elf*): New target.
631 * configure.in (bfd_elf32_i960_vec): New target vector.
632 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
633 (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
634 * Makefile.in, aclocal.m4, configure: Rebuild.
635
5f97aa0c
NC
6361999-05-27 Nick Clifton <nickc@cygnus.com>
637
638 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
6a9d5c9a 639 R_ARM_PLT32.
5f97aa0c
NC
640 (find_howto): New function: Find entries in the
641 elf32_arm_howto_table.
642 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
643 computed simply.
644 (elf32_arm_reloc_type_lookup): Add lookup for
6a9d5c9a 645 BFD_RELOC_ARM_PLT32.
5f97aa0c 646
780a67af
NC
6471999-05-25 Philip Blundell <pb@nexus.co.uk>
648
649 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
650 (elf32_arm_link_hash_table_create): Use above function as the
651 constructor for hash table entries.
652 (elf32_arm_relocate_section): Avoid crash when there is no output
6a9d5c9a 653 section.
780a67af
NC
654 (elf32_arm_final_link_relocate): New parameter h.
655 (elf32_arm_relocate_section): Pass symbol hash entry to above
656 routine.
657 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
658 comments.
6a9d5c9a 659
fa0e42e4 6601999-05-25 Catherine Moore <clm@cygnus.com>
6a9d5c9a 661
fa0e42e4
CM
662 * coff-arm.c (coff_arm_relocate_section): Don't emit
663 base file entries for pc-relative values.
6a9d5c9a 664
93dfcdf0
DD
6651999-05-25 DJ Delorie <dj@cygnus.com>
666
667 * peicode.h (coff_swap_sym_in): When we create the actual section
668 to reflect the not-there section C_SECTION symbols refer to,
669 change the symbol class to C_STAT as the section is now really
670 there.
671
db65e864
NC
6721999-05-24 Philip Blundell <pb@nexus.co.uk>
673
674 * elf32-arm.h (elf32_arm_relocate_section): Undo change of
675 1999-03-25.
676
948221a8 677Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
f6886bc4 678
948221a8
NC
679 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
680 F_PIC_INT to F_PIC.
681 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
682 F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
6a9d5c9a 683
1349dd65
NC
6841999-05-16 Nick Clifton <nickc@cygnus.com>
685
686 * coff-mcore.c (in_reloc_p): Reinstate.
687
36797d47
NC
6881999-05-15 Nick Clifton <nickc@cygnus.com>
689
690 * reloc.c (BFD_RELOC_MCORE_RVA): Define.
691 * bfd-in2.h: Regenerate.
692 * coff-mcore.c (in_reloc_p): Remove defintion.
693 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
694 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
695 IMAGE_REL_MCORE_RVA.
696 (coff_mcore_rtype_to_howto): Add special processing for
697 IMAGE_REL_MCORE_RVA.
698 (coff_mcore_relocate_section): Add support for
6a9d5c9a 699 IMAGE_REL_MCORE_RVA.
36797d47
NC
700 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
701 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
702 R_MCORE_RELATIVE.
6a9d5c9a
UD
703 (mcore_elf_relocate_section): Delete redundant case labels.
704
97eaf9de
AS
705Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
706
707 * elf32-arm.h (elf32_arm_relocate_section): Fix operator
708 precedence between bit-and and comparison.
709
2e9a84c8
RH
710Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
711
712 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
713 list of target formats (targ_selvecs).
714 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
715 (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
716
ec0ef80e
DD
7171999-05-10 DJ Delorie <dj@cygnus.com>
718
719 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
720 reasonable mode until "ar x" is smart enough to skip it (fixes
721 gcc/libgcc.a builds on mips-ecoff targets
722
723 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
724 to work. Hack to support MS import libraries, which use different
725 COMDAT types than GNU.
726 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
727 to implied zero-length sections (see peicode below)
728 * coffgen.c (coff_get_normalized_symtab): Properly read long MS
729 filename symbols, which use one *or more* auxents.
730 * coffswap.h (coff_swap_aux_in): ditto
731 * peicode.h (coff_swap_sym_in): Build the implied zero-length
732 sections
6a9d5c9a 733
5c746d90
JL
734Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
735
736 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
737 for all relocations.
738
ba1b9317
CM
7391999-05-10 Catherine Moore <clm@cygnus.com>
740
741 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static
742 if COFF_IMAGE_WITH_PE.
743 (bfd_arm_process_before_allocation): Likewise.
744 (bfd_arm_get_bfd_for_interworking): Likewise.
745 * coff-arm.c: Likewise.
746 * bfd-in2.h: Regenerate.
747 * configure.in (armpe_little_vec): Remove coff-arm.lo.
748 (armpe_big_vec): Likewise.
749 * configure: Rebuild.
750
c1f6bc03
NC
7511999-05-10 Nick Clifton <nickc@cygnus.com>
752
753 * elf.c (elf_fake_sections): Check for .rel. as start of rel
754 section, not just .rel. Same for .rela.
755
b23f908b
NC
7561999-05-07 Nick Clifton <nickc@cygnus.com>
757
758 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
759 endianism with an error message.
760
7fafc0fd
RH
761Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
762
763 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
764 assignment from "unsigned char *" to "char *".
765 (decode_line_info): Likewise for dwarf_line_buffer assignment.
766
b44267fd
CM
7671999-05-05 Catherine Moore <clm@cygnus.com>
768
769 * coff-arm.c (coff_arm_relocate_section): Add one to
770 address of ARM_RVA32 thumb functions.
6a9d5c9a 771
b44267fd 7721999-05-05 Catherine Moore <clm@cygnus.com>
6a9d5c9a 773
9e1281c7
CM
774 * elf32-m68k.c (elf32_m68k_set_private_flags): New.
775 (elf32_m68k_copy_private_bfd_data): New.
776 (elf32_m68k_merge_private_bfd_data): New.
777 (elf32_m68k_print_private_bfd_data): New.
778 (CPU32_FLAG): Define.
779 (PLT_CPU32_ENTRY_SIZE): Define.
780 (elf_cpu32_plt0_entry): Declare.
781 (elf_cpu32_plt_entry): Declare.
782 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
783 (elf_m68k_finish_dynamic_symbol): Likewise.
784 (elf_m68k_finish_dynamic_sections): Likewise.
785 (elf_backend_plt_header_size): Remove definition.
786 (bfd_elf32_bfd_copy_private_bfd_data): Define.
787 (bfd_elf32_bfd_merge_private_bfd_data): Define.
788 (bfd_elf32_bfd_set_private_flags): Define.
789 (bfd_elf32_bfd_print_private_bfd_data): Define.
6a9d5c9a 790
ac79f2f3
JL
791Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
792
793 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
794 and R_LONG_PCREL_MODE.
795
252b5132
RH
7961999-04-29 Nick Clifton <nickc@cygnus.com>
797
798 * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
799
800Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com>
801
802 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
803 in relocation calculation.
804
8051999-04-26 Tom Tromey <tromey@cygnus.com>
806
807 * aclocal.m4, configure: Updated for new version of libtool.
808
8091999-04-21 Nick Clifton <nickc@cygnus.com>
810
811 * coff-mcore.c: Add support for mcore relocs.
812
8131999-04-20 Gavin Romig-Koch <gavin@cygnus.com>
814
815 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
816 incorrect use EF_MIPS_xxBITPTRS.
817
8181999-04-18 Ian Lance Taylor <ian@zembu.com>
819
820 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
821 variable insn.
822
823 * bfd-in2.h: Rebuild.
824 * libbfd.h: Rebuild.
825
826Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com>
6a9d5c9a 827
252b5132
RH
828 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
829 (coff_arm_relocate_section): Add ARM26D transform. Only
830 change to ARM26D for relocateable links.
831
8321999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
833
834 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
835 (bfd_elf32_bfd_print_private_bfd_data): New.
836
8371999-04-15 Doug Evans <devans@casey.cygnus.com>
838
839 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5,
840 refetch addend if USE_REL, add many comments regarding current state.
841 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
842 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
843 size and rightshift. For R_ARM_THM_PC22, fix bitsize.
844 * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
845
846Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com>
847
848 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
849 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
850
8511999-04-13 David Mosberger <davidm@hpl.hp.com>
852
853 * dwarf2.c (decode_line_info): Don't truncate address to least
854 significant 32 bits (breaks 64 bit targets).
855 (lookup_address_in_function_table): Ditto.
856 (comp_unit_contains_address): Ditto.
857
858Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com>
859
860 * coff-arm.c (arm_emit_base_file_entry): New routine.
861 (A2T3_OFFSET): Define.
862 (T2A3_OFFSET): Define.
863 (coff_arm_relocate_section): Emit base file entries for interworking
864 stubs.
865
8661999-04-13 Philip Blundell <philb@gnu.org>
867
868 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
869 relocs 17 through 19.
870
871Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com>
872
873 * elfcode.h: Remove fnmatch.h.
874 * elflink.h (elf_link_assign_sym_version): Call back to ld
875 instead of calling fnmatch.
876
877 * config.bfd (i?86-*-beoself): Include pe vecs.
878
879Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com>
880
881 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
882 to go missing.
883
8841999-04-10 Richard Henderson <rth@cygnus.com>
885
886 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
887 when trying to resolve dynamic symbol references.
888 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
889 * elf32-mips.c (mips_elf_relocate_section): Likewise.
890 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
891 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
892 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
893 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
894 * elflink.h (elf_link_output_extsym): Likewise.
895
896Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com>
897
898 * section.c (_bfd_strip_section_from_output): New function moved from
899 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
900 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
901 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
902 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
903 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
904 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
905 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
906 * bfd-in2.h: Update.
907
9081999-04-09 Ian Lance Taylor <ian@zembu.com>
909
910 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
911
9121999-04-08 Nick Clifton <nickc@cygnus.com>
913
914 * coff-mcore.c: New File: Support for mcore-pe targets.
915 * cpu-mcore.c: New File: Support for mcore targets.
916 * elf32-mcore.c: New File: Support for mcore-elf target.
917 * pe-mcore.c: New File: Definitions for mcore-pe target.
918 * pei-mcore.c: New File: Definitions for mcore-pei target.
919 * Makefile.am: Add support for MCore targets.
920 * Makefile.in: Regenerate.
921 * config.bfd: Add support for MCore targets.
922 * configure.in: Add support for MCore targets.
923 * configure: Regenerate.
924 * archures.c: Add support for MCore architecture.
6a9d5c9a 925 * bfd-in2.h: Regenerate.
252b5132
RH
926 * coffcode.h: Add support for mcore-pe targets.
927 * elf.c: Add support for mcore-elf target.
928 * reloc.c: Add support for MCore relocs.
929 * targets.c: Add support for MCore targets.
930
9311999-04-07 Nick Clifton <nickc@cygnus.com>
932
933 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
934 R_ARM_XPC25 and R_ARM_THM_XPC22.
935 (elf32_arm_reloc_map): Remove redundant entries.
936
9371999-04-06 Ian Lance Taylor <ian@zembu.com>
938
939 * sysdep.h (LC_MESSAGES): Never define.
940
9411999-04-06 Chris Torek <torek@bsdi.com>
942
943 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change
944 all callers. Rewrite completely.
945 (_bfd_relocate_contents): Rewrite overflow checking.
946 * bfd-in2.h: Rebuild.
947
9481999-04-05 Ian Lance Taylor <ian@zembu.com>
949
950 From Gabriel Paubert <paubert@iram.es>:
951 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
952 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
953 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
954 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
955 * ppcboot.c (ppcboot_vec): Use little endian routines for
956 headers.
957
958 * elf.c (elfcore_strndup): Only define if it will be used.
959 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
960 and irelend.
961 (ppc_elf_check_relocs): Remove unused local i.
962 (ppc_elf_gc_mark_hook): Add default case to switch.
963
964 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
965 * srec.c (srec_scan): Accept \r in symbol definitions.
966 (srec_object_p): Set HAS_SYMS if we saw any symbols.
967 (symbolsrec_object_p): Likewise.
968
9691999-04-04 Don Bowman <don@pixsci.com>
970
971 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
972
9731999-04-04 Ian Lance Taylor <ian@zembu.com>
974
975 * dwarf1.c (parse_line_table): Remove unused locals last_pc and
976 last_line.
977 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
978 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
979 switch.
980 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
981 local i.
982 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
983 local val.
984
9851999-03-31 Nick Clifton <nickc@cygnus.com>
986
987 * config.bfd: Add support for arm-epoc-pe target.
988 * configure.in: Add support for arm-epoc-pe target.
989 * configure: Regenerate.
990 * targets.c: Add support for arm-epoc-pe target.
991 * coff-arm.c: Allow header files to override definition of
992 TARGET_UNDERSCORE and USER_LABEL_PREFIX.
993 * pe-arm.h: Allow previous header files to override definition of
994 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
6a9d5c9a 995 * pei-arm.h: Allow previous header files to override definition of
252b5132
RH
996 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
997 * epoc-pe-arm.c: New file. Support arm-epoc-pe target.
998 * epoc-pei-arm.c: New file. Support arm-epoc-pei target.
6a9d5c9a 999
252b5132
RH
10001999-03-30 Nick Clifton <nickc@cygnus.com>
1001
1002 * elf.c (elf_map_symbols): Handle the case where section
1003 symbols are generated for content-less sections which are
1004 not mapped to the output file.
1005
1006 * linker.c: Replace direct references to fields in BFD structure
1007 with accessor macros.
1008
1009 * elflink.h: Replace direct references to fields in BFD structure
1010 with accessor macros.
1011
10121999-03-25 Philip Blundell <pb@nexus.co.uk>
1013
1014 * config.bfd: Eliminate redundancy in checks for Linux/ARM.
6a9d5c9a
UD
1015
1016 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
252b5132
RH
1017 account when adjusting section symbols during a partial link.
1018
10191999-03-24 Nick Clifton <nickc@cygnus.com>
1020
1021 * coff-sparc.c (struct coff_reloc_map): Change type of field
1022 'bfd_reloc_val' to bfd_reloc_code_real_type.
1023 * elf-m10200.c (struct mn10200_reloc_map): Ditto.
1024 * elf-m10300.c (struct mn10300_reloc_map): Ditto.
1025 * elf32-arc.c (struct arc_reloc_map): Ditto.
1026 * elf32-d10v.c (struct d10v_reloc_map): Ditto.
1027 * elf32-d30v.c (struct d30v_reloc_map): Ditto.
1028 * elf32-fr30.c (struct fr30_reloc_map): Ditto.
1029 * elf32-m32r.c (struct m32r_reloc_map): Ditto.
1030 * elf32-sh.c (struct elf_reloc_map): Ditto.
1031 * elf32-sparc.c (struct elf_reloc_map): Ditto.
1032 * elf32-v850.c (struct v850_reloc_map): Ditto.
1033 * elf64-sparc.c (struct elf_reloc_map): Ditto.
1034 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
1035 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
1036
10371999-03-17 Martin Hunt <hunt@cygnus.com>
1038
1039 * syms.c (_bfd_stab_section_find_nearest_line): Changed this
1040 function so source-level assembly works. If multiple N_SOs
1041 are seen without and N_FUNs, create an indextable entry with
1042 a NULL function name.
1043
10441999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
1045
1046 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
1047 of certian similar cpus.
1048
10491999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
1050
1051 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
1052 Add the 5000. Change the architecture for the 5400 to mips4.
1053 (elf_mips_mach): Add r5000.
1054
10551999-03-11 Doug Evans <devans@casey.cygnus.com>
1056
1057 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
1058
10591999-03-11 Nick Clifton <nickc@cygnus.com>
1060
1061 * binary.c (binary_set_section_contents): Generate warning about
1062 huge file offsets for any section that will occupy file space, not
1063 just those that are loadable.
1064
10651999-02-24 Jim Blandy <jimb@zwingli.cygnus.com>
1066
1067 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
1068
10691999-02-22 Jim Lemke <jlemke@cygnus.com>
1070
1071 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
1072
1073Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com>
1074
1075 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
1076 * elflink.h: Revert all changes since Feb 16. Instead:
1077 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
1078 appropriate. Copy it to version symbols.
1079 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
1080 symbols if appropriate.
1081 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
1082 symbol if appropriate.
1083 (elf_link_output_extsym): If symbol is marked as undefined, and
1084 has no nonweak references, mark it as weak undefined.
1085
1086Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com>
1087
1088 * elflink.h (elf_merge_symbol): When overriding a dynamic
1089 definition with a weak undefined symbol, set NEEDS_PLT if it is a
1090 function.
1091 (elf_link_add_object_symbols): Don't copy the other field if we
1092 are overridding.
1093
1094Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com>
1095
1096 * elflink.h (elf_merge_symbol): Do not merge any symbol from a
1097 shared object with a weak undefined symbol.
1098
10991999-02-18 Nick Clifton <nickc@cygnus.com>
1100
1101 * elfarm-nabi.c: Set partial_inplace back to false.
1102
11031999-02-17 Nick Clifton <nickc@cygnus.com>
1104
1105 * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
1106 (USER_LABEL_PREFIX): Set to "_".
1107
1108 The following patches are from: Scott Bambrough
1109 <scottb@corelcomputer.com>
6a9d5c9a 1110
252b5132
RH
1111 * libaout.h (M_ARM6_NETBSD): Set to 143.
1112
1113 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12,
1114 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
1115 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
1116 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
1117 * bfd-in2.h: Regenerate.
1118
1119 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
1120 'true' as REL relocs are now being used. Add new PIC relocs:
1121 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
1122 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
1123
1124 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
1125 of targets.
1126 (elf32_arm_final_link_relocate): Change parameters so that entire
1127 reloc is passed. Add support for PIC relocs.
1128 (elf32_arm_relocate_section): Pass entire reloc to
6a9d5c9a 1129 elf32_arm_final_link_relocate.
252b5132
RH
1130 (elf32_arm_check_relocs): Handle new PIC relocs.
1131 (elf32_arm_adjust_dynamic_symbol): New function.
1132 (elf32_arm_size_dynamic_sections): New function.
1133 (elf32_arm_discard_copies): New function.
1134 (elf32_arm_finish_dynamic_symbol): New function.
1135 (elf32_arm_finish_dynamic_sections): New function.
1136 (ELF_MAXPAGE_SIZE): Define.
1137 (bfd_elf32_bfd_reloc_type_lookup): Define.
1138 (elf_backend_relocate_section): Define.
1139 (elf_backend_adjust_dynamic_symbol): Define.
1140 (elf_backend_create_dynamic_sections): Define.
1141 (elf_backend_finish_dynamic_symbol): Define.
1142 (elf_backend_finish_dynamic_sections): Define.
1143 (elf_backend_size_dynamic_sections): Define.
1144 (elf_backend_plt_readonly): Define.
1145 (elf_backend_want_got_plt): Define.
1146 (elf_backend_want_plt_sym): Define.
6a9d5c9a 1147
252b5132
RH
1148Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com>
1149
1150 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
1151 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
1152 (_bfd_mips_elf_fake_sections): Likewise.
1153
1154Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6a9d5c9a 1155
252b5132
RH
1156 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
1157 bfd_elf32_arm_get_bfd_for_interworking,
1158 bfd_elf32_arm_process_before_allocation): Define to avoid clash
1159 with elfarm-nabi.c.
6a9d5c9a 1160
252b5132
RH
1161 * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
1162 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
1163 elf32_arm_find_nearest_line): Make them static.
1164
1165Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com>
1166
1167 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all
1168 callers. Do not merge a definition from a shared object with a
1169 weak undefined symbol.
1170 (elf_link_add_object_symbols): Do not change the symbol type or
1171 size if the old symbol overrides the new one.
1172
11731999-02-08 Nick Clifton <nickc@cygnus.com>
1174
1175 * config.bfd: Add support for strongarm target.
1176
1177Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1178
1179 * elf32-m68k.c (reloc_map): Use the correct types for the struct
1180 fields instead of unsigned char.
1181
1182Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com>
1183
1184 * Makefile.am: Rebuild dependencies.
1185 * Makefile.in: Rebuild.
1186
1187Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com>
1188
1189 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
1190 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
1191 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE.
1192 * acinclude.m4: Add comments to uses of AC_DEFINE.
1193 * acconfig.h: Remove.
1194 * configure: Rebuild with current autoconf/automake.
1195 * aclocal.m4: Likewise.
1196 * config.in: Likewise.
1197 * Makefile.in: Likewise.
1198
11991999-02-04 DJ Delorie <dj@cygnus.com>
1200
1201 * libbfd.c (real_read): don't call fread for zero bytes. This
1202 covers up a bug (or misuse of bfd) that's exposed by Solaris.
1203
1204Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com>
1205
1206 * elf32-mips.c (mips_elf_relocate_section): Insure that the target
1207 of a jump is in the current 256 MB region.
1208
1209Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com>
1210
1211 * format.c (bfd_check_format_matches): Change last patch to only
1212 take effect for the binary target.
1213
1214Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com>
1215
1216 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
1217
1218Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com>
1219
1220 * elf32-fr30.c (fr30_elf_check_relocs): New routine.
1221
1222Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com>
1223
1224 * format.c (bfd_check_format_matches): If the target was
1225 previously specified, don't check other targets when checking for
1226 an archive file.
1227
1228Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com>
1229
1230 * elf32-arm.h (elf32_arm_reloc_map): Removed.
1231 (elf32_arm_reloc_type_lookup): Removed
1232 * elfarm-nabi.c (elf32_arm_reloc_map): New.
1233 (elf32_arm_reloc_type_lookup): New.
1234 * elfarm-oabi.c (elf32_arm_reloc_map): New.
1235 (elf32_arm_reloc_type_lookup): New.
1236
1237Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com>
1238
1239 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
1240 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c
1241 * Makefile.am: Use new files.
1242 * Makefile.in: Regenerate.
1243 * configure.in: Use new files.
6a9d5c9a 1244 * configure: Regenerate.
252b5132
RH
1245
12461999-02-01 Nick Clifton <nickc@cygnus.com>
1247
1248 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
1249 (fr30_elf_gc_sweep_hook): New function.
1250 (elf_backend_can_gc_sections): Define.
1251
1252Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com>
1253
1254 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
1255 and bfd_elf32_bigarm_oabi_vec.
1256
1257Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com>
1258
1259 * Makefile.am (elf32-arm-oldabi.lo): New.
1260 (elf32-arm-newabi.lo): New.
1261 * Makefile.in: Regenerate.
1262 * config.bfd (thumb-*-elf): Remove definition of targ_underscore.
1263 (arm-*-elf): Likewise.
1264 (arm-*-oabi): New.
1265 (thumb-*-oabi): New.
1266 * configure: Regenerate.
1267 * configure.in (bfd_elf32_littlearm_oabi_vec): New.
1268 (bfd_elf32_bigarm_oabi_vec): New.
1269 * elf32-arm-newabi.c: New.
1270 * elf32-arm-oldabi.c: New.
1271 * elf32-arm.c: Removed.
1272 * elf32-arm.h: New.
1273
1274Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com>
1275
1276 * binary.c (binary_set_section_contents): Omit warnings for
1277 unloadable sections.
1278
12791999-01-31 Michael Meissner <meissner@cygnus.com>
1280
1281 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
1282 powerpc{,le}-*-eabi.
1283
12841999-01-29 Nick Clifton <nickc@cygnus.com>
1285
1286 * dwarf2.c (read_unsigned_leb128): Remove unused variables.
1287 * dwarf2.c (read_signed_leb128): Remove unused variables.
1288
1289Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
1290
1291 * elf.c (assign_file_positions_for_segments): Only adjust
1292 p_align when needed.
1293
1294Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com>
1295
1296 * binary.c (binary_set_section_contents): Don't return early for a
1297 non-loadable section, in case the first section is non-loadable.
1298 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej
1299 W. Rozycki <macro@ds2.pg.gda.pl>.
1300
13011999-01-28 Nick Clifton <nickc@cygnus.com>
1302
1303 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
1304 R_FR30_GNU_VTENTRY relocs.
1305
1306Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com>
1307
1308 * elflink.h (elf_link_output_sym): Zero syms which are
1309 part of sections which have been excluded.
1310
1311Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com>
1312
1313 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
1314 to F_PIC_INT.
1315 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
1316 F_ARM_3M labels. Changed F_PIC to F_PIC_INT.
6a9d5c9a 1317
252b5132
RH
13181999-01-27 Nick Clifton <nickc@cygnus.com>
1319
1320 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
6a9d5c9a 1321 relocation.
252b5132 1322 (fr30_final_link_relocate): Use computed value as result of
6a9d5c9a 1323 relocation.
252b5132
RH
1324
13251999-01-26 Frank Ch. Eigler <fche@cygnus.com>
1326
1327 * binary.c (binary_set_section_contents): Emit warning for
1328 huge file offsets due to widely-dispersed section LMAs.
1329
1330Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com>
1331
1332 * elf.c (assign_file_positions_for_segments): If not D_PAGED,
1333 align first section to largest section alignment, not first
1334 section alignment.
1335
13361999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1337
1338 * configure.in: Require autoconf 2.12.1 or higher.
1339
1340Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com>
1341
1342 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
1343 * bfd-in2.h: Likewise.
1344 * cpu-i386.c (bfd_i386_arch_intel_syntax): New.
1345
13461998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
1347
1348 * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
1349 * cpu-mips.c: Add support for and independent 4111.
1350 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
6a9d5c9a 1351 (_bfd_mips_elf_final_write_processing):
252b5132
RH
1352 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
1353
13541998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
1355
1356 * elf32-mips.c (elf_mips_abi_name): New.
1357 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
1358
13591998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
1360
6a9d5c9a 1361 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
252b5132
RH
1362 Handle bfd_mach_mips4300.
1363
13641998-12-11 Ulrich Drepper <drepper@cygnus.com>
1365
1366 * elf32-i386.c: Remove leaked development code from patch
1367 1998-12-10 by Richard Henderson.
1368
13691998-12-10 Richard Henderson <rth@cygnus.com>
1370
1371 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
1372 in debug sections for symbol defined externally.
1373
1374Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1375
1376 * targets.c (bfd_target_vector): Remove duplicate entry for
1377 tekhex_vec.
1378
13791998-12-09 Nick Clifton <nickc@cygnus.com>
1380
1381 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
1382 since we are using RELAs.
1383
1384Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
1385
1386 SCO Open Server Release 5 core file support, from Jouke Numan
1387 <jnuman@hiscom.nl>:
1388 * sco5-core.c: New file.
1389 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
1390 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
1391 * Makefile.am: Rebuild dependencies.
1392 (OPTIONAL_BACKENDS): Add sco5-core.lo.
1393 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
1394 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
1395 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
1396 * bfd-in2.h, configure, Makefile.in: Rebuild.
1397
1398Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
1399
1400 * config.bfd (hppa*-*-mpeix*): New target.
1401 * configure.in: Add AC_HEADER_DIRENT.
1402 (hppa*-*-mpeix*): New target.
1403 * configure.host (hppa*-*-mpeix*): New host.
1404 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
1405 friends rather than just including <sys/dir.h>.
1406 * som.h (struct som_symbol): Add hppa_priv_level and apto
1407 tc_data. Change all users.
1408 (struct somdata): Add comp_unit field.
1409 (obj_som_compilation_unit): Define.
1410 (bfd_som_attach_compilation_unix): Declare.
1411 * som.c: Check HOST_HPPAMPEIX.
1412 (struct som_misc_symbol_info): Add new field priv_level.
1413 (som_object_setup): Add current_offset parameter. Change all
1414 callers.
1415 (setup_sections): Likewise.
1416 (som_object_p): For EXECLIBMAGIC, read the lst header.
1417 (som_write_symbol_strings): Add compilation_unit parameter.
1418 Change all callers.
1419 (som_finish_writing): Write out compilation_unit.
1420 (som_bfd_derive_misc_symbol_info): Set priv_level.
1421 (som_build_and_write_symbol_table): Set xleast field to 3.
1422 (som_slurp_symbol_table): Set symbol priv_level.
1423 (bfd_som_attach_compilation_unit): New function.
1424 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
1425 priv_level into symbol_value.
1426 * configure, config.in: Rebuild.
1427
1428Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
1429
1430 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
1431 warning function to call _bfd_error_handler instead.
1432
1433 * libbfd.c (COERCE32): Cast through unsigned long and long to
1434 avoid bug in old version of gcc.
1435
1436 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
1437 (elf_backend_additional_program_headers): Don't define.
1438
14391998-12-08 Nick Clifton <nickc@cygnus.com>
1440
1441 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
1442 relocations to include offset of 2 included in the insns, and the
1443 offset of the relocs within the section.
1444
1445Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
1446
1447 The following changes were made by David Taylor
1448 <taylor@texas.cygnus.com>, Edith Epstein
1449 <eepstein@sophia.cygnus.com>, Jim Blandy
1450 <jimb@zwingli.cygnus.com>, and Elena Zannoni
1451 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
1452 changes originally made by HP; HP did not create ChangeLog
1453 entries.
1454
1455 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
1456 automake macro library.
1457
1458 * hpux-core.c (hpux_core_core_file_p): this function now
1459 understands HPUX 10.30 thread info. Yes, the thread stacks can be
1460 found in the corefile! Also, in hpux_core_core_file_p, if we
1461 encounter a section with an unknown type, don't punt. Instead,
1462 just skip it. Also, count the number of sections of known type
1463 that we encounter. If we encounter at least one good one, then
1464 we'll declare that the file is a core file. If we encounter any
1465 unknown ones but some known ones, then we'll issue a warning (but
1466 still declare it to be a core file). Also, correctly decide when a
1467 file is not a core.
1468 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
1469 (CORE_ANON_SHMEM): define if not defined.
1470 (hpux_core_struct): add members lwpid and user_tid.
1471 (core_kernel_thread_id, core_user_thread_id): new macros.
1472 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
1473 the name before storing it in the bfd.
1474 (hpux_core_core_file_p): handle threads.
1475
1476 * libhppa.h (GET_FIELD): protect against redefinition.
1477 (HPPA_WIDE): define.
1478 (GET_FIELD): define.
1479 (GET_BIT): define.
1480 (MASK): define.
1481 (CATENATE): define.
1482 (ELEVEN): define.
1483 (sign_extend): redefine.
1484 (assemble_6): define.
1485 (assemble_12): rewrite.
1486 (assemble_16): define.
1487 (assemble_16a): define.
1488 (assemble_17): rewrite.
1489 (assemble_22): define.
1490
14911998-12-07 Nick Clifton <nickc@cygnus.com>
1492
1493 * elf32-fr30.c (fr30_final_link_relocate): Using signed
1494 relocations for signed values.
1495
1496Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
1497
1498 * mipsbsd.c (MY(set_arch_mach)): Make static.
1499 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
1500 bfd_mach_mips* macros rather than simple numbers.
1501
1502 COFF weak symbol support, based on patches from Mark Elbrecht
1503 <snowball3@usa.net>:
1504 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
1505 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
1506 (coff_write_alien_symbol): Likewise.
1507 * cofflink.c (coff_link_check_ar_symbols): Likewise.
1508 (coff_link_add_symbols): Likewise.
1509 (_bfd_coff_link_input_bfd): Likewise.
1510 (_bfd_coff_write_global_sym): Likewise.
1511
1512 * elf.c (copy_private_bfd_data): Always initialize the
1513 includes_phdrs field.
1514
1515 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
1516 file defines a symbol first mentioned in an ELF file.
1517
1518 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
1519 possible, rather than only if BFD64.
1520 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
1521 not __GNUC__.
1522 * bfd-in2.h: Rebuild.
1523
1524 * srec.c (srec_set_section_contents): Correct test to avoid
1525 switching to 4 byte addresses after seeing a second section which
1526 requires 3 byte addresses. From Joel Schantz
1527 <joel.schantz@argosys.boeing.com>.
1528
1529 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
1530 <aymeric.vincent@emi.u-bordeaux.fr>.
1531
15321998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
1533
1534 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
1535 decide whether the output file is -mrelocatable-lib,
1536 -mrelocatable, or neither. (gdb.base/nodebug.exp)
1537
15381998-12-03 Nick Clifton <nickc@cygnus.com>
1539
1540 * elf32-fr30.c: Add support for R_FR30_48 reloc.
1541 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
1542 * bfd-in2.h: Regenerate.
1543 * libbfd.h: Regenerate
1544
1545Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
1546
1547 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
1548 link against a dynamic symbol with no type or size.
1549
15501998-12-01 Ulrich Drepper <drepper@cygnus.com>
1551
1552 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
1553 relocation for section which does not get loaded.
1554 (elf_i386_relocate_section) [R_386_32]: Likewise.
1555
1556Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
1557
1558 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
1559 reloc_count and i long instead of unsigned long. Handle error
1560 return from bfd_canonicalize_reloc.
1561
15621998-12-01 Nick Clifton <nickc@cygnus.com>
1563
1564 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
1565 a hash table.
1566
1567Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1568
1569 * elf32-sh.c (elf/sh.h): Include.
1570 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
1571 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
1572 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
1573 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
1574 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
1575
1576Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
1577
1578 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
1579 causes division by zero later on.
1580
1581Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
1582
1583 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
1584 needed.
1585
15861998-11-25 DJ Delorie <dj@cygnus.com>
1587
1588 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
1589 hook now.
1590
1591Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
1592
1593 * elf32-fr30.c (fr30_elf_relocate_section): Call
1594 fr30_final_link_relocate.
1595 (fr30_final_link_relocate): New function: Handle I20 and I32
1596 relocs.
1597 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
1598 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
1599 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
1600
1601 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
1602 chain to empty.
1603
1604 The following changes are based on a patch submitted by Gianluca
1605 Moro <glctr@abc.it>:
1606
1607 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
1608 not already been updated.
1609 (find_remembered_hi16s_reloc): New parameter 'already_found'
1610 returns state of remembered hi16s reloc.
1611 (remember_hi16s_reloc): Set 'found' field to false.
1612 (hi16s_location): Add 'found' field.
1613
16141998-11-23 DJ Delorie <dj@cygnus.com>
1615
1616 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
1617 to see .DLL files as unrecognized.
1618 (i3coff_object_p): Sorry, had to hack it to not recognize these
1619 files (pei-i386) on request.
1620
16211998-11-23 DJ Delorie <dj@cygnus.com>
1622
1623 * opncls.c (bfd_make_readable): need more cleanup for symbols and
1624 relents. Call bfd_check_format to reinitialize.
1625
1626Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
1627
1628 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
1629 warnings.
1630
1631Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
1632
1633 * aclocal.m4: regenerate
1634 * configure: regenerate
1635
1636Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
1637
1638 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
1639 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
1640 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
1641 respect it as an upper bound on what memory to reference.
1642 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1643 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
1644 update vtable_entries_size appropriately.
1645
1646Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
1647
1648 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
1649 reloc number.
1650
1651Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
1652
1653 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
1654 bfds; they have no "file" so we fake it.
1655 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
1656 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
1657 resizing the memory buffer.
1658 * opncls.c (bfd_make_writable): New function; lets you write a
1659 bfd_create'd bfd to an in-memory buffer.
1660 (bfd_make_readable): New function; lets you read back that buffer
1661 as if it were from bfd_openr. Used to build generated archive
1662 members (winsup's ld's dlltool)
1663
1664Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
1665
1666 * po/bfd.pot: Regenerated.
1667
1668Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
1669
1670 * elf32-v850.c (hi16s_location): Replaced fixed size array with
1671 linked list.
1672
1673Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
1674
1675 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
1676 element of the gotentry list for local symbols too.
1677 (elf64_alpha_relocate_section): Unify local and global handling.
1678 Assert that gotent->use_count > 0.
1679
1680Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
1681
1682 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
1683 update for file name changes of July 2, 1998.
1684 (vms_vax_vec): New.
1685 * configure: Rebuild.
1686
1687Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
1688
1689 * po/bfd.pot: Regenerated.
1690
1691Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
1692
1693 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
1694 * aclocal.m4, configure: regenerate
1695
1696Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
1697
1698 * elf.c (prep_headers): Add support for bfd_arch_fr30.
1699
1700Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
1701
1702 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
1703 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
1704 was cached.
1705 * aclocal.m4, configure: regenerated.
1706
1707Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
1708
1709 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
1710 R_D10V_GNU_VTENTRY relocs.
1711 (elf_d10v_howto_table): Likewise.
1712 (d10v_reloc_map d10v_reloc_map): Likewise.
1713 (elf32_d10v_gc_mark_hook): New.
1714 (elf32_d10v_gc_sweep_hook): New.
1715 (elf32_d10v_check_relocs): New.
1716 (elf32_d10v_relocate_section): New.
1717 (elf_backend_relocate_section): Define.
1718 (elf_backend_can_gc_sections): Define.
1719
1720Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
1721
1722 * Makefile.am (BFD32_BACKENDS): Move vms files here...
1723 (BFD64_BACKENDS): ...from here.
1724 (BFD32_BACKENDS_CFILES): Move vms files here...
1725 (BFD64_BACKENDS_CFILES): ...from here.
1726 * Makefile.in: Rebuild.
1727
1728Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
1729
1730 * Makefile.am: Add FR30 target.
1731 * Makefile.in: Add FR30 target.
1732 * archures.c: Add support for FR30.
1733 * config.bfd: Add support for FR30.
1734 * configure.in: Add support for FR30.
1735 * reloc.c: Add support for FR30 relocations.
1736 * targets.c: Add support for FR30 relocations.
1737 * bfd-in2.h: Regenerate.
1738 * configure: Regenerate.
1739 * libbfd.h: Regenerate.
1740 * cpu-fr30.c: New file.
1741 * elf32-fr30.c: New file.
1742
1743Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
1744
1745 * configure.in: detect cygwin* instead of cygwin32*
1746 * configure: regenerate
1747
1748Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
1749
1750 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
1751 use bfd_malloc and free instead and check return value from bfd_malloc.
1752
1753Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
1754
1755 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
1756 * libbfd.h: Rebuild.
1757
1758 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
1759 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
1760 (MIPS_TEXT_DYNSYM_SECN): Likewise.
1761 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
1762 section.
1763 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
1764 field.
1765 (mips_elf_link_hash_table_create): Don't initialize
1766 dynsym_sec_strindex.
1767 (mips_elf_gc_mark_hook): Add default case to avoid warning.
1768 (mips_elf_size_dynamic_sections): Generate a section symbol for
1769 every output section.
1770 (mips_elf_finish_dynamic_sections): Count all sections for
1771 DT_MIPS_UNREFEXTNO.
1772 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
1773 output sections.
1774
1775Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
1776
1777 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
1778 for later PLT entries in large PLTs.
1779 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
1780
1781Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
1782
1783 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
1784
17851998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
1786
1787 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
1788 * elflink.h (elf_collect_hash_codes): New function. This function is
1789 called for each exported symbol and we compute the ELF hash value for
1790 it.
1791 (compute_bucket_value): New function. It is called from
1792 size_dynamic_sections to determine the hash table size. When we are
1793 optimizing a better, but slower, algorithm is used.
1794 (size_dynamic_sections): Call compute_bucket_value.
1795
1796 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
1797
1798Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
1799
1800 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
1801 R_SH_GNU_VTENTRY.
1802 (sh_elf_gc_mark_hook): New.
1803 (sh_elf_gc_sweep_hook): New.
1804 (sh_elf_check_relocs): New.
1805 (elf_backend_can_gc_sections): Define.
1806
1807Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
1808
1809 * acinclude.m4: undo previous gettext change
1810 * aclocal.m4: rebuild with right version of aclocal.
1811
1812Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
1813
1814 * acinclude.m4, aclocal.m4: move gettext-related fragments from
1815 aclocal.m4 to acinclude.m4, so they don't get lost.
1816
1817 * elfcore.h: rewrite for better corefile support.
1818 * elf.c (elfcore_*): new functions.
1819 * elf-bfd.h (elf_obj_tdata): new structure members.
1820 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
1821 flavor of procfs.
1822 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
1823
1824Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
1825
1826 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
1827 and R_M32R_GNU_VTENTRY.
1828 (elf_backend_can_gc_sections): Define.
1829 (m32r_elf_check_relocs): New.
1830 (m32r_elf_gc_mark_hook): New.
1831 (m32r_elf_gc_sweep_hook): New.
1832 (m32r_elf_relocate_section): Handle VT relocs.
1833
1834Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
1835
1836 * coff-arm.c (arm_relocate_section): Remove redundant test.
1837
1838 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
1839 cleat that the 'bitsize' field is the size of the bitfield AFTER
1840 relocation not before.
1841
1842 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
1843
1844 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
1845 relocs.
1846
1847Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
1848
1849 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
1850 R_SPARC_GNU_VTENTRY.
1851 (elf32_sparc_check_relocs): Handle them.
1852 (elf32_sparc_reloc_type_lookup): Likewise.
1853 (elf32_sparc_relocate_section): Likewise.
1854 (elf32_sparc_gc_mark_hook): New.
1855 (elf32_sparc_gc_sweep_hook): New.
1856
1857Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
1858
1859 * som.c (som_finish_writing): Perform some sanity checks when
1860 writing an executable or shared library.
1861
1862Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
1863
1864 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
1865 * configure.in (elf): Add dwarf1.lo.
1866 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
1867 * elf.c (_bfd_elf_find_nearest_line): Add call to
1868 _bfd_dwarf1_find_nearest_line.
1869 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
1870 Add call to _bfd_dwarf1_find_nearest_line.
1871 * configure: Rebuilt.
1872
1873Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
1874
1875 * elflink.h (elf_gc_sections): Do not allow garbage
1876 collection if dynamic sections have been created.
1877
1878Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
1879
1880 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
1881 R_V850_GNU_VTENTRY.
1882 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
1883 (v850_elf_perform_relocation): Likewise.
1884 (v850_elf_final_link_relocate): Likewise.
1885 (v850_elf_relocate_section): Likewise.
1886 (v850_elf_gc_sweep_hook): New routine.
1887 (v850_elf_gc_mark_hook): New routine.
1888 (elf_backend_can_gc_sections): Define.
1889
1890Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
1891
1892 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
1893 that dynobj exists.
1894
1895Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
1896
1897 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
1898 Declare size as bfd_size_type.
1899 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
1900
1901Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
1902
1903 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
1904 structure.
1905 * som.c (CPU_PA_RISC2_0): Define.
1906 (_PA_RISC2_0_ID): Likewise.
1907 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
1908
1909Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
1910
1911 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
1912 has a base which is already defined, only add the referenced
1913 symbol to the dynamic symbol table if it is defined or referenced
1914 by a regular file.
1915
1916 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
1917 correctly.
1918
19191998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1920
1921 * elflink.h (elf_link_add_object_symbols): Undo last change.
1922
1923Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
1924
1925 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
1926 symbol for the indirect alias to a versioned symbol.
1927
1928Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
1929
1930 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
1931 (elf32_i386_vtentry_howto): New.
1932 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
1933 or elf32_i386_vtinherit_howto on lookup.
1934
1935Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1936
1937 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
1938 reloc_type. Rename R_68K__max to R_68K_max.
1939 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
1940 reloc.
1941
1942Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
1943
1944 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
1945 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
1946
1947 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
1948 after.
1949
1950Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
1951
1952 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
1953 message has a null byte terminator.
1954
1955Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
1956
1957 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
1958 word subject to R_V850_32 relocation.
1959
1960Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
1961
1962 * dwarf2.c: Add comment describing problem computing line numbers
1963 for undefined symbols at link time.
1964
1965Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
1966
1967 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
1968 transform a defweak into a plt entry.
1969 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
1970 plt entry references to receive a RELATIVE reloc.
1971 (elf64_alpha_finish_dynamic_symbol): Fill them in.
1972 (elf64_alpha_relocate_section): Assert we don't overrun
1973 the allocated relocation space.
1974
1975Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
1976
1977 * elf.c (swap_out_syms): Always treat section symbols as
1978 special, even if they are attached to a common section.
1979
1980Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
1981
1982 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
1983 sections with v850 common section attributes into named v850
1984 common sections.
1985 (v850_elf_add_symbol_hook): Move symbols in sections with v850
1986 common section attributes into named v850 common sections.
1987
1988Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
1989
1990 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
1991 statement.
1992
19931998-09-15 Geoff Keating <geoffk@ozemail.com.au>
1994
1995 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
1996 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
1997 reloc to the wrong section a warning, not an error. .dynsbss
1998 is not an output section, so there is no need to check for it.
1999
2000Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
2001
2002 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
2003
2004Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
2005
2006 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
2007 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
2008 R_ARM_GNU_VTENTRY.
2009 (elf32_arm_gc_mark_hook): New.
2010 (elf32_arm_gc_sweep_hook): New.
2011 (elf32_arm_check_relocs): New.
2012 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
2013 relocations.
2014 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
2015 relocations.
2016
20171998-09-10 Geoff Keating <geoffk@ozemail.com.au>
2018
2019 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
2020 assume there is no PLT or GOT.
2021
2022Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
2023
2024 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
2025 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
2026 also accepted as a function symbol type.
2027
2028Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2029
2030 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
2031
2032Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
2033
2034 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
2035 match definition of _bfd_gc_sections field.
2036 * libbfd.h: Rebuild.
2037
2038Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
2039
2040 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
2041 the addend of a dynamic relocation referencing a section.
2042 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2043 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
2044
2045Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
2046
2047 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
2048 bed has a size_dynamic_sections routine before trying to use it.
2049
2050Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
2051
2052 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
2053 _bfd_elf_rel_vtable_reloc_fn.
2054
2055Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
2056
2057 * Makefile.am: Add elf32-arm.c.
2058 * Makefile.in: Rebuild.
2059 * elf-bfd.h: Add elf_backend_get_symbol_type.
2060 * elf.c (swap_out_syms): If defined, call
2061 elf_backend_get_symbol_type.
2062 * elf32-arm.c: Define elf_backend_get_symbol_type.
2063 (elf32_arm_get_symbol-type): New routine.
2064 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
2065 (bfd_elf32_arm_process_before_allocation): Change to
2066 check for STT_ARM_TFUNC.
2067 (elf32_arm_final_link_relocate): Likewise.
2068 * elfxx-target.h: Add elf_backend_get_symbol_type.
2069
2070Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
2071
2072 * archures.c (bfd_mach_alpha_ev[456]): New.
2073 * cpu-alpha.c: Rework to match these types.
2074 * bfd-in2.h: Rebuild.
2075
2076Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
2077
2078 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
2079 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
2080
2081 * elf32-i386.c (elf_howto_table): Add vtable relocs.
2082 (elf_i386_reloc_type_lookup): Recognize them.
2083 (elf_i386_check_relocs): Pass them off to generic code.
2084 (elf_i386_relocate_section): Ignore them.
2085 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
2086 (elf_backend_can_gc_sections): True.
2087
2088Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
2089
2090 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
2091 before looking at owner field.
2092 (elf32_arm_to_thumb_stub): Ditto.
2093 (elf32_arm_relocate_section): Compute name before calling
2094 elf32_arm_final_link_relocate().
2095
2096Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
2097
2098 * elf.c: comment and formatting cleanups.
2099 * elfcore.h: ditto.
2100
2101Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
2102
2103 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
2104 (core files are treated differently than object files).
2105 * elf-bfd.h (_bfd_elf_write_corefile_contents,
2106 bfd_elf_mkcorefile): declare.
2107 * elfxx-target.h (_bfd_elf_write_corefile_contents,
2108 bfd_elf_mkcorefile): add to bfd_target vector.
2109 * elfcore.h (elf_core_file_p): save the program header table,
2110 and set the bfd architecture from the elf file header.
2111 * elf.c (bfd_elf_mkcorefile): new function.
2112 (_bfd_elf_write_corefile_contents): new function.
2113 (assign_file_positions_for_segments): add cases for handling
2114 PT_NOTE segments. (assign_file_positions_except_relocs):
2115 core files should be handled the same as exec files.
2116 (prep_headers): identify core files as type ET_CORE.
2117 (copy_private_bfd_data): identify the sections belonging to
2118 the PT_NOTE segment.
2119
2120 * elf32-sparc.c (elf32_sparc_final_write_processing):
2121 add break statement to default case.
2122
21231998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
2124
2125 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
2126 section (not input) will be in sections ".sbss", ".sbss2",
2127 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
2128 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
2129 output_offset for correct evaluation of addend.
2130
2131Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
2132
2133 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
2134 elf32_arm_allocate_interworking_sections and
2135 elf32_arm_process_before_allocation.
2136
2137Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
2138
2139 * bfd-in.h: Ammend prototype for
2140 elf32_arm_process_before_allocation to remove surplus third
2141 argument.
2142
2143 * bfd-in2.h: Regenerate.
2144
2145Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
2146
2147 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
2148
2149Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
2150
2151 * aoutx.h (aout_link_input_section_ext): Use the relocation already
2152 calculated for RELOC_SPARC_REV32 case.
2153
2154Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
2155
2156 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
2157 elf32_arm_allocate_interworking_sections and
2158 elf32_arm_process_before_allocation.
2159 * bfd-in2.h: Regenerated.
2160 * elf32-arm.c Define elf32_arm_link_hash_table.
2161 (insert_thumb_branch): New routine.
2162 (find_thumb_glue): New routine.
2163 (find_arm_glue): New routine.
2164 (record_arm_to_thumb_glue): New routine.
2165 (record_thumb_to_arm_glue): New routine.
2166 (elf32_arm_link_hash_table_create): New routine.
2167 (elf32_arm_get_bfd_for_interworking): New routine.
2168 (elf32_arm_allocate_interworking_sections) New routine.
2169 (elf32_arm_process_before_allocation) New routine.
2170 (elf32_thumb_to_arm_stub): New routine.
2171 (elf32_arm_to_thumb_stub): New routine.
2172 (elf32_print_private_bfd_data): Fix typo.
2173 (elf32_arm_final_link_relocate): Add argument sym_sec.
2174 Check for branches to thumb symbols in case R_ARM_PC24.
2175 Check for branches to arm symbols in case R_ARM_THM_PC22.
2176 (elf32_arm_relocate_section): Pass symbol section to
2177 elf32_arm_final_link_relocate.
2178
2179Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
2180
2181 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
2182 entries unless the symbol is defined in the executable; in
2183 particular, undefined weak symbols get a PLT entry.
2184
2185Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
2186
2187 * libaout.h: Remove nested comment to avoid warning.
2188
2189Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
2190
2191 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
2192 R_ARM_PC24 relocation.
2193
2194Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
2195
2196 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
2197 argument is_local. Add argument sym_flags. Check sym_flags
2198 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
2199 (elf32_arm_relocate_section): Don't pass local sym and pass
2200 sym_flags to elf32_arm_final_link_relocate.
2201
2202Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
2203
2204 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
2205 to not count too few relocs for dynamicly linked executables.
2206
2207Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
2208
2209 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
2210 symbols without a dynamic index dynamic. Consider all weak
2211 symbols dynamic.
2212 (elf64_alpha_strip_section_from_output): Don't assume 1-1
2213 correspondance between input and output sections.
2214
2215Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2216
2217 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
2218 that use a .got.plt section start the got offset at zero.
2219
2220Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
2221
2222 * ieee.c (ieee_write_processor): Correct the processor ID written
2223 out for bfd_arch_m68k, accommodating change of March 25.
2224
2225Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
2226
2227 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
2228 R_ARM_THM_RPC22 relocations.
2229
2230Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
2231
2232 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
2233 are always dynamic.
2234 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
2235 .got relocs in -Bsymbolic shared objects.
2236
2237Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
2238
2239 * elf32-arm.c: Add private flags to ELF header.
2240 (elf32_arm_print_private_bfd_data): New Function.
2241 (elf32_arm_set_private_flags): New Function.
2242 (elf32_arm_copy_private_flags): New Function.
2243 (elf32_arm_merge_private_bfd_data): New Function.
2244
2245Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
2246
2247 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
2248 a local symbol.
2249 (elf32_sparc_relocate_section): Likewise.
2250
2251Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
2252
2253 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
2254 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
2255 (ppc_elf_relocate_section): Pull sgot and splt search to the start
2256 of the function. Recognize no .plt as static linking.
2257
22581998-08-01 Ulrich Drepper <drepper@cygnus.com>
2259
2260 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
2261 ".liblist" string through gettext.
2262
2263Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
2264
2265 * Makefile.am: Add support for elf32-arm.lo.
2266 * Makefile.in: Rebuild.
2267 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
2268 (thumb-*-elf): Define targ_defvec and targ_selvecs.
2269 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
2270 * configure: Regenerate.
2271 * elf.c: (prep_headers): Support arch_type of EM_ARM.
2272 * targets.c: Support new targets bfd_elf32_bigarm_vec and
2273 bfd_target bfd_elf32_littlearm_vec.
2274 * elf32-arm.c: New file.
2275
2276Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
2277
2278 * libaout.h (M_SPARCLITE_LE): New machine.
2279 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
2280 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
2281 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
2282 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
2283 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
2284 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
2285 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
2286 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
2287 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
2288 be BFD_RELOC_SPARC_REV32.
2289 * reloc.c: Ditto.
2290 * config.bfd (sparc86x-*-aout): New
2291
2292Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
2293
2294 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
2295 actually mapping the output sections.
2296
2297Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
2298
2299
2300 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
2301 (mn10300_elf_reloc_map): Similarly.
2302 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
2303
2304Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
2305
2306 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
2307 Irix 6.
2308 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
2309 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
2310 elf_mips_reloc_type defined in elf/mips.h.
2311
23121998-07-24 Ulrich Drepper <drepper@cygnus.com>
2313
2314 * elf64-mips.c: Remove reloc_type definition completely. It's now
2315 in elf/mips.h.
2316
2317Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
2318
2319 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
2320 as they are defined in elf/mips.h now.
2321
2322Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
2323
2324
2325 * Re-add lost change:
2326 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
2327 "movm_stack_size".
2328 (mn10300_elf_relax_section): Include stack space for register saves
2329 in the imm8 field of a "call" instruction.
2330 (compute_function_info): Determine how much stack is allocated by
2331 the movm instruction. Fix typo.
2332 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
2333
2334Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
2335
2336 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
2337 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
2338
23391998-07-22 Ulrich Drepper <drepper@cygnus.com>
2340
2341 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
2342
2343Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
2344
2345 * elf32-hppa.h: Let ELF header define the enum containing the
2346 external reloc numbers.
2347 * elf32-i386.h: Likewise.
2348
23491998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
2350
2351 * elf-m10300.c: Let ELF header now define the macros to get the enum.
2352 * elf32-mips.c: Likewise.
2353 * elf32-ppc.c: Likewise.
2354
2355Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
2356
2357 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
2358 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
2359 prblems.
2360 * bfd-in.h: Regenerate.
2361 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
2362 parameter to 'unsigned int' to avoid K&R compatability problems.
2363
2364Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
2365
2366 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
2367 functionname_ptr to be const. Change line_ptr to be unsigned.
2368
2369 * coffcode.h (coff_link_output_has_begun): Simplify handling when
2370 macro is not defined. Change second parameter from bfd_link_info
2371 to coff_final_link_info. Add prototype.
2372 (coff_final_link_postscript): Simplify handling when macro is not
2373 defined. Add prototype.
2374
23751998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
2376
2377 * elf-mn10300.c: Before include system specific ELF header define
2378 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
2379 * elf32-mips.c: Likewise.
2380 * elf32-ppc.c: Likewise.
2381
2382Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
2383
2384 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
2385 temporary patch over to elf64-mips.c as well.
2386
23871998-07-21 Ulrich Drepper <drepper@cygnus.com>
2388
2389 * elf32-mips.c (reloc_type): Temporarily disable definition of
2390 standard relocation since they are now defined in elf/mips.h.
2391
2392Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
2393
2394 * elf-m10200.c (mn10200_elf_final_link_relocate):
2395 Modify range test for case R_MN10200_8.
2396
2397 * elf-m10300.c (mn10300_elf_final_link_relocate):
2398 Modify range test for case R_MN10300_8.
2399
2400Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
2401
2402 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
2403 * elf32-i386.c (elf_backend_got_header_size): Define.
2404 (elf_backend_plt_header_size): Define.
2405 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
2406 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
2407 * elfxx-target.h: Provide a default of zero.
2408 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
2409 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
2410
2411 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
2412 entry from an executable, even if the plt refcount goes to 0.
2413
2414Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2415
2416 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
2417 directory name at the line number.
2418
2419 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
2420 with an unspecified type.
2421
2422Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
2423
2424 * sunos.c: Add undef of valid to avoid problem on SunOS.
2425
2426Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
2427
2428 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
2429
2430Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2431
2432 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
2433 R_68K_PCxx and R_68K_xx relocations. Make sure that
2434 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
2435 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
2436 R_68K_xx relocations.
2437 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
2438 that has no plt entry.
2439 (elf_m68k_relocate_section): Ignore the plt offset in a static
2440 link.
2441 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
2442 an ignored symbol.
2443 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
2444 a static link.
2445
2446 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
2447 types.
2448 (howto_table, reloc_map): Add entries for them.
2449 (elf_m68k_check_relocs): Handle them. Implement reference
2450 counting for got and plt entries.
2451 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
2452 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
2453 symbols.
2454 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
2455 (elf_m68k_relocate_section): Handle the new reloc types.
2456 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
2457 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
2458 * elflink.h (elf_link_add_object_symbols): When creating an
2459 indirect reference for symbol versioning also copy the plt
2460 offset.
2461 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
2462 flag also reset the plt offset.
2463 (elf_link_assign_sym_version): Likewise.
2464 (elf_gc_common_finalize_got_offsets): Increment the got offset by
2465 the size of the entry in bytes.
2466 (elf_gc_allocate_got_offsets): Likewise.
2467
2468Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
2469
2470 * elflink.h (elf_gc_sections): Return true rather than falling off
2471 the bottom.
2472
2473 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
2474 xmalloc.
2475
2476Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
2477
2478 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
2479 comment describing when it should be enabled.
2480 Changed definition of USER_LABEL_PREFIX to "", to fall into line
2481 with GCC sources.
2482
2483Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
2484
2485 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
2486 information ATN records.
2487
2488Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
2489
2490 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
2491 section for an absolute symbol in a fully linked file. Based on
2492 patch from Christian Holland <CHolland@de.lucent.com>.
2493
2494Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
2495
2496 * coff-m88k.c (m88k_special_reloc): Don't lose the information
2497 that a symbol is undefined.
2498
2499Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
2500
2501 * som.c (som_bfd_gc_sections): Define.
2502
2503Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
2504
2505 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
2506 overflows in ARM_26D patches, since they have already been
2507 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
2508
2509Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
2510
2511 * coffcode.h (coff_write_object_contents): If we have any long
2512 section names, call coff_write_symbols even if there are no
2513 symbols.
2514
2515Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
2516
2517 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
2518 PT_LOAD segment, rather than only setting it once for the entire
2519 file.
2520
2521 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
2522 rather than ignoring every phdr with a p_paddr of 0, ignore all
2523 the phdrs if they all have a p_paddr of 0.
2524
2525 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
2526 section was discarded from the link.
2527
2528Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
2529
2530 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
2531
2532Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
2533
2534 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
2535 floating point operations.
2536
2537Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
2538
2539 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
2540 function symbols.
2541
2542Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
2543
2544 Merge of vax/vms (read-only) support
2545 * configure.com: Support Vax target.
2546 * makefile.vms: Support Vax target.
2547 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
2548 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
2549 support.
2550 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
2551 support.
2552 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
2553 support.
2554 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
2555 support.
2556 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
2557 support.
2558 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
2559 * targets.c (bfd_target_ovax_flavour): New flavour.
2560 (vms_alpha_vec): Renamed from evax_alpha_vec.
2561 (vms_vax_vec): New.
2562 (target_vector): Update accordingly.
2563 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
2564 evax_alpha_vec.
2565 (vax*-*-*vms*): New target.
2566 * Makefile.am: Update for renamed files. Rebuild dependencies.
2567 * bfd-in2.h: Rebuild.
2568 * configure.in, Makefile.in, aclocal.m4: Rebuild.
2569
2570Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
2571
2572 Based on patch from Matt Semersky <matts@scd.hp.com>:
2573 * linker.c (_bfd_generic_final_link): Force a trailing NULL
2574 pointer on abfd->outsymbols.
2575 (generic_add_output_symbol): Handle NULL sym parameter.
2576
2577Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
2578
2579 * elf.c (copy_private_bfd_data): Add support for changing VMA or
2580 LMA of sections.
2581
2582Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
2583
2584 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
2585 when handling 32 bit immediate relocs.
2586 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
2587
2588Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
2589
2590 * section.c (STD_SECTION): Account for recently added gc_mark
2591 field in struct asection.
2592
2593 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
2594 (bfd_elf32_bfd_merge_private_bfd_data): Define.
2595
2596Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
2597
2598 ELF Section-level Garbage Collection:
2599 * bfd.c (bfd_gc_sections): New.
2600 * aout-adobe.c: Hook to default implementation.
2601 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
2602 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
2603 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
2604 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
2605 * tekhex.c, versados.c: Likewise.
2606 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
2607 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
2608
2609 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
2610 (bfd_generic_gc_sections): New.
2611 * section.c (SEC_KEEP): New.
2612 (asection): Add gc_mark member.
2613
2614 * elfcode.h (elf_gc*): New name remappings.
2615 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
2616 sections to be excluded.
2617 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
2618 (elf_gc_propogate_vtable_entries_used): New.
2619 (elf_gc_smash_unused_vtentry_relocs): New.
2620 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
2621 (elf_gc_common_finalize_got_offsets): New.
2622 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
2623 * elfxx-target.h: Add and default gc hooks.
2624
2625 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
2626 for unions.
2627 (struct elf_obj_tdata): Likewise for local_got_offsets.
2628 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
2629 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
2630 * elf64-sparc.c, elflink.h: Likewise.
2631
2632 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
2633 (ELF_LINK_HASH_MARK): Define.
2634 (struct elf_backend_data): Add GC hooks.
2635 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
2636
2637 * elf-m10300.c (mn10300_elf_check_relocs): New.
2638 (mn10300_elf_gc_mark_hook): New.
2639 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
2640 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
2641 (mn10300_elf_final_link_relocate): Likewise.
2642 (mn10300_elf_relocate_section): Likewise.
2643 (elf_backend_can_gc_sections): Define.
2644 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
2645 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
2646 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
2647 (mips_info_to_howto_rel): Likewise.
2648 (mips_elf_relocate_section): Likewise.
2649 (mips_elf_check_relocs): Likewise.
2650 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
2651 (elf_backend_can_gc_sections): Define.
2652 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
2653 (ppc_elf_howto_raw): Handle them.
2654 (ppc_elf_reloc_type_lookup): Likewise.
2655 (ppc_elf_relocate_section): Likewise.
2656 (ppc_elf_check_relocs): Reference count .got and .plt entires.
2657 Handle new vtable relocs.
2658 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
2659 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
2660 (elf_backend_can_gc_sections): Define.
2661
2662Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
2663
2664 * archures.c (bfd_mach_mn10300): Define.
2665 * elf-m10300.c: Include elf/mn10300.h
2666 (elf_mn10300_mach): New function.
2667 (_bfd_mn10300_elf_final_write_processing): Likewise.
2668 (_bfd_mn10300_elf_object_p): Likewise.
2669 (elf_backendfinal_write_processing): Define.
2670 (elf_backend_object_p): Likewise.
2671
2672Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
2673
2674 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
2675 relocation.
2676
2677Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
2678
2679 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
2680 link_next field, not the next field.
2681
2682Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
2683
2684 * elf.c (map_sections_to_segments): Check the section address
2685 against the phdr size both with and without a modulo of
2686 maxpagesize.
2687
2688Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
2689
2690 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
2691 linker created empty input section if the output section has the
2692 same name.
2693
2694 * elflink.h (elf_link_output_extsym): Print an error message if
2695 _bfd_elf_section_from_bfd_section fails.
2696
2697 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
2698 failure.
2699
2700Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
2701
2702 * elf.c (copy_private_bfd_data): Improve handling of Solaris
2703 native linker output. Avoid putting an empty section in more than
2704 one segment.
2705
2706Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
2707
2708 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
2709 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
2710
2711Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
2712
2713 * elf.c (swap_out_syms): New arg relocatable_p.
2714 Don't add section VMA to symbols for relocatable output.
2715 (_bfd_elf_compute_section_file_positions): Update call to
2716 swap_out_syms.
2717
2718Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
2719
2720 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
2721 against 'addend' be signed rather than unsigned.
2722
2723Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
2724
2725 * elf32-m32r.c: Add prototyps for static functions.
2726
2727 * coff-arm.c: Add prototypes for static functions.
2728
2729Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
2730
2731 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
2732 LMA is used to order sections in a segment.
2733
2734 * elf32-v850.c: Add prototypes for static functions.
2735 Change type of addend parameter to bfd_vma in various functions.
2736
2737Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
2738
2739 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
2740 complain_overflow_signed instead of complain_overflow_bitfield.
2741
2742Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2743
2744 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
2745 when comparing against 0.
2746
2747Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
2748
2749 * Makefile.am (config.status): New target.
2750 * Makefile.in: Rebuild.
2751
2752Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
2753
2754 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
2755 error if previous object endianness doesn't match current object.
2756
2757Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
2758
2759 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
2760 _bfd_elf_print_private)bfd_data ().
2761
2762Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
2763
2764 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
2765 and size_change_ok.
2766 (elf_link_add_object_symbols): Set type_change_ok and
2767 size_change_ok before calling elf_merge_symbol.
2768
2769 * elf32-mips.c (mips_elf_relocate_section): If we issue an
2770 undefined symbol error, don't also issue an overflow error.
2771
2772Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
2773
2774 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
2775 R_PPC_LOCAL24PC relocation should be local; if not, print an error
2776 message instead of crashing.
2777
2778Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
2779
2780 * archures.c (bfd_mach_cpu32): Define.
2781 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
2782 bfd_mach_cpu32.
2783 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
2784 * ieee.c: Include <ctype.h>.
2785 (ieee_object_p): Parse out process ID string to make it more
2786 likely to be acceptable for bfd_scan_arch.
2787 * bfd-in2.h: Rebuild.
2788
2789Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
2790
2791 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
2792 _bfd_elf_print_private_bfd_data() so that the program header will
2793 be displayed.
2794
2795Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
2796
2797 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
2798 0x68. Reindent. Add some comments.
2799
2800Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
2801
2802 * elf.c (copy_private_bfd_data): Adjust physical address of
2803 segment in output BFD to contain LMAs of its sections.
2804
2805Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
2806
2807 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
2808 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
2809 endian data 32 bit relocations.
2810 (elf32_sparc_merge_private_bfd_data): Check if linking little
2811 endian objects with big endian objects.
2812 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
2813 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
2814 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
2815 * reloc.c: Same.
2816 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
2817 * archures.c (bfd_mach_sparc_sparclite_le): New.
2818 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
2819
2820Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
2821
2822 * peicode.h (add_data_entry): Fix precedence of operators in if ()
2823 statement.
2824
2825Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
2826
2827 * bfd-in.h: Move over patch to bfd-in2.h.
2828
2829 * reloc.c (bfd_check_overflow): Add casts before shifts which may
2830 not fit in 32 bits.
2831 (_bfd_relocate_contents): Likewise.
2832
2833Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
2834
2835 * peicode.h (add_data_entry): If the section has no private data
2836 then do not create a Data Dictionary entry for it.
2837
2838Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
2839
2840 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
2841 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
2842 elf64_alpha_size_got_sections): Rewrite, handling multiple got
2843 subsections during relaxation more correctly.
2844
2845Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
2846
2847 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
2848 Add extra argument to bfd_arm_process_before_allocation ().
2849 * bfd-in.h: Reflect changes made in bfd-in2.h.
2850 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
2851 coff class of a BFD symbol.
2852 * coff-arm.c: Add support for interworking between Thumb code and
2853 non-interworking aware ARM code.
2854
2855Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
2856
2857 * po/Make-in (install-info): New target.
2858
2859Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
2860
2861 * filemode.c: Remove; not used.
2862
2863 If sysdep.h includes a header file, don't include it again:
2864 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
2865 <errno.h>.
2866 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
2867 <sysdep.h>.
2868 * archive.c: Don't include <string.h> or <errno.h>.
2869 * evax-alpha.c; Don't include <stdio.h>.
2870 * evax-egsd.c: Likewise.
2871 * evax-etir.c: Likewise.
2872 * evax-misc.c: Likewise.
2873 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
2874 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
2875 <errno.h>.
2876 * hpux-core.c: Likewise.
2877 * netbsd-core.c: Likewise.
2878 * som.c: Likewise.
2879 * libbfd.c: Don't include <sys/types.h>.
2880 * nlmcode.h: Don't include <string.h>.
2881 * osf-core.c: Don't include <string.h> or <stdio.h>.
2882 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
2883 <errno.h>, or <unistd.h>.
2884 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
2885
2886Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
2887
2888 * configure.com: If the version number can not be found in
2889 configure.in, set it to "unknown" rather than "2.8.1".
2890
2891Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
2892
2893 * elf32-mips.c (elf_mips_mach): New.
2894 (_bfd_mips_elf_object_p): Use elf_mips_mach.
2895 (_bfd_mips_elf_final_write_processing): Use the names
2896 of machines, rather than the numbers. Set both the ARCH
2897 and MACH in e_flags. Handle a few more specific machines.
2898 (_bfd_mips_elf_merge_private_bfd_data): Merge both
2899 EF_MIPS_ARCH and EF_MIPS_MACH.
2900
2901Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
2902
2903 * syms.c (bfd_is_local_label): Revert last change.
2904 * srec.c (srec_write_symbols): Discard debugging symbols.
2905
2906Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
2907
2908 * som.c: Include <ctype.h>.
2909 * som.h: Don't include sysdep.h.
2910
2911Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
2912
2913 * libbfd.h: Rebuilt.
2914 * libbfd-in.h: Removed gettext includes and defines.
2915 * sysdep.h: Moved gettext-related includes and defines here.
2916
2917Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
2918
2919 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
2920 an ad-hoc test. Kill bogus #if 0 code.
2921 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
2922
2923Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
2924
2925 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
2926 when generating a normal executable for a symbol defined in a
2927 regular file. When copying a reloc into the output file, adjust
2928 the addend for a PC relative reloc against a global symbol.
2929
2930Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
2931
2932 * libbfd.h: Rebuilt.
2933 * libbfd-in.h (_): Define as dgettext.
2934
2935Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
2936
2937 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
2938 not signed.
2939 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
2940 when declaring parameter types.
2941 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
2942
2943Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
2944
2945 * config.bfd: If we include any ELF targets in targ_defvec and/or
2946 targ_selvecs, then add the generic ELF targets to targ_selvecs.
2947 * elf32-gen.c (dummy): New static const variable.
2948 (elf_generic_info_to_howto): New static function.
2949 (elf_generic_info_to_howto_rel): New static function.
2950 (elf_info_to_howto): Define as elf_generic_info_to_howto.
2951 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
2952 * elf64-gen.c: Same changes as elf32-gen.c.
2953 * elfcode.h (elf_object_p): For the generic target, ignore a
2954 failure of bfd_default_set_arch_mach. Fix indentation a bit.
2955
2956Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
2957
2958 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
2959 * configure: Rebuild.
2960
2961Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
2962
2963 * config.bfd: Update OSR5/Unixware patterns.
2964
2965Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
2966
2967 * elf.c (assign_file_positions_for_segments): Allow for holes
2968 between sections added by a link script.
2969
2970Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
2971
2972 * configure.in: Change version number to 2.9.4
2973 * configure: Rebuild.
2974
2975 Based on patch from H.J. Lu <hjl@gnu.org>:
2976 * elf.c (bfd_elf_get_bfd_needed_list): New function.
2977 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
2978 * bfd-in2.h: Rebuild.
2979
2980Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
2981
2982 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
2983 Change all users.
2984
2985Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
2986
2987 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
2988 (elf64_alpha_relax_section): Fill them in.
2989 (elf64_alpha_relax_opt_call): Implement more than a stub.
2990 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
2991 alignment on .scommon.
2992 (elf64_alpha_merge_gots): Merge use counts as well.
2993
2994Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
2995
2996 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
2997 for calculating a local symbol's address.
2998 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
2999 Set the .got's cooked size as well as the raw size.
3000
3001Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
3002
3003 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
3004 internationalisation of printed information.
3005
3006 * coff-arm.c (coff_arm_print_private_bfd_data): Add
3007 internationalisation of printed information.
3008
3009Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
3010
3011 * syms.c (struct indexentry): Change directory_name, file_name,
3012 and function_name fields to char *.
3013 (struct stab_find_info): Change cached_file_name field to char *.
3014
3015Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
3016
3017 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
3018
3019Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
3020
3021 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
3022
3023Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
3024
3025 * Makefile.am (install-data-local): Make $(includedir).
3026 * Makefile.in: Rebuild.
3027
3028Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
3029
3030 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
3031
3032Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
3033
3034 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
3035 * Makefile.in: Rebuild.
3036
3037 * bfd-in2.h: Rebuild for Nick's changes.
3038
3039Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
3040
3041 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
3042 change wrt length == max_namelen.
3043
3044Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
3045
3046 * Many files: Added gettext invocations around user-visible
3047 strings.
3048 * libbfd-in.h: Added gettext includes and defines.
3049 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
3050 HAVE_LC_MESSAGES): Define.
3051 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
3052 po/Makefile.
3053 * Makefile.am (SUBDIRS): Added po.
3054 (POTFILES): New macro.
3055 (po/POTFILES.in): New target.
3056 (SOURCE_HFILES): New macro.
3057 (HFILES): Use it.
3058 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
3059
3060Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3061
3062 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
3063 NT_PRSTATUS note section encountered, it contains the status of
3064 the currently executing thread when the core file was written.
3065
3066Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
3067
3068 * libcoff.h: Add extra parameter to
3069 bfd_coff_link_output_has_begun overrideable function.
3070 * cofflink.c: Pass extra parameter to
3071 bfd_coff_link_output_has_begun function.
3072 * bfd-in.h: Add prototypes for exported ARM interworking
3073 functions.
3074 * peicode.h: ARM specific code reorganised to conform to BFD
3075 coding conventions.
3076 * coffcode.h: ARM specific code reorganised to conform to BFD
3077 coding conventions.
3078 * coff-arm.c: Code reorganised to conform to the BFD coding
3079 conventions. Global variables have been moved into an ARM
3080 specific hash table structure and a new function:
3081 bfd_arm_get_bfd_for_interworking() has been created which is
3082 called from the linker scripts.
3083
3084Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
3085
3086 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
3087
3088 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
3089 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
3090 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
3091 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
3092
3093Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
3094
3095 * config.bfd: Added sparc86x support.
3096
3097Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
3098
3099 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
3100 an out of range pc-relative jump/call to an undefined weak symbol.
3101
3102Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
3103
3104 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
3105 comparisons signed.
3106
3107Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
3108
3109 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
3110 an error other than bfd_error_system_call, set the error to
3111 bfd_error_wrong_format.
3112
3113 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
3114 bfd_elf32_powerpcle_vec.
3115
3116 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
3117 program segments are zero, don't set p_paddr_valid.
3118
3119Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
3120
3121 * elf64-alpha.c: Initial implementation of relaxation --
3122 (struct alpha_elf_link_hash_entry): Add use_count member.
3123 (elf64_alpha_check_relocs): Initialize and increment it.
3124 (elf64_alpha_can_merge_gots): Check it when considering merging.
3125 (elf64_alpha_merge_gots): Drop entries with zero use.
3126 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
3127 (elf64_alpha_always_size_sections): Split out got sizing ...
3128 (elf64_alpha_size_got_sections): ... here. New function.
3129 (elf64_alpha_relax_find_reloc_ofs): New function.
3130 (elf64_alpha_relax_with_lituse): Likewise.
3131 (elf64_alpha_relax_without_lituse): Likewise.
3132 (elf64_alpha_relax_opt_call): Likewise.
3133 (elf64_alpha_relax_section): Likewise.
3134 (elf64_alpha_add_symbol_hook): Likewise.
3135 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
3136 (elf64_alpha_relocate_section): Likewise.
3137 (bfd_elf64_bfd_relax_section): Define.
3138 (elf_backend_add_symbol_hook): Likewise.
3139
3140Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
3141
3142 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
3143 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
3144 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
3145
3146Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
3147
3148 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
3149 * configure: Rebuild.
3150
3151Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
3152
3153 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
3154 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
3155 * configure.in: Define and substitute WIN32LDFLAGS and
3156 WIN32LIBADD.
3157 * aclocal.m4: Rebuild with new libtool.
3158 * configure, Makefile.in: Rebuild.
3159
3160Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
3161
3162 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
3163 before any other symbols in the same section.
3164
3165Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
3166
3167 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
3168 systems.
3169
3170Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
3171
3172 * dwarf2.c (comp_unit): Move it earlier in the source. Add
3173 addr_size.
3174 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
3175 Use addr_size for address size, rather than sizeof(bfd_vma).
3176 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
3177 Fix call to read_address.
3178 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
3179 Scrap other unneeded arguments. Fix call to read_address.
3180 (scan_unit_for_functions): Fix call to read_attribute.
3181 (parse_comp_unit): We now handle more values for addr_size.
3182 Set addr_size in unit. Fix call to read_attribute and
3183 decode_line_info.
3184
3185Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
3186
3187 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
3188
3189Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
3190
3191 * archures.c (bfd_default_scan): Add m68k cases back to default
3192 switch, reverting patch of March 25, since IEEE support depends
3193 upon them.
3194
3195Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
3196
3197 * Makefile.am (diststuff): New target.
3198 * Makefile.in: Rebuild.
3199
3200Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
3201
3202 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
3203 som_offset when we have an extended name table.
3204
3205Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
3206
3207 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
3208 trying to copy it.
3209 * Makefile.in: Rebuild.
3210
3211Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3212
3213 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
3214 symbols when creating a shared library.
3215 (elf_m68k_adjust_dynindx): New function, used by above code.
3216 (elf_m68k_finish_dynamic_sections): Initialize the section
3217 symbols.
3218 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
3219
3220Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
3221
3222 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
3223 value 11.
3224
3225Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3226
3227 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
3228 assertion.
3229
3230Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
3231
3232 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
3233 absolute symbols.
3234
3235Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
3236
3237 * configure.in: Set version to 2.9.1.
3238 * configure: Rebuild.
3239
3240 * Branched binutils 2.9.
3241
3242Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
3243
3244 * syms.c (ENABLE_CACHING): Define.
3245 (struct indexentry): Define.
3246 (struct stab_cache): Remove.
3247 (cmpindexentry): New static function.
3248 (struct stab_find_info): Add new fields: indextable,
3249 indextablesize, cached_indexentry, cached_offset, cached_stab, and
3250 cached_file_name. Remove fields: file_cache, function_cache, and
3251 line_cache.
3252 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
3253 index table and search it.
3254
3255Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
3256
3257 * elf.c (_bfd_elf_copy_private_section_data): Call
3258 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
3259
3260 * cpu-mips.c: Remove trailing comma at end of enumeration list.
3261
3262Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
3263
3264 * coff-arm.c: Define all globally visible variables and functions
3265 only when COFF_WITH_PE is not defined.
3266 * configure.in (armpe_little_vec, armpe_big_vec): Add
3267 coff-arm.lo.
3268 * configure: Rebuild.
3269
3270Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
3271
3272 Fix some gcc -Wall warnings:
3273 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
3274 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
3275 * archures.c (bfd_default_scan): Likewise.
3276 * bfd.c (bfd_scan_vma): Likewise.
3277 * binary.c (mangle_name): Likewise
3278 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
3279 * coff-sh.c (sh_relocate_section): Likewise.
3280 * coff-stgo32.c (create_go32_stub): Likewise.
3281 * coffcode.h (coff_slurp_line_table): Likewise.
3282 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
3283 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
3284 (assign_file_positions_for_segments): Likewise.
3285 * elf32-mips.c (mips_elf_relocate_section): Likewise.
3286 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
3287 * oasys.c (oasys_write_sections): Likewise.
3288 * ppcboot.c (ppcboot_object_p): Likewise.
3289 (mangle_name): Likewise.
3290 * riscix.c (riscix_fix_pcrel_26): Likewise.
3291 * srec.c (srec_scan): Likewise.
3292 * stabs.c (_bfd_write_section_stabs): Likewise.
3293 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3294 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
3295 switch. Declare parameters for function pointers.
3296 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
3297 warning.
3298 * elf.c (elf_sort_sections): Likewise.
3299 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
3300 Add default cases to switches.
3301 (coff_arm_relocate_section): Remove unused local variables.
3302 Always set rstat.
3303 (coff_arm_bfd_set_private_flags): Change flag variable to type
3304 flagword.
3305 * coff-mips.c (mips_relocate_section): Initialize use_lo.
3306 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
3307 (dump_toc): Change cat to const, and initialize it.
3308 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
3309 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
3310 (sh_elf_relocate_section): Initialize r_symndx.
3311 * coffcode.h (coff_compute_section_file_positions): Only declare
3312 old_sofar if ALIGN_SECTIONS_IN_FILE.
3313 (coff_write_object_contents): Initialize csym.
3314 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
3315 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
3316 switch.
3317 * dwarf2.c: Include libiberty.h.
3318 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
3319 (decode_line_info): Remove unused local variables.
3320 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
3321 (m32r_elf_relocate_section): Likewise.
3322 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
3323 (v850_elf_reloc): Likewise.
3324 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
3325 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
3326 * elf.c (assign_file_positions_for_segments): Always set adjust.
3327 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
3328 parenthesize expression.
3329 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
3330 (m32r_elf_object_p): Return a value.
3331 (m32r_elf_print_private_bfd_data): Change fprintf format string.
3332 * elf32-mips.c (mips_elf_final_link): Initialize last.
3333 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
3334 * elf32-v850.c (v850_elf_object_p): Return a value.
3335 (v850_elf_print_private_bfd_data): Change fprintf format string.
3336 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
3337 unsigned long.
3338 * elflink.h (elf_link_add_object_symbols): Change vernum to
3339 unsigned int, and initialize it. Change fprintf format string.
3340 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
3341 when setting or comparing to soname_indx.
3342 (elf_create_pointer_linker_section): Change num_symbols to
3343 unsigned int.
3344 * libcoff-in.h (coff_data_type): Change flags to flagword.
3345 * peicode.h (pe_print_idata): Initialize idx. Change j to
3346 bfd_size_type. Initialize hint_member. Remove useless test to
3347 time_stamp.
3348 (pe_print_edata): Change num_functions and num_names in struct
3349 EDT_type to unsigned long. Remove cast. Change fprintf format
3350 string.
3351 * ppcboot.c (ppcboot_object_p): Change i to size_t.
3352 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
3353 int.
3354 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
3355 int *. Update uses. Change j to long.
3356 * bfd-in2.h, libcoff.h: Rebuild.
3357
3358Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
3359
3360 * elf32-v850.c Remove definition of USE_REL.
3361 (v850_elf_info_to_howto_rela): New function.
3362 (v850_elf_perform_relocation): Renamed from
3363 v850_elf_store_addend_in_insn. Removed replace argument.
3364 (v850_elf_reloc): store the relocation in the addend field instead
3365 of the insn.
3366 (v850_elf_final_link_relocate): Now calls
3367 v850_elf_perform_relocation.
3368 (v850_elf_relocate_section): Remove code to generate REL
3369 relocations.
3370
3371Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
3372
3373 * coffcode.h (coff_new_section_hook): Set the type and storage
3374 class in the native symbol information allocated for a new section
3375 symbol.
3376
3377Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
3378
3379 * peicode.h: Chain together calls to
3380 coff_bfd_copy_private_bfd_data and
3381 coff_bfd_print_private_bfd_data.
3382
3383 * coff-arm.c: Add prototypes for
3384 coff_arm_bfd_print_private_bfd_data and
3385 coff_arm_bfd_copy_private_bfd_data.
3386
3387Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
3388
3389 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
3390 build.
3391
3392 * peicode.h: Call arm-coff private data functions after handling
3393 pe private data.
3394
3395 * coff-arm.c: Turn statics into globals so that they can be shared
3396 both pe and pei backends.
3397
3398Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
3399
3400 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
3401 plain numbers.
3402 (sunos_write_object_contents): Likewise.
3403 * aoutx.h (NAME(aout,machine_type)): Likewise.
3404 * coffcode.h (coff_set_arch_mach_hook): Likewise.
3405
3406Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3407
3408 * archures.c (bfd_mach_m68*): Add definitions for various m68k
3409 variants.
3410 (bfd_default_scan): Remove m68k special cases.
3411 * bfd-in2.h: Rebuild.
3412 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
3413 than plain numbers.
3414 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
3415 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
3416 m68k:68000.
3417 (bfd_m68k_arch): Set mach field to zero to signal no explicit
3418 selection, change printable_name to just "m68k" and make that the
3419 default instead of m68k:68020.
3420
3421 * aout-tic30.c (NAME): Define this to avoid multiple definitions
3422 from aoutx.h.
3423 (MY_get_section_contents): Define as aout_32_get_section_contents
3424 rather than NAME(aout,get_section_contents).
3425
3426 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
3427
3428 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
3429 and call bfd_default_set_arch_mach to do the real work.
3430
3431Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
3432
3433 * bout.c (BALX): Include return register g14 as part of the insn.
3434 (BALX_MASK): New.
3435 (calljx_callback): Use it.
3436
3437Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
3438
3439 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
3440 * libbfd.h: Rebuild.
3441
3442 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
3443 byte_count to unsigned int.
3444 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
3445 unused local variables.
3446
3447 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
3448 variables er and er1.
3449
3450 * cpu-v850.c: Include <ctype.h>.
3451 (scan): Case isdigit argument to unsigned char.
3452
3453 From Yan Meroth <YAN.MEROTH@st.com>:
3454 * ihex.c (ihex_scan): Add extbase variable so that getting an
3455 extended linear address record does not ignore any previous
3456 extended address.
3457 (ihex_write_object_contents): When writing out an extended linear
3458 address record, zero out any previous extended address.
3459
3460Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
3461
3462 * ieee.c (do_one): Check section before dereferencing it.
3463 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
3464 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
3465
3466Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
3467
3468 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
3469
3470Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
3471
3472 * coff-arm.c: Add interworking functions to pe backends.
3473
3474Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
3475
3476 * configure.in: Use AM_DISABLE_SHARED.
3477 * aclocal.m4, configure: Rebuild with libtool 1.2.
3478
3479Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
3480
3481 * coff-arm.c (coff_arm_relocate_section): Better error messages
3482 when interowrking conflucts occur. Courtesy of Jonathan Walton
3483 and Tony Thompson.
3484 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
3485 relocations. Patch courtesy of Jonathan Walton and Tony
3486 Thompson.
3487
3488Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
3489
3490 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
3491 part of Feb 22 change controling when to override the existing
3492 symbol with the .plt entry.
3493
3494Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
3495
3496 * config.bfd (targ_cpu): Add thumb-pe target.
3497
3498 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
3499 functions in PE build.
3500
3501Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
3502
3503 * config.bfd (sparclite-*-elf*): Added.
3504
3505Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
3506
3507 * configure.in: Add elf.lo to elf shell variable.
3508 * Makefile.am (BFD_LIBS): Remove elf.lo.
3509 (BFD_LIBS_CFILES): Remove elf.c.
3510 (BFD32_BACKENDS): Add elf.lo.
3511 (BFD32_BACKENDS_CFILES): Add elf.c.
3512 * configure, Makefile.in: Rebuild.
3513
35141998-02-23 15:53 Richard Henderson <rth@cygnus.com>
3515
3516 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
3517 relocation against a now-local symbol should not have a dynamic
3518 relocation.
3519
3520Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
3521
3522 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
3523 COFF filehdr flags.
3524 (pe_print_private_bfd_data): Print PE flags. From Mikey
3525 <jeffdb@netzone.com>.
3526
3527Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
3528
3529 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
3530 a plt entry when we can determine that we authoritatively define
3531 the symbol.
3532
3533Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
3534
3535 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
3536 don't actually use trad-core, but a SunOS-style core file handled
3537 by gdb directly.
3538 * hosts/sparclinux.h: Remove.
3539
3540Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
3541
3542 * peicode.h (pe_print_idata): If there is no .idata section, look
3543 for the import tables in some other section. Make the initial
3544 label line up better with the data. Print the import address
3545 table even if there is no import name table. If the import
3546 address table holds actual addresses, print them.
3547
3548Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
3549
3550 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
3551 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
3552 bfd_error_system_call.
3553
3554Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
3555
3556 * Makefile.am (AUTOMAKE_OPTIONS): Define.
3557 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
3558
3559 From H.J. Lu <hjl@gnu.org>:
3560 * Makefile.am (libbfd_la_LDFLAGS): Define.
3561 * Makefile.in: Rebuild.
3562
3563Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
3564
3565 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
3566 * netbsd.h (MACHTYPE_OK): Define.
3567 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
3568 calling N_SET_MACHTYPE, rather than having a switch.
3569 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
3570 and M_ALPHA_NETBSD.
3571 * i386netbsd.c (MACHTYPE_OK): Don't define.
3572 (DEFAULT_MID): Define.
3573 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
3574 (MACHTYPE_OK): Don't define.
3575 (DEFAULT_MID): Define.
3576 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
3577 (DEFAULT_MID): Define.
3578 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
3579 (DEFAULT_MID): Define.
3580 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
3581 (DEFAULT_MID): Define.
3582
3583 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
3584 * vaxnetbsd.c: New file.
3585 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
3586 rather than netbsd_core.
3587 * targets.c (vaxnetbsd_vec): Declare.
3588 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
3589 defined, add netbsd_core_vec.
3590 * configure.in: Set COREFILE for alpha*-*-netbsd* and
3591 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
3592 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
3593 * config.bfd (alpha*-*-netbsd*): New target.
3594 * Makefile.am: Rebuild dependencies.
3595 (BFD32_BACKENDS): Add vaxnetbsd.lo.
3596 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
3597 * configure, Makefile.in: Rebuild.
3598
3599 * configure.host: Remove the old shared library build stuff. We
3600 now use libtool instead.
3601
3602Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
3603
3604 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
3605
3606Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
3607
3608 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
3609 * configure: Rebuild.
3610
3611Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
3612 * elf32-v850.c (remember_hi16s_reloc): New function.
3613 (find_remembered_hi16s_reloc): New function.
3614 (v850_elf_store_addend_in_insn): Use the above new functions to
3615 match up HI6S relocs with LO16 relocs.
3616
3617Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
3618
3619 * configure.in: Change -linux* to -linux-gnu*.
3620 * config.bfd, configure.host: Likewise.
3621 * configure: Rebuild.
3622
3623Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
3624
3625 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
3626 LO16/HI16S bug and improve comments about what is going on.
3627
3628Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
3629
3630 * configure, aclocal.m4: Rebuild with new libtool.
3631
3632Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
3633
3634 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
3635 when merging v850 code into v850e/v850ea code. Do not initialise
3636 output flags if the input is the default architecture.
6a9d5c9a 3637
252b5132
RH
3638Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
3639
3640 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
3641 get the size from bfd_arch_bits_per_address instead of directly
3642 from the isa.
3643
3644Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
3645
3646 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
3647 to wrap, just return all 1's bits instead.
3648 * libbfd.h: Regenerate.
3649
3650Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
3651
3652 * coff-i386.c (coff_pe_i386_relocate_section): New static function
3653 if COFF_WITH_PE.
3654 (coff_relocate_section): If COFF_WITH_PE, define as
3655 coff_pe_i386_relocate_section.
3656 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
3657 skip empty sections, to match coff_write_object_contents.
3658
3659 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
3660 rather than swapping out r_offset twice. From Luke Deller
3661 <luked@cse.unsw.edu.au>.
3662
3663Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
3664
3665 * configure.in: Set libtool_enable_shared rather than
3666 libtool_shared. Remove diversion hack.
3667 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
3668 with new libtool.
3669
3670Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
3671
3672 * syms.c (struct stab_cache): Define.
3673 (struct stab_find_info): Remove cached_offset, cached_stab,
3674 cached_str, and cached_stroff fields. Add file_cache,
3675 function_cache, and line_cache fields.
3676 (_bfd_stab_section_find_nearest_line): Use extensive caching to
3677 speed up searches.
3678
3679Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
3680
3681 * peicode.h (pe_print_idata): Check for import of ordinal rather
3682 than name.
3683 (pe_print_edata): If there is no .edata section, look for the
3684 export data in some other section.
3685
3686Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
3687
3688 * configure.in: Change version to 2.8.4.
3689 * configure: Regenerated.
3690
3691Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
3692
3693 Add tms320c30 support:
3694 * cpu-tic30.c: New file.
3695 * aout-tic30.c: New file.
3696 * coff-tic30.c: New file.
3697 * archures.c (bfd_arch_tic30): Define.
3698 (bfd_tic30_arch): Declare.
3699 (bfd_archures_list): Add bfd_tic30_arch.
3700 * targets.c (bfd_target_vector): Add tic30_aout_vec and
3701 tic30_coff_vec.
3702 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
3703 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
3704 (coff_set_flags): Likewise.
3705 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
3706 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
3707 * Makefile.am: Rebuild dependencies.
3708 (ALL_MACHINES): Add cpu-tic30.lo.
3709 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
3710 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
3711 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
3712 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
3713
3714Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
3715
3716 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
3717 to lag behind LO16 reloc by a couple of instructions.
3718
3719Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
3720
3721 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
3722 make to reexamine the file timestamp.
3723 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
3724
3725 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
3726 0x100000.
3727
3728Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
3729
3730 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
3731 to create .dynsbss and .rela.sbss sections.
3732 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
3733 copied from dynamic objects into .sbss.
3734 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
3735 use it. Correct typo of .rela.sdata2.
3736 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
3737 put the data, which may now be in .sbss.
3738 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
3739 (elf_backend_create_dynamic_sections): Define as
3740 ppc_elf_create_dynamic_sections.
3741
3742 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
3743 against _GLOBAL_OFFSET_TABLE_.
3744 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
3745 shared libraries which refer to local symbols. Make sure that the
3746 test for allocating space for a reloc in a shared object is the
3747 same as the test for emitting a reloc.
3748
3749Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
3750
3751 * config.bfd (i[3456]-*-mingw32*): New target.
3752 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
3753 * aclocal.m4, configure: Rebuild.
3754
3755Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
3756
3757 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
3758 have a bfd_object.
3759
3760Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
3761
3762 Sparc v9 ABI compliant PLT:
3763 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
3764 (plt_templates, sparc64_elf_build_plt_entry): Delete.
3765 (LARGE_PLT_THRESHOLD): New define.
3766 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
3767 (sparc64_elf_build_plt): New function.
3768 (sparc64_elf_plt_entry_offset): Likewise.
3769 (sparc64_elf_plt_ptr_offset): Likewise.
3770 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
3771 contain the index for convenience. Skip the initial entries
3772 in .rela.plt.
3773 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
3774 memory for the benefit of .rela.plt.
3775 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
3776 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
3777 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
3778 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
3779 Call sparc64_elf_build_plt.
3780 (elf_backend_want_got_plt): No.
3781 (elf_backend_plt_readonly): No.
3782 (elf_backend_plt_alignment): 8.
3783
3784 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
3785 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
3786 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
3787 to be called.
3788
3789Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
3790
3791 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
3792 processors.
3793 * cpu-mips.c (arch_info_struct): Add mips variants.
3794 * bfd-in2.h: Rebuilt.
3795
3796Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
3797
3798 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
3799 t2a3_b_insn.
3800
3801Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
3802
3803 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
3804 (i[3456]86sco3.2v5*coff): New target.
3805
3806Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
3807
3808 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
3809
3810Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
3811
3812 * bfd.c (bfd_get_error_handler): Add orthogonal function.
3813 * bfd-in2.h: Regenerate.
3814
3815Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
3816
3817 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
3818
3819Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
3820
3821 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
3822 adjust addend for an output common symbol (from Jimmy Blair
3823 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
3824 defined symbol to counteract adjustment made in generic relocation
3825 code.
3826
3827 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
3828
3829Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
3830
3831 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
3832 (GET_SCNDHR_NLNNO): Likewise.
3833
3834Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
3835
3836 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
3837
3838Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
3839
3840 * elf32-m32r.c: Add macros to handle NOP insertion.
3841
3842Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
3843
3844 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
3845 (xcoff_mark): Likewise.
3846 (xcoff_build_ldsyms): Mark absolute symbols.
3847
3848Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
3849
3850 * bout.c (b_out_write_object_contents): Sort symbols before output
3851 to keep {CALL,BAL}NAME symbols adjacent.
3852 (b_out_symbol_cmp): New function.
3853
3854For older changes see ChangeLog-9697
3855\f
3856Local Variables:
3857mode: change-log
3858left-margin: 8
3859fill-column: 74
3860version-control: never
3861End:
This page took 0.180482 seconds and 4 git commands to generate.