ab767b928475c224e0366fdb979b883c13f70f55
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2002-01-22 Alan Modra <amodra@bigpond.net.au>
2
3 * Makefile.am: Run "make dep-am".
4 * Makefile.in: Regenerate.
5 * po/SRC-POTFILES.in: Regenerate.
6
7 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
8
9 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
10 host defines.
11
12 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
13
14 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
15 Check for and emit error if sgot is NULL at this point.
16
17 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
18
19 * config.bfd (ia64*-*-netbsd*): New target.
20
21 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
22
23 * som.c (som_write_space_strings): Comment typo fix.
24
25 2002-01-21 Alan Modra <amodra@bigpond.net.au>
26
27 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
28 is_func_descriptor fields.
29 (link_hash_newfunc): Init them.
30 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
31 dot are candidates for plt entries. When processing .opd relocs,
32 set function descriptor strings to point inside function code
33 string, and set new ppc_link_hash_entry fields.
34 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
35 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
36 function descriptors. It's now done in..
37 (func_desc_adjust): New.
38 (ppc64_elf_func_desc_adjust): New.
39 (define elf_backend_always_size_sections): Define.
40 (ppc64_elf_hide_symbol): New.
41 (define elf_backend_hide_symbol): Define.
42 (allocate_dynrelocs): Remove code looking up function descriptors
43 as that has been done earlier.
44 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
45 table.
46 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
47 up function descriptor.
48 (build_one_stub): Look up the function code sym. Check for
49 invalid plt offsets.
50 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
51 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
52
53 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
54 boolean param.
55 (_bfd_elf_link_hash_hide_symbol): Likewise.
56 * elflink.h (elf_link_add_object_symbols): Adjust call to
57 elf_backend_hide_symbol.
58 (elf_fix_symbol_flags): Likewise.
59 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
60 than bfd_alloc.
61 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
62 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
63 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
64 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
65 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
66 and adjust to suit.
67 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
68 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
69 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
70
71 2002-01-18 Alan Modra <amodra@bigpond.net.au>
72
73 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
74 dynamic function descriptor symbol, not the associated function
75 symbol.
76
77 2002-01-17 Eric Christopher <echristo@redhat.com>
78
79 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
80
81 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
82
83 * po/bfd.pot: Regenerate.
84 * po/fr.po: Regenerate.
85
86 2002-01-17 Alan Modra <amodra@bigpond.net.au>
87
88 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
89 Remove "Elf_Internal_Shdr *" param.
90 (_bfd_mips_elf_section_from_bfd_section): Ditto.
91 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
92 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
93 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
94 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
95 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
96 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
97 function to override special sections. Remove hdr arg from
98 backend call, and don't loop.
99
100 2002-01-16 Eric Christopher <echristo@redhat.com>
101
102 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
103 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
104 relocations requiring gp0 and gp.
105
106 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
107
108 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
109 EF_ARM_VFP_FLOAT.
110 (elf32_arm_print_private_bfd_data): Likewise.
111
112 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
113
114 * po/tr.po: Import new version.
115
116 2002-01-16 Alan Modra <amodra@bigpond.net.au>
117
118 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
119 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
120 (ORI_R0_R0_0): Correct.
121
122 2002-01-16 Alan Modra <amodra@bigpond.net.au>
123
124 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
125 when plt_not_loaded.
126 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
127 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
128 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
129 (ppc64_elf_glink_code): Delete.
130 (PPC64_ELF_GLINK_SIZE): Delete.
131 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
132 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
133 ORI_R0_R0_0): Define.
134 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
135 (struct ppc_link_hash_table): Add sstub and plt_overflow.
136 (ppc64_elf_link_hash_table_create): Init them.
137 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
138 Don't copy to shared lib.
139 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
140 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
141 (allocate_dynrelocs <plt>): Don't change function sym here. Make
142 room for .stub and .glink code.
143 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
144 DT_PPC64_GLINK.
145 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
146 bfd_elf64_bfd_final_link.
147 (bfd_elf64_bfd_final_link): Don't define.
148 (ppc64_elf_size_stubs): New.
149 (build_plt_stub): New.
150 (build_one_stub): New.
151 (ppc64_elf_build_stubs): New.
152 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
153 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
154 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
155 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
156 case output sections not separate. Adjust DT_RELASZ to not
157 include plt relocs. Set reserved got entry. Set got and plt
158 entry size.
159 (elf_backend_got_header_size): Set to 8.
160 * elf64-ppc.h: New file.
161
162 2002-01-16 Alan Modra <amodra@bigpond.net.au>
163
164 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
165 sections, use bfd_section_list_remove.
166 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
167 * elflink.h (elf_link_add_object_symbols): When removing all
168 sections, use bfd_section_list_clear.
169
170 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
171
172 * po/sv.po: New file: Swedish translation.
173 * configure.in (ALL_LINGUAS): Add sv.
174 * configure: Regenerate.
175
176 2002-01-15 Jakub Jelinek <jakub@redhat.com>
177
178 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
179 * elf.c (merge_sections_remove_hook): New function.
180 (_bfd_elf_merge_sections): Pass it as 3rd argument to
181 _bfd_merge_sections.
182 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
183 * libbfd.h: Rebuilt.
184 * merge.c (_bfd_merge_sections): Add remove_hook argument.
185 Call remove_hook if a SEC_EXCLUDE section is encountered.
186
187 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
188
189 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
190 (xstormy16_reloc_map): Initialise new field with correct howto
191 table.
192 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
193 howto entry.
194
195 2002-01-10 Michael Snyder <msnyder@redhat.com>
196
197 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
198 (elfcore_write_pstatus): Use long instead of pid_t;
199 * elf-bfd.h: Change prototypes to use long instead of pid_t;
200
201 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
202
203 * elf.c: Update copyright years.
204 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
205 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
206
207 2002-01-08 Michael Snyder <msnyder@redhat.com>
208
209 Add capability to write corefile note sections, for gdb.
210 * elf.c (elfcore_write_note): New function.
211 (elfcore_write_prpsinfo): New function.
212 (elfcore_write_prstatus): New function.
213 (elfcore_write_pstatus): New function.
214 (elfcore_write_prfpreg): New function.
215 (elfcore_write_prxfpreg): New function.
216 * elf-bfd.h: Add prototypes for above functions.
217
218 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
219
220 * elf.c (elf_fake_sections): Propagate errors from
221 elf_backend_fake_section.
222
223 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
224
225 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
226 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
227 (elf32-sh-nbsd.lo): New rule.
228 * Makefile.in: Regenerate.
229 * config.bfd (sh*le-*-netbsdelf*): New target.
230 (sh*-*-netbsdelf*): New target.
231 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
232 (bfd_elf32_shnbsd_vec): New vector.
233 (bfd_elf32_shlnbsd_vec): New vector.
234 * configure: Regenerate.
235 * elf32-sh-nbsd.c: New file.
236 * targets.c: Update copyright years.
237 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
238 bfd_elf32_shnbsd_vec.
239
240 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
241
242 * coff-rs6000.c (READ20): Use bfd_scan_vma.
243
244 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
245
246 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
247 of a symbol in a section that will be deleted.
248
249 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
250
251 * po/es.po: New file: Spanish translation.
252 * configure.in (ALL_LINGUAS): Add es.
253 * configure: Regenerate.
254
255 2002-01-06 Steve Ellcey <sje@cup.hp.com>
256
257 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
258 argument so we can handle HP-UX specially.
259 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
260 (elfNN_hpux_backend_section_from_bfd_section): New for support
261 of SHN_IA_64_ANSI_COMMON.
262 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
263 (is_unwind_section_name): Add special HP-UX support.
264 (elfNN_ia64_section_from_shdr): Add support for more sections.
265 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
266 add support for more sections.
267 (elfNN_ia64_additional_program_headers): Modify
268 is_unwind_section_name call.
269 (elfNN_ia64_modify_segment_map): Remove assumption that there is
270 only one unwind section in segment.
271
272 2002-01-06 Alan Modra <amodra@bigpond.net.au>
273
274 * syms.c (_bfd_generic_make_empty_symbol): New function.
275 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
276 _bfd_generic_make_empty_symbol.
277 * libbfd.h: Regenerate.
278 * bfd-in2.h: Regenerate.
279 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
280 (hppabsd_core_get_symtab_upper_bound): Don't define.
281 (hppabsd_core_get_symtab): Likewise.
282 (hppabsd_core_print_symbol): Likewise.
283 (hppabsd_core_get_symbol_info): Likewise.
284 (hppabsd_core_bfd_is_local_label_name): Likewise.
285 (hppabsd_core_get_lineno): Likewise.
286 (hppabsd_core_find_nearest_line): Likewise.
287 (hppabsd_core_bfd_make_debug_symbol): Likewise.
288 (hppabsd_core_read_minisymbols): Likewise.
289 (hppabsd_core_minisymbol_to_symbol): Likewise.
290 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
291 Formatting fixes.
292 * hpux-core.c: Similarly.
293 * irix-core.c: Similarly.
294 * osf-core.c: Similarly.
295 * sco5-core.c: Similarly.
296 * binary.c (binary_make_empty_symbol): Remove function, define as
297 _bfd_generic_make_empty_symbol.
298 * ihex.c (ihex_make_empty_symbol): Likewise.
299 * mmo.c (mmo_make_empty_symbol): Likewise.
300 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
301 * srec.c (srec_make_empty_symbol): Likewise.
302 * versados.c (versados_make_empty_symbol): Likewise.
303 * vms.c (_bfd_vms_make_empty_symbol): Remove.
304 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
305 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
306 rather than _bfd_vms_make_empty_symbol.
307 * vms-misc.c (new_symbol): Likewise.
308
309 2002-01-05 Alan Modra <amodra@bigpond.net.au>
310
311 * section.c (bfd_section_init): Remove unnecessary initialisations.
312 (bfd_section_list_clear): New function.
313 (bfd_section_list_remove, bfd_section_list_insert): New macros.
314 (_bfd_strip_section_from_output): Use them.
315 * coffcode.h (coff_set_alignment_hook): Likewise.
316 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
317 * elf64-mips.c (mips_elf64_final_link): Likewise.
318 * elf64-mmix.c (mmix_elf_final_link): Likewise.
319 * sunos.c (sunos_add_dynamic_symbols): Likewise.
320 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
321 * bfd-in2.h: Regenerate.
322
323 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
324 rather than doing our own section handling. Clean up after errors
325 with bfd_release and bfd_section_list_clear. Handle unexpected
326 flags.
327 * aoutf1.h (sunos4_core_file_p): Likewise.
328 * aix386-core.c (aix386_core_file_p): Likewise.
329 * cisco-core.c (cisco_core_file_validate): Likewise.
330 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
331 * trad-core.c (trad_unix_core_file_p): Likewise.
332
333 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
334 with bfd_release and bfd_section_list_clear.
335 * hpux-core.c (hpux_core_core_file_p): Likewise.
336 * irix-core.c (irix_core_core_file_p): Likewise.
337 * lynx-core.c (lynx_core_file_p): Likewise.
338 * osf-core.c (osf_core_core_file_p): Likewise.
339 * rs6000-core.c (rs6000coff_core_p): Likewise.
340 * sco5-core.c (sco5_core_file_p): Likewise.
341
342 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
343 sign extension adjustments without conditionals.
344
345 2002-01-04 Jakub Jelinek <jakub@redhat.com>
346
347 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
348 CIE at .eh_frame start is removed due to no FDEs referencing it.
349
350 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
351
352 * config.bfd (x86_64-*-netbsd*): New target.
353 * configure.in (x86_64-*-netbsd*): Set COREFILE
354 to netbsd-core.lo.
355 * configure: Regenerated.
356
357 2002-01-03 Tom Rix <trix@redhat.com>
358
359 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
360 for recent bfd_make_section_anyway change.
361
362 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
363
364 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
365 R_ARM_THM_PC11 reloc.
366
367 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
368
369 * configure.in (LINGUAS): Add ja.
370 * configure: Regenerate.
371 * po/ja.po: Import from translation project's web site.
372
373 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
374
375 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
376 messages to ease translation into other languages.
377
378 For older changes see ChangeLog-0001
379 \f
380 Local Variables:
381 mode: change-log
382 left-margin: 8
383 fill-column: 74
384 version-control: never
385 End:
This page took 0.038626 seconds and 4 git commands to generate.