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