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