From Richard Henderson <rth@cygnus.com>:
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
f7cb7d68
UC
12000-07-17 Koundinya K <kk@ddeorg.soft.net>
2
3 Enable the support for Traditional MIPS.
4 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
5 return ict_none appropriately for traditional mips targets.
6 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
7 (STUB_MOVE): Conditionalize for traditonal mips.
8 (STUB_LI16): Likewise.
9 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
10 room for RTPROC header.
11 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
12 the permission for the PT_DYNAMIC as read, write and execute.
13 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
14 for traditonal mips.
15 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
16 _DYNAMIC_LINKING for traditonal mips.
17 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
18 in case of traditonal mips.
19 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
20 entry is required. For a function if PLT is not required then set the
21 corresponding hash table entry to 0.
22 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
23 traditonal mips.
24 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
25 shared object set the value to 0.
26 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
27 _DYNAMIC_LINKING for traditonal mips.
28 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
29 for traditonal mips.
30
930d924d
L
312000-07-15 H.J. Lu <hjl@gnu.org>
32
33 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
34
e67f03db
DD
352000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
36
37 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
38 out a structure that is BFD_IN_MEMORY.
39
0ba2a60e
AM
402000-07-11 Alan Modra <alan@linuxcare.com.au>
41
42 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
43 bfd pointer. Print section id instead of bfd pointer for local
44 syms. Prefix addend with `+' for global syms as well as local.
45 Correct calculation of name component lengths.
46 (elf64_hppa_check_relocs): Update call to get_dyn_name.
47
48 From David Huggins-Daines <dhd@linuxcare.com>
49 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
50 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
51 (elf64_hppa_modify_segment_map): Likewise.
52
6d9019e4
AC
53Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
54
55 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
56 addresses to be "naturally" sign extended. Return -1 if unknown.
0ba2a60e 57 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6d9019e4
AC
58 * bfd-in2.h: Regenerate.
59
23e2c83b
AC
60Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
61
62 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
63 and ECOF_SIGNED_64 to list ways to extract an offset.
64 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
65 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
66 Update.
67 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
68 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
69
448cafa4
AC
70Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
71
72 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
73 bfd_get_start_address.
74 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
75 (elf_swap_ehdr_out): Ditto.
76
83ea41ad
NC
772000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
78
79 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
80 compatibility with older binutils.
81
3df7b4e2
AM
822000-07-10 Alan Modra <alan@linuxcare.com.au>
83
84 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
85 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
86
b7af50e3
AM
87 From Ryan Bradetich <rbradetich@uswest.net>
88 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
89 (parse_line_table): Ditto.
90 (_bfd_dwarf1_find_nearest_line): Ditto.
91 * syms.c (cmpindexentry): Remove extra `*' from params.
92
adb76a3e
UC
932000-07-09 Koundinya K <kk@ddeorg.soft.net>
94
95 * elf32-mips.c (sort_dynamic_relocs): New Function.
96 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
97 via qsort to sort the dynamic relocations in increasing r_symndx
98 value.
99
edd21aca
AM
1002000-07-09 Alan Modra <alan@linuxcare.com.au>
101
102 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
103 ATTRIBUTE_UNUSED to unused args.
104 (get_opd): Likewise.
105 (get_plt): Likewise.
106 (get_dlt): Likewise.
107 (get_stub): Likewise.
108 (elf64_hppa_adjust_dynamic_symbol): Likewise.
109 (elf64_hppa_link_output_symbol_hook): Likewise.
110 (elf64_hppa_check_relocs): Delete unused var.
111 (elf64_hppa_size_dynamic_sections): Likewise.
112 (elf64_hppa_finalize_opd): Likewise.
113 (elf64_hppa_finalize_dynreloc): Likewise.
114 (elf64_hppa_modify_segment_map): Likewise.
115 (elf64_hppa_finish_dynamic_sections): Likewise.
116
117 * elf-hppa.h (elf_hppa_final_write_processing): Add
118 ATTRIBUTE_UNUSED to unused args.
119 (elf_hppa_final_link_relocate): Likewise.
120 (elf_hppa_record_segment_addrs): Add paretheses.
121 (elf_hppa_relocate_section): Constify dyn_name.
122
123 From David Huggins-Daines <dhd@linuxcare.com>
124 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
125 rearrange case statement so that it gets preferred to 32-bit ones.
126
127 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
128 asection->id instead of address of asection structure.
129 (elf32_hppa_size_stubs): Likewise.
130
131 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
132 for .init* and .fini*.
133
134 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
135 and addends used in stub names to 32 bits.
136 (elf32_hppa_size_stubs): Likewise.
137
138 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
139 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
140 not bfd_put_64. Fix minor comment typo and formatting.
141
142 Changes to create multiple linker stubs, positioned immediately
143 before the section where they are required.
144 * elf32-hppa.c: Don't include hppa_stubs.h.
145 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
146 (elf32_hppa_stub_hash_table): Delete.
147 (elf32_hppa_link_hash_entry): Delete.
148 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
149 stub_hash_table, and store the struct here rather than a pointer.
150 Delete output_symbol_count. Add offset array. Change
151 global_value to a bfd_vma.
152 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
153 (elf32_hppa_stub_hash_traverse): Delete.
154 (elf32_hppa_name_of_stub): Delete.
155 (elf32_hppa_link_hash_lookup): Delete.
156 (elf32_hppa_link_hash_traverse): Delete.
157 (elf32_hppa_stub_hash_table_init): Delete.
158 (elf32_hppa_size_of_stub): Pass input section and offset rather
159 than location and calculate location here. Don't pass name as all
160 stubs are now the same size.
161 (elf32_hppa_stub_hash_newfunc): Init new fields.
162 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
163 too.
164 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
165 comparing against ints. Rewrite stub handling code.
166 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
167 Case enums to int before comparing against ints. Remove
168 bfd_reloc_dangerous case.
169 (elf32_hppa_build_one_stub): Rewrite.
170 (elf32_hppa_size_one_stub): New function.
171 (elf32_hppa_build_stubs): Rewrite.
172 (elf32_hppa_size_stubs): Pass in linker call-back functions.
173 Rewrite stub-handling specific code.
174
175 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
176
177 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
178
179 * hppa_stubs.h: Delete.
180 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
181 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
182 * Makefile.in: Regenerate.
183
184 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
185 e_nlrsel.
186
187 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
188
189 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
190 and section name for bfd_reloc_notsupported error message.
191 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
192 bfd_reloc_notsupported.
193 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
194
195 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
196 undefined weak symbols for all relocs.
197 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
198 offsets are relative to one past the delay slot.
199 (elf32_hppa_size_stubs): Account for reloc addend when calculating
200 branch destination. Put addend into stub name too.
201 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
202 adjust by 8 when deciding whether a linker stub is needed. Put
203 addend into stub name as for above.
204
205 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
206 various args and vars.
207 (elf32_hppa_bfd_final_link_relocate): Here too.
208 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
209 inner block var to avoid shadowing.
210
211 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
212 unsigned.
213 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
214 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
215 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
216
217 * libhppa.h: Change practically all unsigned ints to plain ints.
218 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
219 prototypes.
220
221 From Ryan Bradetich <rbradetich@uswest.net>
222 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
223 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
224 suit above.
225 From David Huggins-Daines <dhd@linuxcare.com>
226 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
227 to the new OP_* ones.
228
229 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
230 error exit. Bail out earlier on plabel relocs that we aren't
231 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
232 string, and then don't free our copy.
233 (elf32_hppa_build_one_stub): Make insn unsigned int.
234
235 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
236 available with BL, not BE and BLE.
237
238 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
239 code for elf arg relocs.
240 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
241 argument with elf_link_hash_entry h. Handle undefined weak
242 symbols. Move $global$ lookup from here...
243 (elf32_hppa_relocate_section): ...to here. Return correct error
244 message for non-handled relocs.
245 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
246 wrong test was -0x3ffff to +0x40000.
247
248 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
249 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
250 Handle them as such.
251 (elf_hppa_relocate_insn): Fix a typo.
252
253 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
254 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
255 assemble_17, assemble_21): Delete.
256 Supply defines for all 64 possible opcodes.
257 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
258 formats. Handle COMICLR.
259 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
260 -10, -16, 16, 22.
261
262 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
263 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
264 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
265 to suit.
266 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
267 the local syms - did this code get deleted accidentally? Ignore
268 undefined and undefweak syms.
269
270 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
271 block. Use it instead of elf64_hppa_hash_table (info).
272 (elf_hppa_final_link_relocate): Use hppa_info instead of
273 elf64_hppa_hash_table (info).
274
275 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
276 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
277 (hppa_rebuild_insn): Mask immediate bits here instead.
278 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
279
52b219b5
AM
2802000-07-08 Alan Modra <alan@linuxcare.com.au>
281
282 * section.c (struct sec): Add id field. Tidy comment formatting.
283 (bfd_make_section_anyway): Set id.
284 (STD_SECTION): Init id too.
285 Change CONST to const throughout.
286 * archures.c (bfd_arch_info): Tidy comment.
287 (bfd_arch_list): Change a CONST to const.
288 * libbfd-in.h: Tidy comments and replace CONST with const.
289 * elf-bfd.h: Likewise.
290 * libbfd.h: Regenerate.
291 * bfd-in2.h: Regenerate.
292 * libcoff.h: Regenerate.
293
8000a618
DD
2942000-07-07 DJ Delorie <dj@redhat.com>
295
296 * archive.c (_bfd_write_archive_contents): Add an informative
297 comment.
298
c3b7c767
NC
2992000-07-06 Kazu Hirata <kazu@hxi.com>
300
301 * srec.c: Fix formatting.
302
302ab118
DD
3032000-06-05 DJ Delorie <dj@redhat.com>
304
305 * MAINTAINERS: new
306
ed1de528
AO
3072000-07-04 Alexandre Oliva <aoliva@redhat.com>
308
309 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
310 value of PC-relative offsets.
311
70bcb145
JW
3122000-07-03 Jim Wilson <wilson@cygnus.com>
313
314 * elf64-alpha.c (alpha_elf_size_info): New.
315 (elf_backend_size_info): Define to alpha_elf_size_info.
316 * elfcode.h (elf_size_info): Change hash bucket size to 4.
317
b8ee63fa
UC
3182000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
319
320 * elf32-mips.c: Include elf32-target.h again for the traditional
321 MIPS targets.
322
00d2865b
NC
3232000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
324
325 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
326 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
327 (avr_info_to_howto_rela): Likewise.
328 (elf32_avr_gc_mark_hook): Likewise.
329 (elf32_avr_gc_sweep_hook): Likewise.
330 (elf32_avr_relocate_section): Likewise.
331
e4202681
NC
3322000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
333
334 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
335 an external symbol for a non-shared, non-relocatable link.
336
3372000-07-03 Nick Clifton <nickc@redhat.com>
338
99d6ac2f
NC
339 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
340 is an external symbol.
e4202681
NC
341 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
342 external symbol.
343
289c596c
NC
3442000-07-03 Kazu Hirata <kazu@hxi.com>
345
346 * reloc16.c: Fix formatting.
347
dd745cfa
UC
3482000-07-01 Koundinya K <kk@ddeorg.soft.net>
349
350 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
351 to add a new target for traditional mips i.e
352 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
353 * configure.in: Likewise.
354 * configure: Rebuild.
355 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
356 bfd_target_vector.
357 (bfd_elf32_tradlittlemips_vec): Likewise.
358 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
359 to see that elfNN_bed does not get redefined even if the target file
360 is included twice for a chip. See elf32-mips.c.
361
0bdaf48b
AM
3622000-07-01 Alan Modra <alan@linuxcare.com.au>
363
364 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
365 (CLEANFILES): Add DEPA.
366 * Makefile.in: Regenerate.
367
c75df619
DD
3682000-06-30 DJ Delorie <dj@cygnus.com>
369
370 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
371 can't assume the PE header is at 0x80.
372
b4b415e5
DD
3732000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
374
cda43a1d 375 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
b4b415e5 376
addd3117
DD
3772000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
378
379 * go32stub.h: Update stub.
380
65aa24b6
NC
3812000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
382
383 * archures.c (bfd_mach_avr5): Define.
384 * bfd-in2.h (bfd_mach_avr5): Define.
385 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
386 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
387 (compatible): Update comment. Add missing test.
388 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
389 for avr2 and avr4. Simplify 8K wrap code.
390 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
391 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
392
cc040812
NC
3932000-06-26 Kazu Hirata <kazu@hxi.com>
394
395 * coff-h8300.c: Fix formatting.
396 * cpu-h8300.c: Likewise.
397
b1bcb49f
AO
3982000-06-24 Alexandre Oliva <aoliva@redhat.com>
399
400 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
401 for local symbols whose names are unknown.
402
1581f8c9
AM
4032000-06-22 Alan Modra <alan@linuxcare.com.au>
404
405 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
406 find one.
407 * Makefile.in: Regenerate.
408 * doc/Makefile.in: Regenerate.
409
bbeb2e03
L
4102000-06-20 H.J. Lu <hjl@gnu.org>
411
412 * Makefile.am: Rebuild dependency.
413 * Makefile.in: Rebuild.
414
8a20f077
UC
4152000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
416
417 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
418 (elf_backend_copy_indirect_symbol): Map to the new function.
419
2ab47eed
AM
4202000-06-20 Alan Modra <alan@linuxcare.com.au>
421
422 * archive.c (normalize): Correct pointer comparison when checking
423 for backslashes.
424 (bfd_bsd_truncate_arname): Likewise.
425 (bfd_gnu_truncate_arname): Likewise.
426
b305ef96
UC
4272000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
428
429 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
430 sections elf_{text,data}_{section,symbol}.
431 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
432 (_bfd_mips_elf_hide_symbol): New function.
433 (elf_backend_hide_symbol): Map to the new function.
434 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
435 definitions of mips_elf_{text,data}_{section,symbol}.
436 (mips_elf_local_relocation_p): Try to find the direct symbol
437 based on new check_forced argument.
438 (mips_elf_calculate_relocation): Use new version of
439 mips_elf_local_relocation_p.
440 (mips_elf_relocate_section): Likewise.
441 (_bfd_mips_elf_relocate_section): Likewise.
442 (mips_elf_sort_hash_table): Only assert that have enough GOT
443 space.
444 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
445 entry if the relocation based on the new external argument.
446 (mips_elf_create_dynamic_relocation): Assert that we have a
447 section contents allocated where we can swap out the dynamic
448 relocations.
449 (mips_elf_calculate_relocation): Find the real hash-table entry
450 correctly by using h->root.root.type. Only create a dynamic
451 relocation entry if the symbol is defined in a shared library.
452 Create an external GOT entry for the GOT16 relocation if the
453 symbol was forced local.
454 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
455 dynamic index if the symbol was forced local.
456
4572000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
458
459 * elf32-mips.c: Fix typos in comments.
460
1605fc4f
MK
4612000-06-19 Mark Kettenis <kettenis@gnu.org>
462
463 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
464 CORE_VERSION_1.
465
60bcf0fa
NC
4662000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
467
468 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
469 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
470 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
471 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
472 (bfd_elf32_m68hc11_vec): Likewise.
473 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
474 Supports 68hc11 & 68hc12 at the same time.
475 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
476 bfd_target_vector.
477 (bfd_elf32_m68hc11_vec): Likewise.
478 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
479 * archures.c (bfd_m68hc12_arch): Define and register in global list
480 (bfd_m68hc11_arch): Likewise.
481 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
482 BFD_RELOC_M68HC11_3B): Define.
483 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
484 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
485
f41cbf03
UC
4862000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
487
488 * elf_bfd.h (struct elf_backend_data): Add info argument to
489 elf_backend_hide_symbol.
490 (_bfd_elf_link_hash_hide_symbol): Likewise.
491 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
492 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
493 * elflink.h (elf_link_add_object_symbols): Likewise.
494 (elf_link_assign_sym_version): Likewise.
495
689be717
L
4962000-06-18 H.J. Lu <hjl@gnu.org>
497
498 * coff-i386.c (coff_i386_reloc): Don't return in case of
499 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
500 Compensate PE relocations when linking with non-PE object
501 files to generate a non-PE executable.
502
9a8f3bb7
UC
5032000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
504
505 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
506 GOT entries if we're doing a static link or -Bsymbolic link.
507
32f0787a
UC
5082000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
509
510 * elflink.h (elf_link_adjust_relocs): Check for and call backend
511 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
512 available.
513 (elf_link_output_relocs): Likewise.
514 (elf_reloc_link_order): Likewise.
515
87f33987
ND
5162000-06-16 Nicholas Duffek <nsd@redhat.com>
517
518 * archures.c (enum bfd_architecture): #define constants for
519 PowerPc and RS6000 machine numbers.
520 * bfd-in2.h: Regenerate.
521 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
522 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
523 and RS6000 machine numbers using #defined constants from
524 archures.c.
525 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
526 machine numbers using #defined constants from archures.c. Add
527 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
528 64-bit words in 620 entry.
529 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
530 RSC, and RS2.
531 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
532
a2fdf270
ND
5332000-06-16 Nicholas Duffek <nsd@cygnus.com>
534
535 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
536 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
537 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
538
9bd09e22
ND
5392000-06-16 Nicholas Duffek <nsd@redhat.com>
540
541 * bfd-in.h (bfd_family_coff): Define.
542 * bfd-in2.h: Regenerate.
543 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
544 coff_find_nearest_line): Check COFFness using bfd_family_coff()
545 instead of bfd_target_coff_flavour.
546 * cofflink.c (_bfd_coff_final_link): Likewise.
547 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
548 exclude XCOFF files.
549 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
550 Likewise.
551 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
552 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
553 * xcofflink.c (XCOFF_XVECP): Delete.
554 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
555 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
556 bfd_xcoff_record_link_assignment,
557 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
558 check for bfd_target_xcoff_flavour.
559
59d9f049
ND
5602000-06-16 Nicholas Duffek <nsd@redhat.com>
561
562 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
563 files on AIX 4.3.
564 (read_hdr): New function.
565 (rs6000coff_core_p): Store mstsave or __context64 struct instead
566 of trying to extract individual registers. Set abfd->arch_info
567 to match the architecture that created the core file.
568 (rs6000coff_get_section_contents): Delete.
569 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
570
63e39178
L
5712000-06-14 H.J. Lu <hjl@gnu.org>
572
573 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
574 is NULL.
575
bcef29e6
L
5762000-06-13 H.J. Lu <hjl@gnu.org>
577
578 * configure: Regenerate.
579
26bfd1c0
JR
580Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
581
582 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
583 armpei_little_vec.
584
946efd95
DB
5852000-06-08 David O'Brien <obrien@FreeBSD.org>
586
587 * configure.in (VERSION): Update to show this is the CVS mainline.
588
1b452ec6
AM
5892000-06-07 Alan Modra <alan@linuxcare.com.au>
590
591 * elf32-d10v.c: Include elf/d10v.h
592 (enum reloc_type): Delete.
593 * elf32-d30v.c: Include elf/d30v.h
594 (enum reloc_type): Delete.
595
596 * Makefile.am: Run "make dep-am" to regenerate dependencies.
597 * Makefile.in: Regenerate.
598
599 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
dc47f327
AM
600 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
601 move HOWTOs into elf_howto_table.
1b452ec6 602 (R_386_standard, R_386_ext_offset): Define.
dc47f327 603 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
1b452ec6 604 (elf_i386_reloc_type_lookup): Modify calculation of index into
dc47f327 605 elf_howto_table since we've removed the padding.
1b452ec6
AM
606 (elf_i386_info_to_howto_rel): Likewise.
607 (elf_i386_relocate_section): Likewise.
608
e0ebfc61
MS
6092000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
610
611 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
612
9d6eee78
L
6132000-06-05 H.J. Lu <hjl@gnu.org>
614
615 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
616 an error when seeing an undefined symbol with hidden/internal
617 attribute. It is handled in *_relocate_section ().
618
94b6c40a
L
6192000-06-05 H.J. Lu <hjl@gnu.org>
620
621 * elflink.h (elf_fix_symbol_flags): Follow the link for the
622 indirect symbol for the ELF_LINK_NON_ELF bit.
623 (elf_link_output_extsym): Don't output the indirect symbol even
624 if the ELF_LINK_NON_ELF bit is set.
625
0af288f3
C
6262000-06-01 J.T. Conklin <jtc@redback.com>
627
628 * config.bfd (i[3456]86-*-netbsdelf*): New target.
629 (i[3456]86-*-netbsdaout*): New target.
630 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
631 (i[3456]86-*-openbsd*): Likewise.
632
12df4d3c
AC
633Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
634
635 * trad-core.c: From hpux-core.c, include <dirent.h> or
636 <sys/ndir.h> when possible.
637
c0ae4ccc
NC
6382000-05-31 Nick Clifton <nickc@cygnus.com>
639
640 * opintl.h (_(String)): Explain why dgettext is used instead
641 of gettext.
642
321fa097
UD
6432000-05-31 Ulrich Drepper <drepper@redhat.com>
644
645 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
646 definitions. We must not assume they are sorted in the file
647 according to their index numbers.
648
70d72e0e
AM
6492000-05-31 Alan Modra <alan@linuxcare.com.au>
650
651 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
652 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
653 R_PARISC_DIR17F are for absolute branches; Handle them as such.
654
96f6d4c4
NC
6552000-05-30 Nick Clifton <nickc@cygnus.com>
656
657 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
658 80960CA, 80960MC as valid machine names.
659
38048eb9
L
6602000-05-30 H.J. Lu <hjl@gnu.org>
661
662 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
663 visibility bits if the symbol is undefined. Correctly handle
664 weak undefined symbols with hidden and internal attributes.
665
666 * elflink.h (elf_link_add_object_symbols): Always turn the
667 symbol into local if it has the hidden or internal attribute.
668
8c763017
PB
6692000-05-29 Philip Blundell <philb@gnu.org>
670
671 * ppcboot.c: Add packed attribute if compiling with GCC.
672
1ae00f9d
AM
6732000-05-29 Anatoly Vorobey <mellon@pobox.com>
674
675 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
676
4a938328
MS
6772000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
678
679 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
680 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
681 corefile on a 64-bit (Sparc Solaris) host. Also clean up
682 a few old comments.
683
5af11cab
AM
6842000-05-26 Alan Modra <alan@linuxcare.com.au>
685
2114f57b
AM
686 * Makefile.am: Update dependencies with "make dep-am"
687 * Makefile.in: Regenerate.
688
5af11cab
AM
689 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
690 bindtextdomain): Replace defines with those from intl/libgettext.h
691 to quieten gcc warnings.
692
6932000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
694
695 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
696
697 * archive.c (normalize, bfd_bsd_truncate_arname,
698 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
699 file names with backslashes.
700
701 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
702 before opening it.
703
704 * sysdep.h: Include filenames.h.
705
b6cdd0fd
AM
7062000-05-26 Alan Modra <alan@linuxcare.com.au>
707
708 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
709
f7775d95
JJ
7102000-05-26 Jakub Jelinek <jakub@redhat.com>
711
712 * elf64-sparc.c (sparc64_elf_relax_section): New.
713 (sparc64_elf_relocate_section): Optimize tail call into branch always
714 if possible.
715 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
716 (elf32_sparc_relax_section): New.
717
6c08d697
JJ
7182000-05-26 Jakub Jelinek <jakub@redhat.com>
719
720 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
721 Remove unusued variables.
722 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
723 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
724 previous fix, so that shared libs really don't influence targets
725 extension mask and memory model.
726
edb72b3b
L
7272000-05-23 H.J. Lu <hjl@gnu.org>
728
729 * elf64-alpha.c (elf64_alpha_relocate_section): Check
730 h->root.other not h->other.
ba09750c
L
731 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
732
733 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
edb72b3b 734
3a27a730
L
7352000-05-23 H.J. Lu <hjl@gnu.org>
736
737 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
738 undefined symbol with the non-default visibility attributes.
739 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
740 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
741 * elf32-i370.c (i370_elf_relocate_section): Likewise.
742 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
743 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
744 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
745 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
746 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
747 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
748 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
749 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
750
748abff6
RH
7512000-05-22 Richard Henderson <rth@cygnus.com>
752
753 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
754 PCREL22, PCREL64I. Zero size of special relocs.
755 (elf64_ia64_reloc_type_lookup): Likewise.
756 (USE_BRL, oor_brl, oor_ip): New.
757 (elf64_ia64_relax_section): New.
758 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
759 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
760 (elf64_ia64_relocate_section): Likewise.
761 (bfd_elf64_bfd_relax_section): New.
762 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
763 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
764 * bfd-in2.h, libbfd.h: Regenerate.
765
fb67355a
NC
7662000-05-22 Nick Clifton <nickc@cygnus.com>
767
768 * configure.in : Add peigen.lo to MIPS PE targets.
769 * configure: Regenerate.
770
1fe494a5
NC
7712000-05-22 Momchil Velikov <velco@fadata.bg>
772
773 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
748abff6 774 only if it is known for both input and output bfds. Separate
1fe494a5
NC
775 error message strings as in some languages, it may be necessary
776 to change more than one place in the string to change between
777 'big' and 'little'.
778
779 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
780 endianess checks, call _bfd_generic_verify_endian_match() instead.
781
782 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
783
784 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
785
786 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
787 endianess before checking bfd flavours.
788
32c092c3
L
7892000-05-22 H.J. Lu <hjl@gnu.org>
790
791 * elflink.h (elf_link_output_extsym): Clear the visibility
792 field for symbols not defined locally.
793
df6d9773
JL
7942000-05-18 Alan Modra <alan@linuxcare.com.au>
795
796 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
797 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
798 (hppa_rebuild_insn): Mask immediate bits here instead.
799 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
800
7ad34365
NC
8012000-05-18 Momchil Velikov <velco@fadata.bg>
802
803 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
804 relocs for an executable, ensure that they are virtual addresses.
805
d1dab720
JL
806Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com)
807
808 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
809
a712da20
NC
8102000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
811 Rick Gorton <gorton@scrugs.lkg.dec.com>
812
813 * elflink.h: Add emitrelocations support: when enabled, relocation
814 information and relocation sections are put into final output
815 executables. If the emitrelocations flag is set, do the following:
816 (elf_bfd_final_link): Emit relocation sections.
817 (elf_link_input_bfd): Compute relocation section contents.
818 (elf_gc_sections): Don't clean relocation sections.
819
10febd84
CM
8202000-05-16 Catherine Moore <clm@cygnux.com>
821
822 * som.c (som_decode_symclass): Recognize weak symbols.
823
db8503c4
AM
8242000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
825
826 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
827 read idata section only from dataoff.
828 (pe_print_edata): Correctly check for valid eat_member.
829
851cde10
JR
830Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
831
832 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
833
1bde2d57
PB
8342000-05-14 Philip Blundell <philb@gnu.org>
835
836 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
837
a76b448c
AM
8382000-05-12 Alan Modra <alan@linuxcare.com.au>
839
9ee25201
AM
840 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
841
a76b448c
AM
842 * peigen.c (pe_print_idata): Look for .idata section and print
843 info even if data directory has zero entries. Read idata section
844 starting from dataoff, and adjust all data offsets to suit. Cast
845 all bfd_vma vars to unsigned long before passing to fprintf.
846 * peigen.c (pe_print_edata): Similarly, look for .edata section
847 and print info even if data directory has zero entries. Cast
848 all bfd_vma vars to unsigned long before passing to fprintf.
849
850 From Szabolcs Szakacsits <szaka@F-Secure.com>
851 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
852 directory size which may be bogus.
853 * peigen.c (pe_print_edata): Similarly.
854
72730e0c
AM
8552000-05-09 Alan Modra <alan@linuxcare.com.au>
856
857 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
858 section is empty.
859 (copy_private_bfd_data): Allow for space possibly taken up by elf
860 headers when calculating segment physical address from lma.
861
8181c403
AM
8622000-05-08 Alan Modra <alan@linuxcare.com.au>
863
bfde9f99
AM
864 * versados.c (versados_scan): Init stringlen and pass_2_done.
865
b35efbcd
AM
866 * trad-core.c (trad_unix_core_file_p): Return
867 bfd_error_wrong_format rather than bfd_error_file_truncated.
868
8181c403
AM
869 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
870 add_data_entry. DataDirectory virtual address is relative.
871 (pe_print_idata): Account for relative DataDirectory virtual
872 addresses. Don't trash datasize inside POWERPC_LE_PE code.
873 (pe_print_edata): Similarly.
874
875 From Szabolcs Szakacsits <szaka@F-Secure.com>
876 * peigen.c (dir_names): Add Delay Import Directory.
877 (pe_print_idata): Always search for bfd section containing
878 idata address rather than looking up section name. Print this
879 section name rather than .idata.
880 (pe_print_edata): Similarly. Also print some fields as %08lx.
881 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
882 Win32Version.
883
2c38bc20
CP
884Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com>
885
886 * xcoff.h: Rename to xcoff-target.h
887 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
888 * coff-rs6000.c: Ditto.
889 * coff64-rs6000.c: Ditto.
890 * coff-pmac.c: Ditto.
891 * Makefile.in: Regenerate.
892
c6664dfb
CP
893Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com>
894
895 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
896 Change U802TOC64MAGIC to U803XTOCMAGIC.
897
3425c182
MS
8982000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
899
900 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
901 * bfd-in.h: Prototype bfd_elf_get_arch_size.
902 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
903
7c30ac37
AM
9042000-05-04 Alan Modra <alan@linuxcare.com.au>
905
906 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
907