doco addition.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
49bd834c
AM
12000-09-05 Alan Modra <alan@linuxcare.com.au>
2
30667bf3
AM
3 Shared library and PIC support.
4 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5 (GOT_ENTRY_SIZE): New.
6 (ELF_DYNAMIC_INTERPRETER): New.
7 (STUB_SUFFIX): Define.
8 (LONG_BRANCH_PIC_IN_SHLIB): Define.
9 (RELATIVE_DYNAMIC_RELOCS): Define.
10 (enum elf32_hppa_stub_type): New.
11 (struct elf32_hppa_stub_hash_entry): Rename offset to
12 stub_offset. Add a number of new fields.
13 (struct elf32_hppa_link_hash_entry): New.
14 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
15 global_value.
16 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
17 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
18 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
19 new fields.
20 (hppa_link_hash_newfunc): New function.
21 (elf32_hppa_link_hash_table_create): Use above function. Init new
22 fields.
23 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
24 instead of addend, and remove sym_name from args. Don't use
25 symbol name for local syms, instead use sym index.
26 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
27 stub type rather than size. Pass in hash and handle import stub
28 case. Also pass in reloc instead of offset so we can calculate
29 PCREL22F and PCREL12F branches properly.
30 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
31 import and export stubs too.
32 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
33 import and export stub sizing.
34 (elf32_hppa_check_relocs): New function.
35 (elf32_hppa_adjust_dynamic_symbol): New function.
36 (hppa_discard_copies): New function.
37 (elf32_hppa_size_dynamic_sections): New function.
38 (elf_backend_size_dynamic_sections): Define.
39 (elf32_hppa_finish_dynamic_symbol): New function.
40 (elf_backend_finish_dynamic_symbol): Define.
41 (elf32_hppa_size_stubs): Stash params in link hash table, and move
42 some local vars into the link hash table too. For shared links,
43 trundle over function syms, generating export stubs. Handle
44 PCREL22F branches. Break out stub creation code from here..
45 (hppa_add_stub): .. to here. New function.
46 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
47 call the bfd linker. Use elf_gp to record global pointer.
48 Calculate a value from sections if $global$ is missing.
49 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
50 (elf32_hppa_gc_mark_hook): New function.
51 (elf_backend_gc_mark_hook): Define.
52 (elf32_hppa_gc_sweep_hook): New function.
53 (elf_backend_gc_sweep_hook): Define.
54 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
55 Add rel to args, and remove howto, input_bfd, offset, addend,
56 sym_name as we can recalculate these locally. Handle calls to
57 dynamic objects, extra PIC relocs, PCREL22F branches. Change
58 handling of undefined weak syms. Check that stubs are in range.
59 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
60 message on hitting a DPREL21L reloc that needs fixing. Subtract
61 off PC for PCREL14F. Break out code that does a stub lookup from
62 here..
63 (hppa_get_stub_entry): ..to here. New function.
64 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
65 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
66 relocs, etc. etc.
67 (elf32_hppa_finish_dynamic_sections): New function.
68 (elf_backend_finish_dynamic_sections): Define.
69 (elf_backend_final_write_processing) Define.
70 (hppa_handle_PIC_calls): New function.
71 (elf32_hppa_build_stubs): Call it. Pass link_info to
72 hppa_build_one_stub.
73 (elf32_hppa_create_dynamic_sections): New function
74 to create .plt and .got then set .plt flags correctly.
75 (elf_backend_create_dynamic_sections): Define.
76 (elf32_hppa_object_p): New function.
77 (elf_backend_object_p): Define.
78 (elf32_hppa_elf_get_symbol_type): New function.
79 (elf_backend_get_symbol_type): Define.
80 (elf_backend_can_gc_sections): Define.
81 (elf_backend_want_got_plt): Define.
82 (elf_backend_plt_alignment): Set to 2.
83 (elf_backend_plt_readonly): Define.
84 (elf_backend_want_plt_sym): Define.
85 (elf_backend_got_header_size): Reserve one entry.
86
87 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
88 (elf32_hppa_size_stubs): Pass in multi_subspace.
89 (elf32_hppa_set_gp): Declare.
90
1bd91689
AM
91 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
92 (bfd_get_unique_section_name): New function.
93 * bfd_in2.h: Regenerate.
94
832d951b
AM
95 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
96 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
97 comment.
98
99 From David Huggins-Daines <dhd@linuxcare.com>
100 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
101 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
102 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
103 been updated in finish_dynamic_symbol before modifying function
104 symbol.
105
49bd834c
AM
106 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
107 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
108 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
109 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
110 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
111 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
112 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
113 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
114
115 From David Huggins-Daines <dhd@linuxcare.com>
116 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
117 style of local labels as well.
118
05924f36
PB
1192000-09-03 Philip Blundell <philb@gnu.org>
120
121 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
122 references to undefined symbols in debugging sections.
123
3d96075c
L
1242000-09-02 H.J. Lu <hjl@gnu.org>
125
126 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
127 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
128 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
129 section.
130
de24da47
JE
1312000-09-02 Jason Eckhardt <jle@cygnus.com>
132
133 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
134 (elf32_i860_is_local_label_name): New function and prototype.
135
18e03609
NC
1362000-09-02 Nick Clifton <nickc@redhat.com>
137
138 * configure.in: Increase version number to 2.10.91.
139 * configure: Regenerate.
140 * aclocal.m4: Regenerate.
141 * config.in: Regenerate.
142 * po/bfd.pot: Regenerate.
143
7a6cc5fb
NC
1442000-09-02 Daniel Berlin <dberlin@redhat.com>
145
146 * elf.c (_bfd_elf_make_section_from_shdr): Add
147 .gnu.linkobce.wi. to the list of debug section names.
148
a092b084
NC
1492000-09-02 Nick Clifton <nickc@redhat.com>
150
151 * dwarf2.c (find_debug_info): New function: Locate a section
152 containing dwarf2 debug information.
153 (bfd_dwarf2_find_nearest_line): Find all sections containing
154 debug information and include them in the stash.
155
37c644f2
AO
1562000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
157
158 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
159 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
160 (sh_reloc_map): Add new relocs.
161 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
162 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
163 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
164 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
165 functions.
166 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
167 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
168 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
169 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
170 New array constants.
171 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
172 New variables.
173 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
174 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
175 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
176 elf_sh_plt_reloc_offset): Define.
177 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
178 elf_sh_link_hash_table): New structs.
179 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
180 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
181 relocation types.
182 (elf_backend_create_dynamic_sections,
183 bfd_elf32_bfd_link_hash_table_create,
184 elf_backend_adjust_dynamic_symbol,
185 elf_backend_size_dynamic_sections,
186 elf_backend_finish_dynamic_symbol,
187 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
188 elf_backend_plt_readonly, elf_backend_want_plt_sym,
189 elf_backend_got_header_size, elf_backend_plt_header_size):
190 Define.
191 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
192 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
193 New relocs.
194 * bfd-in2.h, libbfd.h: Rebuilt.
195
791987af
AM
1962000-09-01 Alan Modra <alan@linuxcare.com.au>
197
198 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
199 change.
200
a39b79b9
JR
201Thu Aug 31 22:49:30 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
202
203 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
204 not initialized, set them to indicate the SH1 instruction set.
205
ac48eca1
AO
2062000-08-31 Alexandre Oliva <aoliva@redhat.com>
207
208 * acinclude.m4: Include libtool and gettext macros from the
209 top level.
210 * aclocal.m4, configure: Rebuilt.
211
7ee38065
MS
2122000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
213
214 * elf.c: Eliminate references to __sparcv9 macro; replace with
215 autoconf variables HAVE_PSINFO32_T etc.
216 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
217 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
218 * config.in: Ditto.
219 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
220 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
221 * aclocal.m4: Ditto.
222 * configure: Regenerate.
223
f69da49f
AM
2242000-08-27 Alan Modra <alan@linuxcare.com.au>
225
226 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
227 for any shared link, not just shared -Bsymbolic.
228 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
229 any shared link, and pass link info to it.
230 (elf_i386_size_dynamic_sections): Update comment.
231 (elf_i386_discard_copies): Modify to discard relocs for symbols
232 that have been forced local.
233 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
234 that have been forced local.
235
724982f6
NC
2362000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
237
238 * elflink.h (elf_link_add_object_symbols): Allow common
239 symbols to have an alignment of 1 if explicitly requested, and
240 not overridden by other definitions.
241
371e71b8
NC
2422000-08-22 Doug Kwan <dkwan@transmeta.com>
243
244 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
245 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
246
a963dc6a
L
2472000-08-22 H.J. Lu <hjl@gnu.org>
248
249 * elf-bfd.h (elf_link_hash_table): Add runpath.
250
251 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
252 * bfd-in2.h: Rebuilt.
253
254 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
255 "runpath" field to NULL.
256 (bfd_elf_get_runpath_list): New function.
257
258 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
259 DT_RUNPATH entries.
260
9bdafcce
AO
2612000-08-22 Alexandre Oliva <aoliva@redhat.com>
262
263 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
264 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
265 explicitly. Improve validation of r_type.
266
7a9af8c4
NC
2672000-08-21 H.J. Lu <hjl@gnu.org>
268
269 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
270 dynamic allocated content space. Add a comment to remind us that
271 one day this ought to be fixed.
272 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
273 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
274 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
275
ded0649c
JE
2762000-08-21 Jason Eckhardt <jle@cygnus.com>
277
278 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
279 field with the newly relocated value instead of adding it to the
280 existing immediate field.
281 (elf32_i860_relocate_splitn): Likewise.
282 (elf32_i860_relocate_highadj): Likewise.
283
d670a150
JE
2842000-08-16 Jason Eckhardt <jle@cygnus.com>
285
286 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
287 was previously just a stub).
288
bb0deeff
AO
2892000-08-16 Alexandre Oliva <aoliva@redhat.com>
290
291 * elflink.c (_bfd_elf_create_got_section): Don't abort().
292 Formatting fixes.
293 (_bfd_elf_create_dynamic_sections): Likewise.
294
be040dbb
JJ
2952000-08-16 Andrew Macleod <amacleod@cygnus.com>
296
297 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
298 for undefined symbols to be the beginning of the section.
299
300 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
301 four extra entries at the beginning of the .rela.plt section.
302 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
303 section to account for the four reserved entries in the .plt section.
304
31612ca6
GK
3052000-08-15 Geoffrey Keating <geoffk@cygnus.com>
306
307 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
308 to the list of NOPs we recognize after a branch-and-link.
309 Use the ori NOP when one is needed.
310
311 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
312 for large archives.
313
c43c2cc5
JW
3142000-08-14 Jim Wilson <wilson@cygnus.com>
315
316 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
317 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
318 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
319 EF_IA_64_ABSOLUTE.
320
1630fd2b
AO
3212000-08-11 Alexandre Oliva <aoliva@redhat.com>
322
323 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
324
fdeafce7
JE
3252000-08-10 Jason Eckhardt <jle@cygnus.com>
326
327 * elf32-i860.c (elf32_i860_relocate_section): New function.
328 (i860_final_link_relocate): New function.
329 (elf32_i860_relocate_splitn): New function.
330 (elf32_i860_relocate_pc16): New function.
331 (elf32_i860_relocate_highadj): New function.
332 (elf32_i860_howto): Minor adjustments to some relocations.
333 (elf_info_to_howto_rel): Define.
334 (elf_backend_relocate_section): Define.
335
9b485d32
NC
3362000-08-10 Nick Clifton <nickc@cygnus.com>
337
338 * elf32-arm.h: Fix formatting.
339
00fdaf47
BS
3402000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
341
342 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
343
305d537e
JE
3442000-08-08 Jason Eckhardt <jle@cygnus.com>
345
346 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
347
46f5aac8
KH
3482000-08-07 Kazu Hirata <kazu@hxi.com>
349
dce61835
KH
350 * ieee.c (ieee_write_debug_part): Rewrite a comment.
351 * elf64-ia64.c: Fix a typo.
46f5aac8 352
0e5136c6
JE
3532000-08-05 Jason Eckhardt <jle@cygnus.com>
354
355 * elf32-i860 (elf32_i860_howto_table): New structure.
356 (lookup_howto): New function.
357 (elf32_i860_reloc_type_lookup): New function.
358 (elf32_i860_info_to_howto_rela): New function.
359 (elf_code_to_howto_index): New structure.
360 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
361 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
362 elf32_i860_reloc_type_lookup.
363
7dca057b
JL
3642000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
365
366 * som.c (struct fixup_format): Constify `format'.
367 (som_hppa_howto_table): Use SOM_HOWTO macro.
368 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
369 (som_bfd_reloc_type_lookup): Likewise.
370 (compare_subspaces): Remove unused `count1', `count2'.
371 (som_begin_writing): Remove unused `total_reloc_size'.
372 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
373 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
374 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
375 (som_find_nearest_line): Decorate unused parameter(s).
376 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
377 (som_bfd_link_split_section): Likewise.
378
bc67d8a6
NC
3792000-08-03 Nick Clifton <nickc@cygnus.com>
380
381 * section.c: Restore backed out code.
382 * elf.c: Restore backed out code.
383 (copy_private_bfd_data): Fix bug preventing stipped dynamic
384 binaries from working.
385 * bfd-in2.h: Regenerate.
386
c0f7859b
L
3872000-08-03 H.J. Lu <hjl@gnu.org>
388
389 * section.c: Back out the change made by Nick Clifton
390 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
391 binaries.
392 * bfd-in2.h: Likewise.
393 * elf.c: Likewise.
394
61ff1804
AO
3952000-08-03 Alexandre Oliva <aoliva@redhat.com>
396
397 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
398
a87fdb8d
JE
3992000-07-31 Jason Eckhardt <jle@cygnus.com>
400
401 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
402 * bfd-in2.h, libbfd.h: Regenerate.
403
5c440b1e
NC
4042000-07-31 Nick Clifton <nickc@cygnus.com>
405
406 * section.c (struct sec): Add new boolean field 'segment_mark'.
407 (STD_SECTION): Initialise new field to zero.
408
409 * bfd-in2.h: Regenerate.
410
411 * elf.c (copy_private_bfd_data): Reorganise section to segment
412 mapping to cope with moved sections requiring new segments,
413 and overlapping segments.
414 (SEGMENT_END): New macro: Return the end address of a segment.
415 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
416 contains a section by comparing their VMA addresses.
417 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
418 contains a section by comparing their LMA addresses.
419 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
420 section should be included in a segment.
421 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
422 follows another in memory.
423 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
424 segments overlap.
425
aa76cae8 4262000-07-22 Jason Eckhardt <jle@cygnus.com>
24208c5c
JE
427
428 * cpu-i860.c: Added comments.
429
430 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
431 bfd_elf32_i860_little_vec.
432 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
433 (ELF_MAXPAGESIZE): Changed to 4096.
434
435 * targets.c (bfd_elf32_i860_little_vec): Declaration of
436 new target.
437 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
438
439 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
440 config for little endian elf32 i860.
441 (targ_defvec): Define for the new config above
442 as "bfd_elf32_i860_little_vec".
443 (targ_selvecs): Define for the new config above
444 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
445
446 * configure.in (bfd_elf32_i860_little_vec): Added recognition
447 of new target vec.
448
449 * configure: Regenerated.
450
456981d7
L
4512000-07-27 H.J. Lu <hjl@gnu.org>
452
453 * elflink.h (elf_merge_symbol): Take one more argument,
454 dt_needed, to indicate if the symbol comes from a DT_NEEDED
455 entry. Don't overide the existing weak definition if dt_needed
456 is true.
457 (elf_link_add_object_symbols): Pass dt_needed to
458 elf_merge_symbol ().
459
755cfd29
NC
4602000-07-27 Nick Clifton <nickc@cygnus.com>
461
462 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
463 allocated contents.
464
1a6df346
GK
4652000-07-25 Geoffrey Keating <geoffk@cygnus.com>
466
adfdf838
GK
467 * configure.host (*-*-aix*): AIX has 'long long' always.
468
1a6df346
GK
469 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
470 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
471 (xcoff_write_archive_contents_big): Don't update the offset
472 of the symbol table, xcoff_write_armap will do it.
473
313ba8d6
UC
4742000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
475
476 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
477 of dynobj for SGI_COMPAT checks.
478
3eb6f68f 4792000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
20bccb34
NC
480
481 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
482 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
483 * bfd-in2.h: Regenerate.
484
7a3120d9
NC
4852000-07-21 Nick Clifton <nickc@cygnus.com>
486
487 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
488 range symbol indices in relocs and issue an error message.
489
4d538889
L
4902000-07-20 H.J. Lu <hjl@gnu.org>
491
492 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
493 info->new_dtags when setting DT_FLAGS_1. It will only be set
494 by the new linker options. It shouldn't break anything.
495
b586af58
L
4962000-07-20 H.J. Lu <hjl@gnu.org>
497
498 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
499 only if info->new_dtags is true.
500
c25373b7
L
5012000-07-20 H.J. Lu <hjl@gnu.org>
502
503 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
504 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
505
06c15ad7
HPN
5062000-07-20 Hans-Peter Nilsson <hp@axis.com>
507
508 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
509 (ALL_MACHINES_CFILES): Add cpu-cris.c.
510 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
511 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
512 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
513 * Makefile.in: Rebuild.
514 * aclocal.m4: Rebuild.
515 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
516 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
517 (bfd_cris_arch): Declare.
518 (bfd_archures_list): Add bfd_cris_arch.
519 * bfd-in2.h: Rebuild.
520 * config.bfd: (cris-*-*): New target.
521 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
522 * configure: Rebuild.
523 * elf.c (prep_headers): Add bfd_arch_cris.
524 * libbfd.h: Rebuild.
525 * libaout.h (enum machine_type): Add M_CRIS.
526 * reloc.c: Add CRIS relocations.
3bd336f7 527 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
06c15ad7
HPN
528 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
529 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
530 * po/POTFILES.in, po/bfd.pot: Regenerate.
531
d6cf2879
L
5322000-07-19 H.J. Lu <hjl@gnu.org>
533
534 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
535 DF_TEXTREL if DT_TEXTREL is set.
536 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
537 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
538 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
539 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
540 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
541 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
542 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
543 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
544 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
545 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
546
c25373b7 547 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
d6cf2879
L
548 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
549 DT_RPATH is set.
550 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
551
74816898
L
5522000-07-19 H.J. Lu <hjl@gnu.org>
553
554 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
555 * bfd-in2.h: Rebuild.
556
557 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
558 (elf_dt_soname): New.
559
560 * elf.c (bfd_elf_set_dt_needed_soname): New.
561
562 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
563 entry if the shared object loaded by DT_NEEDED is used to
564 resolve the reference in a regular object.
565
36a30e65
L
5662000-07-19 H.J. Lu <hjl@gnu.org>
567
568 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
569 DT_DEPAUDIT and DT_AUDIT as strings.
570
1d713d9e
NC
5712000-07-19 Nick Clifton <nickc@cygnus.com>
572
573 * format.c: Fix formatting.
574
d48188b9
L
5752000-07-19 H.J. Lu <hjl@gnu.org>
576
577 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
578
94558834
L
5792000-07-19 H.J. Lu <hjl@gnu.org>
580
581 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
582 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
583 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
584 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
585 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
586 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
587 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
588
125c4a69
NC
589Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
590
591 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
592 renamed functions from here...
593 (assign_section_numbers): Use renamed functions.
594 (prep_headers): Use renamed functions.
595
596 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
597 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
598 * bfd-in2.h: Regenerate.
599
31a9bdd9
UC
6002000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
601
602 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
313ba8d6 603 parenthesis in if statement.
31a9bdd9 604
f7cb7d68
UC
6052000-07-17 Koundinya K <kk@ddeorg.soft.net>
606
607 Enable the support for Traditional MIPS.
608 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
609 return ict_none appropriately for traditional mips targets.
610 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
611 (STUB_MOVE): Conditionalize for traditonal mips.
612 (STUB_LI16): Likewise.
613 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
614 room for RTPROC header.
615 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
616 the permission for the PT_DYNAMIC as read, write and execute.
617 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
618 for traditonal mips.
619 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
620 _DYNAMIC_LINKING for traditonal mips.
621 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
622 in case of traditonal mips.
623 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
624 entry is required. For a function if PLT is not required then set the
625 corresponding hash table entry to 0.
626 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
627 traditonal mips.
628 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
629 shared object set the value to 0.
630 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
631 _DYNAMIC_LINKING for traditonal mips.
632 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
633 for traditonal mips.
634
930d924d
L
6352000-07-15 H.J. Lu <hjl@gnu.org>
636
637 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
638
e67f03db
DD
6392000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
640
641 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
642 out a structure that is BFD_IN_MEMORY.
643
0ba2a60e
AM
6442000-07-11 Alan Modra <alan@linuxcare.com.au>
645
646 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
647 bfd pointer. Print section id instead of bfd pointer for local
648 syms. Prefix addend with `+' for global syms as well as local.
649 Correct calculation of name component lengths.
650 (elf64_hppa_check_relocs): Update call to get_dyn_name.
651
652 From David Huggins-Daines <dhd@linuxcare.com>
653 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
654 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
655 (elf64_hppa_modify_segment_map): Likewise.
656
6d9019e4
AC
657Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
658
659 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
660 addresses to be "naturally" sign extended. Return -1 if unknown.
0ba2a60e 661 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6d9019e4
AC
662 * bfd-in2.h: Regenerate.
663
23e2c83b
AC
664Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
665
666 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
667 and ECOF_SIGNED_64 to list ways to extract an offset.
668 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
669 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
670 Update.
671 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
672 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
673
448cafa4
AC
674Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
675
676 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
677 bfd_get_start_address.
678 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
679 (elf_swap_ehdr_out): Ditto.
680
83ea41ad
NC
6812000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
682
683 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
684 compatibility with older binutils.
685
3df7b4e2
AM
6862000-07-10 Alan Modra <alan@linuxcare.com.au>
687
688 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
689 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
690
b7af50e3
AM
691 From Ryan Bradetich <rbradetich@uswest.net>
692 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
693 (parse_line_table): Ditto.
694 (_bfd_dwarf1_find_nearest_line): Ditto.
695 * syms.c (cmpindexentry): Remove extra `*' from params.
696
adb76a3e
UC
6972000-07-09 Koundinya K <kk@ddeorg.soft.net>
698
699 * elf32-mips.c (sort_dynamic_relocs): New Function.
700 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
701 via qsort to sort the dynamic relocations in increasing r_symndx
702 value.
703
edd21aca
AM
7042000-07-09 Alan Modra <alan@linuxcare.com.au>
705
706 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
707 ATTRIBUTE_UNUSED to unused args.
708 (get_opd): Likewise.
709 (get_plt): Likewise.
710 (get_dlt): Likewise.
711 (get_stub): Likewise.
712 (elf64_hppa_adjust_dynamic_symbol): Likewise.
713 (elf64_hppa_link_output_symbol_hook): Likewise.
714 (elf64_hppa_check_relocs): Delete unused var.
715 (elf64_hppa_size_dynamic_sections): Likewise.
716 (elf64_hppa_finalize_opd): Likewise.
717 (elf64_hppa_finalize_dynreloc): Likewise.
718 (elf64_hppa_modify_segment_map): Likewise.
719 (elf64_hppa_finish_dynamic_sections): Likewise.
720
721 * elf-hppa.h (elf_hppa_final_write_processing): Add
722 ATTRIBUTE_UNUSED to unused args.
723 (elf_hppa_final_link_relocate): Likewise.
724 (elf_hppa_record_segment_addrs): Add paretheses.
725 (elf_hppa_relocate_section): Constify dyn_name.
726
727 From David Huggins-Daines <dhd@linuxcare.com>
728 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
729 rearrange case statement so that it gets preferred to 32-bit ones.
730
731 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
732 asection->id instead of address of asection structure.
733 (elf32_hppa_size_stubs): Likewise.
734
735 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
736 for .init* and .fini*.
737
738 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
739 and addends used in stub names to 32 bits.
740 (elf32_hppa_size_stubs): Likewise.
741
742 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
743 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
744 not bfd_put_64. Fix minor comment typo and formatting.
745
746 Changes to create multiple linker stubs, positioned immediately
747 before the section where they are required.
748 * elf32-hppa.c: Don't include hppa_stubs.h.
749 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
750 (elf32_hppa_stub_hash_table): Delete.
751 (elf32_hppa_link_hash_entry): Delete.
752 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
753 stub_hash_table, and store the struct here rather than a pointer.
754 Delete output_symbol_count. Add offset array. Change
755 global_value to a bfd_vma.
756 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
757 (elf32_hppa_stub_hash_traverse): Delete.
758 (elf32_hppa_name_of_stub): Delete.
759 (elf32_hppa_link_hash_lookup): Delete.
760 (elf32_hppa_link_hash_traverse): Delete.
761 (elf32_hppa_stub_hash_table_init): Delete.
762 (elf32_hppa_size_of_stub): Pass input section and offset rather
763 than location and calculate location here. Don't pass name as all
764 stubs are now the same size.
765 (elf32_hppa_stub_hash_newfunc): Init new fields.
766 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
767 too.
768 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
769 comparing against ints. Rewrite stub handling code.
770 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
771 Case enums to int before comparing against ints. Remove
772 bfd_reloc_dangerous case.
773 (elf32_hppa_build_one_stub): Rewrite.
774 (elf32_hppa_size_one_stub): New function.
775 (elf32_hppa_build_stubs): Rewrite.
776 (elf32_hppa_size_stubs): Pass in linker call-back functions.
777 Rewrite stub-handling specific code.
778
779 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
780
781 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
782
783 * hppa_stubs.h: Delete.
784 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
785 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
786 * Makefile.in: Regenerate.
787
788 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
789 e_nlrsel.
790
791 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
792
793 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
794 and section name for bfd_reloc_notsupported error message.
795 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
796 bfd_reloc_notsupported.
797 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
798
799 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
800 undefined weak symbols for all relocs.
801 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
802 offsets are relative to one past the delay slot.
803 (elf32_hppa_size_stubs): Account for reloc addend when calculating
804 branch destination. Put addend into stub name too.
805 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
806 adjust by 8 when deciding whether a linker stub is needed. Put
807 addend into stub name as for above.
808
809 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
810 various args and vars.
811 (elf32_hppa_bfd_final_link_relocate): Here too.
812 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
813 inner block var to avoid shadowing.
814
815 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
816 unsigned.
817 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
818 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
819 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
820
821 * libhppa.h: Change practically all unsigned ints to plain ints.
822 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
823 prototypes.
824
825 From Ryan Bradetich <rbradetich@uswest.net>
826 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
827 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
828 suit above.
829 From David Huggins-Daines <dhd@linuxcare.com>
830 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
831 to the new OP_* ones.
832
833 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
834 error exit. Bail out earlier on plabel relocs that we aren't
835 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
836 string, and then don't free our copy.
837 (elf32_hppa_build_one_stub): Make insn unsigned int.
838
839 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
840 available with BL, not BE and BLE.
841
842 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
843 code for elf arg relocs.
844 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
845 argument with elf_link_hash_entry h. Handle undefined weak
846 symbols. Move $global$ lookup from here...
847 (elf32_hppa_relocate_section): ...to here. Return correct error
848 message for non-handled relocs.
849 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
850 wrong test was -0x3ffff to +0x40000.
851
852 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
853 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
854 Handle them as such.
855 (elf_hppa_relocate_insn): Fix a typo.
856
857 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
858 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
859 assemble_17, assemble_21): Delete.
860 Supply defines for all 64 possible opcodes.
861 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
862 formats. Handle COMICLR.
863 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
864 -10, -16, 16, 22.
865
866 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
867 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
868 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
869 to suit.
870 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
871 the local syms - did this code get deleted accidentally? Ignore
872 undefined and undefweak syms.
873
874 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
875 block. Use it instead of elf64_hppa_hash_table (info).
876 (elf_hppa_final_link_relocate): Use hppa_info instead of
877 elf64_hppa_hash_table (info).
878
879 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
880 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
881 (hppa_rebuild_insn): Mask immediate bits here instead.
882 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
883
52b219b5
AM
8842000-07-08 Alan Modra <alan@linuxcare.com.au>
885
886 * section.c (struct sec): Add id field. Tidy comment formatting.
887 (bfd_make_section_anyway): Set id.
888 (STD_SECTION): Init id too.
889 Change CONST to const throughout.
890 * archures.c (bfd_arch_info): Tidy comment.
891 (bfd_arch_list): Change a CONST to const.
892 * libbfd-in.h: Tidy comments and replace CONST with const.
893 * elf-bfd.h: Likewise.
894 * libbfd.h: Regenerate.
895 * bfd-in2.h: Regenerate.
896 * libcoff.h: Regenerate.
897
8000a618
DD
8982000-07-07 DJ Delorie <dj@redhat.com>
899
900 * archive.c (_bfd_write_archive_contents): Add an informative
901 comment.
902
c3b7c767
NC
9032000-07-06 Kazu Hirata <kazu@hxi.com>
904
905 * srec.c: Fix formatting.
906
302ab118
DD
9072000-06-05 DJ Delorie <dj@redhat.com>
908
909 * MAINTAINERS: new
910
ed1de528
AO
9112000-07-04 Alexandre Oliva <aoliva@redhat.com>
912
913 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
914 value of PC-relative offsets.
915
70bcb145
JW
9162000-07-03 Jim Wilson <wilson@cygnus.com>
917
918 * elf64-alpha.c (alpha_elf_size_info): New.
919 (elf_backend_size_info): Define to alpha_elf_size_info.
920 * elfcode.h (elf_size_info): Change hash bucket size to 4.
921
b8ee63fa
UC
9222000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
923
924 * elf32-mips.c: Include elf32-target.h again for the traditional
925 MIPS targets.
926
00d2865b
NC
9272000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
928
929 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
930 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
931 (avr_info_to_howto_rela): Likewise.
932 (elf32_avr_gc_mark_hook): Likewise.
933 (elf32_avr_gc_sweep_hook): Likewise.
934 (elf32_avr_relocate_section): Likewise.
935
e4202681
NC
9362000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
937
938 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
939 an external symbol for a non-shared, non-relocatable link.
940
9412000-07-03 Nick Clifton <nickc@redhat.com>
942
99d6ac2f
NC
943 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
944 is an external symbol.
e4202681
NC
945 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
946 external symbol.
947
289c596c
NC
9482000-07-03 Kazu Hirata <kazu@hxi.com>
949
950 * reloc16.c: Fix formatting.
951
dd745cfa
UC
9522000-07-01 Koundinya K <kk@ddeorg.soft.net>
953
954 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
955 to add a new target for traditional mips i.e
956 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
957 * configure.in: Likewise.
958 * configure: Rebuild.
959 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
960 bfd_target_vector.
961 (bfd_elf32_tradlittlemips_vec): Likewise.
962 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
963 to see that elfNN_bed does not get redefined even if the target file
964 is included twice for a chip. See elf32-mips.c.
965
0bdaf48b
AM
9662000-07-01 Alan Modra <alan@linuxcare.com.au>
967
968 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
969 (CLEANFILES): Add DEPA.
970 * Makefile.in: Regenerate.
971
c75df619
DD
9722000-06-30 DJ Delorie <dj@cygnus.com>
973
974 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
975 can't assume the PE header is at 0x80.
976
b4b415e5
DD
9772000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
978
cda43a1d 979 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
b4b415e5 980
addd3117
DD
9812000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
982
983 * go32stub.h: Update stub.
984
65aa24b6
NC
9852000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
986
987 * archures.c (bfd_mach_avr5): Define.
988 * bfd-in2.h (bfd_mach_avr5): Define.
989 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
990 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
991 (compatible): Update comment. Add missing test.
992 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
993 for avr2 and avr4. Simplify 8K wrap code.
994 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
995 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
996
cc040812
NC
9972000-06-26 Kazu Hirata <kazu@hxi.com>
998
999 * coff-h8300.c: Fix formatting.
1000 * cpu-h8300.c: Likewise.
1001
b1bcb49f
AO
10022000-06-24 Alexandre Oliva <aoliva@redhat.com>
1003
1004 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
1005 for local symbols whose names are unknown.
1006
1581f8c9
AM
10072000-06-22 Alan Modra <alan@linuxcare.com.au>
1008
1009 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1010 find one.
1011 * Makefile.in: Regenerate.
1012 * doc/Makefile.in: Regenerate.
1013
bbeb2e03
L
10142000-06-20 H.J. Lu <hjl@gnu.org>
1015
1016 * Makefile.am: Rebuild dependency.
1017 * Makefile.in: Rebuild.
1018
8a20f077
UC
10192000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1020
1021 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
1022 (elf_backend_copy_indirect_symbol): Map to the new function.
1023
2ab47eed
AM
10242000-06-20 Alan Modra <alan@linuxcare.com.au>
1025
1026 * archive.c (normalize): Correct pointer comparison when checking
1027 for backslashes.
1028 (bfd_bsd_truncate_arname): Likewise.
1029 (bfd_gnu_truncate_arname): Likewise.
1030
b305ef96
UC
10312000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
1032
1033 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
1034 sections elf_{text,data}_{section,symbol}.
1035 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
1036 (_bfd_mips_elf_hide_symbol): New function.
1037 (elf_backend_hide_symbol): Map to the new function.
1038 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
1039 definitions of mips_elf_{text,data}_{section,symbol}.
1040 (mips_elf_local_relocation_p): Try to find the direct symbol
1041 based on new check_forced argument.
1042 (mips_elf_calculate_relocation): Use new version of
1043 mips_elf_local_relocation_p.
1044 (mips_elf_relocate_section): Likewise.
1045 (_bfd_mips_elf_relocate_section): Likewise.
1046 (mips_elf_sort_hash_table): Only assert that have enough GOT
1047 space.
1048 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
1049 entry if the relocation based on the new external argument.
1050 (mips_elf_create_dynamic_relocation): Assert that we have a
1051 section contents allocated where we can swap out the dynamic
1052 relocations.
1053 (mips_elf_calculate_relocation): Find the real hash-table entry
1054 correctly by using h->root.root.type. Only create a dynamic
1055 relocation entry if the symbol is defined in a shared library.
1056 Create an external GOT entry for the GOT16 relocation if the
1057 symbol was forced local.
1058 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
1059 dynamic index if the symbol was forced local.
1060
10612000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1062
1063 * elf32-mips.c: Fix typos in comments.
1064
1605fc4f
MK
10652000-06-19 Mark Kettenis <kettenis@gnu.org>
1066
1067 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
1068 CORE_VERSION_1.
1069
60bcf0fa
NC
10702000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1071
1072 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
1073 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
1074 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
1075 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
1076 (bfd_elf32_m68hc11_vec): Likewise.
1077 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
1078 Supports 68hc11 & 68hc12 at the same time.
1079 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
1080 bfd_target_vector.
1081 (bfd_elf32_m68hc11_vec): Likewise.
1082 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
1083 * archures.c (bfd_m68hc12_arch): Define and register in global list
1084 (bfd_m68hc11_arch): Likewise.
1085 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
1086 BFD_RELOC_M68HC11_3B): Define.
1087 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
1088 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
1089
f41cbf03
UC
10902000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
1091
1092 * elf_bfd.h (struct elf_backend_data): Add info argument to
1093 elf_backend_hide_symbol.
1094 (_bfd_elf_link_hash_hide_symbol): Likewise.
1095 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
1096 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
1097 * elflink.h (elf_link_add_object_symbols): Likewise.
1098 (elf_link_assign_sym_version): Likewise.
1099
689be717
L
11002000-06-18 H.J. Lu <hjl@gnu.org>
1101
1102 * coff-i386.c (coff_i386_reloc): Don't return in case of
1103 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
1104 Compensate PE relocations when linking with non-PE object
1105 files to generate a non-PE executable.
1106
9a8f3bb7
UC
11072000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
1108
1109 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
1110 GOT entries if we're doing a static link or -Bsymbolic link.
1111
32f0787a
UC
11122000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
1113
1114 * elflink.h (elf_link_adjust_relocs): Check for and call backend
1115 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
1116 available.
1117 (elf_link_output_relocs): Likewise.
1118 (elf_reloc_link_order): Likewise.
1119
87f33987
ND
11202000-06-16 Nicholas Duffek <nsd@redhat.com>
1121
1122 * archures.c (enum bfd_architecture): #define constants for
1123 PowerPc and RS6000 machine numbers.
1124 * bfd-in2.h: Regenerate.
1125 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
1126 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
1127 and RS6000 machine numbers using #defined constants from
1128 archures.c.
1129 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
1130 machine numbers using #defined constants from archures.c. Add
1131 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
1132 64-bit words in 620 entry.
1133 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
1134 RSC, and RS2.
1135 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
1136
a2fdf270
ND
11372000-06-16 Nicholas Duffek <nsd@cygnus.com>
1138
1139 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
1140 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
1141 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
1142
9bd09e22
ND
11432000-06-16 Nicholas Duffek <nsd@redhat.com>
1144
1145 * bfd-in.h (bfd_family_coff): Define.
1146 * bfd-in2.h: Regenerate.
1147 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
1148 coff_find_nearest_line): Check COFFness using bfd_family_coff()
1149 instead of bfd_target_coff_flavour.
1150 * cofflink.c (_bfd_coff_final_link): Likewise.
1151 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
1152 exclude XCOFF files.
1153 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
1154 Likewise.
1155 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
1156 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
1157 * xcofflink.c (XCOFF_XVECP): Delete.
1158 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
1159 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
1160 bfd_xcoff_record_link_assignment,
1161 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
1162 check for bfd_target_xcoff_flavour.
1163
59d9f049
ND
11642000-06-16 Nicholas Duffek <nsd@redhat.com>
1165
1166 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
1167 files on AIX 4.3.
1168 (read_hdr): New function.
1169 (rs6000coff_core_p): Store mstsave or __context64 struct instead
1170 of trying to extract individual registers. Set abfd->arch_info
1171 to match the architecture that created the core file.
1172 (rs6000coff_get_section_contents): Delete.
1173 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
1174
63e39178
L
11752000-06-14 H.J. Lu <hjl@gnu.org>
1176
1177 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
1178 is NULL.
1179
bcef29e6
L
11802000-06-13 H.J. Lu <hjl@gnu.org>
1181
1182 * configure: Regenerate.
1183
26bfd1c0
JR
1184Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1185
1186 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
1187 armpei_little_vec.
1188
946efd95
DB
11892000-06-08 David O'Brien <obrien@FreeBSD.org>
1190
1191 * configure.in (VERSION): Update to show this is the CVS mainline.
1192
1b452ec6
AM
11932000-06-07 Alan Modra <alan@linuxcare.com.au>
1194
1195 * elf32-d10v.c: Include elf/d10v.h
1196 (enum reloc_type): Delete.
1197 * elf32-d30v.c: Include elf/d30v.h
1198 (enum reloc_type): Delete.
1199
1200 * Makefile.am: Run "make dep-am" to regenerate dependencies.
1201 * Makefile.in: Regenerate.
1202
1203 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
dc47f327
AM
1204 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
1205 move HOWTOs into elf_howto_table.
1b452ec6 1206 (R_386_standard, R_386_ext_offset): Define.
dc47f327 1207 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
1b452ec6 1208 (elf_i386_reloc_type_lookup): Modify calculation of index into
dc47f327 1209 elf_howto_table since we've removed the padding.
1b452ec6
AM
1210 (elf_i386_info_to_howto_rel): Likewise.
1211 (elf_i386_relocate_section): Likewise.
1212
e0ebfc61
MS
12132000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
1214
1215 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
1216
9d6eee78
L
12172000-06-05 H.J. Lu <hjl@gnu.org>
1218
1219 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
1220 an error when seeing an undefined symbol with hidden/internal
1221 attribute. It is handled in *_relocate_section ().
1222
94b6c40a
L
12232000-06-05 H.J. Lu <hjl@gnu.org>
1224
1225 * elflink.h (elf_fix_symbol_flags): Follow the link for the
1226 indirect symbol for the ELF_LINK_NON_ELF bit.
1227 (elf_link_output_extsym): Don't output the indirect symbol even
1228 if the ELF_LINK_NON_ELF bit is set.
1229
0af288f3
C
12302000-06-01 J.T. Conklin <jtc@redback.com>
1231
1232 * config.bfd (i[3456]86-*-netbsdelf*): New target.
1233 (i[3456]86-*-netbsdaout*): New target.
1234 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
1235 (i[3456]86-*-openbsd*): Likewise.
1236
12df4d3c
AC
1237Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
1238
1239 * trad-core.c: From hpux-core.c, include <dirent.h> or
1240 <sys/ndir.h> when possible.
1241
c0ae4ccc
NC
12422000-05-31 Nick Clifton <nickc@cygnus.com>
1243
1244 * opintl.h (_(String)): Explain why dgettext is used instead
1245 of gettext.
1246
321fa097
UD
12472000-05-31 Ulrich Drepper <drepper@redhat.com>
1248
1249 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
1250 definitions. We must not assume they are sorted in the file
1251 according to their index numbers.
1252
70d72e0e
AM
12532000-05-31 Alan Modra <alan@linuxcare.com.au>
1254
1255 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
1256 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
1257 R_PARISC_DIR17F are for absolute branches; Handle them as such.
1258
96f6d4c4
NC
12592000-05-30 Nick Clifton <nickc@cygnus.com>
1260
1261 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
1262 80960CA, 80960MC as valid machine names.
1263
38048eb9
L
12642000-05-30 H.J. Lu <hjl@gnu.org>
1265
1266 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
1267 visibility bits if the symbol is undefined. Correctly handle
1268 weak undefined symbols with hidden and internal attributes.
1269
1270 * elflink.h (elf_link_add_object_symbols): Always turn the
1271 symbol into local if it has the hidden or internal attribute.
1272
8c763017
PB
12732000-05-29 Philip Blundell <philb@gnu.org>
1274
1275 * ppcboot.c: Add packed attribute if compiling with GCC.
1276
1ae00f9d
AM
12772000-05-29 Anatoly Vorobey <mellon@pobox.com>
1278
1279 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
1280
4a938328
MS
12812000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
1282
1283 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
1284 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
1285 corefile on a 64-bit (Sparc Solaris) host. Also clean up
1286 a few old comments.
1287
5af11cab
AM
12882000-05-26 Alan Modra <alan@linuxcare.com.au>
1289
2114f57b
AM
1290 * Makefile.am: Update dependencies with "make dep-am"
1291 * Makefile.in: Regenerate.
1292
5af11cab
AM
1293 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
1294 bindtextdomain): Replace defines with those from intl/libgettext.h
1295 to quieten gcc warnings.
1296
12972000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1298
1299 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
1300
1301 * archive.c (normalize, bfd_bsd_truncate_arname,
1302 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
1303 file names with backslashes.
1304
1305 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
1306 before opening it.
1307
1308 * sysdep.h: Include filenames.h.
1309
b6cdd0fd
AM
13102000-05-26 Alan Modra <alan@linuxcare.com.au>
1311
1312 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
1313
f7775d95
JJ
13142000-05-26 Jakub Jelinek <jakub@redhat.com>
1315
1316 * elf64-sparc.c (sparc64_elf_relax_section): New.
1317 (sparc64_elf_relocate_section): Optimize tail call into branch always
1318 if possible.
1319 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1320 (elf32_sparc_relax_section): New.
1321
6c08d697
JJ
13222000-05-26 Jakub Jelinek <jakub@redhat.com>
1323
1324 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
1325 Remove unusued variables.
1326 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
1327 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
1328 previous fix, so that shared libs really don't influence targets
1329 extension mask and memory model.
1330
edb72b3b
L
13312000-05-23 H.J. Lu <hjl@gnu.org>
1332
1333 * elf64-alpha.c (elf64_alpha_relocate_section): Check
1334 h->root.other not h->other.
ba09750c
L
1335 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1336
1337 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
edb72b3b 1338
3a27a730
L
13392000-05-23 H.J. Lu <hjl@gnu.org>
1340
1341 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
1342 undefined symbol with the non-default visibility attributes.
1343 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
1344 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
1345 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1346 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1347 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1348 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1349 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1350 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1351 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1352 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
1353 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1354
748abff6
RH
13552000-05-22 Richard Henderson <rth@cygnus.com>
1356
1357 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
1358 PCREL22, PCREL64I. Zero size of special relocs.
1359 (elf64_ia64_reloc_type_lookup): Likewise.
1360 (USE_BRL, oor_brl, oor_ip): New.
1361 (elf64_ia64_relax_section): New.
1362 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
1363 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
1364 (elf64_ia64_relocate_section): Likewise.
1365 (bfd_elf64_bfd_relax_section): New.
1366 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
1367 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
1368 * bfd-in2.h, libbfd.h: Regenerate.
1369
fb67355a
NC
13702000-05-22 Nick Clifton <nickc@cygnus.com>
1371
1372 * configure.in : Add peigen.lo to MIPS PE targets.
1373 * configure: Regenerate.
1374
1fe494a5
NC
13752000-05-22 Momchil Velikov <velco@fadata.bg>
1376
1377 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
748abff6 1378 only if it is known for both input and output bfds. Separate
1fe494a5
NC
1379 error message strings as in some languages, it may be necessary
1380 to change more than one place in the string to change between
1381 'big' and 'little'.
1382
1383 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
1384 endianess checks, call _bfd_generic_verify_endian_match() instead.
1385
1386 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
1387
1388 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
1389
1390 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
1391 endianess before checking bfd flavours.
1392
32c092c3
L
13932000-05-22 H.J. Lu <hjl@gnu.org>
1394
1395 * elflink.h (elf_link_output_extsym): Clear the visibility
1396 field for symbols not defined locally.
1397
df6d9773
JL
13982000-05-18 Alan Modra <alan@linuxcare.com.au>
1399
1400 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
1401 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
1402 (hppa_rebuild_insn): Mask immediate bits here instead.
1403 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
1404
7ad34365
NC
14052000-05-18 Momchil Velikov <velco@fadata.bg>
1406
1407 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
1408 relocs for an executable, ensure that they are virtual addresses.
1409
d1dab720
JL
1410Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com)
1411
1412 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
1413
a712da20
NC
14142000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1415 Rick Gorton <gorton@scrugs.lkg.dec.com>
1416
aa76cae8 1417 * elflink.h: Add emitrelocations support: when enabled, relocation
a712da20
NC
1418 information and relocation sections are put into final output
1419 executables. If the emitrelocations flag is set, do the following:
1420 (elf_bfd_final_link): Emit relocation sections.
1421 (elf_link_input_bfd): Compute relocation section contents.
1422 (elf_gc_sections): Don't clean relocation sections.
1423
aa76cae8 14242000-05-16 Catherine Moore <clm@cygnus.com>
10febd84
CM
1425
1426 * som.c (som_decode_symclass): Recognize weak symbols.
1427
db8503c4
AM
14282000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
1429
1430 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
1431 read idata section only from dataoff.
1432 (pe_print_edata): Correctly check for valid eat_member.
1433
851cde10
JR
1434Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1435
1436 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
1437
1bde2d57
PB
14382000-05-14 Philip Blundell <philb@gnu.org>
1439
1440 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
1441
a76b448c
AM
14422000-05-12 Alan Modra <alan@linuxcare.com.au>
1443
9ee25201
AM
1444 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
1445
a76b448c
AM
1446 * peigen.c (pe_print_idata): Look for .idata section and print
1447 info even if data directory has zero entries. Read idata section
1448 starting from dataoff, and adjust all data offsets to suit. Cast
1449 all bfd_vma vars to unsigned long before passing to fprintf.
1450 * peigen.c (pe_print_edata): Similarly, look for .edata section
1451 and print info even if data directory has zero entries. Cast
1452 all bfd_vma vars to unsigned long before passing to fprintf.
1453
1454 From Szabolcs Szakacsits <szaka@F-Secure.com>
1455 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
1456 directory size which may be bogus.
1457 * peigen.c (pe_print_edata): Similarly.
1458
72730e0c
AM
14592000-05-09 Alan Modra <alan@linuxcare.com.au>
1460
1461 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
1462 section is empty.
1463 (copy_private_bfd_data): Allow for space possibly taken up by elf
1464 headers when calculating segment physical address from lma.
1465
8181c403
AM
14662000-05-08 Alan Modra <alan@linuxcare.com.au>
1467
bfde9f99
AM
1468 * versados.c (versados_scan): Init stringlen and pass_2_done.
1469
b35efbcd
AM
1470 * trad-core.c (trad_unix_core_file_p): Return
1471 bfd_error_wrong_format rather than bfd_error_file_truncated.
1472
8181c403
AM
1473 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
1474 add_data_entry. DataDirectory virtual address is relative.
1475 (pe_print_idata): Account for relative DataDirectory virtual
1476 addresses. Don't trash datasize inside POWERPC_LE_PE code.
1477 (pe_print_edata): Similarly.
1478
1479 From Szabolcs Szakacsits <szaka@F-Secure.com>
1480 * peigen.c (dir_names): Add Delay Import Directory.
1481 (pe_print_idata): Always search for bfd section containing
1482 idata address rather than looking up section name. Print this
1483 section name rather than .idata.
1484 (pe_print_edata): Similarly. Also print some fields as %08lx.
1485 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
1486 Win32Version.
1487
2c38bc20
CP
1488Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com>
1489
1490 * xcoff.h: Rename to xcoff-target.h
1491 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
1492 * coff-rs6000.c: Ditto.
1493 * coff64-rs6000.c: Ditto.
1494 * coff-pmac.c: Ditto.
1495 * Makefile.in: Regenerate.
1496
c6664dfb
CP
1497Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com>
1498
1499 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
1500 Change U802TOC64MAGIC to U803XTOCMAGIC.
1501
3425c182
MS
15022000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
1503
1504 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
1505 * bfd-in.h: Prototype bfd_elf_get_arch_size.
1506 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
1507
7c30ac37
AM
15082000-05-04 Alan Modra <alan@linuxcare.com.au>
1509
1510 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
1511