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