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