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