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