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