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