OSDN Git Service

f366a997c9e745cee670e46a67168d2388a92306
[pf3gnuchains/pf3gnuchains3x.git] / bfd / ChangeLog
1 2002-01-16  Eric Christopher  <echristo@redhat.com>
2
3         * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
4         on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
5         relocations requiring gp0 and gp.
6
7 2002-01-16  Richard Earnshaw  <rearnsha@arm.com>
8
9         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
10         EF_ARM_VFP_FLOAT.
11         (elf32_arm_print_private_bfd_data): Likewise.
12
13 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
14
15         * po/tr.po: Import new version.
16
17 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
18
19         * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
20         (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
21         (ORI_R0_R0_0): Correct.
22
23 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
24
25         * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
26         when plt_not_loaded.
27         * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
28         clear .plt SEC_CODE here.  Create .stub and correct .glink flags.
29         (PLT_INITIAL_ENTRY_SIZE): Set to 24.
30         (ppc64_elf_glink_code): Delete.
31         (PPC64_ELF_GLINK_SIZE): Delete.
32         (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
33         BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
34         ORI_R0_R0_0): Define.
35         (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
36         (struct ppc_link_hash_table): Add sstub and plt_overflow.
37         (ppc64_elf_link_hash_table_create): Init them.
38         (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
39         Don't copy to shared lib.
40         (ppc64_elf_check_relocs): Call bfd_set_error on errors.
41         (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
42         (allocate_dynrelocs <plt>): Don't change function sym here.  Make
43         room for .stub and .glink code.
44         (ppc64_elf_size_dynamic_sections): Handle .stub.  Make entry for
45         DT_PPC64_GLINK.
46         (ppc64_elf_final_link): Rename to ppc64_elf_set_toc.  Don't call
47         bfd_elf64_bfd_final_link.
48         (bfd_elf64_bfd_final_link): Don't define.
49         (ppc64_elf_size_stubs): New.
50         (build_plt_stub): New.
51         (build_one_stub): New.
52         (ppc64_elf_build_stubs): New.
53         (ppc64_elf_relocate_section <toc relocs>): Remove assert.
54         (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
55         (ppc64_elf_finish_dynamic_symbol): Don't build stubs here.  Set
56         DT_PPC64_GLINK entry.  Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
57         case output sections not separate.  Adjust DT_RELASZ to not
58         include plt relocs.  Set reserved got entry.  Set got and plt
59         entry size.
60         (elf_backend_got_header_size): Set to 8.
61         * elf64-ppc.h: New file.
62
63 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
64
65         * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
66         sections, use bfd_section_list_remove.
67         * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
68         * elflink.h (elf_link_add_object_symbols): When removing all
69         sections, use bfd_section_list_clear.
70
71 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
72
73         * po/sv.po: New file: Swedish translation.
74         * configure.in (ALL_LINGUAS): Add sv.
75         * configure: Regenerate.
76
77 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
78
79         * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
80         * elf.c (merge_sections_remove_hook): New function.
81         (_bfd_elf_merge_sections): Pass it as 3rd argument to
82         _bfd_merge_sections.
83         * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
84         * libbfd.h: Rebuilt.
85         * merge.c (_bfd_merge_sections): Add remove_hook argument.
86         Call remove_hook if a SEC_EXCLUDE section is encountered.
87
88 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
89
90         * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
91         (xstormy16_reloc_map): Initialise new field with correct howto
92         table.
93         (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
94         howto entry.
95
96 2002-01-10  Michael Snyder  <msnyder@redhat.com>
97
98         * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
99         (elfcore_write_pstatus): Use long instead of pid_t;
100         * elf-bfd.h: Change prototypes to use long instead of pid_t;
101
102 2002-01-09  Jason Thorpe  <thorpej@wasabisystems.com>
103
104         * elf.c: Update copyright years.
105         (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
106         and NT_NETBSDCORE_FIRSTMACH.  Improve a comment.
107
108 2002-01-08  Michael Snyder  <msnyder@redhat.com>
109
110         Add capability to write corefile note sections, for gdb.
111         * elf.c (elfcore_write_note): New function.
112         (elfcore_write_prpsinfo): New function.
113         (elfcore_write_prstatus): New function.
114         (elfcore_write_pstatus): New function.
115         (elfcore_write_prfpreg): New function.
116         (elfcore_write_prxfpreg): New function.
117         * elf-bfd.h: Add prototypes for above functions.
118
119 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
120
121         * elf.c (elf_fake_sections): Propagate errors from
122         elf_backend_fake_section.
123
124 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
125
126         * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
127         (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
128         (elf32-sh-nbsd.lo): New rule.
129         * Makefile.in: Regenerate.
130         * config.bfd (sh*le-*-netbsdelf*): New target.
131         (sh*-*-netbsdelf*): New target.
132         * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
133         (bfd_elf32_shnbsd_vec): New vector.
134         (bfd_elf32_shlnbsd_vec): New vector.
135         * configure: Regenerate.
136         * elf32-sh-nbsd.c: New file.
137         * targets.c: Update copyright years.
138         (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
139         bfd_elf32_shnbsd_vec.
140
141 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
142
143         * coff-rs6000.c (READ20): Use bfd_scan_vma.
144
145 2002-01-07  Geoffrey Keating  <geoffk@redhat.com>
146
147         * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
148         of a symbol in a section that will be deleted.
149
150 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
151
152         * po/es.po: New file: Spanish translation.
153         * configure.in (ALL_LINGUAS): Add es.
154         * configure: Regenerate.
155
156 2002-01-06  Steve Ellcey  <sje@cup.hp.com>
157
158         * elfxx-ia64.c (is_unwind_section_name): Add target vector as
159         argument so we can handle HP-UX specially.
160         (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
161         (elfNN_hpux_backend_section_from_bfd_section): New for support
162         of SHN_IA_64_ANSI_COMMON.
163         (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
164         (is_unwind_section_name): Add special HP-UX support.
165         (elfNN_ia64_section_from_shdr): Add support for more sections.
166         (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
167         add support for more sections.
168         (elfNN_ia64_additional_program_headers): Modify
169         is_unwind_section_name call.
170         (elfNN_ia64_modify_segment_map): Remove assumption that there is
171         only one unwind section in segment.
172
173 2002-01-06  Alan Modra  <amodra@bigpond.net.au>
174
175         * syms.c (_bfd_generic_make_empty_symbol): New function.
176         * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
177         _bfd_generic_make_empty_symbol.
178         * libbfd.h: Regenerate.
179         * bfd-in2.h: Regenerate.
180         * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
181         (hppabsd_core_get_symtab_upper_bound): Don't define.
182         (hppabsd_core_get_symtab): Likewise.
183         (hppabsd_core_print_symbol): Likewise.
184         (hppabsd_core_get_symbol_info): Likewise.
185         (hppabsd_core_bfd_is_local_label_name): Likewise.
186         (hppabsd_core_get_lineno): Likewise.
187         (hppabsd_core_find_nearest_line): Likewise.
188         (hppabsd_core_bfd_make_debug_symbol): Likewise.
189         (hppabsd_core_read_minisymbols): Likewise.
190         (hppabsd_core_minisymbol_to_symbol): Likewise.
191         (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
192         Formatting fixes.
193         * hpux-core.c: Similarly.
194         * irix-core.c: Similarly.
195         * osf-core.c: Similarly.
196         * sco5-core.c: Similarly.
197         * binary.c (binary_make_empty_symbol): Remove function, define as
198         _bfd_generic_make_empty_symbol.
199         * ihex.c (ihex_make_empty_symbol): Likewise.
200         * mmo.c (mmo_make_empty_symbol): Likewise.
201         * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
202         * srec.c (srec_make_empty_symbol): Likewise.
203         * versados.c (versados_make_empty_symbol): Likewise.
204         * vms.c (_bfd_vms_make_empty_symbol): Remove.
205         (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
206         * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
207         rather than _bfd_vms_make_empty_symbol.
208         * vms-misc.c (new_symbol): Likewise.
209
210 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
211
212         * section.c (bfd_section_init): Remove unnecessary initialisations.
213         (bfd_section_list_clear): New function.
214         (bfd_section_list_remove, bfd_section_list_insert): New macros.
215         (_bfd_strip_section_from_output): Use them.
216         * coffcode.h (coff_set_alignment_hook): Likewise.
217         * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
218         * elf64-mips.c (mips_elf64_final_link): Likewise.
219         * elf64-mmix.c (mmix_elf_final_link): Likewise.
220         * sunos.c (sunos_add_dynamic_symbols): Likewise.
221         * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
222         * bfd-in2.h: Regenerate.
223
224         * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
225         rather than doing our own section handling.  Clean up after errors
226         with bfd_release and bfd_section_list_clear.  Handle unexpected
227         flags.
228         * aoutf1.h (sunos4_core_file_p): Likewise.
229         * aix386-core.c (aix386_core_file_p): Likewise.
230         * cisco-core.c (cisco_core_file_validate): Likewise.
231         * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
232         * trad-core.c (trad_unix_core_file_p): Likewise.
233
234         * hppabsd-core.c (hppabsd_core_core_file_p):  Clean up after errors
235         with bfd_release and bfd_section_list_clear.
236         * hpux-core.c (hpux_core_core_file_p): Likewise.
237         * irix-core.c (irix_core_core_file_p): Likewise.
238         * lynx-core.c (lynx_core_file_p): Likewise.
239         * osf-core.c (osf_core_core_file_p): Likewise.
240         * rs6000-core.c (rs6000coff_core_p): Likewise.
241         * sco5-core.c (sco5_core_file_p): Likewise.
242
243         * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
244         sign extension adjustments without conditionals.
245
246 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
247
248         * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
249         CIE at .eh_frame start is removed due to no FDEs referencing it.
250
251 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
252
253         * config.bfd (x86_64-*-netbsd*): New target.
254         * configure.in (x86_64-*-netbsd*): Set COREFILE
255         to netbsd-core.lo.
256         * configure: Regenerated.
257
258 2002-01-03  Tom Rix  <trix@redhat.com>
259
260         * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
261         for recent bfd_make_section_anyway change.
262
263 2002-01-03  Nick Clifton  <nickc@cambridge.redhat.com>
264
265         * elf32-arm.h (elf32_arm_final_link_relocate): Handle
266         R_ARM_THM_PC11 reloc.
267
268 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
269
270         * configure.in (LINGUAS): Add ja.
271         * configure: Regenerate.
272         * po/ja.po: Import from translation project's web site.
273
274 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
275
276         * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
277         messages to ease translation into other languages.
278
279 For older changes see ChangeLog-0001
280 \f
281 Local Variables:
282 mode: change-log
283 left-margin: 8
284 fill-column: 74
285 version-control: never
286 End: