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