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