Add support for IA-64 specific elf header flags.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
c43c2cc5
JW
12000-08-14 Jim Wilson <wilson@cygnus.com>
2
3 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
4 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
6 EF_IA_64_ABSOLUTE.
7
1630fd2b
AO
82000-08-11 Alexandre Oliva <aoliva@redhat.com>
9
10 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
11
fdeafce7
JE
122000-08-10 Jason Eckhardt <jle@cygnus.com>
13
14 * elf32-i860.c (elf32_i860_relocate_section): New function.
15 (i860_final_link_relocate): New function.
16 (elf32_i860_relocate_splitn): New function.
17 (elf32_i860_relocate_pc16): New function.
18 (elf32_i860_relocate_highadj): New function.
19 (elf32_i860_howto): Minor adjustments to some relocations.
20 (elf_info_to_howto_rel): Define.
21 (elf_backend_relocate_section): Define.
22
9b485d32
NC
232000-08-10 Nick Clifton <nickc@cygnus.com>
24
25 * elf32-arm.h: Fix formatting.
26
00fdaf47
BS
272000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
28
29 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
30
305d537e
JE
312000-08-08 Jason Eckhardt <jle@cygnus.com>
32
33 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
34
46f5aac8
KH
352000-08-07 Kazu Hirata <kazu@hxi.com>
36
dce61835
KH
37 * ieee.c (ieee_write_debug_part): Rewrite a comment.
38 * elf64-ia64.c: Fix a typo.
46f5aac8 39
0e5136c6
JE
402000-08-05 Jason Eckhardt <jle@cygnus.com>
41
42 * elf32-i860 (elf32_i860_howto_table): New structure.
43 (lookup_howto): New function.
44 (elf32_i860_reloc_type_lookup): New function.
45 (elf32_i860_info_to_howto_rela): New function.
46 (elf_code_to_howto_index): New structure.
47 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
48 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
49 elf32_i860_reloc_type_lookup.
50
7dca057b
JL
512000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
52
53 * som.c (struct fixup_format): Constify `format'.
54 (som_hppa_howto_table): Use SOM_HOWTO macro.
55 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
56 (som_bfd_reloc_type_lookup): Likewise.
57 (compare_subspaces): Remove unused `count1', `count2'.
58 (som_begin_writing): Remove unused `total_reloc_size'.
59 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
60 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
61 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
62 (som_find_nearest_line): Decorate unused parameter(s).
63 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
64 (som_bfd_link_split_section): Likewise.
65
bc67d8a6
NC
662000-08-03 Nick Clifton <nickc@cygnus.com>
67
68 * section.c: Restore backed out code.
69 * elf.c: Restore backed out code.
70 (copy_private_bfd_data): Fix bug preventing stipped dynamic
71 binaries from working.
72 * bfd-in2.h: Regenerate.
73
c0f7859b
L
742000-08-03 H.J. Lu <hjl@gnu.org>
75
76 * section.c: Back out the change made by Nick Clifton
77 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
78 binaries.
79 * bfd-in2.h: Likewise.
80 * elf.c: Likewise.
81
61ff1804
AO
822000-08-03 Alexandre Oliva <aoliva@redhat.com>
83
84 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
85
a87fdb8d
JE
862000-07-31 Jason Eckhardt <jle@cygnus.com>
87
88 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
89 * bfd-in2.h, libbfd.h: Regenerate.
90
5c440b1e
NC
912000-07-31 Nick Clifton <nickc@cygnus.com>
92
93 * section.c (struct sec): Add new boolean field 'segment_mark'.
94 (STD_SECTION): Initialise new field to zero.
95
96 * bfd-in2.h: Regenerate.
97
98 * elf.c (copy_private_bfd_data): Reorganise section to segment
99 mapping to cope with moved sections requiring new segments,
100 and overlapping segments.
101 (SEGMENT_END): New macro: Return the end address of a segment.
102 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
103 contains a section by comparing their VMA addresses.
104 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
105 contains a section by comparing their LMA addresses.
106 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
107 section should be included in a segment.
108 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
109 follows another in memory.
110 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
111 segments overlap.
112
24208c5c
JE
113200007-22 Jason Eckhardt <jle@cygnus.com>
114
115 * cpu-i860.c: Added comments.
116
117 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
118 bfd_elf32_i860_little_vec.
119 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
120 (ELF_MAXPAGESIZE): Changed to 4096.
121
122 * targets.c (bfd_elf32_i860_little_vec): Declaration of
123 new target.
124 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
125
126 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
127 config for little endian elf32 i860.
128 (targ_defvec): Define for the new config above
129 as "bfd_elf32_i860_little_vec".
130 (targ_selvecs): Define for the new config above
131 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
132
133 * configure.in (bfd_elf32_i860_little_vec): Added recognition
134 of new target vec.
135
136 * configure: Regenerated.
137
456981d7
L
1382000-07-27 H.J. Lu <hjl@gnu.org>
139
140 * elflink.h (elf_merge_symbol): Take one more argument,
141 dt_needed, to indicate if the symbol comes from a DT_NEEDED
142 entry. Don't overide the existing weak definition if dt_needed
143 is true.
144 (elf_link_add_object_symbols): Pass dt_needed to
145 elf_merge_symbol ().
146
755cfd29
NC
1472000-07-27 Nick Clifton <nickc@cygnus.com>
148
149 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
150 allocated contents.
151
1a6df346
GK
1522000-07-25 Geoffrey Keating <geoffk@cygnus.com>
153
adfdf838
GK
154 * configure.host (*-*-aix*): AIX has 'long long' always.
155
1a6df346
GK
156 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
157 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
158 (xcoff_write_archive_contents_big): Don't update the offset
159 of the symbol table, xcoff_write_armap will do it.
160
313ba8d6
UC
1612000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
162
163 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
164 of dynobj for SGI_COMPAT checks.
165
3eb6f68f 1662000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
20bccb34
NC
167
168 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
169 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
170 * bfd-in2.h: Regenerate.
171
7a3120d9
NC
1722000-07-21 Nick Clifton <nickc@cygnus.com>
173
174 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
175 range symbol indices in relocs and issue an error message.
176
4d538889
L
1772000-07-20 H.J. Lu <hjl@gnu.org>
178
179 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
180 info->new_dtags when setting DT_FLAGS_1. It will only be set
181 by the new linker options. It shouldn't break anything.
182
b586af58
L
1832000-07-20 H.J. Lu <hjl@gnu.org>
184
185 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
186 only if info->new_dtags is true.
187
c25373b7
L
1882000-07-20 H.J. Lu <hjl@gnu.org>
189
190 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
191 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
192
06c15ad7
HPN
1932000-07-20 Hans-Peter Nilsson <hp@axis.com>
194
195 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
196 (ALL_MACHINES_CFILES): Add cpu-cris.c.
197 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
198 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
199 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
200 * Makefile.in: Rebuild.
201 * aclocal.m4: Rebuild.
202 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
203 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
204 (bfd_cris_arch): Declare.
205 (bfd_archures_list): Add bfd_cris_arch.
206 * bfd-in2.h: Rebuild.
207 * config.bfd: (cris-*-*): New target.
208 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
209 * configure: Rebuild.
210 * elf.c (prep_headers): Add bfd_arch_cris.
211 * libbfd.h: Rebuild.
212 * libaout.h (enum machine_type): Add M_CRIS.
213 * reloc.c: Add CRIS relocations.
3bd336f7 214 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
06c15ad7
HPN
215 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
216 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
217 * po/POTFILES.in, po/bfd.pot: Regenerate.
218
d6cf2879
L
2192000-07-19 H.J. Lu <hjl@gnu.org>
220
221 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
222 DF_TEXTREL if DT_TEXTREL is set.
223 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
224 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
225 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
226 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
227 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
228 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
229 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
230 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
231 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
232 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
233
c25373b7 234 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
d6cf2879
L
235 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
236 DT_RPATH is set.
237 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
238
74816898
L
2392000-07-19 H.J. Lu <hjl@gnu.org>
240
241 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
242 * bfd-in2.h: Rebuild.
243
244 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
245 (elf_dt_soname): New.
246
247 * elf.c (bfd_elf_set_dt_needed_soname): New.
248
249 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
250 entry if the shared object loaded by DT_NEEDED is used to
251 resolve the reference in a regular object.
252
36a30e65
L
2532000-07-19 H.J. Lu <hjl@gnu.org>
254
255 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
256 DT_DEPAUDIT and DT_AUDIT as strings.
257
1d713d9e
NC
2582000-07-19 Nick Clifton <nickc@cygnus.com>
259
260 * format.c: Fix formatting.
261
d48188b9
L
2622000-07-19 H.J. Lu <hjl@gnu.org>
263
264 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
265
94558834
L
2662000-07-19 H.J. Lu <hjl@gnu.org>
267
268 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
269 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
270 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
271 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
272 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
273 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
274 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
275
125c4a69
NC
276Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
277
278 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
279 renamed functions from here...
280 (assign_section_numbers): Use renamed functions.
281 (prep_headers): Use renamed functions.
282
283 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
284 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
285 * bfd-in2.h: Regenerate.
286
31a9bdd9
UC
2872000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
288
289 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
313ba8d6 290 parenthesis in if statement.
31a9bdd9 291
f7cb7d68
UC
2922000-07-17 Koundinya K <kk@ddeorg.soft.net>
293
294 Enable the support for Traditional MIPS.
295 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
296 return ict_none appropriately for traditional mips targets.
297 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
298 (STUB_MOVE): Conditionalize for traditonal mips.
299 (STUB_LI16): Likewise.
300 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
301 room for RTPROC header.
302 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
303 the permission for the PT_DYNAMIC as read, write and execute.
304 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
305 for traditonal mips.
306 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
307 _DYNAMIC_LINKING for traditonal mips.
308 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
309 in case of traditonal mips.
310 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
311 entry is required. For a function if PLT is not required then set the
312 corresponding hash table entry to 0.
313 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
314 traditonal mips.
315 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
316 shared object set the value to 0.
317 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
318 _DYNAMIC_LINKING for traditonal mips.
319 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
320 for traditonal mips.
321
930d924d
L
3222000-07-15 H.J. Lu <hjl@gnu.org>
323
324 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
325
e67f03db
DD
3262000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
327
328 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
329 out a structure that is BFD_IN_MEMORY.
330
0ba2a60e
AM
3312000-07-11 Alan Modra <alan@linuxcare.com.au>
332
333 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
334 bfd pointer. Print section id instead of bfd pointer for local
335 syms. Prefix addend with `+' for global syms as well as local.
336 Correct calculation of name component lengths.
337 (elf64_hppa_check_relocs): Update call to get_dyn_name.
338
339 From David Huggins-Daines <dhd@linuxcare.com>
340 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
341 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
342 (elf64_hppa_modify_segment_map): Likewise.
343
6d9019e4
AC
344Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
345
346 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
347 addresses to be "naturally" sign extended. Return -1 if unknown.
0ba2a60e 348 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6d9019e4
AC
349 * bfd-in2.h: Regenerate.
350
23e2c83b
AC
351Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
352
353 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
354 and ECOF_SIGNED_64 to list ways to extract an offset.
355 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
356 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
357 Update.
358 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
359 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
360
448cafa4
AC
361Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
362
363 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
364 bfd_get_start_address.
365 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
366 (elf_swap_ehdr_out): Ditto.
367
83ea41ad
NC
3682000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
369
370 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
371 compatibility with older binutils.
372
3df7b4e2
AM
3732000-07-10 Alan Modra <alan@linuxcare.com.au>
374
375 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
376 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
377
b7af50e3
AM
378 From Ryan Bradetich <rbradetich@uswest.net>
379 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
380 (parse_line_table): Ditto.
381 (_bfd_dwarf1_find_nearest_line): Ditto.
382 * syms.c (cmpindexentry): Remove extra `*' from params.
383
adb76a3e
UC
3842000-07-09 Koundinya K <kk@ddeorg.soft.net>
385
386 * elf32-mips.c (sort_dynamic_relocs): New Function.
387 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
388 via qsort to sort the dynamic relocations in increasing r_symndx
389 value.
390
edd21aca
AM
3912000-07-09 Alan Modra <alan@linuxcare.com.au>
392
393 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
394 ATTRIBUTE_UNUSED to unused args.
395 (get_opd): Likewise.
396 (get_plt): Likewise.
397 (get_dlt): Likewise.
398 (get_stub): Likewise.
399 (elf64_hppa_adjust_dynamic_symbol): Likewise.
400 (elf64_hppa_link_output_symbol_hook): Likewise.
401 (elf64_hppa_check_relocs): Delete unused var.
402 (elf64_hppa_size_dynamic_sections): Likewise.
403 (elf64_hppa_finalize_opd): Likewise.
404 (elf64_hppa_finalize_dynreloc): Likewise.
405 (elf64_hppa_modify_segment_map): Likewise.
406 (elf64_hppa_finish_dynamic_sections): Likewise.
407
408 * elf-hppa.h (elf_hppa_final_write_processing): Add
409 ATTRIBUTE_UNUSED to unused args.
410 (elf_hppa_final_link_relocate): Likewise.
411 (elf_hppa_record_segment_addrs): Add paretheses.
412 (elf_hppa_relocate_section): Constify dyn_name.
413
414 From David Huggins-Daines <dhd@linuxcare.com>
415 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
416 rearrange case statement so that it gets preferred to 32-bit ones.
417
418 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
419 asection->id instead of address of asection structure.
420 (elf32_hppa_size_stubs): Likewise.
421
422 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
423 for .init* and .fini*.
424
425 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
426 and addends used in stub names to 32 bits.
427 (elf32_hppa_size_stubs): Likewise.
428
429 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
430 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
431 not bfd_put_64. Fix minor comment typo and formatting.
432
433 Changes to create multiple linker stubs, positioned immediately
434 before the section where they are required.
435 * elf32-hppa.c: Don't include hppa_stubs.h.
436 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
437 (elf32_hppa_stub_hash_table): Delete.
438 (elf32_hppa_link_hash_entry): Delete.
439 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
440 stub_hash_table, and store the struct here rather than a pointer.
441 Delete output_symbol_count. Add offset array. Change
442 global_value to a bfd_vma.
443 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
444 (elf32_hppa_stub_hash_traverse): Delete.
445 (elf32_hppa_name_of_stub): Delete.
446 (elf32_hppa_link_hash_lookup): Delete.
447 (elf32_hppa_link_hash_traverse): Delete.
448 (elf32_hppa_stub_hash_table_init): Delete.
449 (elf32_hppa_size_of_stub): Pass input section and offset rather
450 than location and calculate location here. Don't pass name as all
451 stubs are now the same size.
452 (elf32_hppa_stub_hash_newfunc): Init new fields.
453 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
454 too.
455 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
456 comparing against ints. Rewrite stub handling code.
457 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
458 Case enums to int before comparing against ints. Remove
459 bfd_reloc_dangerous case.
460 (elf32_hppa_build_one_stub): Rewrite.
461 (elf32_hppa_size_one_stub): New function.
462 (elf32_hppa_build_stubs): Rewrite.
463 (elf32_hppa_size_stubs): Pass in linker call-back functions.
464 Rewrite stub-handling specific code.
465
466 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
467
468 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
469
470 * hppa_stubs.h: Delete.
471 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
472 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
473 * Makefile.in: Regenerate.
474
475 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
476 e_nlrsel.
477
478 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
479
480 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
481 and section name for bfd_reloc_notsupported error message.
482 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
483 bfd_reloc_notsupported.
484 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
485
486 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
487 undefined weak symbols for all relocs.
488 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
489 offsets are relative to one past the delay slot.
490 (elf32_hppa_size_stubs): Account for reloc addend when calculating
491 branch destination. Put addend into stub name too.
492 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
493 adjust by 8 when deciding whether a linker stub is needed. Put
494 addend into stub name as for above.
495
496 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
497 various args and vars.
498 (elf32_hppa_bfd_final_link_relocate): Here too.
499 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
500 inner block var to avoid shadowing.
501
502 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
503 unsigned.
504 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
505 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
506 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
507
508 * libhppa.h: Change practically all unsigned ints to plain ints.
509 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
510 prototypes.
511
512 From Ryan Bradetich <rbradetich@uswest.net>
513 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
514 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
515 suit above.
516 From David Huggins-Daines <dhd@linuxcare.com>
517 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
518 to the new OP_* ones.
519
520 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
521 error exit. Bail out earlier on plabel relocs that we aren't
522 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
523 string, and then don't free our copy.
524 (elf32_hppa_build_one_stub): Make insn unsigned int.
525
526 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
527 available with BL, not BE and BLE.
528
529 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
530 code for elf arg relocs.
531 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
532 argument with elf_link_hash_entry h. Handle undefined weak
533 symbols. Move $global$ lookup from here...
534 (elf32_hppa_relocate_section): ...to here. Return correct error
535 message for non-handled relocs.
536 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
537 wrong test was -0x3ffff to +0x40000.
538
539 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
540 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
541 Handle them as such.
542 (elf_hppa_relocate_insn): Fix a typo.
543
544 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
545 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
546 assemble_17, assemble_21): Delete.
547 Supply defines for all 64 possible opcodes.
548 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
549 formats. Handle COMICLR.
550 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
551 -10, -16, 16, 22.
552
553 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
554 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
555 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
556 to suit.
557 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
558 the local syms - did this code get deleted accidentally? Ignore
559 undefined and undefweak syms.
560
561 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
562 block. Use it instead of elf64_hppa_hash_table (info).
563 (elf_hppa_final_link_relocate): Use hppa_info instead of
564 elf64_hppa_hash_table (info).
565
566 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
567 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
568 (hppa_rebuild_insn): Mask immediate bits here instead.
569 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
570
52b219b5
AM
5712000-07-08 Alan Modra <alan@linuxcare.com.au>
572
573 * section.c (struct sec): Add id field. Tidy comment formatting.
574 (bfd_make_section_anyway): Set id.
575 (STD_SECTION): Init id too.
576 Change CONST to const throughout.
577 * archures.c (bfd_arch_info): Tidy comment.
578 (bfd_arch_list): Change a CONST to const.
579 * libbfd-in.h: Tidy comments and replace CONST with const.
580 * elf-bfd.h: Likewise.
581 * libbfd.h: Regenerate.
582 * bfd-in2.h: Regenerate.
583 * libcoff.h: Regenerate.
584
8000a618
DD
5852000-07-07 DJ Delorie <dj@redhat.com>
586
587 * archive.c (_bfd_write_archive_contents): Add an informative
588 comment.
589
c3b7c767
NC
5902000-07-06 Kazu Hirata <kazu@hxi.com>
591
592 * srec.c: Fix formatting.
593
302ab118
DD
5942000-06-05 DJ Delorie <dj@redhat.com>
595
596 * MAINTAINERS: new
597
ed1de528
AO
5982000-07-04 Alexandre Oliva <aoliva@redhat.com>
599
600 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
601 value of PC-relative offsets.
602
70bcb145
JW
6032000-07-03 Jim Wilson <wilson@cygnus.com>
604
605 * elf64-alpha.c (alpha_elf_size_info): New.
606 (elf_backend_size_info): Define to alpha_elf_size_info.
607 * elfcode.h (elf_size_info): Change hash bucket size to 4.
608
b8ee63fa
UC
6092000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
610
611 * elf32-mips.c: Include elf32-target.h again for the traditional
612 MIPS targets.
613
00d2865b
NC
6142000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
615
616 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
617 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
618 (avr_info_to_howto_rela): Likewise.
619 (elf32_avr_gc_mark_hook): Likewise.
620 (elf32_avr_gc_sweep_hook): Likewise.
621 (elf32_avr_relocate_section): Likewise.
622
e4202681
NC
6232000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
624
625 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
626 an external symbol for a non-shared, non-relocatable link.
627
6282000-07-03 Nick Clifton <nickc@redhat.com>
629
99d6ac2f
NC
630 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
631 is an external symbol.
e4202681
NC
632 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
633 external symbol.
634
289c596c
NC
6352000-07-03 Kazu Hirata <kazu@hxi.com>
636
637 * reloc16.c: Fix formatting.
638
dd745cfa
UC
6392000-07-01 Koundinya K <kk@ddeorg.soft.net>
640
641 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
642 to add a new target for traditional mips i.e
643 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
644 * configure.in: Likewise.
645 * configure: Rebuild.
646 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
647 bfd_target_vector.
648 (bfd_elf32_tradlittlemips_vec): Likewise.
649 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
650 to see that elfNN_bed does not get redefined even if the target file
651 is included twice for a chip. See elf32-mips.c.
652
0bdaf48b
AM
6532000-07-01 Alan Modra <alan@linuxcare.com.au>
654
655 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
656 (CLEANFILES): Add DEPA.
657 * Makefile.in: Regenerate.
658
c75df619
DD
6592000-06-30 DJ Delorie <dj@cygnus.com>
660
661 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
662 can't assume the PE header is at 0x80.
663
b4b415e5
DD
6642000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
665
cda43a1d 666 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
b4b415e5 667
addd3117
DD
6682000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
669
670 * go32stub.h: Update stub.
671
65aa24b6
NC
6722000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
673
674 * archures.c (bfd_mach_avr5): Define.
675 * bfd-in2.h (bfd_mach_avr5): Define.
676 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
677 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
678 (compatible): Update comment. Add missing test.
679 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
680 for avr2 and avr4. Simplify 8K wrap code.
681 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
682 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
683
cc040812
NC
6842000-06-26 Kazu Hirata <kazu@hxi.com>
685
686 * coff-h8300.c: Fix formatting.
687 * cpu-h8300.c: Likewise.
688
b1bcb49f
AO
6892000-06-24 Alexandre Oliva <aoliva@redhat.com>
690
691 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
692 for local symbols whose names are unknown.
693
1581f8c9
AM
6942000-06-22 Alan Modra <alan@linuxcare.com.au>
695
696 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
697 find one.
698 * Makefile.in: Regenerate.
699 * doc/Makefile.in: Regenerate.
700
bbeb2e03
L
7012000-06-20 H.J. Lu <hjl@gnu.org>
702
703 * Makefile.am: Rebuild dependency.
704 * Makefile.in: Rebuild.
705
8a20f077
UC
7062000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
707
708 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
709 (elf_backend_copy_indirect_symbol): Map to the new function.
710
2ab47eed
AM
7112000-06-20 Alan Modra <alan@linuxcare.com.au>
712
713 * archive.c (normalize): Correct pointer comparison when checking
714 for backslashes.
715 (bfd_bsd_truncate_arname): Likewise.
716 (bfd_gnu_truncate_arname): Likewise.
717
b305ef96
UC
7182000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
719
720 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
721 sections elf_{text,data}_{section,symbol}.
722 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
723 (_bfd_mips_elf_hide_symbol): New function.
724 (elf_backend_hide_symbol): Map to the new function.
725 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
726 definitions of mips_elf_{text,data}_{section,symbol}.
727 (mips_elf_local_relocation_p): Try to find the direct symbol
728 based on new check_forced argument.
729 (mips_elf_calculate_relocation): Use new version of
730 mips_elf_local_relocation_p.
731 (mips_elf_relocate_section): Likewise.
732 (_bfd_mips_elf_relocate_section): Likewise.
733 (mips_elf_sort_hash_table): Only assert that have enough GOT
734 space.
735 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
736 entry if the relocation based on the new external argument.
737 (mips_elf_create_dynamic_relocation): Assert that we have a
738 section contents allocated where we can swap out the dynamic
739 relocations.
740 (mips_elf_calculate_relocation): Find the real hash-table entry
741 correctly by using h->root.root.type. Only create a dynamic
742 relocation entry if the symbol is defined in a shared library.
743 Create an external GOT entry for the GOT16 relocation if the
744 symbol was forced local.
745 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
746 dynamic index if the symbol was forced local.
747
7482000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
749
750 * elf32-mips.c: Fix typos in comments.
751
1605fc4f
MK
7522000-06-19 Mark Kettenis <kettenis@gnu.org>
753
754 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
755 CORE_VERSION_1.
756
60bcf0fa
NC
7572000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
758
759 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
760 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
761 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
762 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
763 (bfd_elf32_m68hc11_vec): Likewise.
764 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
765 Supports 68hc11 & 68hc12 at the same time.
766 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
767 bfd_target_vector.
768 (bfd_elf32_m68hc11_vec): Likewise.
769 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
770 * archures.c (bfd_m68hc12_arch): Define and register in global list
771 (bfd_m68hc11_arch): Likewise.
772 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
773 BFD_RELOC_M68HC11_3B): Define.
774 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
775 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
776
f41cbf03
UC
7772000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
778
779 * elf_bfd.h (struct elf_backend_data): Add info argument to
780 elf_backend_hide_symbol.
781 (_bfd_elf_link_hash_hide_symbol): Likewise.
782 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
783 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
784 * elflink.h (elf_link_add_object_symbols): Likewise.
785 (elf_link_assign_sym_version): Likewise.
786
689be717
L
7872000-06-18 H.J. Lu <hjl@gnu.org>
788
789 * coff-i386.c (coff_i386_reloc): Don't return in case of
790 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
791 Compensate PE relocations when linking with non-PE object
792 files to generate a non-PE executable.
793
9a8f3bb7
UC
7942000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
795
796 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
797 GOT entries if we're doing a static link or -Bsymbolic link.
798
32f0787a
UC
7992000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
800
801 * elflink.h (elf_link_adjust_relocs): Check for and call backend
802 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
803 available.
804 (elf_link_output_relocs): Likewise.
805 (elf_reloc_link_order): Likewise.
806
87f33987
ND
8072000-06-16 Nicholas Duffek <nsd@redhat.com>
808
809 * archures.c (enum bfd_architecture): #define constants for
810 PowerPc and RS6000 machine numbers.
811 * bfd-in2.h: Regenerate.
812 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
813 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
814 and RS6000 machine numbers using #defined constants from
815 archures.c.
816 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
817 machine numbers using #defined constants from archures.c. Add
818 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
819 64-bit words in 620 entry.
820 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
821 RSC, and RS2.
822 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
823
a2fdf270
ND
8242000-06-16 Nicholas Duffek <nsd@cygnus.com>
825
826 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
827 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
828 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
829
9bd09e22
ND
8302000-06-16 Nicholas Duffek <nsd@redhat.com>
831
832 * bfd-in.h (bfd_family_coff): Define.
833 * bfd-in2.h: Regenerate.
834 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
835 coff_find_nearest_line): Check COFFness using bfd_family_coff()
836 instead of bfd_target_coff_flavour.
837 * cofflink.c (_bfd_coff_final_link): Likewise.
838 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
839 exclude XCOFF files.
840 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
841 Likewise.
842 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
843 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
844 * xcofflink.c (XCOFF_XVECP): Delete.
845 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
846 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
847 bfd_xcoff_record_link_assignment,
848 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
849 check for bfd_target_xcoff_flavour.
850
59d9f049
ND
8512000-06-16 Nicholas Duffek <nsd@redhat.com>
852
853 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
854 files on AIX 4.3.
855 (read_hdr): New function.
856 (rs6000coff_core_p): Store mstsave or __context64 struct instead
857 of trying to extract individual registers. Set abfd->arch_info
858 to match the architecture that created the core file.
859 (rs6000coff_get_section_contents): Delete.
860 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
861
63e39178
L
8622000-06-14 H.J. Lu <hjl@gnu.org>
863
864 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
865 is NULL.
866
bcef29e6
L
8672000-06-13 H.J. Lu <hjl@gnu.org>
868
869 * configure: Regenerate.
870
26bfd1c0
JR
871Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
872
873 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
874 armpei_little_vec.
875
946efd95
DB
8762000-06-08 David O'Brien <obrien@FreeBSD.org>
877
878 * configure.in (VERSION): Update to show this is the CVS mainline.
879
1b452ec6
AM
8802000-06-07 Alan Modra <alan@linuxcare.com.au>
881
882 * elf32-d10v.c: Include elf/d10v.h
883 (enum reloc_type): Delete.
884 * elf32-d30v.c: Include elf/d30v.h
885 (enum reloc_type): Delete.
886
887 * Makefile.am: Run "make dep-am" to regenerate dependencies.
888 * Makefile.in: Regenerate.
889
890 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
dc47f327
AM
891 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
892 move HOWTOs into elf_howto_table.
1b452ec6 893 (R_386_standard, R_386_ext_offset): Define.
dc47f327 894 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
1b452ec6 895 (elf_i386_reloc_type_lookup): Modify calculation of index into
dc47f327 896 elf_howto_table since we've removed the padding.
1b452ec6
AM
897 (elf_i386_info_to_howto_rel): Likewise.
898 (elf_i386_relocate_section): Likewise.
899
e0ebfc61
MS
9002000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
901
902 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
903
9d6eee78
L
9042000-06-05 H.J. Lu <hjl@gnu.org>
905
906 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
907 an error when seeing an undefined symbol with hidden/internal
908 attribute. It is handled in *_relocate_section ().
909
94b6c40a
L
9102000-06-05 H.J. Lu <hjl@gnu.org>
911
912 * elflink.h (elf_fix_symbol_flags): Follow the link for the
913 indirect symbol for the ELF_LINK_NON_ELF bit.
914 (elf_link_output_extsym): Don't output the indirect symbol even
915 if the ELF_LINK_NON_ELF bit is set.
916
0af288f3
C
9172000-06-01 J.T. Conklin <jtc@redback.com>
918
919 * config.bfd (i[3456]86-*-netbsdelf*): New target.
920 (i[3456]86-*-netbsdaout*): New target.
921 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
922 (i[3456]86-*-openbsd*): Likewise.
923
12df4d3c
AC
924Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
925
926 * trad-core.c: From hpux-core.c, include <dirent.h> or
927 <sys/ndir.h> when possible.
928
c0ae4ccc
NC
9292000-05-31 Nick Clifton <nickc@cygnus.com>
930
931 * opintl.h (_(String)): Explain why dgettext is used instead
932 of gettext.
933
321fa097
UD
9342000-05-31 Ulrich Drepper <drepper@redhat.com>
935
936 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
937 definitions. We must not assume they are sorted in the file
938 according to their index numbers.
939
70d72e0e
AM
9402000-05-31 Alan Modra <alan@linuxcare.com.au>
941
942 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
943 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
944 R_PARISC_DIR17F are for absolute branches; Handle them as such.
945
96f6d4c4
NC
9462000-05-30 Nick Clifton <nickc@cygnus.com>
947
948 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
949 80960CA, 80960MC as valid machine names.
950
38048eb9
L
9512000-05-30 H.J. Lu <hjl@gnu.org>
952
953 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
954 visibility bits if the symbol is undefined. Correctly handle
955 weak undefined symbols with hidden and internal attributes.
956
957 * elflink.h (elf_link_add_object_symbols): Always turn the
958 symbol into local if it has the hidden or internal attribute.
959
8c763017
PB
9602000-05-29 Philip Blundell <philb@gnu.org>
961
962 * ppcboot.c: Add packed attribute if compiling with GCC.
963
1ae00f9d
AM
9642000-05-29 Anatoly Vorobey <mellon@pobox.com>
965
966 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
967
4a938328
MS
9682000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
969
970 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
971 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
972 corefile on a 64-bit (Sparc Solaris) host. Also clean up
973 a few old comments.
974
5af11cab
AM
9752000-05-26 Alan Modra <alan@linuxcare.com.au>
976
2114f57b
AM
977 * Makefile.am: Update dependencies with "make dep-am"
978 * Makefile.in: Regenerate.
979
5af11cab
AM
980 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
981 bindtextdomain): Replace defines with those from intl/libgettext.h
982 to quieten gcc warnings.
983
9842000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
985
986 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
987
988 * archive.c (normalize, bfd_bsd_truncate_arname,
989 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
990 file names with backslashes.
991
992 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
993 before opening it.
994
995 * sysdep.h: Include filenames.h.
996
b6cdd0fd
AM
9972000-05-26 Alan Modra <alan@linuxcare.com.au>
998
999 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
1000
f7775d95
JJ
10012000-05-26 Jakub Jelinek <jakub@redhat.com>
1002
1003 * elf64-sparc.c (sparc64_elf_relax_section): New.
1004 (sparc64_elf_relocate_section): Optimize tail call into branch always
1005 if possible.
1006 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1007 (elf32_sparc_relax_section): New.
1008
6c08d697
JJ
10092000-05-26 Jakub Jelinek <jakub@redhat.com>
1010
1011 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
1012 Remove unusued variables.
1013 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
1014 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
1015 previous fix, so that shared libs really don't influence targets
1016 extension mask and memory model.
1017
edb72b3b
L
10182000-05-23 H.J. Lu <hjl@gnu.org>
1019
1020 * elf64-alpha.c (elf64_alpha_relocate_section): Check
1021 h->root.other not h->other.
ba09750c
L
1022 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1023
1024 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
edb72b3b 1025
3a27a730
L
10262000-05-23 H.J. Lu <hjl@gnu.org>
1027
1028 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
1029 undefined symbol with the non-default visibility attributes.
1030 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
1031 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
1032 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1033 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1034 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1035 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1036 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1037 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1038 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1039 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
1040 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1041
748abff6
RH
10422000-05-22 Richard Henderson <rth@cygnus.com>
1043
1044 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
1045 PCREL22, PCREL64I. Zero size of special relocs.
1046 (elf64_ia64_reloc_type_lookup): Likewise.
1047 (USE_BRL, oor_brl, oor_ip): New.
1048 (elf64_ia64_relax_section): New.
1049 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
1050 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
1051 (elf64_ia64_relocate_section): Likewise.
1052 (bfd_elf64_bfd_relax_section): New.
1053 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
1054 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
1055 * bfd-in2.h, libbfd.h: Regenerate.
1056
fb67355a
NC
10572000-05-22 Nick Clifton <nickc@cygnus.com>
1058
1059 * configure.in : Add peigen.lo to MIPS PE targets.
1060 * configure: Regenerate.
1061
1fe494a5
NC
10622000-05-22 Momchil Velikov <velco@fadata.bg>
1063
1064 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
748abff6 1065 only if it is known for both input and output bfds. Separate
1fe494a5
NC
1066 error message strings as in some languages, it may be necessary
1067 to change more than one place in the string to change between
1068 'big' and 'little'.
1069
1070 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
1071 endianess checks, call _bfd_generic_verify_endian_match() instead.
1072
1073 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
1074
1075 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
1076
1077 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
1078 endianess before checking bfd flavours.
1079
32c092c3
L
10802000-05-22 H.J. Lu <hjl@gnu.org>
1081
1082 * elflink.h (elf_link_output_extsym): Clear the visibility
1083 field for symbols not defined locally.
1084
df6d9773
JL
10852000-05-18 Alan Modra <alan@linuxcare.com.au>
1086
1087 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
1088 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
1089 (hppa_rebuild_insn): Mask immediate bits here instead.
1090 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
1091
7ad34365
NC
10922000-05-18 Momchil Velikov <velco@fadata.bg>
1093
1094 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
1095 relocs for an executable, ensure that they are virtual addresses.
1096
d1dab720
JL
1097Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com)
1098
1099 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
1100
a712da20
NC
11012000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1102 Rick Gorton <gorton@scrugs.lkg.dec.com>
1103
1104 * elflink.h: Add emitrelocations support: when enabled, relocation
1105 information and relocation sections are put into final output
1106 executables. If the emitrelocations flag is set, do the following:
1107 (elf_bfd_final_link): Emit relocation sections.
1108 (elf_link_input_bfd): Compute relocation section contents.
1109 (elf_gc_sections): Don't clean relocation sections.
1110
10febd84
CM
11112000-05-16 Catherine Moore <clm@cygnux.com>
1112
1113 * som.c (som_decode_symclass): Recognize weak symbols.
1114
db8503c4
AM
11152000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
1116
1117 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
1118 read idata section only from dataoff.
1119 (pe_print_edata): Correctly check for valid eat_member.
1120
851cde10
JR
1121Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1122
1123 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
1124
1bde2d57
PB
11252000-05-14 Philip Blundell <philb@gnu.org>
1126
1127 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
1128
a76b448c
AM
11292000-05-12 Alan Modra <alan@linuxcare.com.au>
1130
9ee25201
AM
1131 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
1132
a76b448c
AM
1133 * peigen.c (pe_print_idata): Look for .idata section and print
1134 info even if data directory has zero entries. Read idata section
1135 starting from dataoff, and adjust all data offsets to suit. Cast
1136 all bfd_vma vars to unsigned long before passing to fprintf.
1137 * peigen.c (pe_print_edata): Similarly, look for .edata section
1138 and print info even if data directory has zero entries. Cast
1139 all bfd_vma vars to unsigned long before passing to fprintf.
1140
1141 From Szabolcs Szakacsits <szaka@F-Secure.com>
1142 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
1143 directory size which may be bogus.
1144 * peigen.c (pe_print_edata): Similarly.
1145
72730e0c
AM
11462000-05-09 Alan Modra <alan@linuxcare.com.au>
1147
1148 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
1149 section is empty.
1150 (copy_private_bfd_data): Allow for space possibly taken up by elf
1151 headers when calculating segment physical address from lma.
1152
8181c403
AM
11532000-05-08 Alan Modra <alan@linuxcare.com.au>
1154
bfde9f99
AM
1155 * versados.c (versados_scan): Init stringlen and pass_2_done.
1156
b35efbcd
AM
1157 * trad-core.c (trad_unix_core_file_p): Return
1158 bfd_error_wrong_format rather than bfd_error_file_truncated.
1159
8181c403
AM
1160 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
1161 add_data_entry. DataDirectory virtual address is relative.
1162 (pe_print_idata): Account for relative DataDirectory virtual
1163 addresses. Don't trash datasize inside POWERPC_LE_PE code.
1164 (pe_print_edata): Similarly.
1165
1166 From Szabolcs Szakacsits <szaka@F-Secure.com>
1167 * peigen.c (dir_names): Add Delay Import Directory.
1168 (pe_print_idata): Always search for bfd section containing
1169 idata address rather than looking up section name. Print this
1170 section name rather than .idata.
1171 (pe_print_edata): Similarly. Also print some fields as %08lx.
1172 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
1173 Win32Version.
1174
2c38bc20
CP
1175Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com>
1176
1177 * xcoff.h: Rename to xcoff-target.h
1178 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
1179 * coff-rs6000.c: Ditto.
1180 * coff64-rs6000.c: Ditto.
1181 * coff-pmac.c: Ditto.
1182 * Makefile.in: Regenerate.
1183
c6664dfb
CP
1184Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com>
1185
1186 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
1187 Change U802TOC64MAGIC to U803XTOCMAGIC.
1188
3425c182
MS
11892000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
1190
1191 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
1192 * bfd-in.h: Prototype bfd_elf_get_arch_size.
1193 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
1194
7c30ac37
AM
11952000-05-04 Alan Modra <alan@linuxcare.com.au>
1196
1197 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
1198