2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
805fc799
AM
12002-05-02 Alan Modra <amodra@bigpond.net.au>
2
3 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
4 (ppc64_elf_ha_reloc): New function.
5 (ppc64_elf_brtaken_reloc): New function.
6 (ppc64_elf_sectoff_reloc): New function.
7 (ppc64_elf_sectoff_ha_reloc): New function.
8 (ppc64_elf_toc_reloc): New function.
9 (ppc64_elf_toc_ha_reloc): New function.
10 (ppc64_elf_toc64_reloc): New function.
11 (ppc64_elf_unhandled_reloc): New function.
12 (ppc64_elf_howto_raw): Use the above.
13 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
14 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
15 <R_PPC64_SECTOFF_DS>: Likewise.
16 (IS_ABSOLUTE_RELOC): Update.
17 (struct ppc_link_hash_table): Add have_undefweak.
18 (ppc64_elf_link_hash_table_create): Init.
19 (func_desc_adjust): Set have_undefweak.
20 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
21 add the .sfpr blr when have_undefweak.
22 (ppc64_elf_setup_section_lists): Check hash table flavour.
23 (ppc64_elf_next_input_section): Move output_section->owner test to
24 ppc64elf.em.
25 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
26 and relocatable test. Return TOCstart and don't set elf_gp.
27 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
28 offset calculation. Add assert on weak sym branch tweaks.
29 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
30 (ppc64_elf_toc): Declare.
31 (ppc64_elf_next_input_section): Update.
32
818c39a3
AM
332002-05-01 Alan Modra <amodra@bigpond.net.au>
34
35 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
36 file_name.
37
721956f4
AM
382002-05-01 Alan Modra <amodra@bigpond.net.au>
39
40 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
41 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
42 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
43 call branches. Correct undefined weak destination.
44 (ppc64_elf_func_desc_adjust): Always create at least one blr in
45 .sfpr, and correct case where either only savef* or restf* is
46 needed.
47
48 Long branch stubs, multiple stub sections.
49 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
50 (ppc64_elf_next_input_section): Declare.
51 * elf64-ppc.c: Move linker-only prototypes.
52 (STUB_SUFFIX): Define.
53 (enum ppc_stub_type): New.
54 (struct ppc_stub_hash_entry): New.
55 (struct ppc_branch_hash_entry): New.
56 (struct ppc_link_hash_entry): Add stub_cache, oh.
57 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
58 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
59 Rename plt_overflow to stub_error.
60 (ppc_stub_hash_lookup): Define.
61 (ppc_branch_hash_lookup): Define.
62 (stub_hash_newfunc): New function.
63 (branch_hash_newfunc): New function.
64 (link_hash_newfunc): Init new fields.
65 (ppc64_elf_link_hash_table_create): Likewise.
66 (ppc64_elf_link_hash_table_free): New function.
67 (ppc_stub_name): New function.
68 (ppc_get_stub_entry): New function.
69 (ppc_add_stub): New function.
70 (create_linkage_sections): Use bfd_make_section_anyway. Create
71 .branch_lt and .rela.branch_lt sections. Don't create .stub.
72 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
73 and set up for plt call stubs. Link func and func desc syms.
74 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
75 (func_desc_adjust): Avoid hash lookup when func desc sym available
76 via shortcut, and set links when processing.
77 (ppc64_elf_hide_symbol): Likewise.
78 (allocate_dynrelocs): Don't allocate stub section here.
79 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
80 Remove sstub code.
81 (ppc_type_of_stub): New function.
82 (build_one_stub): Delete.
83 (ppc_build_one_stub): New function.
84 (ppc_size_one_stub): New function.
85 (ppc64_elf_setup_section_lists): New function.
86 (ppc64_elf_next_input_section): New function.
87 (group_sections): New function.
88 (get_local_syms): New function.
89 (ppc64_elf_size_stubs): Rewrite.
90 (ppc64_elf_build_stubs): Rewrite.
91 (ppc64_elf_relocate_section): Look up stub entry for REL24
92 relocs. Don't propagate REL14* to dynamic objects. Look for long
93 branch stubs if REL14* or REL24 relocs won't reach.
94 (bfd_elf64_bfd_link_hash_table_free): Define.
95
09c2219b
MM
962002-04-30 Mark Mitchell <mark@codesourcery.com>
97
98 * bfd/config.bfd: Add support for powerpc-*-windiss.
99
07b678c0
TR
1002002-04-30 Tom Rix <trix@redhat.com>
101
102 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
103 symbol names into the hash table.
104
dbe341c6
TR
1052002-04-28 Tom Rix <trix@redhat.com>
106
107 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
108 calulating relocations.
109 (xcoff_complain_overflow) : Function table for relocation errors.
110 (xcoff_ppc_relocate_section): Use relocation and complain function
111 tables.
112 (xcoff_complain_overflow_unsigned_func): New complain function.
113 (xcoff_complain_overflow_signed_func): Same.
114 (xcoff_complain_overflow_bitfield_func): Same.
115 (xcoff_complain_overflow_dont_func): Same.
116 (xcoff_reloc_type_crel): New recot function.
117 (xcoff_reloc_type_br): Same.
118 (xcoff_reloc_type_ba): Same.
119 (xcoff_reloc_type_toc): Same.
120 (xcoff_reloc_type_rel): Same.
121 (xcoff_reloc_type_neg): Same.
122 (xcoff_reloc_type_pos): Same.
123 (xcoff_reloc_type_fail): Same.
124 (xcoff_reloc_type_noop): Same.
125 * libxcoff.h : Declare common parts for xcoff64.
126 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
127 and complain function tables.
128
985142a4
AM
1292002-04-28 Alan Modra <amodra@bigpond.net.au>
130
131 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
132 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
133
eba91044
AM
1342002-04-26 Alan Modra <amodra@bigpond.net.au>
135
e54fdaa5
AM
136 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
137 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
138
a50c1845
AM
139 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
140 same as the output before calling elf_link_input_bfd.
141
eba91044
AM
142 * coffcode.h (coff_compute_section_file_positions): Set
143 section_tail after shuffling section list.
144
3c25c5f6
NC
1452002-04-24 Christian Groessler <chris@groessler.org>
146
147 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
148 addresses are 23bit with a special layout, not plain 32bit
149 values. Prevent relocation of immediate values.
150
40d32fc6
CD
1512002-04-24 Chris G. Demetriou <cgd@broadcom.com>
152
153 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
154 MIPS-16 ASE flags are set, print something to indicate that.
155
067fa4a6
AM
1562002-04-23 Alan Modra <amodra@bigpond.net.au>
157
158 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
159 under which a plt call stub is used.
160 (final_link_relocate): Similarly.
161 (allocate_plt_static): Clear h-plabel except when plt entry is
162 exclusively used for a plabel.
163 (allocate_dynrelocs): Use the above to simplify plt sizing.
164 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
165 (elf32_hppa_link_hash_table_create): Init.
166 (BL22_RP): Define.
167 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
168 (elf32_hppa_check_relocs): Set has_22bit_branch.
169
170 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
171 (final_link_relocate): Likewise.
172
af40ce3c
JJ
1732002-04-22 Jakub Jelinek <jakub@redhat.com>
174
175 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
176 search table if some FDE is DW_EH_PE_aligned encoded either.
177 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
178
09ae86c2
JJ
1792002-04-22 Richard Smith <richard@ex-parrot.com>
180 Jakub Jelinek <jakub@redhat.com>
181
182 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
183 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
184 encoded personality.
185 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
186 for CIE/FDE removal.
187
deeb2cd7
TR
1882002-04-20 Tom Rix <trix@redhat.com>
189
190 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
191
99dc0092
AM
1922002-04-20 Alan Modra <amodra@bigpond.net.au>
193
aa3d5824
AM
194 * archures.c (bfd_lookup_arch): Move the list order comment..
195 (struct bfd_arch_info): ..to where it belongs.
196 * bfd-in2.h: Regenerate.
197
99dc0092
AM
198 * archures.c (bfd_lookup_arch): Add comment on list order.
199 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
200 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
201 is always at head of list.
202
7831a775
NC
2032002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
204
205 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
206 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
207 definition of these functions for ARM_WINCE builds as they are
208 not used.
209 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
210 for ARM_WINCE builds.
211
2122002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
213
214 * coff-arm.c (bfd_arm_process_before_allocation):
215
2162002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
a44d7f9c
JR
217
218 * cpu-sh.c (scan_mach): Delete.
219 (arch_info_struct): Replace scan_mach with bfd_default_scan.
220 (bfd_sh_arch): Likewise.
221
3d8dbe36
NC
2222002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
223
224 * ihex.c (ihex_write_object_contents): Fix check for records
225 crossing 64K boundaries.
226
4ab82700
AM
2272002-04-16 Alan Modra <amodra@bigpond.net.au>
228
229 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
230 type rather than just assuming entries are ELF.
231 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
232 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
233 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
234 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
235 rather than elf_link_hash_entry.
236
036fe0fe
RH
2372002-04-15 Richard Henderson <rth@redhat.com>
238
239 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
240 n32 binaries.
241
c4f3d130
NC
2422002-04-15 Michael Snyder <msnyder@redhat.com>
243
244 * opncls.c (bfd_close): Write contents if writeable.
245 Minor formatting tidy-ups.
246
4ab82700 2472002-04-15 Alan Modra <amodra@bigpond.net.au>
27242387
AM
248
249 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
250
0c04d169
MS
2512002-04-12 Michael Snyder <msnyder@redhat.com>
252
253 * bfd-in.h (bfd_get_section_lma): New access macro.
254 Minor white-space fix-up.
255
89d4966f
AM
2562002-04-12 Alan Modra <amodra@bigpond.net.au>
257
258 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
259 header pad.
260
8d0da3c2
DD
2612002-04-09 DJ Delorie <dj@redhat.com>
262
263 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
264
05793179
NC
2652002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
266
267 * coffcode.h (coff_read_word): New.
268 (coff_compute_checksum): New.
269 (coff_apply_checksum): New.
270 (coff_write_object_contents): Call coff_apply_checksum () to
271 apply checksum to PE image.
272
46fe4e66
AM
2732002-04-08 Randolph Chung <tausq@debian.org>
274
275 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
276 (elf32_hppa_final_link): Split out sorting logic to..
277 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
278 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
279
3b5b409c
AC
2802002-04-07 Andrew Cagney <ac131313@redhat.com>
281
282 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
283 pattern.
284 * configure: Re-generate.
285
ac7b6ceb
AC
2862002-04-07 Andrew Cagney <ac131313@redhat.com>
287
288 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
289 is greater or equal to 4.3.3.
290 * configure: Regenerate.
291 Fix PR gdb/344.
292
44aa49bb
HPN
2932002-04-05 Hans-Peter Nilsson <hp@axis.com>
294
295 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
296 R_CRIS_32_PCREL>: Fix typo in name.
297 (cris_elf_check_relocs): Always create .rela.got here when
298 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
299 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
300 assume it's created.
301
e2d34d7d
DJ
3022002-04-04 Daniel Jacobowitz <drow@mvista.com>
303
304 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
305 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
306 define.
307 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
308 * bfd.c (bfd_link_hash_table_free): Define.
309 * binary.c (binary_bfd_link_hash_table_free): Define.
310 * bout.c (b_out_bfd_link_hash_table_free): Define.
311 * coff-rs6000.c (rs6000coff_vec): Include
312 _bfd_generic_link_hash_table_free.
313 (pmac_xcoff_vec): Likewise.
314 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
315 (aix5coff64_vec): Likewise.
316 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
317 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
318 (bfd_elf32_bfd_link_hash_table_free): Define.
319 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
320 (bfd_elf32_bfd_link_hash_table_free): Define.
321 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
322 define.
323 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
324 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
325 * ieee.c (ieee_bfd_link_hash_table_free): Define.
326 * ihex.c (ihex_bfd_link_hash_table_free): Define.
327 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
328 (_bfd_generic_link_hash_table_free): Add prototype.
329 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
330 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
331 * linker.c (_bfd_generic_link_hash_table_free): New function.
332 * mmo.c (mmo_bfd_link_hash_table_free): Define.
333 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
334 * oasys.c (oasys_bfd_link_hash_table_free): Define.
335 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
336 * som.c (som_bfd_link_hash_table_free): Define.
337 * srec.c (srec_bfd_link_hash_table_free): Define.
338 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
339 * versados.c (versados_bfd_link_hash_table_free): Define.
340 * vms.c (vms_bfd_link_hash_table_free): New function.
341 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
342
343 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
344 instead of bfd_alloc.
345 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
346 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
347 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
348 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
349 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
350 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
351 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
352 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
353 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
354 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
355 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
356 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
357 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
358 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
359 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
360 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
361 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
362 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
363 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
364 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
365 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
366 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
367 * m68klinux.c (linux_link_hash_table_create): Likewise.
368 * sparclinux.c (linux_link_hash_table_create): Likewise.
369 * sunos.c (sunos_link_hash_table_create): Likewise.
370 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
371
372 * targets.c: Add _bfd_link_hash_table_free to xvec.
373
374 * bfd-in2.h: Regenerate.
375 * libbfd.h: Regenerate.
376 * libcoff.h: Regenerate.
377
830629ab
AM
3782002-04-04 Alan Modra <amodra@bigpond.net.au>
379
380 * dep-in.sed: Cope with absolute paths.
381 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
382 Run "make dep-am".
383 * Makefile.in: Regenerate.
384 * coff-arm.c: Fix copyright date.
385 * cpu-h8300.c: Likewise.
386 * cpu-i370.c: Likewise.
387 * cpu-s390.c: Likewise.
388 * cpu-mips.c: Likewise.
389 * po/SRC-POTFILES.in: Regenerate.
390
c6e90b02
TS
3912002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
392
393 * Makefile.am: Add elfxx-mips.c to the known backends.
394 (elf32-mips.lo): remove dependency to coff/external.h.
395 * Makefile.in: Regenerate.
396 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
397 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
398 accordingly.
399 * configure: Regenerate.
400 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
401 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
402 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
403 MIPS specific backend functions.
404 * elf32-mips.c: Moved most code to elfxx-mips.c.
405 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
406 static.
407 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
408 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
409 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
410 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
411 interface to allow selection of the right REL or RELA howto table.
412 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
413 static. Let it refuse n32 objects.
414 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
415 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
416 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
417 (elf32_mips_ignore_discarded_relocs): Rename from
418 _bfd_elf32_mips_ignore_discarded_relocs.
419 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
420 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
421 (elf_mips_howto_table_rela): Remove.
422 * elf64-mips.c: Moved most code to elfxx-mips.c.
423 (bfd_elf64_bfd_reloc_type_lookup): Make static.
424 (mips_elf64_rtype_to_howto): New function.
425 (mips_elf64_object_p): Likewise.
426 (elf64_mips_irix_compat): Likewise.
427 * elfxx-mips.c: New file containing common code merged together from
428 elf32-mips.c and elf64-mips.c.
429 * elfxx-mips.h: New file containing MIPS specific prototypes from
430 elf-bfd.h.
431 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
432 elf_backend_mips_rtype_to_howto.
433
d8dce692
AM
4342002-04-04 Alan Modra <amodra@bigpond.net.au>
435
436 * srec.c (MAXCHUNK, Chunk): Revise comments.
437 (srec_write_record): Correct buffer size.
438 (srec_write_header): Do without intermediate buffer.
439 (srec_write_section): Validate Chunk.
440 (srec_write_terminator): Pass NULL instead of dummy buffer.
441 (srec_write_symbols): Pass file and symbol names directly to
442 bfd_bwrite so sprintf won't overflow buffer.
443
b88a866a
JJ
4442002-04-03 Jakub Jelinek <jakub@redhat.com>
445
446 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
447 PC relative relocs against hidden symbols.
448 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
449
d7866f04
AM
4502002-04-03 Alan Modra <amodra@bigpond.net.au>
451
452 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
453 LMAs, loop over segments until p_vaddr and p_memsz specify an
454 extent enclosing the section.
455
9e81ee67
NC
4562002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
457
458 * ihex.c (ihex_write_object_contents): Do not allow records to
459 cross a 64K boundary - wrap if necessary.
460
d2b64500
JT
4612002-04-01 Nathan Williams <nathanw@wasabisystems.com>
462
463 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
464 which caused the returned LWP ID to always be 0.
465
e36f7d53
RH
4662002-04-01 Richard Henderson <rth@redhat.com>
467
468 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
469 (elf32_sparc_relocate_section): Use it to figure out when to
470 initialize .got entries.
471 * elf64-sparc.c: Similarly.
472
e92d460e
AM
4732002-03-28 Alan Modra <amodra@bigpond.net.au>
474
475 * linker.c (link_action): Ignore duplicate warning syms.
476 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
477 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
478 (elf_adjust_dynamic_symbol): Likewise.
479 (elf_export_symbol): Likewise.
480 (elf_link_find_version_dependencies): Likewise.
481 (elf_link_assign_sym_version): Likewise.
482 (elf_link_sec_merge_syms): Likewise.
483 (elf_link_output_extsym): Likewise.
484 (elf_gc_sweep_symbol): Likewise.
485 (elf_gc_propagate_vtable_entries_used): Likewise.
486 (elf_gc_smash_unused_vtentry_relocs): Likewise.
487 (elf_gc_allocate_got_offsets): Likewise.
488 (elf_collect_hash_codes): Likewise.
489 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
490 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
491 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
492 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
493 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
494 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
495 (elf_cris_discard_excess_dso_dynamics): Likewise.
496 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
497 (mark_PIC_calls): Likewise.
498 (allocate_plt_static): Likewise.
499 (allocate_dynrelocs): Likewise.
500 (readonly_dynrelocs): Likewise.
501 * elf32-i386.c (allocate_dynrelocs): Likewise.
502 (readonly_dynrelocs): Likewise.
503 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
504 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
505 * elf32-mips.c (mips_elf_output_extsym): Likewise.
506 (mips_elf_sort_hash_table_f): Likewise.
507 (mips_elf_check_mips16_stubs): Likewise.
508 * elf32-s390.c (allocate_dynrelocs): Likewise.
509 (readonly_dynrelocs): Likewise.
510 * elf32-sh.c (sh_elf_discard_copies): Likewise.
511 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
512 (xstormy16_relax_plt_realloc): Likewise.
513 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
514 (elf64_alpha_output_extsym): Likewise.
515 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
516 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
517 (mips_elf64_check_mips16_stubs): Likewise.
518 (mips_elf64_output_extsym): Likewise.
519 * elf64-ppc.c (func_desc_adjust): Likewise.
520 (allocate_dynrelocs): Likewise.
521 (readonly_dynrelocs): Likewise.
522 * elf64-s390.c (allocate_dynrelocs): Likewise.
523 (readonly_dynrelocs): Likewise.
524 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
525 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
526 (readonly_dynrelocs): Likewise.
527 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
528 * aoutx.h (aout_link_write_other_symbol): Likewise.
529 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
530 (_bfd_coff_write_global_sym): Likewise.
531 * i386linux.c (linux_tally_symbols): Likewise.
532 * m68klinux.c (linux_tally_symbols): Likewise.
533 * sparclinux.c (linux_tally_symbols): Likewise.
534 * pdp11.c (aout_link_write_other_symbol): Likewise.
535 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
536 * xcofflink.c (xcoff_build_ldsyms): Likewise.
537 (xcoff_write_global_symbol): Likewise.
538
539 * cofflink.c (_bfd_coff_final_link): Formatting.
540 * cpu-mips.c (mips_compatible): Make static, prototype.
541 * elf32-i386.c (elf_i386_check_relocs): Formatting.
542 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
543 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
544 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
545 (mips_elf64_final_link): Likewise.
546 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
547 prototype.
548
2106126f
NC
5492002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
550
551 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
552 (SWAP_OUT_RELOC_OFFSET): Define.
553
b99d1833
AM
5542002-03-27 Gregory Steuck <greg@nest.cx>
555
556 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
557 terminating NULL if empty symbol table.
558 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
559
ad43ed4c
L
5602002-03-26 H.J. Lu (hjl@gnu.org)
561
562 * elflink.h (elf_link_input_bfd): Revert the last change since
563 the gcc exception handling isn't fixed yet.
564
3851fca4
L
5652002-03-26 H.J. Lu (hjl@gnu.org)
566
567 * elflink.h (elf_link_input_bfd): Complain about relocations
568 against local symbols in discarded sections.
569
b91afed7
AM
5702002-03-26 Alan Modra <amodra@bigpond.net.au>
571
572 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
573
dba143ef
AM
5742002-03-23 Alan Modra <amodra@bigpond.net.au>
575
576 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
577 section file offset for !SEC_LOAD sections.
578
ee29b9fb
RE
5792002-03-21 Richard Earnshaw <rearnsha@arm.com>
580
830629ab
AM
581 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
582 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 583
54327882
AM
5842002-03-21 Alan Modra <amodra@bigpond.net.au>
585
586 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
587 Whitespace changes.
588 * archive.c: Update copyright date.
589 * bfd-in2.h: Regenerate.
590 * libbfd.h: Regenerate.
591 * Makefile.am: Run "make dep-am"
592 * Makefile.in: Regenerate.
593 * po/SRC-POTFILES.in: Regenerate.
594
1ee24f27
DJ
5952002-03-20 Daniel Jacobowitz <drow@mvista.com>
596
597 * dwarf2.c (struct funcinfo): Move up.
598 (lookup_address_in_function_table): New argument function_ptr.
599 Set it.
600 (lookup_address_in_line_table): New argument function. If function
601 is non-NULL, use it to handle ``addr'' before the first line note of
602 the function.
603 (comp_unit_find_nearest_line): Update and swap calls to
604 lookup_address_in_function_table and lookup_address_in_line_table.
605 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
606 N_SLINE encountered if we see an N_FUN before any N_SLINE.
607
51b9608c
TR
6082002-03-20 Tom Rix <trix@redhat.com>
609
610 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
611 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
612 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
613
789c90aa
TR
6142002-03-19 Tom Rix <trix@redhat.com>
615
616 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
617 dynamic objects in archives.
618
1da54d81
HPN
6192002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
620
621 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
622 STT_NOTYPE symbols to STT_OBJECT.
623
7831a775 6242002-03-18 Jan Hubicka <jh@suse.cz>
beb43bb9
JH
625
626 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
627
eb1e0e80
NC
6282002-03-18 Tom Rix <trix@redhat.com>
629
630 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
631 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
632 * coff-rs6000 (do_pad) : New function for archive padding.
633 (do_copy) : New function for object file copying in archives.
634 (do_shared_object_padding) : New function for padding shared
635 objects to their text section alignment in archives.
636 (bfd_xcoff_ar_achive_set_magic) : Stub.
637 (xcoff_write_armap_big) : Use do_copy and do_pad.
638 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
639 do_copy and do_pad.
640 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
641 bfd_xcoff_magic_number.
642 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
643 fop.
644 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
645 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
646 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
647 * rs6000-core.c : Update copyright date.
648 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
649 csectpp.
650 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
651 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
652 (coff_set_flags) : Use bfd_xcoff_magic_number.
653 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
654 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
655 * Makefile.am : Same.
656 * config.bfd : Same.
657 * targets.c : Same.
658 * configure : Regnerate.
659 * Makefile.in : Same.
660 * bfd-in2.h : Same.
661
a1c259a1
NC
6622002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
663
664 * po/fr.po: Updated version.
665
4dae1ae7
AM
6662002-03-18 Alan Modra <amodra@bigpond.net.au>
667
668 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
669 * libbfd.h: Regenerate.
670 * archive.c (coff_write_armap): Pass on failures from
671 bfd_write_bigendian_4byte_int.
672
36b4f6e7
L
6732002-03-14 H.J. Lu <hjl@gnu.org>
674
675 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
676 error to bfd_error_nonrepresentable_section for reinit_array
677 section in DSO.
678
a1aefc76
NC
6792002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
680
a181be0a
NC
681 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
682 OR it in rather than replacing previously selected flags.
683
a1aefc76
NC
684 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
685 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
686
c119f9b8
AM
6872002-03-14 Alan Modra <amodra@bigpond.net.au>
688
689 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
690 (N): Use the above.
691 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
692 ensure reloc size matches before calling elf_link_input_bfd.
693 Add an assert to check reloc size when counting output relocs.
694
c295a511
NC
6952002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
696
697 * mmo.c (mmo_get_loc): Return NULL rather than false.
698
9ce88e60
NC
6992002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
700
701 * po/fr.po: Updated version.
702
4ddafab0
AM
7032002-03-13 Alan Modra <amodra@bigpond.net.au>
704
b74fa2cd
AM
705 * archures.c (bfd_default_compatible): Test bits_per_word.
706 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
707 bfd_default_compatible.
708 * cpu-i370.c (i370_compatible): Likewise.
709 * cpu-sparc.c (sparc_compatible): Likewise.
710 * cpu-h8300.c (compatible): Test in->arch == out->arch.
711
40b829d4
AM
712 * elflink.h: Formatting fixes.
713 (elf_link_output_extsym): Merge undefined and undef weak cases.
714
4ddafab0
AM
715 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
716 when word size of input matches output word size.
717
dd53c801
AJ
7182002-03-12 Andreas Jaeger <aj@suse.de>
719
720 * cpu-i386.c (i386_compatible): New. Use it instead of
721 bfd_default_compatible.
722
aa066ac8
L
7232002-03-07 H.J. Lu (hjl@gnu.org)
724
725 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
726 as the type for bfd_reloc_val.
727
1bf42538
JL
7282002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
729
730 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
731 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
732 (elf_hppa_final_link_relocate): Correct relocations for indirect
733 references to local data through the DLT. Fix .opd creation for
734 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
735 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
736 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
737 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
738 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
739 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
740 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
741
86eaf01e
JJ
7422002-03-05 Jakub Jelinek <jakub@redhat.com>
743
744 * merge.c (_bfd_merge_sections): Don't segfault if there
745 is nothing to merge due to GC.
746
c44233aa
AM
7472002-03-05 Alan Modra <amodra@bigpond.net.au>
748
039cc25f
AM
749 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
750 symbols that have been forced local.
751
c44233aa
AM
752 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
753 to output forced local syms for non-shared link.
754 (elf_link_output_extsym): Tweak condition for calling backend
755 adjust_dynamic_symbol so that previous behaviour is kept.
756 Whitespace changes throughout file.
757
25e27870
L
7582002-03-04 H.J. Lu <hjl@gnu.org>
759
760 * elf.c (bfd_section_from_shdr): Handle special sections,
761 .init_array, .fini_array and .preinit_array.
762 (elf_fake_sections): Likewise.
763
764 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
765 DT entry only if the section is in output for .init_array,
766 .fini_array and .preinit_array. Complain about .preinit_array
767 section in DSO.
768 (elf_bfd_final_link): Warn zero size for .init_array,
769 .fini_array and .preinit_array sections.
770
771 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
772 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
773 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
774 .preinit_array.
775
bb2a49f2
AM
7762002-03-04 Alan Modra <amodra@bigpond.net.au>
777
778 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
779 * configure: Regenerate.
780
38487e5e
TR
7812002-03-02 Tom Rix <trix@redhat.com>
782
c44233aa
AM
783 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
784 symbolic equiv.
38487e5e
TR
785 * coff-rs6000.c (xcoff_howto_table): Same.
786
30831527
RH
7872002-03-01 David Mosberger <davidm@hpl.hp.com>
788
789 * elflink.h (size_dynamic_sections): If section named
790 ".preinit_array" exists, create DT_PREINIT_ARRAY and
791 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
792 ".init_array" and ".fini_array".
793 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
794 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
795 DT_FINI_ARRAY.
796
c8e5ddc8
AM
7972002-02-26 Andrew Macleod <amacleod@cygnus.com>
798
799 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
800 dynsyms.
801
96e0dda4
AM
8022002-02-25 Alan Modra <amodra@bigpond.net.au>
803
1c5b6bf8
AM
804 * elf64-hppa.h: Update copyright date.
805
96e0dda4
AM
806 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
807 (ppc64_elf_relocate_section): Don't generate power4 style branch
808 hints for *_BRTAKEN and *_BRNTAKEN relocs.
809
0fb19cbc
JJ
8102002-02-22 Jakub Jelinek <jakub@redhat.com>
811
812 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
813 last patch.
814 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
815
c434dee6
AJ
8162002-02-21 Andreas Jaeger <aj@suse.de>
817
818 * elf64-x86-64.c: Major rework that introduces all recent changes
819 to the x86-64 backend. Get a closer match to elf32-i386.
820 (struct elf64_x86_64_dyn_relocs): Rename from
821 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
822 all users.
823 (struct elf64_x86_64_link_hash_table): Add short cuts to some
824 sections.
825 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
826 remove casts, initialize new hash members.
827 (create_got_section): New.
828 (elf64_x86_64_create_dynamic_sections): New.
829 (elf64_x86_64_copy_indirect_symbol): New.
830 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
831 relocs, .got or .relgot here but do it in allocate_dynrelocs.
832 Reference count possible .plt and .got entries. Don't test input
833 section SEC_READONLY here to try to avoid copy relocs, and keep
834 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
835 DF_TEXTREL here. Delay setting of variables until needed. Cache
836 pointer to "sreloc" section in elf_section_data. Tweak condition
837 under which .got created. Report files with bad relocation
838 section names.
839 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
840 Reference count possible .plt entries. Don't deallocate .got and
841 .relgot space here.
842 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
843 do copy reloc processing for weakdefs. Remove redundant casts and
844 aborts. Delay setting of vars until needed. Move creation of
845 dynamic symbols and allocation of .plt and .rela.plt to
846 allocate_dynrelocs. Replace BFD_ASSERT with abort.
847 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
848 (allocate_dynrelocs): New.
849 (readonly_dynrelocs): New.
850 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
851 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
852 Zero out the dynamic allocated content space.
853 (elf64_x86_64_discard_copies): Removed.
854 (elf64_x86_64_relocate_section): Make use of dynamic section
855 short-cuts. Localise vars, and delay setting. Better error
856 reporting, replace BFD_ASSERT with abort. Check
857 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
858 regular object file and tread the weak definition as the normal
859 one. Don't discard relocs for undefweak or undefined symbols and
860 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
861 relocs.
862 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
863 symbols that have been forced local. Use same test to decide if
864 we can use a relative reloc for got as relocate_section. Expand
865 SHN_UNDEF comment. Move expressions out of function calls.
866 Replace BFD_ASSERT with abort.
867 (bfd_elf64_bfd_final_link): Removed.
868 (elf_backend_copy_indirect_symbol): Define.
869
ff3a6ee3
TR
8702002-02-20 Tom Rix <trix@redhat.com>
871
872 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
873 (_bfd_xcoff_reloc_type_lookup): Use it.
874 * coff64-rs6000.c (xcoff64_howto_table): Same.
875 (xcoff64_reloc_type_lookup): Same.
c434dee6 876
a68d41fb
AM
8772002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
878
879 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
880 little endian.
881
befc3abb
MS
8822002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
883
884 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
885 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
886 * bfd-in2.h: Regenerate.
887 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
888 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
889 with "s390:64-bit".
890 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
891 (elf_s390_reloc_type_lookup): Likewise.
892 (elf_s390_check_relocs): Likewise.
893 (elf_s390_gc_sweep_hook): Likewise.
894 (elf_s390_relocate_section): Likewise.
895 (elf_s390_object_p): Use renamed architecture define.
896 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
897
6eeeec9b
FCE
8982002-02-19 Frank Ch. Eigler <fche@redhat.com>
899
900 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
901
0bb2d96a
JJ
9022002-02-19 Jakub Jelinek <jakub@redhat.com>
903
904 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
905 absptr -> pcrel optimization for shared libs.
906 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
907 library cannot be converted to pcrel.
908 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
909 relative.
910 * elf32-i386.c (elf_i386_relocate_section): If
911 _bfd_elf_section_offset returned -2, skip, but make sure the
912 relocation is installed.
913 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
914 * elf32-cris.c (cris_elf_relocate_section): Likewise.
915 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
916 * elf32-i370.c (i370_elf_relocate_section): Likewise.
917 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
918 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
919 * elf32-s390.c (elf_s390_relocate_section): Likewise.
920 * elf32-sh.c (sh_elf_relocate_section): Likewise.
921 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
922 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
923 * elf64-s390.c (elf_s390_relocate_section): Likewise.
924 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
925 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
926 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
927 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
928 _bfd_elf_section_offset returning -2 the same way as -1.
929 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
930 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
931 and BFD_ASSERT.
932 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
933
69f284c7
TR
9342002-02-18 Tom Rix <trix@redhat.com>
935
936 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
937 (bfd_xcoff_size_dynamic_sections): Same.
938 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
939 (bfd_xcoff_size_dynamic_sections): Same.
940 * coff-rs6000.c (xcoff_generate_rtinit): Same.
941 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
942 * libxcoff.h (struct xcoff_backend_data_rec): Same.
943 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
944 * bfd-in2.h: Regenerate.
945
82bd7b59
AM
9462002-02-18 Alan Modra <amodra@bigpond.net.au>
947
948 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
949 (struct ppc_link_hash_table): Add sfpr.
950 (ppc64_elf_link_hash_table_create): Init it.
951 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
952 .glink out to..
953 (create_linkage_sections): ..here. Make .sfpr too.
954 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
955 dynobj early.
956 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
957 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
958 ._restf* functions, and create as needed.
959 (func_desc_adjust): Only force_local for shared libs.
960
ef1355e8
NC
9612002-02-18 David O'Brien <obrien@FreeBSD.org>
962
963 * configure.in: Bump version number post 2.12 branching.
964 * configure: Regenerate.
965
dfa36a69
HPN
9662002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
967
968 * mmo.c: Correct and improve comments.
969 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
970 zero-pad. Use input to fill up non-empty bfd buffer.
971 (mmo_flush_chunk): New function.
972 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
973 changed. Don't emit location specifier if VMA is same as
974 *LAST_VMAP after omitting leading zero contents. Call
975 mmo_flush_chunk before emitting location specifier.
976 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
977 with mmo_write_loc_chunk calls.
978 (mmo_internal_write_section): Call mmo_flush_chunk after
979 mmo_write_chunk.
980 (mmo_write_symbols_and_terminator): Move :Main to first position
981 in symbol array. Add faked one if it does not exist if there are
982 other symbols. Don't add it if there are no symbols at all. Move
983 out test for value of :Main from symbol loop. Rename table
984 fakemain to maintable and variable mainsym to fakemain.
985
ccf00ab6
RH
9862002-02-15 Richard Henderson <rth@redhat.com>
987
988 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
989 section with no got matches any got. Simplify error generaion.
990
88eaccc2
AM
9912002-02-15 Alan Modra <amodra@bigpond.net.au>
992
fd96f80f
AM
993 Support arbitrary length fill patterns.
994 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
995 (_bfd_default_link_order): Remove bfd_fill_link_order code.
996 Call default_data_link_order.
997 (default_fill_link_order): Delete.
998 (default_data_link_order): New function.
999 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
1000 of bfd_fill_link_order with bfd_data_link_order.
1001 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
1002 * elf64-mips.c (mips_elf64_final_link): Likewise.
1003
88eaccc2
AM
1004 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
1005 Correct value returned in "end" for "0x<non-hex>".
1006
e2fd756b
NC
10072002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
1008
1009 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
1010 (scan): Test against 'mach' field in info structure.
1011
edd29cf9
AM
10122002-02-14 Alan Modra <amodra@bigpond.net.au>
1013
1014 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
1015
1e30956e 10162002-02-14 Matt Fredette <fredette@netbsd.org>
76f57f3a
JT
1017
1018 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
1019 EF_M68000.
1020
bf36db18
NC
10212002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
1022
1023 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
1024 non-zero physical addresses when adjusting the LMAs of new
1025 sections.
bf36db18 1026
189c6563
AM
10272002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1028
1029 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
1030 from _bfd_elf_hppa_gen_reloc_type.
1031 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
1032 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
1033 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
1034 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
1035
e948afaf
AO
10362002-02-12 Alexandre Oliva <aoliva@redhat.com>
1037
1038 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
1039 loading its contents if there's nothing to do in it.
1040
19397422
AM
10412002-02-12 Alan Modra <amodra@bigpond.net.au>
1042
0ad3a73b
AM
1043 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
1044 64k boundary.
1045
19397422
AM
1046 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
1047 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
1048 (ppc64_elf_finish_dynamic_sections): Set values for them.
1049
51316059
MS
10502002-02-11 Michael Snyder <msnyder@redhat.com>
1051
1052 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
1053 * elf.c (elfcore_grok_pstatus): Add prototype.
1054 (elfcore_grok_lwpstatus): Add prototype.
1055 (elfcore_write_lwpstatus): New function.
1056 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
1057
518313c3
AO
10582002-02-11 Alexandre Oliva <aoliva@redhat.com>
1059
1060 * elf32-sh.c: Added missing prototypes.
1061 * elf32-sh64.c: Likewise.
1062 (sh_elf_align_loads): Mark unused args as such.
1063 * elf64-sh64.c: Added missing prototypes.
1064 (struct elf_sh64_link_hash_entry): Fix typo.
1065 (sh_elf64_relocate_section): Fix info argument passed to
1066 _bfd_elf_section_offset.
1067
2c73f9d8
AM
10682002-02-11 Alan Modra <amodra@bigpond.net.au>
1069
1070 * Makefile.am: "make dep-am".
1071 * Makefile.in: Regenerate.
1072 * aclocal.m4: Regenerate.
1073 * config.in: Regenerate.
1074 * configure: Regenerate.
1075
d426c6b0
DJ
10762002-02-10 Daniel Jacobowitz <drow@mvista.com>
1077
1078 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
1079 variable warnings.
1080 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
1081 comparison warning.
1082 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
1083 cast warnings for the common case.
1084
e58ee0cd
HPN
10852002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1086
1087 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
1088 vectors.
1089 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
1090 vectors.
1091
7793f4d0
RH
10922002-02-09 Richard Henderson <rth@redhat.com>
1093
1094 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
1095 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
1096 (elf64_alpha_relocate_section): Likewise.
1097 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
1098 * bfd-in2.h, libbfd.h: Rebuild.
1099
7e799044
HPN
11002002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1101
1102 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
1103 that base-plus-offset reloc accounting is consistent.
1104 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
1105 up to date for undefined symbols.
1106
027d73eb
EC
11072002-02-08 Eric Christopher <echristo@redhat.com>
1108
1109 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1110
1111 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
1112 sections for the O32 ABI.
1113
517662d4
CD
11142002-02-08 Chris Demetriou <cgd@broadcom.com>
1115
1116 * elf32-arm.h: Fix formatting of _("...").
1117 * elf32-d10v.c: Likewise.
1118 * elf32-m68k.c: Likewise.
1119 * elf32-mips.c: Likewise.
1120
5e37cc46
NC
11212002-02-08 Ivan Guzvinec <ivang@opencores.org>
1122
1123 * coff-or32.c: Fix compile time warning messages.
1124
fbca6ad9
AO
11252002-02-08 Alexandre Oliva <aoliva@redhat.com>
1126
1127 Contribute sh64-elf.
1128 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
1129 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
1130 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
1131 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
1132 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
1133 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
1134 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
1135 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
1136 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
1137 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
1138 New relocs.
1139 * libbfd.h, bfd-in2.h: Rebuilt.
1140 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
1141 (sh_reloc_map): Map them.
1142 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
1143 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
1144 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
1145 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
1146 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
1147 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
1148 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
1149 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
1150 datalabel_got_offset.
1151 (sh_elf_link_hash_newfunc): Initialize it.
1152 (sh_elf_relocate_section): Augment the scope of
1153 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
1154 GOT and GOTOFF handling to new SHmedia relocation types. Support
1155 GOT_BIAS.
1156 (sh_elf_check_relocs): Likewise.
1157 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
1158 PLT entries using movi_shori_putval. Support GOT_BIAS.
1159 (sh_elf_finish_dynamic_sections): Likewise.
1160 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
1161 relocation, it's now done by the caller.
1162 (GOT_BIAS): New.
1163 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
1164 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
1165 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
1166 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
1167 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
1168 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
1169 sh64_elf64_hash_table): New.
1170 (sh_elf64_howto_table): Introduce new relocs.
1171 (sh_elf64_info_to_howto): Accept new PIC relocs.
1172 (sh_elf64_relocate_section): Augment the scope of
1173 seen_stt_datalabel. Support new PIC relocs.
1174 (sh_elf64_check_relocs): Support new PIC relocs.
1175 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
1176 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
1177 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
1178 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
1179 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
1180 movi_shori_putval, movi_3shori_putval,
1181 sh64_elf64_create_dynamic_sections,
1182 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
1183 sh64_elf64_size_dynamic_sections,
1184 sh64_elf64_finish_dynamic_symbol,
1185 sh64_elf64_finish_dynamic_sections): New.
1186 (elf_backend_create_dynamic-sections,
1187 bfd_elf64_bfd_link_hash_table_create,
1188 elf_backend_adjust_dynamic_symbol,
1189 elf_backend_size_dynamic_sections,
1190 elf_backend_finish_dynamic_symbol,
1191 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
1192 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1193 elf_backend_got_header_size, elf_backend_plt_header_size):
1194 Define.
1195 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1196 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
1197 match official numbers and names; moved unmaching ones to the
1198 range 0xf2-0xff.
1199 * elf32-sh64.c, elf64-sh64.c: Likewise.
1200 2001-03-12 DJ Delorie <dj@redhat.com>
1201 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
1202 sections.
1203 2001-03-12 DJ Delorie <dj@redhat.com>
1204 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
1205 be aligned.
1206 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
1207 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1208 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
1209 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
1210 .cranges section with SEC_SORT_ENTRIES set.
1211 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
1212 incoming sorted .cranges section.
1213 (sh64_bfd_elf_copy_private_section_data): New.
1214 (sh64_elf_final_write_processing): Only sort .cranges and modify
1215 start address if called by linker.
1216 2001-01-08 Ben Elliston <bje@redhat.com>
1217 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
1218 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
1219 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
1220 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1221 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
1222 line. Add comments before all entries.
1223 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
1224 comment.
1225 (sh_elf64_reloc): Correct head comment.
1226 (sh_elf64_relocate_section): Correct spacing.
1227 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
1228 instead call reloc_dangerous callback.
1229 <case R_SH_SHMEDIA_CODE>: New case.
1230 (sh_elf64_gc_mark_hook): Correct spacing.
1231 (sh_elf64_check_relocs): Ditto.
1232 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
1233 New case.
1234 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
1235 functions.
1236 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
1237 clarify describing comment. Add comments before all entries.
1238 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
1239 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
1240 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1241 Sort .cranges section in final link. Prepare to set bit 0 on
1242 entry address.
1243 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
1244 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
1245 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
1246 .cranges section.
1247 (sh64_backend_section_from_shdr): New, to recognize
1248 SHT_SH5_CR_SORTED on incoming .cranges section.
1249 (elf_backend_section_from_shdr): Define.
1250 (sh64_elf_final_write_processing): Sort outgoing .cranges
1251 section. (New, temporarily disabled:) Set bit 0 on entry address
1252 according to ISA type.
1253 (sh64_find_section_for_address): New.
1254 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
1255 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
1256 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
1257 bfd_malloc, not xmalloc.
1258 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
1259 global.
1260 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
1261 temporarily disabled) setting bit 0 on entry address.
1262 (elf_backend_final_write_processing): Define.
1263 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1264 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
1265 be a proper relocation for PTA and PTB rather than a marker.
1266 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
1267 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
1268 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
1269 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
1270 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
1271 Zero src_mask.
1272 * elf64-sh64.c: Ditto.
1273 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
1274 * elf32-sh64.c: Include opcodes/sh64-opc.h
1275 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
1276 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
1277 parameters. No unused parameters. Caller changed.
1278 <case R_SH_PT_16>: New case.
1279 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
1280 * Makefile.in: Regenerate.
1281 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1282 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
1283 all code sections.
1284 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1285 (sh64_elf_merge_private_data): Ditto.
1286 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
1287 to access stored section flags.
1288 (sh64_elf_final_write_processing): Return immediately unless
1289 called by linker. Use sh64_elf_section_data (cranges) to get size
1290 of linker-generated cranges entries.
1291 (sh64_elf_copy_private_data): Add missing "return true".
1292 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
1293 (sh_elf64_merge_private_data): Ditto.
1294 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1295 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
1296 elf64-sh64.c:sh64_elf_fake_sections.
1297 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
1298 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1299 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
1300 (sh64_elf_final_write_processing): New.
1301 (elf_backend_final_write_processing): Define.
1302 (sh64_elf_fake_sections): Get header flags from tdata field.
1303 (sh64_elf_copy_private_data): Do not call
1304 sh64_elf_copy_private_data_internal, just copy e_flags field.
1305 (sh64_elf_merge_private_data): Do not call
1306 sh64_elf_copy_private_data_internal.
1307 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1308 Remove EF_SH64_ABI64, let ELF size make difference.
1309 Remove SH64-specific BFD section flag.
1310 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
1311 containing SHmedia through elf_section_data (asect)->tdata
1312 non-zero, not using a BFD section flag.
1313 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
1314 (sh64_elf_merge_private_data): Similar.
1315 (elf_backend_section_flags): Don't define.
1316 (sh64_elf_backend_section_flags): Delete.
1317 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
1318 not EF_SH64_ABI64.
1319 (sh_elf64_merge_private_data): Similar.
1320 * section.c (Section flags definitions): Don't define
1321 SEC_SH_ISA_SHMEDIA.
1322 (bfd-in2.h): Regenerate.
1323 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
1324 Make DataLabel references work with partial linking.
1325 * elf32-sh64.c: Fix formatting.
1326 (sh64_elf_link_output_symbol_hook): New.
1327 (elf_backend_link_output_symbol_hook): Define to
1328 sh64_elf_link_output_symbol_hook.
1329 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
1330 undefined if partial linking. Adjust sanity check.
1331 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
1332 (elf_backend_link_output_symbol_hook): Define to
1333 sh64_elf64_link_output_symbol_hook.
1334 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
1335 undefined if partial linking. Adjust sanity check.
1336 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1337 Implement semantics for inter-file DataLabel references.
1338 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
1339 (sh64_elf64_add_symbol_hook): New.
1340 (sh_elf64_relocate_section): If passing an indirect symbol with
1341 st_type STT_DATALABEL on the way to a symbol with st_other
1342 STO_SH5_ISA32, do not bitor 1 to the relocation.
1343 (elf_backend_add_symbol_hook): Define to
1344 sh64_elf64_add_symbol_hook.
1345 * elf64-sh32.c: Tweak comments.
1346 (DATALABEL_SUFFIX): Define.
1347 (sh64_elf_add_symbol_hook): New.
1348 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
1349 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
1350 symbol with st_type STT_DATALABEL on the way to a symbol with
1351 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
1352 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1353 Pass through STT_DATALABEL.
1354 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
1355 (elf_backend_get_symbol_type): Define.
1356 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
1357 (elf_backend_get_symbol_type): Define.
1358 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1359 * elf32-sh64.c: Tweak comments.
1360 (sh64_elf_copy_private_data_internal): Add prototype.
1361 (bfd_elf32_bfd_set_private_flags): Define.
1362 (sh64_elf_copy_private_data_internal): Compare machine name, not
1363 textual BFD target name, to check whether to copy section flag
1364 SHF_SH5_ISA32.
1365 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
1366 Tweak section-contents-type-mismatch message.
1367 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
1368 Validize reloc-types.
1369 * elf64-sh64.c: New file.
1370 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
1371 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
1372 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
1373 Regenerate dependencies.
1374 * Makefile.in: Regenerate.
1375 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
1376 bfd_elf64_sh64l_vec.
1377 * configure.in: Handle bfd_elf64_sh64_vec and
1378 bfd_elf64_sh64l_vec.
1379 * configure: Regenerate.
1380 * po/POTFILES.in: Regenerate.
1381 * po/bfd.pot: Regenerate.
1382 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1383 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
1384 anything else but EF_SH64 and EF_SH64_ABI64.
1385 (sh64_elf_merge_private_data): Emit error for anything else but
1386 EF_SH64 and EF_SH64_ABI64.
1387 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
1388 from targ_selvecs.
1389 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
1390 bfd_elf32_sh64l_vec as a temporary measure.
1391 * configure: Regenerate.
1392 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1393 * cpu-sh.c (arch_info_struct): Include sh5 item
1394 unconditionalized.
1395 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
1396 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
1397 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
1398 * elf32-sh64.c: Tweak comments.
1399 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
1400 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
1401 (sh64_elf_copy_private_data_internal): Wrap long line.
1402 (sh64_elf_merge_private_data): Rewrite to allow objects from
1403 SH64 subsets to be linked together.
1404 (INCLUDE_SHMEDIA): Define.
1405 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
1406 Parenthesize plus-expression inside or-expression.
1407 <global symbol>: Ditto.
1408 (sh_elf_set_mach_from_flags): Remove code refusing
1409 deleted EF_SH64_32BIT_ABI flag.
1410 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
1411 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
1412 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
1413 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
1414 (sh_elf_relocate_section) <local symbol>: Or 1 in
1415 calculation of relocation if sym->st_other & STO_SH5_ISA32.
1416 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
1417 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
1418 relocation.
1419 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1420 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
1421 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
1422 Regenerate dependencies.
1423 * Makefile.in: Regenerate.
1424 * archures.c: Add bfd_mach_sh5.
1425 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
1426 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
1427 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
1428 * configure: Regenerate.
1429 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
1430 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
1431 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1432 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
1433 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
1434 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
1435 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
1436 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
1437 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
1438 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
1439 in item for SH5.
1440 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
1441 for SHmedia relocs.
1442 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
1443 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
1444 shmedia_prepare_reloc, goto final_link_relocate if it returns
1445 non-zero, else fail as before.
1446 (sh_elf_set_mach_from_flags): Provide function only if not defined
1447 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
1448 (sh_elf_set_private_flags): Provide function only if not defined
1449 as a macro.
1450 (sh_elf_copy_private_data): Similar.
1451 (sh_elf_merge_private_data): Similar.
1452 * section.c (SEC_SH_ISA_SHMEDIA): New.
1453 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
1454 * elf32-sh64.c: New file.
1455 * libbfd.h: Regenerate.
1456 * bfd-in2.h: Regenerate.
1457 * po/POTFILES.in: Regenerate.
1458 * po/bfd.pot: Regenerate.
1459 * bfd-in2.h: Regenerate.
1460 * libbfd.h: Regenerate.
1461
e108f470
DJ
14622002-02-07 Daniel Jacobowitz <drow@mvista.com>
1463
1464 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
1465 been included, not drag it in.
1466 * bfd-in2.h: Regenerate.
1467
259d18a3
L
14682002-02-06 H.J. Lu (hjl@gnu.org)
1469
1470 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
1471 the mach and ISA fields if necessary.
1472
f13b834e
NC
14732002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1474
1475 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
1476 ARM architecture when an F_ARM_5 flag is detected, since we cannot
1477 be sure exactly which architecture this represents.
1478
82f6addb
NC
14792002-02-05 Nick Clifton <nickc@redhat.com>
1480
1481 * po/tr.po: Updated translation.
1482
899f54f5
AM
14832002-02-05 Alan Modra <amodra@bigpond.net.au>
1484
1485 From Jimi X <jimix@watson.ibm.com>
1486 * archures (bfd_mach_ppc64): Define.
1487 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
1488 (bfd_powerpc_arch): Define.
1489 * bfd-in2.h: Regenerate.
1490 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
1491 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
1492 (bfd_powerpc_archs): Add default powerpc64 arch.
1493
248866a8
AM
14942002-02-05 Alan Modra <amodra@bigpond.net.au>
1495
1496 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
1497 against section syms in readonly sections. Don't do the global
1498 sym check if we find one.
1499 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1500 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 1501 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
1502 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1503 (elf_s390_grok_prstatus): Add missing prototype.
1504
4fa5c2a8
HPN
15052002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1506
1507 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
1508 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
1509 Call bfd_get_section_by_name only once. Initialize
1510 bpodata->n_bpo_relocs_this_section.
1511 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
1512 referring to DSOs.
1513 (bpo_reloc_request_sort_fn): Don't use difference of values as
1514 return-value.
1515
537c972e
DB
15162002-02-02 David O'Brien <obrien@FreeBSD>
1517
1518 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
1519 version 4.5 and later the same as 5-CURRENT.
1520 * configure: Re-generate.
1521
006336b8
JT
15222002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1523
1524 * config.bfd (hppa*-*-netbsd*): New target.
1525
6c571f00
PT
15262002-01-31 Philipp Thomas <pthomas@suse.de>
1527
19397422
AM
1528 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
1529 to front of message. Unify messages with elf32-arm.h. Use
1530 commas where neccessary.
1531 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
1532 ERROR in messages. Unify messages with coff-arm.c. Correct
1533 VFP/FPA error message.
1534 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
1535 APCS-32 for translation.
6c571f00 1536
930b4cb2
HPN
15372002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1538
1539 Perform on-demand global register allocation from
1540 R_MMIX_BASE_PLUS_OFFSET relocs.
1541 * elf64-mmix.c (struct bpo_reloc_section_info, struct
1542 bpo_reloc_request, struct bpo_greg_section_info): New.
1543 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
1544 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
1545 _bfd_mmix_check_all_relocs,
1546 _bfd_mmix_prepare_linker_allocated_gregs,
1547 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
1548 (elf_mmix_howto_table): Correct src_mask for most relocs.
1549 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
1550 case.
1551 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
1552 case. Fix typo in comment. New label do_mmix_reloc.
1553 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
1554 store first object file with a base-plus-offset reloc. Call
1555 mmix_elf_check_common_relocs for the part common with mmo.
1556 (mmix_elf_final_link): Write out linker-allocated register
1557 contents section.
1558 (elf_backend_gc_sweep_hook): Define.
1559 (bfd_elf64_bfd_relax_section): Define.
1560
1561 * mmo.c: Don't include <ctype.h>
1562 (mmo_init): Correct init-once logic.
1563
3e36d993
TR
15642002-02-01 Tom Rix <trix@redhat.com>
1565
1566 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
1567
ba323545
AM
15682002-02-01 Alan Modra <amodra@bigpond.net.au>
1569
1570 * Makefile.am: Run "make dep-am"
1571 * Makefile.in: Regenerate.
1572
012884d6
DB
15732002-01-31 David O'Brien <obrien@FreeBSD>
1574
1575 * configure.in: Recognize the differences in core files from FreeBSD
1576 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
1577 5-CURRENT.
1578 * configure: Regenerate.
1579
3b16e843
NC
15802002-01-31 Ivan Guzvinec <ivang@opencores.org>
1581
1582 * coff-or32.c: New file.
1583 * cpu-or32.c: New file.
1584 * elf32-or32.c: New file.
1585 * archures.c: Add support for or32.
1586 * targets.c: Add support for or32.
1587 * bfd-in2.h: Regenerate.
7dc0ab31 1588 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
1589 coff_write_object_contents): Add support for or32.
1590 * config.bfd: Add target.
1591 * configure.in: Add support for or32.
1592 * configure: Regenerate.
1593 * Makefile.am: Add support for or32.
1594 * Makefile.in: Regenerate.
3b16e843
NC
1595 * po/SRC-POTFILES.in: Add or32 files.
1596 * po/bfd.pot: Regenerate.
7dc0ab31 1597
caf8ca8e
NC
15982002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
1599 Don Lindsay <lindsayd@cisco.com>
1600
1601 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
1602 false' with a return of a bfd_reloc_ error code.
1603
e5dfef09
HPN
16042002-01-31 Hans-Peter Nilsson <hp@axis.com>
1605
1606 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1607 unexport unreferenced symbols when --export-dynamic. Call
1608 _bfd_elf_strtab_delref when unexporting.
1609
4e4770d0
DJ
16102002-01-30 Daniel Jacobowitz <drow@mvista.com>
1611
1612 * bfd-in.h: Include <stdbool.h> if it is available.
1613 * bfd-in2.h: Regenerated.
1614
e1fa50e7
AM
16152002-01-31 Alan Modra <amodra@bigpond.net.au>
1616
1617 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
1618 not go via the plt.
1619
b5f79c76
NC
16202002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1621
b5f79c76
NC
1622 * archures.c: Tidy up formatting of embedded comments.
1623 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 1624 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
1625 * reloc.c: Tidy up formatting of ordinary & embedded comments.
1626 * section.c: Tidy up formatting of embedded comments.
1627 * syms.c: Tidy up formatting of embedded comments.
1628 * targets.c: Tidy up formatting of embedded comments.
1629
1630 * bfd-in2.h: Regenerate.
1631
ca09e32b
NC
16322002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
1633
1634 * vms-tir.c (cmd_name): New function.
1635 (tir_cmd_name): New function.
1636 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
1637 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
1638 Fix formatting.
7dc0ab31 1639
ca09e32b
NC
1640 * peXXigen.c (pe_print_idata): Rearrange message to aid in
1641 translation.
1642 (pe_print_pdata): Rearrange message to aid in translation.
1643
1644 * libbfd.c (warn_deprecated): Rearrange error message to aid in
1645 translation.
1646
1647 * ihex.c (ihex_write_object_contents): Fix spelling typo.
1648
1649 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
1650
1651 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
1652 message to aid in translation.
1653
1654 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
1655 to aid in translation.
1656
1657 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
1658
7dc0ab31 16592002-01-30 Philipp Thomas <pthomas@suse.de>
ae1a89b7
PT
1660
1661 * coff-arm.c, elf32-elf.h: Unify messages.
1662
05f64ac6
NC
16632002-01-30 Nick Clifton <nickc@redhat.com>
1664
1665 * po/sv.po: Updated translation.
1666
f5a3e38a
NC
16672002-01-30 Philipp Thomas <pthomas@suse.de>
1668
1669 * dwarf2.c (read_abbrev): Use full section name in error message.
1670 (decode_line_info): Likewise.
661a3fd4
NC
1671
1672 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
1673 message.
1674
d926e03d
AM
16752002-01-30 Alan Modra <amodra@bigpond.net.au>
1676
1677 * elf64-ppc.c (func_desc_adjust): Only provide missing function
1678 descriptor symbols for undefined function code syms. Clear
1679 ELF_LINK_NON_ELF so that they can stay weak.
1680
030d18fb 16812002-01-29 Chris Demetriou <cgd@broadcom.com>
7dc0ab31 1682 Mitch Lichtenberg <mpl@broadcom.com>
030d18fb
CD
1683
1684 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
1685 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
1686 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
1687 generation.
1688 * bfd-in2.h: Regenerate.
1689
fcc76bea
CD
16902002-01-29 Chris Demetriou <cgd@broadcom.com>
1691
1692 * elf32-mips.c: Add additional comments about HI16 relocation
1693 processing.
1694 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
1695 pc-relative relocations. (Reverts change made on 2001-10-31.)
1696 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
1697 for pc-relative relocations.
1698 (mips_elf_calculate_relocation): Add a comment about a kludge
1699 in the R_MIPS_GNU_REL_HI16 handling.
1700 (_bfd_mips_elf_relocate_section): Implement that kludge;
1701 adjust pc-relative HI16 relocation for difference in HI16 and
1702 LO16 addresses, since it can't easily be done in
1703 mips_elf_calculate_relocation.
1704
f9cd9119
MS
17052002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
1706
1707 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
1708 relocations with PC32 relocations for undefined or weak symbols.
1709 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
1710 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
1711
702248bb
JT
17122002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
1713
1714 * elfcore.h (elf_core_file_p): Improve comment for last change.
1715
4867be41
DJ
17162002-01-27 Daniel Jacobowitz <drow@mvista.com>
1717
1718 * configure: Regenerated.
1719
a94cef6a
JT
17202002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
1721
1722 * elfcore.h (elf_core_file_p): Set the machine architecture
1723 before processing the program headers.
1724
7562a296
HPN
17252002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1726
966abd70
HPN
1727 * configure.in <64-bit configuration>: If using gcc, check and
1728 emit error for egcs-1.1.2.
1729 * configure: Regenerate.
1730
e8eab623
NC
17312002-01-26 Egor Duda <deo@logos-m.ru>
1732
1733 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
1734 as possible to avoid stack corruption.
1735
73896efb
RH
17362002-01-26 Richard Henderson <rth@redhat.com>
1737
1738 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
1739 for non-allocated sections.
1740
17412002-01-25 Mark Kettenis <kettenis@gnu.org>
c106e334
MK
1742
1743 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
1744 prstat.pr_reg even if it is a struct.
1745
73896efb 17462002-01-25 Steve Ellcey <sje@cup.hp.com>
254ed743
NC
1747
1748 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
1749
3d66c4f7
NC
17502002-01-25 Philipp Thomas <pthomas@suse.de>
1751
1752 * coffgen.c (coff_print_symbol): Don't mark info message
1753 for translation.
1754
9460ecda
NC
17552002-01-25 Nick Clifton <nickc@redhat.com>
1756
1757 * po/fr.po: Updated translation.
1758 * po/es.po: Updated translation.
1759
cc9ff76a
AM
17602002-01-25 Philipp Thomas <pthomas@suse.de>
1761
1762 * coff-alpha.c (alpha_relocate_section): Unify warning message
1763 for GP relative relocations without GP defined.
1764 * coff-mips.c (mips_relocate_section): Likewise.
1765
c68836a9
AM
17662002-01-25 Alan Modra <amodra@bigpond.net.au>
1767
1768 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
1769 unsigned overflow when new_offset < old_offset.
1770
e8eab623 17712002-01-24 Philipp Thomas <pthomas@suse.de>
391154e9
NC
1772
1773 * bfd.c (_bfd_abort): Fix typo.
1774
8ba89f17
RH
17752002-01-23 Richard Henderson <rth@redhat.com>
1776
1777 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
1778 plt entries for undefweak symbols.
1779
c6953948
NC
17802002-01-23 Steve Ellcey <sje@cup.hp.com>
1781
1782 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
1783 DEFAULT_VECTOR.
1784 (bfd_elf64_ia64_hpux_big_vec): Ditto.
1785 (bfd_elf32_h8300_vec): Ditto.
1786
41bd81ab
AM
17872002-01-23 Alan Modra <amodra@bigpond.net.au>
1788
1789 * elf64-ppc.c: Remove stale part of ABI comment.
1790 (NO_OPD_RELOCS): Define.
1791 (ppc64_elf_check_relocs): Use it.
1792 (ppc64_elf_relocate_section): Here too.
1793 (build_one_stub): Don't point function syms at the stub. Instead,
1794 hijack plt.offset.
1795 (ppc64_elf_relocate_section): Check whether REL24 relocs should
1796 really go to the stub. Make all dynamic relocs in opd against
1797 locals.
1798 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
1799 plt.offset.
1800
f304919d
RH
18012002-01-22 Richard Henderson <rth@redhat.com>
1802
1803 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
1804
c0ef99a7
AM
18052002-01-22 Alan Modra <amodra@bigpond.net.au>
1806
60ee0d4a
AM
1807 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
1808 TOC_BASE_OFF adjustment.
1809
c0ef99a7
AM
1810 * Makefile.am: Run "make dep-am".
1811 * Makefile.in: Regenerate.
1812 * po/SRC-POTFILES.in: Regenerate.
1813
64328b46
AM
18142002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1815
1816 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
1817 host defines.
1818
59953665 18192002-01-21 Hans-Peter Nilsson <hp@axis.com>
58255df3
HPN
1820
1821 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
1822 Check for and emit error if sgot is NULL at this point.
1823
9596feea
JT
18242002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1825
1826 * config.bfd (ia64*-*-netbsd*): New target.
1827
7b45c6e1
AM
18282002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
1829
1830 * som.c (som_write_space_strings): Comment typo fix.
1831
e5094212
AM
18322002-01-21 Alan Modra <amodra@bigpond.net.au>
1833
e86ce104
AM
1834 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
1835 is_func_descriptor fields.
1836 (link_hash_newfunc): Init them.
1837 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
1838 dot are candidates for plt entries. When processing .opd relocs,
1839 set function descriptor strings to point inside function code
1840 string, and set new ppc_link_hash_entry fields.
1841 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
1842 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
1843 function descriptors. It's now done in..
1844 (func_desc_adjust): New.
1845 (ppc64_elf_func_desc_adjust): New.
1846 (define elf_backend_always_size_sections): Define.
1847 (ppc64_elf_hide_symbol): New.
1848 (define elf_backend_hide_symbol): Define.
1849 (allocate_dynrelocs): Remove code looking up function descriptors
1850 as that has been done earlier.
1851 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
1852 table.
1853 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
1854 up function descriptor.
1855 (build_one_stub): Look up the function code sym. Check for
1856 invalid plt offsets.
1857 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
1858 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
1859
e5094212
AM
1860 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
1861 boolean param.
1862 (_bfd_elf_link_hash_hide_symbol): Likewise.
1863 * elflink.h (elf_link_add_object_symbols): Adjust call to
1864 elf_backend_hide_symbol.
1865 (elf_fix_symbol_flags): Likewise.
1866 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
1867 than bfd_alloc.
1868 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
1869 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
1870 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1871 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
1872 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
1873 and adjust to suit.
1874 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
1875 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
1876 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1877
40b8271b
AM
18782002-01-18 Alan Modra <amodra@bigpond.net.au>
1879
1880 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
1881 dynamic function descriptor symbol, not the associated function
1882 symbol.
1883
55baa95b
EC
18842002-01-17 Eric Christopher <echristo@redhat.com>
1885
1886 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
1887
328577ad
NC
18882002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1889
1890 * po/bfd.pot: Regenerate.
1891 * po/fr.po: Regenerate.
1892
af746e92
AM
18932002-01-17 Alan Modra <amodra@bigpond.net.au>
1894
1895 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
1896 Remove "Elf_Internal_Shdr *" param.
1897 (_bfd_mips_elf_section_from_bfd_section): Ditto.
1898 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
1899 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
1900 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
1901 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
1902 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
1903 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
1904 function to override special sections. Remove hdr arg from
1905 backend call, and don't loop.
1906
175e9962
EC
19072002-01-16 Eric Christopher <echristo@redhat.com>
1908
1909 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
1910 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
1911 relocations requiring gp0 and gp.
1912
96a846ea
RE
19132002-01-16 Richard Earnshaw <rearnsha@arm.com>
1914
175e9962 1915 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
1916 EF_ARM_VFP_FLOAT.
1917 (elf32_arm_print_private_bfd_data): Likewise.
1918
af3ae48d
NC
19192002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
1920
1921 * po/tr.po: Import new version.
1922
10ed1bba
AM
19232002-01-16 Alan Modra <amodra@bigpond.net.au>
1924
1925 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
1926 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
1927 (ORI_R0_R0_0): Correct.
1928
5d1634d7
AM
19292002-01-16 Alan Modra <amodra@bigpond.net.au>
1930
1931 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
1932 when plt_not_loaded.
1933 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
1934 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
1935 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
1936 (ppc64_elf_glink_code): Delete.
1937 (PPC64_ELF_GLINK_SIZE): Delete.
1938 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
1939 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
1940 ORI_R0_R0_0): Define.
1941 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
1942 (struct ppc_link_hash_table): Add sstub and plt_overflow.
1943 (ppc64_elf_link_hash_table_create): Init them.
1944 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
1945 Don't copy to shared lib.
1946 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
1947 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
1948 (allocate_dynrelocs <plt>): Don't change function sym here. Make
1949 room for .stub and .glink code.
1950 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
1951 DT_PPC64_GLINK.
1952 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
1953 bfd_elf64_bfd_final_link.
1954 (bfd_elf64_bfd_final_link): Don't define.
1955 (ppc64_elf_size_stubs): New.
1956 (build_plt_stub): New.
1957 (build_one_stub): New.
1958 (ppc64_elf_build_stubs): New.
1959 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
1960 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
1961 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
1962 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
1963 case output sections not separate. Adjust DT_RELASZ to not
1964 include plt relocs. Set reserved got entry. Set got and plt
1965 entry size.
1966 (elf_backend_got_header_size): Set to 8.
1967 * elf64-ppc.h: New file.
1968
c601ffdb
AM
19692002-01-16 Alan Modra <amodra@bigpond.net.au>
1970
1971 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
1972 sections, use bfd_section_list_remove.
1973 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1974 * elflink.h (elf_link_add_object_symbols): When removing all
1975 sections, use bfd_section_list_clear.
1976
8fb4cb7f
NC
19772002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1978
1979 * po/sv.po: New file: Swedish translation.
1980 * configure.in (ALL_LINGUAS): Add sv.
1981 * configure: Regenerate.
1982
d3c456e9
JJ
19832002-01-15 Jakub Jelinek <jakub@redhat.com>
1984
1985 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
1986 * elf.c (merge_sections_remove_hook): New function.
1987 (_bfd_elf_merge_sections): Pass it as 3rd argument to
1988 _bfd_merge_sections.
1989 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
1990 * libbfd.h: Rebuilt.
1991 * merge.c (_bfd_merge_sections): Add remove_hook argument.
1992 Call remove_hook if a SEC_EXCLUDE section is encountered.
1993
1f7fd478
NC
19942002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1995
1996 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
1997 (xstormy16_reloc_map): Initialise new field with correct howto
1998 table.
1999 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
2000 howto entry.
2001
b87011e9
MS
20022002-01-10 Michael Snyder <msnyder@redhat.com>
2003
2004 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
2005 (elfcore_write_pstatus): Use long instead of pid_t;
2006 * elf-bfd.h: Change prototypes to use long instead of pid_t;
2007
175e9962 20082002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
b4db1224
JT
2009
2010 * elf.c: Update copyright years.
2011 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
2012 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
2013
7c76fa91
MS
20142002-01-08 Michael Snyder <msnyder@redhat.com>
2015
2016 Add capability to write corefile note sections, for gdb.
2017 * elf.c (elfcore_write_note): New function.
2018 (elfcore_write_prpsinfo): New function.
2019 (elfcore_write_prstatus): New function.
2020 (elfcore_write_pstatus): New function.
2021 (elfcore_write_prfpreg): New function.
2022 (elfcore_write_prxfpreg): New function.
97996af6 2023 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 2024
e1fddb6b
AO
20252002-01-08 Alexandre Oliva <aoliva@redhat.com>
2026
2027 * elf.c (elf_fake_sections): Propagate errors from
2028 elf_backend_fake_section.
2029
8d05742f
JT
20302002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2031
2032 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
2033 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
2034 (elf32-sh-nbsd.lo): New rule.
2035 * Makefile.in: Regenerate.
2036 * config.bfd (sh*le-*-netbsdelf*): New target.
2037 (sh*-*-netbsdelf*): New target.
2038 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
2039 (bfd_elf32_shnbsd_vec): New vector.
2040 (bfd_elf32_shlnbsd_vec): New vector.
2041 * configure: Regenerate.
2042 * elf32-sh-nbsd.c: New file.
2043 * targets.c: Update copyright years.
175e9962 2044 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
2045 bfd_elf32_shnbsd_vec.
2046
1dba4cb4
AH
20472002-01-07 Aldy Hernandez <aldyh@redhat.com>
2048
2049 * coff-rs6000.c (READ20): Use bfd_scan_vma.
2050
47b22aef
GK
20512002-01-07 Geoffrey Keating <geoffk@redhat.com>
2052
2053 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
2054 of a symbol in a section that will be deleted.
2055
be2d1673
NC
20562002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2057
2058 * po/es.po: New file: Spanish translation.
2059 * configure.in (ALL_LINGUAS): Add es.
2060 * configure: Regenerate.
2061
d9cf1b54
AM
20622002-01-06 Steve Ellcey <sje@cup.hp.com>
2063
2064 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
2065 argument so we can handle HP-UX specially.
2066 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
2067 (elfNN_hpux_backend_section_from_bfd_section): New for support
2068 of SHN_IA_64_ANSI_COMMON.
2069 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
2070 (is_unwind_section_name): Add special HP-UX support.
2071 (elfNN_ia64_section_from_shdr): Add support for more sections.
2072 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
2073 add support for more sections.
2074 (elfNN_ia64_additional_program_headers): Modify
2075 is_unwind_section_name call.
2076 (elfNN_ia64_modify_segment_map): Remove assumption that there is
2077 only one unwind section in segment.
2078
3f3c5c34
AM
20792002-01-06 Alan Modra <amodra@bigpond.net.au>
2080
2081 * syms.c (_bfd_generic_make_empty_symbol): New function.
2082 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
2083 _bfd_generic_make_empty_symbol.
2084 * libbfd.h: Regenerate.
2085 * bfd-in2.h: Regenerate.
2086 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
2087 (hppabsd_core_get_symtab_upper_bound): Don't define.
2088 (hppabsd_core_get_symtab): Likewise.
2089 (hppabsd_core_print_symbol): Likewise.
2090 (hppabsd_core_get_symbol_info): Likewise.
2091 (hppabsd_core_bfd_is_local_label_name): Likewise.
2092 (hppabsd_core_get_lineno): Likewise.
2093 (hppabsd_core_find_nearest_line): Likewise.
2094 (hppabsd_core_bfd_make_debug_symbol): Likewise.
2095 (hppabsd_core_read_minisymbols): Likewise.
2096 (hppabsd_core_minisymbol_to_symbol): Likewise.
2097 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
2098 Formatting fixes.
2099 * hpux-core.c: Similarly.
2100 * irix-core.c: Similarly.
2101 * osf-core.c: Similarly.
2102 * sco5-core.c: Similarly.
2103 * binary.c (binary_make_empty_symbol): Remove function, define as
2104 _bfd_generic_make_empty_symbol.
2105 * ihex.c (ihex_make_empty_symbol): Likewise.
2106 * mmo.c (mmo_make_empty_symbol): Likewise.
2107 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
2108 * srec.c (srec_make_empty_symbol): Likewise.
2109 * versados.c (versados_make_empty_symbol): Likewise.
2110 * vms.c (_bfd_vms_make_empty_symbol): Remove.
2111 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
2112 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
2113 rather than _bfd_vms_make_empty_symbol.
2114 * vms-misc.c (new_symbol): Likewise.
2115
3f0a7f7f
AM
21162002-01-05 Alan Modra <amodra@bigpond.net.au>
2117
9e7b37b3
AM
2118 * section.c (bfd_section_init): Remove unnecessary initialisations.
2119 (bfd_section_list_clear): New function.
2120 (bfd_section_list_remove, bfd_section_list_insert): New macros.
2121 (_bfd_strip_section_from_output): Use them.
2122 * coffcode.h (coff_set_alignment_hook): Likewise.
2123 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
2124 * elf64-mips.c (mips_elf64_final_link): Likewise.
2125 * elf64-mmix.c (mmix_elf_final_link): Likewise.
2126 * sunos.c (sunos_add_dynamic_symbols): Likewise.
2127 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
2128 * bfd-in2.h: Regenerate.
2129
2130 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
2131 rather than doing our own section handling. Clean up after errors
2132 with bfd_release and bfd_section_list_clear. Handle unexpected
2133 flags.
2134 * aoutf1.h (sunos4_core_file_p): Likewise.
2135 * aix386-core.c (aix386_core_file_p): Likewise.
2136 * cisco-core.c (cisco_core_file_validate): Likewise.
2137 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
2138 * trad-core.c (trad_unix_core_file_p): Likewise.
2139
2140 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
2141 with bfd_release and bfd_section_list_clear.
2142 * hpux-core.c (hpux_core_core_file_p): Likewise.
2143 * irix-core.c (irix_core_core_file_p): Likewise.
2144 * lynx-core.c (lynx_core_file_p): Likewise.
2145 * osf-core.c (osf_core_core_file_p): Likewise.
2146 * rs6000-core.c (rs6000coff_core_p): Likewise.
2147 * sco5-core.c (sco5_core_file_p): Likewise.
2148
3f0a7f7f
AM
2149 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
2150 sign extension adjustments without conditionals.
2151
a3aa38ee
JJ
21522002-01-04 Jakub Jelinek <jakub@redhat.com>
2153
2154 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
2155 CIE at .eh_frame start is removed due to no FDEs referencing it.
2156
8a8b2d4b
AJ
21572002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2158
2159 * config.bfd (x86_64-*-netbsd*): New target.
2160 * configure.in (x86_64-*-netbsd*): Set COREFILE
2161 to netbsd-core.lo.
2162 * configure: Regenerated.
2163
04b5af89
TR
21642002-01-03 Tom Rix <trix@redhat.com>
2165
2166 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
2167 for recent bfd_make_section_anyway change.
2168
51c5503b
NC
21692002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
2170
2171 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
2172 R_ARM_THM_PC11 reloc.
2173
07f7c046
NC
21742002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2175
2176 * configure.in (LINGUAS): Add ja.
2177 * configure: Regenerate.
2178 * po/ja.po: Import from translation project's web site.
2179
5eefb65f
NC
21802002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2181
2182 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
2183 messages to ease translation into other languages.
2184
39e90f10 2185For older changes see ChangeLog-0001
56882138
AM
2186\f
2187Local Variables:
2188mode: change-log
2189left-margin: 8
2190fill-column: 74
2191version-control: never
2192End:
This page took 0.186363 seconds and 4 git commands to generate.