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