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