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