Commit | Line | Data |
---|---|---|
2ccdbfcc JJ |
1 | 2006-07-14 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Fix cinfo.shift2 value. | |
4 | ||
0b33793d MK |
5 | 2006-07-14 Mark Kettenis <kettenis@gnu.org> |
6 | ||
7 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Move declarations | |
8 | to the start of a block. | |
9 | ||
230d6d81 NC |
10 | 2006-07-13 Nick Clifton <nickc@redhat.com> |
11 | ||
12 | * coff-sh.c (_bfd_sh_align_load_span): Catch sh_insn_info() | |
13 | returning a NULL value. | |
14 | ||
d2dee3b2 L |
15 | 2006-07-12 H.J. Lu <hongjiu.lu@intel.com> |
16 | ||
17 | PR ld/2884 | |
18 | * elflink.c (_bfd_elf_merge_symbol): Copy the symbol info from | |
19 | the old versioned dynamic definition to the new one with | |
20 | non-default visibility. Hide the symbol if it is hidden or | |
21 | internal. | |
22 | ||
fb405f8a RS |
23 | 2006-07-12 Matthew R. Dempsky <mrd@alkemio.org> |
24 | ||
25 | * cpu-m68k.c (bfd_m68k_compatible): Handle CPU32. | |
26 | ||
fdc90cb4 JJ |
27 | 2006-07-10 Jakub Jelinek <jakub@redhat.com> |
28 | ||
29 | * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_GNU_HASH. | |
30 | (bfd_section_from_shdr, elf_fake_sections, assign_section_numbers): | |
31 | Handle SHT_GNU_HASH. | |
32 | (special_sections_g): Include .gnu.hash section. | |
33 | (bfd_elf_gnu_hash): New function. | |
34 | * elf-bfd.h (bfd_elf_gnu_hash, _bfd_elf_hash_symbol): New prototypes. | |
35 | (struct elf_backend_data): Add elf_hash_symbol method. | |
36 | * elflink.c (_bfd_elf_link_create_dynamic_sections): Create .hash | |
37 | only if info->emit_hash, create .gnu.hash section if | |
38 | info->emit_gnu_hash. | |
39 | (struct collect_gnu_hash_codes): New type. | |
40 | (elf_collect_gnu_hash_codes, elf_renumber_gnu_hash_syms, | |
41 | _bfd_elf_hash_symbol): New functions. | |
42 | (compute_bucket_count): Don't compute HASHCODES array, instead add | |
43 | that and NSYMS as arguments. Use bed->s->sizeof_hash_entry | |
44 | instead of bed->s->arch_size / 8. Fix .hash size estimation. | |
45 | When not optimizing, use the number of hashed symbols rather than | |
46 | dynsymcount. | |
47 | (bfd_elf_size_dynamic_sections): Only add DT_HASH if info->emit_hash, | |
48 | and ADD DT_GNU_HASH if info->emit_gnu_hash. | |
49 | (bfd_elf_size_dynsym_hash_dynstr): Size .hash only if info->emit_hash, | |
50 | adjust compute_bucket_count caller. Create and populate .gnu.hash | |
51 | section if info->emit_gnu_hash. | |
52 | (elf_link_output_extsym): Only populate .hash section if | |
53 | finfo->hash_sec != NULL. | |
54 | (bfd_elf_final_link): Adjust assertion. Handle DT_GNU_HASH. | |
55 | * elfxx-target.h (elf_backend_hash_symbol): Define if not yet defined. | |
56 | (elfNN_bed): Add elf_backend_hash_symbol. | |
57 | * elf64-x86-64.c (elf64_x86_64_hash_symbol): New function. | |
58 | (elf_backend_hash_symbol): Define. | |
59 | * elf32-i386.c (elf_i386_hash_symbol): New function. | |
60 | (elf_backend_hash_symbol): Define. | |
61 | ||
cfc9dfb1 NC |
62 | 2006-07-05 Nick Clifton <nickc@redhat.com> |
63 | ||
64 | PR ld/2659 | |
65 | * cofflink.c (_bfd_coff_link_input_bfd): Fix selection of aux | |
66 | entry when multiple definitions of a symbol are encountered. | |
67 | ||
10efb593 L |
68 | 2006-06-30 H.J. Lu <hongjiu.lu@intel.com> |
69 | ||
70 | * elf32-i386.c (elf_i386_relocate_section): Use xchg %ax,%ax | |
71 | instead of 2 nops. | |
72 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
73 | (elf64_x86_64_plt0_entry): Use nopl 0(%rax) instead of 4 nops. | |
74 | ||
ebcfb3c0 JJ |
75 | 2006-06-29 Jakub Jelinek <jakub@redhat.com> |
76 | ||
77 | PR ld/2513 | |
78 | * elf32-i386.c (GOT_TLS_MASK, GOT_TLS_IE_IE, GOT_TLS_IE_GD, | |
79 | GOT_TLS_IE_MASK, elf_i386_check_relocs, allocate_dynrelocs): Revert | |
80 | 2006-04-08 changes. | |
81 | (elf_i386_relocate_section): Likewise. For GD->IE transition | |
82 | change subl into addl whenever tls_type is GOT_TLS_IE_POS. | |
83 | ||
62d7a5f6 AM |
84 | 2006-06-23 Alan Modra <amodra@bigpond.net.au> |
85 | ||
86 | PR ld/2754 | |
87 | * elf.c (bfd_elf_mkobject): Don't alloc if already done. Set | |
88 | program_header_size to -1. | |
89 | (_bfd_elf_map_sections_to_segments): Adjust program_header_size check. | |
90 | (assign_file_positions_for_load_sections ): Likewise. | |
91 | (_bfd_elf_sizeof_headers): Use saved program_header_size if | |
92 | available. | |
93 | * elf32-arm.c (elf32_arm_mkobject): Call bfd_elf_mkobject, don't | |
94 | alloc if already done. | |
95 | * elf32-i386.c (elf_i386_mkobject): Likewise. | |
96 | * elf32-ppc.c (ppc_elf_mkobject): Likewise. | |
97 | * elf32-s390.c (elf_s390_mkobject): Likewise. | |
98 | * elf32-sh.c (sh_elf_mkobject): Likewise. | |
99 | * elf64-alpha.c (elf64_alpha_mkobject): Likewise. | |
100 | * elf64-ppc.c (ppc64_elf_mkobject): Likewise. | |
101 | * elf64-s390.c (elf_s390_mkobject): Likewise. | |
102 | * elf64-x86-64.c (elf64_x86_64_mkobject): Likewise. | |
103 | * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Likewise. | |
104 | ||
6a4a0940 JJ |
105 | 2006-06-20 Jakub Jelinek <jakub@redhat.com> |
106 | ||
107 | * elflink.c (elf_link_add_object_symbols): Don't create .tcommon | |
108 | section for relocatable link. | |
109 | ||
e36284ab AM |
110 | 2006-06-21 Alan Modra <amodra@bigpond.net.au> |
111 | ||
112 | * elf-bfd.h (struct elf_backend_data): Add | |
113 | elf_backend_modify_program_headers. | |
114 | * elfxx-target.h (elf_backend_modify_program_headers): Define. | |
115 | (elfNN_bed): Init new field. | |
116 | * elf.c (elf_modify_segment_map): Remove comment. | |
117 | (assign_file_positions_for_load_sections): Only call | |
118 | elf_modify_segment_map for objcopy/strip. | |
119 | (assign_file_positions_except_relocs): Call | |
120 | elf_backend_modify_program_headers. | |
121 | * elf32-frv.c (elf32_frvfdpic_always_size_sections): Don't make | |
122 | .stack section. | |
123 | (elf32_frvfdpic_modify_segment_map): Delete. | |
124 | (elf32_frvfdpic_modify_program_headers): New. | |
125 | (elf_backend_modify_segment_map): Don't define. | |
126 | (elf_backend_modify_program_headers): Define. | |
127 | * elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Don't make | |
128 | .stack section. | |
129 | (elf32_bfinfdpic_modify_segment_map): Delete. | |
130 | (elf32_bfinfdpic_modify_program_headers): New. | |
131 | (elf_backend_modify_segment_map): Don't define. | |
132 | (elf_backend_modify_program_headers): Define. | |
133 | * elfxx-ia64.c (elfNN_ia64_modify_program_headers): New function. | |
134 | Split out from.. | |
135 | (elfNN_ia64_modify_segment_map): ..here. | |
136 | (elf_backend_modify_program_headers): Define. | |
137 | ||
ed66ec07 JJ |
138 | 2006-06-20 Jakub Jelinek <jakub@redhat.com> |
139 | ||
140 | * bfd.c (bfd_record_phdr): Clear p_align and p_align_valid fields. | |
141 | * elf.c (_bfd_elf_link_hash_table_init): Clear hplt field. | |
142 | ||
8ded5a0f AM |
143 | 2006-06-20 Alan Modra <amodra@bigpond.net.au> |
144 | ||
145 | * elf-bfd.h: Formatting. | |
146 | (_bfd_elf_map_sections_to_segments): Declare. | |
147 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame_hdr): Don't | |
148 | clear program_header_size. | |
149 | * elf.c (get_program_header_size): Move. Don't use or set saved | |
150 | program_header_size here. | |
151 | (elf_modify_segment_map): New function. Split out from.. | |
152 | (assign_file_positions_for_load_sections): ..here. Assert | |
153 | header size is correct. Remove dead code. | |
154 | (_bfd_elf_map_sections_to_segments): Rename from | |
155 | map_sections_to_segments. Make global. Use get_program_header_size | |
156 | when we need estimate of header size. Call elf_modify_segment_map. | |
157 | Set program_header_size. | |
158 | (print_segment_map): Delete. | |
159 | (_bfd_elf_sizeof_headers): If segment_map available, get the | |
160 | actual size. | |
161 | * elf32-arm.c (elf32_arm_symbian_modify_segment_map): Make safe | |
162 | for calling more than once. | |
163 | * elf32-bfin.c (elf32_bfinfdpic_modify_segment_map): Likewise. | |
164 | * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Likewise. | |
165 | * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Likewise. | |
166 | * elf32-i370.c (elf_backend_add_symbol_hook): Delete. | |
167 | (elf_backend_additional_program_headers): Delete. | |
168 | (elf_backend_modify_segment_map): Delete. | |
169 | * elf64-hppa.c (elf64_hppa_modify_segment_map): Convert to ISO C. | |
170 | * elfxx-ia64.c (elfNN_ia64_modify_segment_map): Likewise. | |
171 | * doc/bfdint.texi: Delete SIZEOF_HEADERS difficulties. | |
172 | ||
0fa3dcad PB |
173 | 2006-06-19 Vladimir Prus <vladimir@codesourcery.com> |
174 | ||
175 | * elf32-arm.c (elf32_arm_swap_symbol_out): Don't set low | |
176 | bit for undefined symbols. | |
177 | ||
a6b96beb AM |
178 | 2006-06-19 Alan Modra <amodra@bigpond.net.au> |
179 | ||
180 | * elf-bfd.h (struct elf_backend_data): Add bfd_link_info pointer | |
181 | parameter. | |
182 | (_bfd_elf_sizeof_headers): Replace bfd_boolean param with | |
183 | bfd_link_info pointer. | |
184 | * targets.c (struct bfd_target <_bfd_sizeof_headers>): Likewise. | |
185 | * bfd.c (bfd_sizeof_headers): Tweak param name. | |
186 | * aout-adobe.c (aout_adobe_sizeof_headers): Adjust. | |
187 | * aoutx.h (NAME (aout, sizeof_headers)): Adjust. | |
188 | * binary.c (binary_sizeof_headers): Adjust. | |
189 | * bout.c (b_out_sizeof_headers): Adjust. | |
190 | * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Adjust. | |
191 | * coff64-rs6000.c (xcoff64_sizeof_headers): Adjust. | |
192 | * coffgen.c (coff_sizeof_headers): Adjust. | |
193 | * ecoff.c (_bfd_ecoff_sizeof_headers): Adjust. | |
194 | (ecoff_compute_section_file_positions): Adjust. | |
195 | (_bfd_ecoff_write_object_contents): Adjust. | |
196 | * elf.c (get_program_header_size, _bfd_elf_sizeof_headers): Adjust. | |
197 | * elf32-arm.c (elf32_arm_additional_program_headers): Adjust. | |
198 | * elf32-i370.c (elf_backend_additional_program_headers): Adjust. | |
199 | * elf32-ppc.c (ppc_elf_additional_program_headers): Adjust. | |
200 | * elf64-hppa.c (elf64_hppa_additional_program_headers): Adjust. | |
201 | * elf64-x86-64.c (elf64_x86_64_additional_program_headers): Adjust. | |
202 | * elfxx-ia64.c (elfNN_ia64_additional_program_headers): Adjust. | |
203 | * elfxx-mips.c (_bfd_mips_elf_additional_program_headers): Adjust. | |
204 | * elfxx-mips.h (_bfd_mips_elf_additional_program_headers): Adjust. | |
205 | * i386msdos.c: Convert to ISO C. | |
206 | (msdos_sizeof_headers): Adjust. | |
207 | * i386os9k.c: Convert to ISO C. | |
208 | (os9k_sizeof_headers): Adjust. | |
209 | * ieee.c (ieee_sizeof_headers): Adjust. | |
210 | * ihex.c (ihex_sizeof_headers): Adjust. | |
211 | * libaout.h (NAME (aout, sizeof_headers)): Adjust. | |
212 | * libbfd-in.h (_bfd_nolink_sizeof_headers): Adjust. | |
213 | * libcoff-in.h (coff_sizeof_headers): Adjust. | |
214 | * libecoff.h (_bfd_ecoff_sizeof_headers): Adjust. | |
215 | * mach-o.c (bfd_mach_o_sizeof_headers): Adjust. | |
216 | * mmo.c (mmo_sizeof_headers): Adjust. | |
217 | * oasys.c (oasys_sizeof_headers): Adjust. | |
218 | * pdp11.c (NAME (aout, sizeof_headers)): Adjust. | |
219 | * pef.c (bfd_pef_sizeof_headers): Adjust. | |
220 | * ppcboot.c (ppcboot_sizeof_headers): Adjust. | |
221 | * som.c (som_sizeof_headers): Adjust. | |
222 | * srec.c (srec_sizeof_headers): Adjust. | |
223 | * tekhex.c (tekhex_sizeof_headers): Adjust. | |
224 | * versados.c (versados_sizeof_headers): Adjust. | |
225 | * vms.c (vms_sizeof_headers): Adjust. | |
226 | * xcoff-target.h (_bfd_xcoff_sizeof_headers): Adjust. | |
227 | * xsym.c (bfd_sym_sizeof_headers): Adjust. | |
228 | * xsym.h (bfd_sym_sizeof_headers): Adjust. | |
229 | * bfd-in2.h: Regenerate. | |
230 | * libbfd.h: Regenerate. | |
231 | * libcoff.h: Regenerate. | |
232 | ||
4962c51a MS |
233 | 2006-06-15 Mark Shinwell <shinwell@codesourcery.com> |
234 | ||
235 | * bfd-in2.h: Regenerate. | |
236 | * elf32-arm.c (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0, | |
237 | R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1, R_ARM_ALU_PC_G2, | |
238 | R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2, R_ARM_LDRS_PC_G0, | |
239 | R_ARM_LDRS_PC_G1, R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0, | |
240 | R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2, R_ARM_ALU_SB_G0_NC, | |
241 | R_ARM_ALU_SB_G0, R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1, | |
242 | R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1, | |
243 | R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0, R_ARM_LDRS_SB_G1, | |
244 | R_ARM_LDRS_SB_G2, R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, | |
245 | R_ARM_LDC_SB_G2): New relocation types. | |
246 | (R_ARM_PC13): Rename to AAELF name R_ARM_LDR_PC_G0 and | |
247 | adjust HOWTO entry to be consistent with R_ARM_LDR_PC_G1 | |
248 | and friends. | |
249 | (elf32_arm_howto_table_3): Delete; contents merged into | |
250 | elf32_arm_howto_table_2. | |
251 | (elf32_arm_howto_from_type): Adjust correspondingly. | |
252 | (elf32_arm_reloc_map): Extend with the above relocations. | |
253 | (calculate_group_reloc_mask): New function. | |
254 | (identify_add_or_sub): New function. | |
255 | (elf32_arm_final_link_relocate): Support for the above | |
256 | relocations. | |
257 | * reloc.c: Add enumeration entries for BFD_RELOC_ARM_... | |
258 | codes to correspond to the above relocations. | |
259 | ||
cc3e26be RS |
260 | 2006-06-14 Richard Sandiford <richard@codesourcery.com> |
261 | ||
262 | * elf32-m68k.c (elf_m68k_plt_info): New structure. | |
263 | (elf_m68k_plt0_entry): Add R_68K_PC32-style in-place addends. | |
264 | (elf_m68k_plt_entry): Likewise. | |
265 | (elf_m68k_plt_info): New table. | |
266 | (CFV4E_PLT_ENTRY_SIZE): Rename to... | |
267 | (ISAB_PLT_ENTRY_SIZE): ...this. | |
268 | (CFV4E_FLAG): Delete. | |
269 | (elf_cfv4e_plt0_entry): Rename to... | |
270 | (elf_isab_plt0_entry): ...this. Adjust comments. Use (-6,%pc,%d0) | |
271 | for the second instruction too. | |
272 | (elf_cfv4e_plt_entry): Rename to... | |
273 | (elf_isab_plt_entry): ...this. Adjust comments and use (-6,%pc,%d0). | |
274 | (elf_isab_plt_info): New table. | |
275 | (CPU32_FLAG): Delete. | |
276 | (PLT_CPU32_ENTRY_SIZE): Rename to... | |
277 | (CPU32_PLT_ENTRY_SIZE): ...this. | |
278 | (elf_cpu32_plt0_entry): Update bounds accordingly. Add R_68K_PC32- | |
279 | style in-place addends. | |
280 | (elf_cpu32_plt_entry): Likewise. | |
281 | (elf_cpu32_plt_info): New table. | |
282 | (elf_m68k_link_hash_table): Add a plt_info field. | |
283 | (elf_m68k_link_hash_table_create): Initialize it. | |
284 | (elf_m68k_get_plt_info): New function. | |
285 | (elf_m68k_always_size_sections): Likewise. | |
286 | (elf_m68k_adjust_dynamic_symbol): Use the plt_info hash table field. | |
287 | (elf_m68k_install_pc32): New function. | |
288 | (elf_m68k_finish_dynamic_symbol): Factor code using plt_info and | |
289 | elf_m68k_install_pc32. | |
290 | (elf_m68k_finish_dynamic_sections): Likewise. | |
291 | (elf_m68k_plt_sym_val): Use elf_m68k_get_plt_info. | |
292 | (elf_backend_always_size_sections): Define. | |
293 | ||
4f87808c AM |
294 | 2006-06-14 Alan Modra <amodra@bigpond.net.au> |
295 | ||
296 | * elflink.c (elf_link_add_object_symbols): Save and restore | |
297 | struct bfd_hash_table table, size and count fields for | |
298 | as-needed libs. | |
299 | ||
7fd91fe0 TS |
300 | 2006-06-12 Thiemo Seufer <ths@mips.com> |
301 | ||
302 | * elf32-mips.c: Expand comment about ABI-mandated pagesize values. | |
303 | (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): define in a more obvious way. | |
304 | * elf64-mips.c, elfn32-mips.c (ELF_MAXPAGESIZE): Fix value for IRIX6. | |
305 | Delete old comments. | |
306 | (ELF_COMMONPAGESIZE): Define in a more obvious way. | |
307 | ||
d07676f8 NC |
308 | 2006-06-12 Nick Clifton <nickc@redhat.com> |
309 | ||
310 | PR binutils/2735 | |
311 | * elflink.c (elf_link_add_object_symbols): Fix the warning message | |
312 | about mismatched alignments to allow for the case where the common | |
313 | alignment has been deduced from the section alignment. | |
314 | * bfd.c (_bfd_default_error_handler): Update comment to explain | |
315 | why bfd and asection varargs are out of order. Explicitly catch | |
316 | and abort on NULL bfd and asection arguments. | |
317 | ||
5108fc1b RS |
318 | 2006-06-11 Richard Sandiford <richard@codesourcery.com> |
319 | Thiemo Seufer <ths@mips.com> | |
320 | ||
321 | * elfxx-mips.c (mips_elf_link_hash_table): Add function_stub_size. | |
322 | (STUB_ORI): New macro. | |
323 | (STUB_LI16U): Fix formatting. | |
324 | (MIPS_FUNCTION_STUB_SIZE): Delete. | |
325 | (MIPS_FUNCTION_STUB_MAX_SIZE): Likewise. | |
326 | (MIPS_FUNCTION_STUB_NORMAL_SIZE): New macro. | |
327 | (MIPS_FUNCTION_STUB_BIG_SIZE): Likewise. | |
328 | (_bfd_mips_elf_adjust_dynamic_symbol): Use htab->function_stub_size | |
329 | instead of MIPS_FUNCTION_STUB_SIZE. | |
330 | (count_section_dynsyms): New function, split out from | |
331 | _bfd_mips_elf_final_link. | |
332 | (_bfd_mips_elf_always_size_sections): Get a worst-case estimate | |
333 | of the number of dynamic symbols needed and use it to set up | |
334 | function_stub_size. Use function_stub_size rather than | |
335 | MIPS_FUNCTION_STUB_SIZE to determine the size of the stub section. | |
336 | Use 16-byte stubs for 0x10000 dynamic symbols. | |
337 | (_bfd_mips_elf_size_dynamic_sections): Use htab->function_stub_size | |
338 | instead of MIPS_FUNCTION_STUB_SIZE. Fix formatting. | |
339 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Change the | |
340 | size of the stub buffer from MIPS_FUNCTION_STUB_MAX_SIZE to | |
341 | MIPS_FUNCTION_STUB_BIG_SIZE. Tweak the check for unhandled dynindxes. | |
342 | Use MIPS_FUNCTION_STUB_BIG_SIZE rather than a hard-coded 20. | |
343 | Use STUB_ORI rather than STUB_LI16U for big stubs. | |
344 | (_bfd_mips_elf_link_hash_table_create): Initialize function_stub_size. | |
345 | (_bfd_mips_elf_final_link): Use count_section_dynsyms. | |
346 | ||
f38c2df5 TS |
347 | 2006-06-09 David Ung <davidu@mips.com> |
348 | ||
349 | * bfd/elfxx-mips.c (mips_elf_calculate_relocation): Fix mode for stub | |
350 | calling relocations. | |
351 | ||
3d6746ca DD |
352 | 2006-06-08 David Daney <ddaney@avtrex.com> |
353 | ||
354 | * elfxx-mips.c (STUB_LI16): Removed. | |
355 | (STUB_LUI): New macro. | |
356 | (STUB_LI16U): Ditto. | |
357 | (STUB_LI16S): Ditto. | |
358 | (MIPS_FUNCTION_STUB_SIZE): Rewrote to take info parameter. | |
359 | (_bfd_mips_elf_adjust_dynamic_symbol): Pass info parameter to | |
360 | MIPS_FUNCTION_STUB_SIZE. | |
361 | (_bfd_mips_elf_always_size_sections): Ditto. | |
362 | (_bfd_mips_elf_size_dynamic_sections): Ditto. | |
363 | (_bfd_mips_elf_finish_dynamic_sections): Ditto. | |
364 | (_bfd_mips_elf_finish_dynamic_symbol): Rewrote stub generation | |
365 | to allow larger symbol table indexes. | |
366 | ||
6648b7cf JM |
367 | 2006-06-07 Joseph S. Myers <joseph@codesourcery.com> |
368 | ||
369 | * po/Make-in (pdf, ps): New dummy targets. | |
370 | ||
d3fd4074 AM |
371 | 2006-06-06 Alan Modra <amodra@bigpond.net.au> |
372 | ||
0bef4ce5 AM |
373 | * hash.c (bfd_hash_lookup): Correct stray line. |
374 | ||
d3fd4074 AM |
375 | * elf.c (_bfd_elf_init_private_section_data): Comment typo. |
376 | (elfcore_grok_nto_status): Use long instead of pid_t. | |
377 | (elfcore_grok_nto_regs, elfcore_grok_nto_note): Likewise. | |
378 | ||
4cfe2c59 DJ |
379 | 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com> |
380 | ||
381 | * po/Make-in (top_builddir): Define. | |
382 | ||
7ff1a5b5 AM |
383 | 2006-06-05 Alan Modra <amodra@bigpond.net.au> |
384 | ||
385 | * Makefile.am: Run "make dep-am". | |
386 | * Makefile.in: Regenerate. | |
387 | * config.in: Regenerate. | |
388 | ||
f0b5bb34 AM |
389 | 2006-06-02 Alan Modra <amodra@bigpond.net.au> |
390 | H.J. Lu <hongjiu.lu@intel.com> | |
391 | ||
392 | PR ld/2723 | |
393 | * elflink.c (bfd_elf_final_link): Don't output section symbols | |
394 | for special ELF sections. | |
395 | ||
117ed4f8 AM |
396 | 2006-06-01 Alan Modra <amodra@bigpond.net.au> |
397 | ||
398 | * stabs.c (_bfd_link_section_stabs): Use bfd_make_section*_with_flags | |
399 | instead of bfd_make_section*. | |
400 | * aix386-core.c: Likewise. | |
401 | * aix5ppc-core.c: Likewise. | |
402 | * aout-adobe.c: Likewise. | |
403 | * aoutf1.h: Likewise. | |
404 | * binary.c: Likewise. | |
405 | * cisco-core.c: Likewise. | |
406 | * coff-arm.c: Likewise. | |
407 | * coff-h8300.c: Likewise. | |
408 | * elf.c: Likewise. | |
409 | * elf32-bfin.c: Likewise. | |
410 | * elf32-m32c.c: Likewise. | |
411 | * hppabsd-core.c: Likewise. | |
412 | * hpux-core.c: Likewise. | |
413 | * i386linux.c: Likewise. | |
414 | * ieee.c: Likewise. | |
415 | * ihex.c: Likewise. | |
416 | * irix-core.c: Likewise. | |
417 | * lynx-core.c: Likewise. | |
418 | * m68klinux.c: Likewise. | |
419 | * mach-o.c: Likewise. | |
420 | * netbsd-core.c: Likewise. | |
421 | * nlmcode.h: Likewise. | |
422 | * opncls.c: Likewise. | |
423 | * osf-core.c: Likewise. | |
424 | * peXXigen.c: Likewise. | |
425 | * ppcboot.c: Likewise. | |
426 | * ptrace-core.c: Likewise. | |
427 | * rs6000-core.c: Likewise. | |
428 | * sco5-core.c: Likewise. | |
429 | * sparclinux.c: Likewise. | |
430 | * srec.c: Likewise. | |
431 | * sunos.c: Likewise. | |
432 | * trad-core.c: Likewise. | |
433 | * xcofflink.c: Likewise. | |
434 | * xsym.c: Likewise. | |
435 | ||
20e95c23 DJ |
436 | 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com> |
437 | ||
438 | * Makefile.am (INCLUDES): Use @INCINTL@. | |
439 | * acinclude.m4: Include new gettext macros. | |
440 | * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS. | |
441 | Manually substitute POFILES and GMOFILES. | |
442 | * Makefile.in, aclocal.m4, configure, doc/Makefile.in: Regenerated. | |
443 | ||
24718e3b L |
444 | 2006-05-30 H.J. Lu <hongjiu.lu@intel.com> |
445 | ||
446 | * bfd.c (bfd_emul_get_maxpagesize): New. | |
447 | (bfd_elf_set_pagesize): Likewise. | |
448 | (bfd_emul_set_maxpagesize): Likewise. | |
449 | (bfd_emul_get_commonpagesize): Likewise. | |
450 | (bfd_emul_set_commonpagesize): Likewise. | |
451 | * bfd-in2.h: Regenerated. | |
452 | ||
453 | * elf-bfd.h (elf_backend_data): Add commonpagesize. | |
454 | (xvec_get_elf_backend_data): New. | |
455 | (get_elf_backend_data): Use xvec_get_elf_backend_data. | |
456 | ||
457 | * elf32-arm.c (elf32_arm_vxworks_bed): Remove const. | |
458 | * elfxx-target.h (elfNN_bed): Likewise. | |
459 | ||
460 | * elf32-arm.c (ELF_COMMONPAGESIZE): Defined. | |
461 | * elf32-mips.c (ELF_COMMONPAGESIZE): Likewise. | |
462 | * elf32-ppc.c (ELF_COMMONPAGESIZE): Likewise. | |
463 | * elf32-sh.c (ELF_COMMONPAGESIZE): Likewise. | |
464 | * elf32-sh64.c (ELF_COMMONPAGESIZE): Likewise. | |
465 | * elf32-sparc.c (ELF_COMMONPAGESIZE): Likewise. | |
466 | * elf64-alpha.c (ELF_COMMONPAGESIZE): Likewise. | |
467 | * elf64-ppc.c (ELF_COMMONPAGESIZE): Likewise. | |
468 | * elf64-sparc.c (ELF_COMMONPAGESIZE): Likewise. | |
469 | * elf64-x86-64.c (ELF_COMMONPAGESIZE): Likewise. | |
470 | * elfn32-mips.c (ELF_COMMONPAGESIZE): Likewise. | |
471 | * elfxx-ia64.c (ELF_COMMONPAGESIZE): Likewise. | |
472 | ||
473 | * elfxx-target.h (ELF_COMMONPAGESIZE): Define if not defined. | |
474 | (elfNN_bed): Initialize commonpagesize with ELF_COMMONPAGESIZE. | |
475 | ||
476 | * targets.c (bfd_find_target): Support NULL abfd. | |
477 | ||
eebf07fb NC |
478 | 2006-05-30 Nick Clifton <nickc@redhat.com> |
479 | ||
480 | * po/es.po: Updated Spanish translation. | |
481 | ||
3f570048 AM |
482 | 2006-05-27 Alan Modra <amodra@bigpond.net.au> |
483 | H.J. Lu <hongjiu.lu@intel.com> | |
484 | ||
485 | * elf.c (assign_file_positions_for_load_sections): Retrieve | |
486 | maxpagesize from m->p_align if it is valid. Set p_vaddr, | |
487 | p_paddr and p_align earlier. Revert 2006-05-19 change to p_align. | |
488 | (copy_elf_program_header): Copy p_align. Set p_align_valid. | |
489 | ||
2043964e L |
490 | 2006-05-26 H.J. Lu <hongjiu.lu@intel.com> |
491 | ||
492 | * elf64-x86-64.c (ELF_MINPAGESIZE): Changed to 0x1000. | |
493 | ||
494 | 2006-05-25 H.J. Lu <hongjiu.lu@intel.com> | |
495 | ||
496 | * elf64-x86-64.c (ELF_MINPAGESIZE): Set to 0x100000. | |
497 | ||
f7661549 L |
498 | 2006-05-25 H.J. Lu <hongjiu.lu@intel.com> |
499 | ||
500 | * elf64-x86-64.c (ELF_MAXPAGESIZE): Updated to 0x200000. | |
501 | ||
5372391b AM |
502 | 2006-05-26 Alan Modra <amodra@bigpond.net.au> |
503 | ||
504 | * elf.c (sym_is_global): Return a bfd_boolean. | |
505 | (ignore_section_sym): New function. | |
506 | (elf_map_symbols): Use ignore_section_sym to discard some syms. | |
507 | (_bfd_elf_symbol_from_bfd_symbol): Ensure section belongs to | |
508 | bfd before using elf_section_syms. | |
509 | ||
6566b43c L |
510 | 2006-05-25 H.J. Lu <hongjiu.lu@intel.com> |
511 | ||
512 | * config.bfd: (sh-*-linux*): Treat as 64bit target. | |
513 | (sh*l*-*-netbsdelf*): Likewise. | |
514 | (sh-*-netbsdelf*): Likewise. | |
515 | (shl*-*-elf*): Likewise. | |
516 | (sh[1234]l*-*-elf*): Likewise. | |
517 | (sh3el*-*-elf*): Likewise. | |
518 | (shl*-*-kaos*): Likewise. | |
519 | (sh-*-elf*): Likewise. | |
520 | (sh[1234]*-elf*): Likewise. | |
521 | (sh-*-rtems*): Likewise. | |
522 | (sh-*-kaos*): Likewise. | |
523 | ||
314e9a4e L |
524 | 2006-05-24 H.J. Lu <hongjiu.lu@intel.com> |
525 | ||
526 | PR ld/1485 | |
527 | * config.bfd: Set want64 to true if 64bit bfd is used. | |
528 | (sh-*-linux*): Use targ64_selvecs for 64bit targets. | |
529 | (sh*l*-*-netbsdelf*): Likewise. | |
530 | (sh-*-netbsdelf*): Likewise. | |
531 | (shl*-*-elf*): Likewise. | |
532 | (sh[1234]l*-*-elf*): Likewise. | |
533 | (sh3el*-*-elf*): Likewise. | |
534 | (shl*-*-kaos*): Likewise. | |
535 | (sh-*-elf*): Likewise. | |
536 | (sh[1234]*-elf*): Likewise. | |
537 | (sh-*-rtems*): Likewise. | |
538 | (sh-*-kaos*): Likewise. | |
539 | ||
4e617b1e PB |
540 | 2006-05-24 Paul Brook <paul@codesourcery.com> |
541 | ||
542 | * elf-bfd.h (elf_backend_data): Add elf_backend_output_arch_local_syms | |
543 | * elf32-arm.c (output_arch_syminfo): Define. | |
544 | (elf32_arm_ouput_plt_map_sym, elf32_arm_output_plt_map, | |
545 | elf32_arm_output_arch_local_syms): New functions. | |
546 | (elf_backend_output_arch_local_syms): Define. | |
547 | * elflink.c (bfd_elf_final_link): Call | |
548 | elf_backend_output_arch_local_syms. | |
549 | * elfxx-target.h (elf_backend_output_arch_local_syms): Provide default | |
550 | definition. | |
551 | (elfNN_bed): Add elf_backend_output_arch_local_syms. | |
552 | ||
52ab56c2 PB |
553 | 2006-05-24 Paul Brook <paul@codesourcery.com> |
554 | ||
555 | * elf32-arm.c (put_arm_insn, put_thumb_insn): New functions. | |
556 | (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub, | |
557 | elf32_arm_finish_dynamic_symbol): Use them. | |
558 | ||
9b52905e NC |
559 | 2006-05-24 Carlos O'Donell <carlos@systemhalted.org> |
560 | Randolph Chung <tausq@debian.org> | |
561 | ||
562 | * elf-hppa.h (reloc_hppa_howto_table): Check bitfield for | |
563 | TPREL21L/TPREL14R relocations. Handle LTOFF_TP14R relocations. | |
564 | Add handling for TLS relocations. | |
565 | (elf_hpp_reloc_final_type): Handle TLS relocs. | |
566 | * elf32-hppa.c: Add authors for cleanup and TLS support. | |
567 | (hppa_elf_local_got_tls_type, hh_name, eh_name): Define. | |
568 | (elf32_hppa_link_hash_entry): Add tls_type. | |
569 | (elf32_hppa_link_hash_table): Add tld_ldm_got. | |
570 | (hppa_link_has_newfunc): Set tls_type. | |
571 | (elf32_hppa_link_hash_table_create): Set tls_ldm_got refcount. | |
572 | (hppa_stub_name): Use hh_name macro. | |
573 | (elf32_hppa_copy_indirect_symbol): Copy TLS information. | |
574 | (elf32_hppa_check_relocs): Call elf32_hppa_optimized_tls_reloc. | |
575 | Handle TLS relocs. | |
576 | (elf32_hppa_gc_sweep_hook): Likewise. | |
577 | (allocate_dynrelocs): Handle TLS relocs. | |
578 | (elf32_hppa_size_dynamic_sections): Count space required by TLS | |
579 | relocs. Use hh_name macro. | |
580 | (dtpoff_base): New function. | |
581 | (tpoff): Likewise. | |
582 | (elf32_hppa_optimized_tls_reloc): Likewise. | |
583 | (final_link_relocate): Handle TLS relocs. | |
584 | (elf32_hppa_relocate_section): Handle TLS relocs. Use eh_name | |
585 | and hh_name macros. | |
586 | (elf32_hppa_finish_dynamic_symbol): Setup TLS got entries. Use | |
587 | hh_name and eh_name macros. | |
588 | (elf32_hppa_reloc_type_clas): Handle TLS relocs. | |
589 | ||
28c9d252 NC |
590 | 2006-05-24 Bjoern Haase <bjoern.m.haase@web.de> |
591 | ||
592 | * archures.c: Add bfd_mach_avr6. | |
593 | * cpu-avr.c: Likewise. | |
594 | * reloc.c (BFD_RELOC_AVR_LO8_LDI_GS, BFD_RELOC_AVR_HI8_LDI_GS): | |
595 | New relocations. | |
596 | * libbfd.h: Regenerate. | |
597 | * bfd-in2.h:Regenerate. | |
598 | * elf32-avr.h: New file. Protoypes for functions accessed from ld. | |
599 | * elf32-avr.c: Add elf32-avr.h to include list. | |
600 | (elf32_avr_stub_hash_entry): New function. | |
601 | (elf32_avr_link_hash_table): New struct. | |
602 | (avr_link_hash_table): Likewise. | |
603 | (avr_stub_hash_entry): Likewise. | |
604 | (avr_stub_hash_lookup): New function. | |
605 | (stub_hash_newfunc): New function. | |
606 | (elf32_avr_link_hash_table_create): New function. | |
607 | (elf32_avr_link_hash_table_free): New function. | |
608 | (avr_get_stub_addr): New function. | |
609 | (debug_relax, debug_stubs): Add new global variables controlling | |
610 | debugging printout to stdout. | |
611 | (avr_pc_wrap_around): Change the type to bfd_vma. | |
612 | (avr_replace_call_ret_sequences): Add a new variable controling | |
613 | linkrelax optimizations. | |
614 | (avr_stub_is_required_for_16_bit_reloc): New function. | |
615 | (avr_final_link_relocate): | |
616 | Add linker hash table to parameter list. Use stub addr. if necessary. | |
617 | (elf32_avr_relocate_section): | |
618 | Add linker hashtable to parameter list of avr_final_link_relocate. | |
619 | (bfd_elf_avr_final_write_processing): Add support for bfd_mach_avr6. | |
620 | (elf32_avr_object_p): Add support for E_AVR_MACH_AVR6. | |
621 | (elf32_avr_relax_delete_bytes): | |
622 | Iterate over all sections of a bfd when adjusting relocs addends. | |
623 | (elf32_avr_relax_section): | |
624 | Evaluate avr_replace_call_ret_sequences and recalculate the size of | |
625 | stub section. | |
626 | (avr_stub_name): New function. | |
627 | (avr_get_stub_entry): New function. | |
628 | (avr_add_stub): New function. | |
629 | (avr_build_one_stub): New function. | |
630 | (avr_size_one_stub): New function. | |
631 | (elf32_avr_setup_params): New function. | |
632 | (elf32_avr_setup_section_lists): New function. | |
633 | (get_local_syms): New function. | |
634 | (elf32_avr_size_stubs): New function. | |
635 | (bfd_elf32_bfd_link_hash_table_create): New function. | |
636 | (bfd_elf32_bfd_link_hash_table_free): New function. | |
637 | ||
a34a056a L |
638 | 2006-05-23 H.J. Lu <hongjiu.lu@intel.com> |
639 | ||
640 | PR ld/2655 | |
641 | PR ld/2657 | |
642 | * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Properly | |
643 | update CIE/FDE length. Don't pad to the section alignment. | |
644 | ||
8aafe8b4 JZ |
645 | 2006-05-23 Jie Zhang <jie.zhang@analog.com> |
646 | ||
647 | * elf32-bfin.c (bfinfdpic_relocate_section): Clear reloc for | |
648 | deteted entries in .eh_frame section. | |
649 | ||
5592d7ec JZ |
650 | 2006-05-23 Jie Zhang <jie.zhang@analog.com> |
651 | ||
652 | * elf32-bfin.c (bfin_check_relocs): Use __GLOBAL_OFFSET_TABLE_ | |
653 | instead of _GLOBAL_OFFSET_TABLE_. | |
654 | (bfin_relocate_section): Ditto. | |
655 | (_bfin_create_got_section): Ditto. | |
656 | (elf32_bfinfdpic_create_dynamic_sections): Use | |
657 | __PROCEDURE_LINKAGE_TABLE_ instead of _PROCEDURE_LINKAGE_TABLE_. | |
658 | (bfin_finish_dynamic_symbol): Use __DYNAMIC instead of _DYNAMIC. | |
659 | ||
4d35a0aa AM |
660 | 2006-05-23 Alan Modra <amodra@bigpond.net.au> |
661 | ||
662 | * elf64-ppc.c (compare_symbols): Prefer strong dynamic global | |
663 | function syms over other syms. | |
664 | ||
943284cc DJ |
665 | 2006-05-22 Daniel Jacobowitz <dan@codesourcery.com> |
666 | ||
667 | * elflink.c (_bfd_elf_add_dynamic_entry): Remove DT_TEXTREL | |
668 | check. | |
669 | (bfd_elf_final_link): Add a late DT_TEXTREL check. | |
670 | * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): Define. | |
671 | (mips_elf_create_dynamic_relocation): Set DF_TEXTREL. | |
672 | (_bfd_mips_elf_check_relocs): Delete MIPS_READONLY_SECTION. | |
673 | Use MIPS_ELF_READONLY_SECTION. | |
674 | (_bfd_mips_elf_size_dynamic_sections): Clear DF_TEXTREL after | |
675 | creating DT_TEXTREL. | |
676 | (_bfd_mips_elf_finish_dynamic_sections): Clear textrel markers | |
677 | if no text relocations were generated. | |
678 | ||
4d345610 L |
679 | 2006-05-19 H.J. Lu <hongjiu.lu@intel.com> |
680 | ||
681 | * elfxx-ia64.c (ELF_MAXPAGESIZE): Fix a typo in comment. | |
682 | ||
1ea63fd2 AM |
683 | 2006-05-19 Alan Modra <amodra@bigpond.net.au> |
684 | ||
685 | * elf.c (elf_fake_sections): Formatting. | |
686 | (assign_file_positions_for_load_sections): Only add SEC_ALLOC | |
687 | sections to p_memsz. Remove hack for PT_NOTE sections. Allow | |
688 | section alignment to increase p_align for PT_LOAD. | |
689 | (assign_file_positions_for_non_load_sections): Remove ARM BPABI | |
690 | hack for PT_DYNAMIC. Instead, set p_filesz for all segments | |
691 | other than PT_LOAD, and PT_NOTE in core. | |
692 | ||
f3520d2f AM |
693 | 2006-05-17 Alan Modra <amodra@bigpond.net.au> |
694 | ||
695 | * elf.c (assign_file_positions_for_segments): Split into.. | |
696 | (assign_file_positions_for_load_sections): ..this, and.. | |
697 | (assign_file_positions_for_non_load_sections): ..this new function,.. | |
698 | (assign_file_positions_except_relocs): ..writing program headers here. | |
699 | ||
dea5f36a AM |
700 | 2006-05-17 Alan Modra <amodra@bigpond.net.au> |
701 | ||
702 | * elflink.c (elf_gc_sweep): Don't specially keep non-alloc, | |
703 | non-load sections if they have relocs. | |
704 | ||
b0796911 PB |
705 | 2006-05-15 Paul Brook <paul@codesourcery.com> |
706 | ||
707 | * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename ... | |
708 | (bfd_is_arm_special_symbol_name): ... to this. Add type argument. | |
709 | Check symbol name is of specified type. | |
710 | * elf32-arm.c (elf32_arm_is_target_special_symbol, | |
711 | arm_elf_find_function, elf32_arm_output_symbol_hook): Use | |
712 | bfd_is_arm_special_symbol_name. | |
713 | * bfd-in.h (BFD_ARM_SPECIAL_SYM_TYPE_MAP, | |
714 | BFD_ARM_SPECIAL_SYM_TYPE_TAG, BFD_ARM_SPECIAL_SYM_TYPE_OTHER, | |
715 | BFD_ARM_SPECIAL_SYM_TYPE_ANY): Define. | |
716 | (bfd_is_arm_mapping_symbol_name): Remove prototype. | |
717 | (bfd_is_arm_special_symbol_name): Add prototype. | |
718 | * bfd-in2.h: Regenerate. | |
719 | ||
64b607e6 BW |
720 | 2006-05-15 David Heine <dlheine@tensilica.com> |
721 | Bob Wilson <bob.wilson@acm.org> | |
722 | ||
723 | * elf32-xtensa.c (check_loop_aligned): Fix reversed check for | |
724 | undefined opcode. Clean up assertions. | |
725 | (narrow_instruction, widen_instruction): Remove "do_it" parameters. | |
726 | Factor most of the code into separate functions.... | |
727 | (can_narrow_instruction, can_widen_instruction): New. | |
728 | (prev_instr_is_a_loop): New. | |
729 | (compute_ebb_proposed_actions): Combine error handling code for | |
730 | decode errors. Replace call to insn_decode_len with inline code. | |
731 | Use can_narrow_instruction and can_widen_instruction. Handle errors | |
732 | from call to xtensa_opcode_is_loop. | |
733 | (relax_section): Adjust calls to narrow_instruction and | |
734 | widen_instruction. | |
735 | ||
7de713b9 AM |
736 | 2006-05-15 Alan Modra <amodra@bigpond.net.au> |
737 | ||
738 | PR 2658 | |
739 | * elf32-ppc.c (ppc_elf_relax_section): Don't segfault on non-pic | |
740 | -shared link. | |
741 | ||
83180ade L |
742 | 2006-05-11 Michael Matz <matz@suse.de> |
743 | ||
744 | * elflink.c (match_group_member): Correctly iterate group | |
745 | members. | |
746 | ||
b6895b4f PB |
747 | 2006-05-11 Paul Brook <paul@codesourcery.com> |
748 | ||
749 | * elf32-arm.c (elf32_arm_reloc_map): Add MOVW and MOVT relocs. | |
750 | (elf32_arm_final_link_relocate): Handle MOVW and MOVT relocs. | |
751 | (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto. | |
752 | * reloc.c: Ditto. | |
753 | * bfd-in2.h: Regenerate. | |
754 | * libbfd.h: Regenerate. | |
755 | * libcoff.h: Regenerate. | |
756 | ||
8b95791f AM |
757 | 2006-05-11 Mike Bland <mbland@google.com> |
758 | ||
759 | * elf.c (_bfd_elf_init_private_section_data): Don't change | |
760 | section type if already set. | |
761 | ||
5e1b4a6d NC |
762 | 2006-05-10 Nick Clifton <nickc@redhat.com> |
763 | ||
764 | PR ld/2607 | |
765 | * elfcode.h (valid_section_index_p): New function: Checks for a | |
766 | valid section index. Allows indicies in the range SHN_LOPROC to | |
767 | SHN_HIOS. | |
768 | (elf_object_p): Use valid_section_index_p. | |
769 | ||
53baae48 NC |
770 | 2006-05-11 Pedro Alves <pedro_alves@portugalmail.pt> |
771 | ||
772 | * coff-arm.c (ARM_26D, ARM_32, ARM_RVA_32, ARM_SECTION, | |
773 | ARM_SECREL): Mark WinCE versions of these relocs as partial | |
774 | inplace. | |
775 | (coff_arm_relocate_section): Adjust addend for WinCE. | |
776 | ||
69d54b1b AM |
777 | 2006-05-10 Alan Modra <amodra@bigpond.net.au> |
778 | ||
779 | PR 2342 | |
780 | * elflink.c (_bfd_elf_default_action_discarded): Revert 2006-02-16. | |
781 | ||
337ff0a5 NC |
782 | 2006-05-09 Nick Clifton <nickc@redhat.com> |
783 | ||
784 | * coffcode.h (coff_write_relocs): Produce an error message if a an | |
785 | out-of-range symbol index is detected in a reloc. | |
786 | ||
e4d4d200 BE |
787 | 2006-05-09 Ben Elliston <bje@au.ibm.com> |
788 | ||
789 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Remove unused | |
790 | local variable `dynobj'. | |
791 | ||
73160847 NC |
792 | 2006-05-05 Bjoern Haase <bjoern.m.haase@web.de> |
793 | ||
336e5de1 | 794 | * elf32-avr.c (elf32_avr_relax_delete_bytes): Iterate over all |
73160847 NC |
795 | of the bfd's sections for the reloc-addend adjustments. |
796 | ||
77df2968 MS |
797 | 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com> |
798 | ||
799 | * elf32-s390.c (invalid_tls_insn): Call bfd_set_error. | |
800 | (elf_s390_relocate_section): Add code to do the GD->LE and | |
801 | LD->LE TLS linker optimizations if a brasl instruction is used | |
802 | for the __tls_get_offset function call. | |
803 | * elf64-s390.c (invalid_tls_insn): Call bfd_set_error. | |
804 | ||
30038c59 AM |
805 | 2006-05-05 Alan Modra <amodra@bigpond.net.au> |
806 | ||
807 | * elf64-ppc.c (ppc64_elf_tls_optimize): Only optimize | |
808 | R_PPC64_TPREL64 and R_PPC64_DTPMOD64 relocs when they are in | |
809 | the .toc and referenced by a TLS code sequence. | |
810 | (ppc64_elf_edit_toc): Cater for the unlikely situation that | |
811 | .toc is the first section in a file. | |
812 | ||
ff8b75c7 AS |
813 | 2006-05-04 Andreas Schwab <schwab@suse.de> |
814 | ||
815 | * aoutf1.h (struct external_sparc_core): Declare c_regs as struct | |
816 | regs instead of an array of int. | |
817 | (struct external_solaris_bcp_core): Likewise. | |
818 | (swapcore_sun3): Use offsetof instead of computing the offset | |
819 | manually. | |
820 | (swapcore_sparc): Likewise. Simplify reference to c_regs. | |
821 | (swapcore_solaris_bcp): Likewise. | |
822 | ||
003b8e1d DJ |
823 | 2006-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
824 | ||
825 | * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Adjust handling | |
826 | for missing GOTs. | |
827 | ||
efacb0fb DJ |
828 | 2006-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
829 | ||
27106ff0 | 830 | * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more |
efacb0fb DJ |
831 | mapping symbols. |
832 | ||
9578239d BE |
833 | 2006-05-04 Ben Elliston <bje@au.ibm.com> |
834 | ||
835 | * coff-or32.c (bfd_section_from_shdr): Remove unused local | |
836 | variable `ptr'. | |
837 | * cofflink.c (process_embedded_commands): Remove unused local | |
838 | variables `had_read' and `had_shared'. | |
839 | * ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local | |
840 | variable `fdr_adr'. | |
841 | * ihex.c (ihex_read_section): Remove unused local variable `addr'. | |
842 | ||
f592407e AM |
843 | 2006-05-03 Alan Modra <amodra@bigpond.net.au> |
844 | ||
845 | * libbfd-in.h (_bfd_generic_new_section_hook): Declare. | |
846 | * section.c (bfd_abs_symbol, bfd_com_symbol): Delete. | |
847 | (bfd_und_symbol, bfd_ind_symbol): Delete. | |
848 | (BFD_FAKE_SECTION): Remove SYM_PTR param, set symbol_ptr_ptr to | |
849 | &SEC.symbol. | |
850 | (STD_SECTION): Adjust. | |
851 | (_bfd_generic_new_section_hook): New function, extracted from.. | |
852 | (bfd_section_init): ..here. | |
853 | (bfd_make_section_old_way): Call new_section_hook for abs, com, | |
854 | und and ind sections. | |
855 | * elf.c (_bfd_elf_large_com_section): Adjust. | |
856 | * aoutx.h (new_section_hook): Call _bfd_generic_new_section_hook. | |
857 | * pdp11.c (new_section_hook): Likewise. | |
858 | * coffcode.h (coff_new_section_hook): Likewise. | |
859 | * ecoff.c (_bfd_ecoff_new_section_hook): Likewise. | |
860 | * elf.c (_bfd_elf_new_section_hook): Likewise. | |
861 | * vms.c (vms_new_section_hook): Likwise. | |
862 | * elf32-arm.c (elf32_arm_new_section_hook): Check used_by_bfd isn't | |
863 | already set. | |
864 | * elf32-sh64.c (sh64_elf_new_section_hook): Likewise. | |
865 | * elf32-xtensa.c (elf_xtensa_new_section_hook): Likewise. | |
866 | * elf64-mmix.c (mmix_elf_new_section_hook): Likewise. | |
867 | * elf64-ppc.c (ppc64_elf_new_section_hook): Likewise. | |
868 | * elfxx-mips.c (_bfd_mips_elf_new_section_hook): Likewise. | |
869 | * elfxx-sparc.c (_bfd_sparc_elf_new_section_hook): Likewise. | |
870 | * ieee.c (ieee_new_section_hook): Likewise. Call | |
871 | _bfd_generic_new_section_hook too. | |
872 | * mmo.c (mmo_new_section_hook): Likewise. | |
873 | * oasys.c (oasys_new_section_hook): Likewise. | |
874 | * som.c (som_new_section_hook): Likewise. | |
875 | * coff-w65.c (reloc_processing): Don't use bfd_abs_symbol. | |
876 | * bfd-in2.h: Regenerate. | |
877 | * libbfd.h: Regenerate. | |
878 | ||
bd75c995 AM |
879 | 2006-05-03 Alan Modra <amodra@bigpond.net.au> |
880 | ||
881 | * hash.c (DEFAULT_SIZE): Revert last change. | |
882 | (higher_prime_number): Correct test for no larger prime. Don't | |
883 | abort on error, instead return 0. Depopulate primes[]. | |
884 | (bfd_hash_lookup): If we overflow size, refuse to grow table. | |
885 | ||
a8bc6c78 PB |
886 | 2006-05-02 Paul Brook <paul@codesourcery.com> |
887 | ||
888 | * elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton bit | |
889 | for R_ARM_REL32. | |
890 | ||
b48c61bc BE |
891 | 2006-05-02 Ben Elliston <bje@au.ibm.com> |
892 | ||
893 | * archive.c (bfd_generic_archive_p): Remove unused local variable | |
894 | `fail'. | |
895 | * dwarf2.c (decode_line_info): Remove unused local variable | |
896 | `basic_block'. | |
e4d4d200 BE |
897 | * elfcode.h (elf_slurp_reloc_table_from_section): Remove unused |
898 | local variable `s'. | |
b48c61bc BE |
899 | * tekhex.c (tekhex_write_object_contents): Remove unused local |
900 | variable `bytes_written'. | |
901 | * aout-ns32k.c (MY_swap_std_reloc_out): Remove unused local | |
902 | variable `r_addend'. | |
903 | * elf32-dlx.c (dlx_rtype_to_howto): Remove breaks after returns. | |
904 | * elfxx-mips.c (_bfd_elf_mips_mach): Remove breaks after returns. | |
905 | (_bfd_ns32k_relocate_contents): Remove break after return. | |
906 | * elf.c (bfd_section_from_shdr): Remove breaks after returns. | |
907 | ||
63f2fc30 NC |
908 | 2006-05-02 Nick Clifton <nickc@redhat.com> |
909 | ||
910 | * elf32-sh-symbian.c: Rename local define DEBUG to SYMBIAN_DEBUG | |
911 | in order to avoid conflicts with the global DEBUG define. | |
912 | ||
e460dd0d AM |
913 | 2006-05-02 Alan Modra <amodra@bigpond.net.au> |
914 | ||
915 | * dwarf2.c: Formatting. | |
916 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Simplify | |
917 | output section check. | |
918 | * elf32-i370.c: Warning fixes inside #ifdef DEBUG. | |
919 | * elf32-m32c.c: Similarly. | |
920 | * elf32-ppc.c: Similarly. | |
921 | * elf32-v850.c: Similarly. | |
922 | * nlm32-sparc.c: Similarly. | |
923 | * elfcode.h: Similarly. | |
924 | (elf_symbol_flags): Delete. | |
925 | * elflink.c (elf_link_input_bfd): Comment typo. | |
926 | ||
aa149cf7 DD |
927 | 2006-05-01 DJ Delorie <dj@redhat.com> |
928 | ||
929 | * bfd-in.h (bfd_hash_table): Add count field. | |
930 | * bfd-in2.h: Regenerate. | |
931 | * hash.c (higher_prime_number): New. | |
932 | (bfd_hash_table_inint_n): Init count field. | |
933 | (bfd_hash_lookup): Grow table as needed. | |
934 | ||
75b8939e KK |
935 | 2006-04-27 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
936 | ||
937 | PR binutils/2584 | |
938 | * tekhex.c (getvalue): Change return type to bfd_boolean and | |
939 | add the new parameter. Return false if the unexpected character | |
940 | is found. | |
941 | (getsym): Likewise. | |
942 | (first_phase): Change return type to bfd_boolean and return | |
943 | false if the unexpected character is found. Replace abort | |
944 | with returning false. | |
945 | (pass_over): Change return type to bfd_boolean and the type of | |
946 | the second argument to bfd_boolean (*) (bfd *, int, char *). | |
947 | Return false if FUNC returns false. | |
948 | (tekhex_object_p): Return NULL if pass_over fails. | |
949 | ||
f05742e6 AM |
950 | 2006-04-27 Alan Modra <amodra@bigpond.net.au> |
951 | ||
952 | * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix. | |
953 | ||
e843e0f8 L |
954 | 2006-04-26 H.J. Lu <hongjiu.lu@intel.com> |
955 | ||
956 | PR binutils/2593 | |
957 | * elf.c (_bfd_elf_new_section_hook): Don't set section ELF type | |
958 | and flags if its BFD flags have been set. | |
959 | (_bfd_elf_init_private_section_data): Don't copy the output ELF | |
960 | section type from input if it has been set to something | |
961 | different. | |
962 | ||
b25e3d87 L |
963 | 2006-04-25 H.J. Lu <hongjiu.lu@intel.com> |
964 | ||
965 | PR binutils/2467 | |
966 | * elf.c (_bfd_elf_close_and_cleanup): Check elf_tdata (abfd) | |
967 | is NULL first. | |
968 | ||
969 | * elf32-arm.c (elf32_arm_close_and_cleanup): Check if | |
970 | abfd->sections is NULL. | |
971 | (elf32_arm_bfd_free_cached_info): New. | |
972 | (bfd_elf32_bfd_free_cached_info): Defined. | |
973 | ||
974 | * elfxx-target.h (bfd_elfNN_bfd_free_cached_info): Default it | |
975 | to _bfd_free_cached_info. | |
976 | ||
977 | * libbfd-in.h (_bfd_free_cached_info): New. | |
978 | * libbfd: Regenerated. | |
979 | ||
980 | * opncls.c (_bfd_delete_bfd): Check if abfd->memory is NULL. | |
981 | (_bfd_free_cached_info): New. | |
982 | ||
5c182d5f AM |
983 | 2006-04-21 Alan Modra <amodra@bigpond.net.au> |
984 | ||
985 | * elf.c (assign_file_positions_except_relocs): Move code setting | |
986 | file position of non-loaded sections.. | |
987 | (assign_file_positions_for_segments): ..to here. | |
988 | ||
3eb70a79 L |
989 | 2006-04-20 H.J. Lu <hongjiu.lu@intel.com> |
990 | ||
991 | PR ld/2537 | |
992 | * elf.c (bfd_section_from_shdr): Allow sections reserved for | |
993 | applications. Issue an error on sections we don't know how | |
994 | to handle. | |
995 | ||
ec3fcc56 AM |
996 | 2006-04-19 Alan Modra <amodra@bigpond.net.au> |
997 | ||
998 | * Makefile.am: Run "make dep-am". | |
999 | * Makefile.in: Regenerate. | |
1000 | ||
241a6c40 AM |
1001 | 2006-04-19 Alan Modra <amodra@bigpond.net.au> |
1002 | ||
1003 | * warning.m4 (--enable-werror): Format help message. | |
1004 | (--enable-build-warnings): Likewise. | |
1005 | * configure: Regenerate. | |
1006 | ||
0b49d371 NC |
1007 | 2006-04-18 Nick Clifton <nickc@redhat.com> |
1008 | ||
1009 | PR 2257 | |
1010 | * elfcode.h (elf_object_p): Allow files with corrupt e_shstrndx | |
1011 | fields to still be handled as ELF files. | |
1012 | ||
e7403566 DJ |
1013 | 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com> |
1014 | ||
1015 | * po/SRC-POTFILES.in: Regenerated. | |
1016 | ||
ffdc4eed DJ |
1017 | 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com> |
1018 | ||
1019 | * configure.in: Update version to 2.17.50. | |
1020 | * configure: Regenerated. | |
1021 | ||
cb337148 BW |
1022 | 2006-04-14 David Heine <dlheine@tensilica.com> |
1023 | ||
1024 | * elf32-xtensa.c (build_reloc_opcodes): New. | |
1025 | (compute_text_actions): Use it to decode opcodes outside inner loop. | |
1026 | (check_section_ebb_pcrels_fit): Add "reloc_opcodes" argument, and if | |
1027 | it is set, use it to get the opcodes for relocations. | |
1028 | (move_shared_literal): Adjust call to check_section_ebb_pcrels_fit. | |
1029 | ||
cb878726 L |
1030 | 2006-04-08 H.J. Lu <hongjiu.lu@intel.com> |
1031 | ||
1032 | PR ld/2513 | |
1033 | * elf32-i386.c (GOT_TLS_MASK): New macro for tls_type. | |
1034 | (GOT_TLS_IE_IE): Likewise. | |
1035 | (GOT_TLS_IE_GD): Likewise. | |
1036 | (GOT_TLS_IE_MASK): Likewise. | |
1037 | (elf_i386_check_relocs): For global symbols, set GOT_TLS_IE_GD | |
1038 | and GOT_TLS_IE_IE for R_386_TLS_GD and R_386_TLS_IE | |
1039 | respectively. | |
1040 | (allocate_dynrelocs): If both GOT_TLS_IE_IE and GOT_TLS_IE_GD | |
1041 | are set, treat tls_type as GOT_TLS_IE_BOTH. | |
1042 | (elf_i386_relocate_section): Likewise. | |
1043 | ||
235ecfbc NC |
1044 | 2006-04-07 Randolph Chung <tausq@debian.org> |
1045 | ||
1046 | * elf64-hppa.c (elf64_hppa_grok_prstatus): New function. | |
1047 | (elf64_hppa_grok_psinfo): Likewise. | |
1048 | (elf_backend_grok_pstatus, elf_backend_grok_psinfo): Define. | |
1049 | ||
35520cb7 DD |
1050 | 2006-04-06 DJ Delorie <dj@redhat.com> |
1051 | ||
1052 | * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for | |
1053 | each plt entry we create. | |
1054 | ||
108a6f8e CD |
1055 | 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> |
1056 | ||
1057 | * po/Make-in: Add install-html target. | |
1058 | * Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir | |
1059 | htmldir. Add install-html and install-html-recursive targets. | |
1060 | * Makefile.in: Regenerate. | |
1061 | * configure.in: AC_SUBST for datarootdir, docdir and htmldir. | |
1062 | * configure: Regenerate. | |
1063 | ||
fbbc3759 L |
1064 | 2006-04-06 H.J. Lu <hongjiu.lu@intel.com> |
1065 | ||
1066 | * elfxx-ia64.c (elfNN_ia64_relax_section): Skip unneeded passes | |
1067 | with the skip_relax_pass_0 and skip_relax_pass_1 bits in the | |
1068 | section structure. | |
1069 | ||
17e226a8 BS |
1070 | 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com> |
1071 | ||
1072 | * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to | |
1073 | eliminate warnings. | |
1074 | ||
396a682d L |
1075 | 2006-04-05 H.J. Lu <hongjiu.lu@intel.com> |
1076 | James E Wilson <wilson@specifixinc.com> | |
1077 | ||
1078 | PR ld/2442 | |
1079 | * elfxx-ia64.c (elfNN_ia64_dyn_sym_info): Remove next. | |
1080 | (elfNN_ia64_local_hash_entry): Add count, sorted_count and | |
1081 | size. | |
1082 | (elfNN_ia64_link_hash_entry): Likewise. | |
1083 | (elfNN_ia64_new_elf_hash_entry): Initialize count, sorted_count | |
1084 | and size. | |
1085 | (elfNN_ia64_hash_copy_indirect): Updated elfNN_ia64_dyn_sym_info | |
1086 | processing. | |
1087 | (elfNN_ia64_hash_hide_symbol): Likewise. | |
1088 | (elfNN_ia64_global_dyn_sym_thunk): Likewise. | |
1089 | (elfNN_ia64_local_dyn_sym_thunk): Likewise. | |
1090 | (elfNN_ia64_global_dyn_info_free): New function. | |
1091 | (elfNN_ia64_local_dyn_info_free): Likewise. | |
1092 | (elfNN_ia64_hash_table_free): Free local and global | |
1093 | elfNN_ia64_dyn_sym_info. | |
1094 | (addend_compare): New function. | |
1095 | (sort_dyn_sym_info): Likewise. | |
1096 | (get_dyn_sym_info): Updated to use binary search for addend. | |
1097 | (elfNN_ia64_check_relocs): Scan relocations to create dynamic | |
1098 | relocation arrays first. | |
1099 | ||
0781db9f BS |
1100 | 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com> |
1101 | ||
1102 | * elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp | |
1103 | symbol. | |
1104 | ||
c0d5a53d L |
1105 | 2006-04-05 H.J. Lu <hongjiu.lu@intel.com> |
1106 | ||
1107 | PR ld/2411 | |
1108 | * elflink.c (check_dynsym): New. | |
1109 | (elf_link_output_extsym): Use it. | |
1110 | (bfd_elf_final_link): Likewise. | |
1111 | ||
580a2b6e L |
1112 | 2006-04-05 H.J. Lu <hongjiu.lu@intel.com> |
1113 | ||
1114 | PR ld/2404 | |
1115 | * elflink.c (_bfd_elf_merge_symbol): Skip the default indirect | |
1116 | symbol from the dynamic definition with the default version if | |
1117 | its type and the type of existing regular definition mismatch. | |
1118 | ||
910600e9 RS |
1119 | 2006-04-05 Richard Sandiford <richard@codesourcery.com> |
1120 | Daniel Jacobowitz <dan@codesourcery.com> | |
1121 | ||
1122 | * config.bfd (sparc-*-vxworks*): New stanza. | |
1123 | * configure.in (bfd_elf32_sparc_vxworks_vec): New stanza. | |
1124 | (bfd_elf32_sparc_vec, bfd_elf64_sparc_vec): Add elf-vxworks.lo. | |
1125 | * configure: Regenerate. | |
1126 | * elf32-sparc.c: Include elf-vxworks.h. | |
1127 | (elf32_sparc_vxworks_link_hash_table_create: New. | |
1128 | (elf32_sparc_vxworks_final_write_processing): New. | |
1129 | (TARGET_BIG_SYM): Override for VxWorks. | |
1130 | (TARGET_BIG_NAME, ELF_MINPAGESIZE): Likewise. | |
1131 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
1132 | (elf_backend_want_got_plt, elf_backend_plt_readonly): Likewise. | |
1133 | (elf_backend_got_header_size, elf_backend_add_symbol_hook): Likewise. | |
1134 | (elf_backend_link_output_symbol_hook): Likewise. | |
1135 | (elf_backend_emit_relocs): Likewise. | |
1136 | (elf_backend_final_write_processing, elf32_bed): Likewise. | |
1137 | * elfxx-sparc.c: Include libiberty.h and elf-vxworks.h. | |
1138 | (sparc_vxworks_exec_plt0_entry, sparc_vxworks_exec_plt_entry): New. | |
1139 | (sparc_vxworks_shared_plt0_entry, sparc_vxworks_shared_plt_entry): New. | |
1140 | (_bfd_sparc_elf_link_hash_table_create): Don't initialize | |
1141 | build_plt_entry here. | |
1142 | (create_got_section): Initialize sgotplt for VxWorks. | |
1143 | (_bfd_sparc_elf_create_dynamic_sections): Initialize build_plt_entry, | |
1144 | plt_header_size and plt_entry_size, with new VxWorks-specific settings. | |
1145 | Call elf_vxworks_create_dynamic_sections for VxWorks. | |
1146 | (allocate_dynrelocs): Use plt_header_size and plt_entry_size. | |
1147 | Allocate room for .got.plt and .rela.plt.unloaded entries on VxWorks. | |
1148 | (_bfd_sparc_elf_size_dynamic_sections): Don't allocate a nop in .plt | |
1149 | for VxWorks. Check for the .got.plt section. | |
1150 | (sparc_vxworks_build_plt_entry): New function. | |
1151 | (_bfd_sparc_elf_finish_dynamic_symbol): Add handling of VxWorks PLTs. | |
1152 | Don't make _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_ | |
1153 | absolute on VxWorks. | |
1154 | (sparc32_finish_dyn): Add special handling for DT_RELASZ | |
1155 | and DT_PLTGOT on VxWorks. | |
1156 | (sparc_vxworks_finish_exec_plt): New. | |
1157 | (sparc_vxworks_finish_shared_plt): New. | |
1158 | (_bfd_sparc_elf_finish_dynamic_sections): Call them. | |
1159 | Use plt_header_size and plt_entry_size. | |
1160 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add is_vxworks, | |
1161 | srelplt2, sgotplt, plt_header_size and plt_entry_size fields. | |
1162 | * Makefile.am (elfxx-sparc.lo): Depend on elf-vxworks.h. | |
1163 | (elf32-sparc.lo): Likewise. | |
1164 | * Makefile.in: Regenerate. | |
1165 | * targets.c (bfd_elf32_sparc_vxworks_vec): Declare. | |
1166 | (_bfd_target_vector): Add a pointer to it. | |
1167 | ||
b761a207 BE |
1168 | 2006-03-30 Ben Elliston <bje@au.ibm.com> |
1169 | ||
1170 | PR ld/2267 | |
1171 | * elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a | |
1172 | special section number that exceeds the number of ELF sections | |
1173 | (eg. SHN_MIPS_SCOMMON). | |
1174 | ||
ead49a57 RS |
1175 | 2006-03-27 Richard Sandiford <richard@codesourcery.com> |
1176 | ||
1177 | * elfxx-mips.c (mips_got_entry): Add more commentary. | |
1178 | (mips_elf_local_got_index): Use the hash table entry to record | |
1179 | the GOT index of forced-local symbols. | |
1180 | (mips_elf_initialize_tls_index): Rearrange code. Store the index | |
1181 | in either the hash table entry or the mips_got_entry, not both. | |
1182 | Add more commentary. | |
1183 | (mips_elf_multi_got): Make sure the g->next is nonnull when calling | |
1184 | mips_elf_initialize_tls_index. | |
1185 | ||
3b55e94a BS |
1186 | 2006-03-25 Bernd Schmidt <bernd.schmidt@analog.com> |
1187 | ||
1188 | * elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc, | |
1189 | RELOC_STACK_SIZE, reloc_stack, reloc_stack_tos, is_reloc_stack_empty, | |
1190 | reloc_stack_push, reloc_stack_pop, reloc_stack_operate, | |
1191 | bfin_areloc_howto_table): Delete. All | |
1192 | uses deleted as well. | |
1193 | (bfin_reloc_map): Delete all stack relocs. | |
1194 | (bfin_info_to_howto, bfin_bfd_reloc_type_lookup, | |
1195 | bfin_reloc_type_lookup): Don't support them. | |
1196 | (bfin_relocate_section): Don't try to handle them. | |
1197 | ||
48d502e1 BS |
1198 | * config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec. |
1199 | * configure.in: Likewise. | |
1200 | * configure: Regenerate. | |
1201 | * elf32-bfin.c: Include "elf/dwarf2.h" and "hashtab.h". | |
1202 | (BFIN_RELOC_MAX): Now 0x21. | |
1203 | (bfin_howto_table, bfin_reloc_map): Add FD-PIC relocs. | |
1204 | (bfd_elf32_bfinfdpic_vec): Declare. | |
1205 | (IS_FDPIC): New macro. | |
1206 | (struct bfinfdpic_elf_link_hash_table): New struct. | |
1207 | (bfinfdpic_hash_table, bfinfdpic_got_section, | |
1208 | bfinfdpic_gotrel_section, bfinfdpic_gotfixup_section, | |
1209 | bfinfdpic_plt_setion, bfinfdpic_pltrel_section, | |
1210 | bfinfdpic_relocs_info, bfinfdpic_got_initial_offset, | |
1211 | bfinfdpic_plt_initial_offset): Accessor macros for it. | |
1212 | (BFINFDPIC_SYM_LOCAL, BFINFDPIC_FUNCDESC_LOCAL): New macros. | |
1213 | (struct bfinfdpic_relocs_info): New struct. | |
1214 | (LZPLT_RESOLVER_EXTRA, LZPLT_NORMAL_SIZE, LZPLT_ENTRIES, | |
1215 | BFINFDPIC_LZPLT_BLOCK_SIZE, BFINFDPIC_LZPLT_RESOLV_LOC, | |
1216 | DEFAULT_STACK_SIZE): New macros. | |
1217 | (bfinfdpic_elf_link_hash_table_create, bfinfdpic_relocs_info_hash, | |
1218 | bfinfdpic_relocs_info_eq, bfinfdpics_relocs_info_find, | |
1219 | bfinfdpic_relocs_info_for_global, bfinfdpic_relocs_info_for_local, | |
1220 | bfinfdpic_pic_merge_early_relocs_info, _bfinfdpic_add_dyn_reloc, | |
1221 | _bfinfdpic_add_rofixup, _bfinfdpic_osec_to_segment, | |
1222 | _bfinfdpic_osec_readonly_p, bfinfdpic_relocate_section, | |
1223 | bfinfdpic_check_relocs, bfinfdpic_gc_sweep_hook, | |
1224 | _bfinfdpic_link_omit_section_dynsym, _bfin_create_got_section, | |
1225 | elf32_bfinfdpic_create_dynamic_sections, _bfinfdpic_get_fd_entry, | |
1226 | _bfinfdpic_compute_got_alloc_data, _bfinfdpic_get_got_entry, | |
1227 | _bfinfdpic_assign_got_entries, _bfinfdpic_assign_plt_entries, | |
1228 | _bfinfdpic_resolve_final_relocs_info, | |
1229 | elf32_bfinfdpic_size_dynamic_sections, | |
1230 | elf32_bfinfdpic_always_size_sections, | |
1231 | elf32_bfinfdpic_modify_segment_map, | |
1232 | _bfinfdpic_count_got_plt_entries, | |
1233 | elf32_bfinfdpic_finish_dynamic_sections, | |
1234 | elf32_bfinfdpic_adjust_dynamic_symbol, | |
1235 | elf32_bfinfdpic_finish_dynamic_symbol, | |
1236 | elf32_bfinfdpic_elf_use_relative_eh_frame, | |
1237 | elf32_bfinfdpic_elf_encode_eh_address, | |
1238 | elf32_bfin_object_p, bfin_elf_copy_private_bfd_data, | |
1239 | elf32_bfinfdpic_copy_private_bfd_data, | |
1240 | (struct _bfinfdpic_dynamic_got_info, | |
1241 | struct _bfinfdpic_dynamic_got_plt_info): New structs. | |
1242 | (elf32_bfin_print_private_bfd_data): Print PIC flags. | |
1243 | (elf32_bfin_merge_private_bfd_data): Extend to support FD-PIC. | |
1244 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, elf32_bed, | |
1245 | elf_backend_got_header_size, bfd_elf32_bfd_link_hash_table_create, | |
1246 | elf_backend_always_size_sectinos, elf_backend_modify_segment_map, | |
1247 | bfd_elf32_bfd_copy_private_bfd_data, | |
1248 | elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol, | |
1249 | elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol, | |
1250 | elf_backend_finish_dynamic_sections, elf_backend_relocate_section, | |
1251 | elf_backend_can_make_relative_eh_frame, elf_backend_check_relocs, | |
1252 | elf_backend_can_make_ldsa_relative_eh_frame, elf_backend_may_use_rel_p, | |
1253 | elf_backend_may_use_rela_p, elf_backend_default_use_rela_p, | |
1254 | elf_backend_omit_section_dynsym): Redefine these macros and include | |
1255 | "elf32-target.h" again to create the elf32-bfinfdpic target. | |
1256 | * reloc.c (BFD_RELOC_BFIN_GOT17M4, BFD_RELOC_BFIN_GOTHI, | |
1257 | BFD_RELOC_BFIN_GOTLO, BFD_RELOC_BFIN_FUNCDESC, | |
1258 | BFD_RELOC_BFIN_FUNCDESC_GOT17M4, BFD_RELOC_BFIN_FUNCDESC_GOTHI, | |
1259 | BFD_RELOC_BFIN_FUNCDESC_GOTLO, BFD_RELOC_BFIN_FUNCDESC_VALUE, | |
1260 | BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4, BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI, | |
1261 | BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO, BFD_RELOC_BFIN_GOTOFFHI, | |
1262 | BFD_RELOC_BFIN_GOTOFFLO): New. | |
1263 | * targets.c (bfd_elf32_bfinfdpic_vec): New bfd_target. | |
1264 | (_bfd_target_vector): Add it. | |
1265 | * bfd-in2.h: Regenerate. | |
1266 | * libbfd.h: Regenerate. | |
1267 | ||
a9d34880 RS |
1268 | 2006-03-25 Richard Sandiford <richard@codesourcery.com> |
1269 | ||
1270 | * cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as | |
1271 | incompatible. Likewise MAC and EMAC code. | |
1272 | * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use | |
1273 | bfd_get_compatible to set the new bfd architecture. Rely on it | |
1274 | to detect incompatibilities. | |
1275 | ||
9ca26584 AJ |
1276 | 2006-03-23 Michael Matz <matz@suse.de> |
1277 | ||
1278 | * reloc.c: Add BFD_RELOC_X86_64_GOT64, BFD_RELOC_X86_64_GOTPCREL64, | |
1279 | BFD_RELOC_X86_64_GOTPC64, BFD_RELOC_X86_64_GOTPLT64, | |
1280 | BFD_RELOC_X86_64_PLTOFF64. | |
1281 | * bfd-in2.h: Regenerated. | |
1282 | * libbfd.h: Regenerated. | |
1283 | * elf64-x86-64.c (x86_64_elf_howto_table): Correct comment. | |
1284 | Add howtos for above relocs. | |
1285 | (x86_64_reloc_map): Add mappings for new relocs. | |
1286 | (elf64_x86_64_check_relocs): R_X86_64_GOT64, R_X86_64_GOTPCREL64, | |
1287 | R_X86_64_GOTPLT64 need a got entry. R_X86_64_GOTPLT64 also a PLT | |
1288 | entry. R_X86_64_GOTPC64 needs a .got section. R_X86_64_PLTOFF64 | |
1289 | needs a PLT entry. | |
1290 | (elf64_x86_64_gc_sweep_hook): Reflect changes from | |
1291 | elf64_x86_64_check_relocs for the new relocs. | |
1292 | (elf64_x86_64_relocate_section): Handle new relocs. | |
1293 | ||
2a23c2c5 BW |
1294 | 2006-03-22 Bob Wilson <bob.wilson@acm.org> |
1295 | ||
1296 | * elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that | |
1297 | rel->r_addend is zero. | |
1298 | ||
6d79d2ed RS |
1299 | 2006-03-22 Richard Sandiford <richard@codesourcery.com> |
1300 | ||
1301 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type | |
1302 | of "loc". | |
1303 | ||
0a44bf69 RS |
1304 | 2006-03-22 Richard Sandiford <richard@codesourcery.com> |
1305 | Daniel Jacobowitz <dan@codesourcery.com> | |
1306 | Phil Edwards <phil@codesourcery.com> | |
1307 | Zack Weinberg <zack@codesourcery.com> | |
1308 | Mark Mitchell <mark@codesourcery.com> | |
1309 | Nathan Sidwell <nathan@codesourcery.com> | |
1310 | ||
1311 | * bfd-in2.h: Regenerate. | |
1312 | * config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas. | |
1313 | * configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza. | |
1314 | (bfd_elf32_littlemips_vxworks_vec): Likewise. | |
1315 | (bfd_elf32_bigmips_vec): Add elf-vxworks.lo. | |
1316 | (bfd_elf32_littlemips_vec): Likewise. | |
1317 | (bfd_elf32_nbigmips_vec): Likewise. | |
1318 | (bfd_elf32_nlittlemips_vec): Likewise. | |
1319 | (bfd_elf32_ntradbigmips_vec): Likewise. | |
1320 | (bfd_elf32_ntradlittlemips_vec): Likewise. | |
1321 | (bfd_elf32_tradbigmips_vec): Likewise. | |
1322 | (bfd_elf32_tradlittlemips_vec): Likewise. | |
1323 | (bfd_elf64_bigmips_vec): Likewise. | |
1324 | (bfd_elf64_littlemips_vec): Likewise. | |
1325 | (bfd_elf64_tradbigmips_vec): Likewise. | |
1326 | (bfd_elf64_tradlittlemips_vec): Likewise. | |
1327 | * elf32-mips.c: Include elf-vxworks.h. | |
1328 | (mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto | |
1329 | instead of calling mips_elf32_rtype_to_howto directly. | |
1330 | (mips_vxworks_copy_howto_rela): New reloc howto. | |
1331 | (mips_vxworks_jump_slot_howto_rela): Likewise. | |
1332 | (mips_vxworks_bfd_reloc_type_lookup): New function. | |
1333 | (mips_vxworks_rtype_to_howto): Likewise. | |
1334 | (mips_vxworks_final_write_processing): Likewise. | |
1335 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks. | |
1336 | (TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise. | |
1337 | (elf_backend_want_got_plt): Likewise. | |
1338 | (elf_backend_want_plt_sym): Likewise. | |
1339 | (elf_backend_got_symbol_offset): Likewise. | |
1340 | (elf_backend_want_dynbss): Likewise. | |
1341 | (elf_backend_may_use_rel_p): Likewise. | |
1342 | (elf_backend_may_use_rela_p): Likewise. | |
1343 | (elf_backend_default_use_rela_p): Likewise. | |
1344 | (elf_backend_got_header_size: Likewise. | |
1345 | (elf_backend_plt_readonly): Likewise. | |
1346 | (bfd_elf32_bfd_reloc_type_lookup): Likewise. | |
1347 | (elf_backend_mips_rtype_to_howto): Likewise. | |
1348 | (elf_backend_adjust_dynamic_symbol): Likewise. | |
1349 | (elf_backend_finish_dynamic_symbol): Likewise. | |
1350 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
1351 | (elf_backend_add_symbol_hook): Likewise. | |
1352 | (elf_backend_link_output_symbol_hook): Likewise. | |
1353 | (elf_backend_emit_relocs): Likewise. | |
1354 | (elf_backend_final_write_processing: Likewise. | |
1355 | (elf_backend_additional_program_headers): Likewise. | |
1356 | (elf_backend_modify_segment_map): Likewise. | |
1357 | (elf_backend_symbol_processing): Likewise. | |
1358 | * elfxx-mips.c: Include elf-vxworks.h. | |
1359 | (mips_elf_link_hash_entry): Add is_relocation_target and | |
1360 | is_branch_target fields. | |
1361 | (mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt, | |
1362 | srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields. | |
1363 | (MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros. | |
1364 | (MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument. | |
1365 | Return 3 for VxWorks. | |
1366 | (ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a | |
1367 | mips_elf_link_hash_table. Return 0 for VxWorks. | |
1368 | (MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a | |
1369 | mips_elf_link_hash_table. Update the call to ELF_MIPS_GP_OFFSET. | |
1370 | (mips_vxworks_exec_plt0_entry): New variable. | |
1371 | (mips_vxworks_exec_plt_entry): Likewise. | |
1372 | (mips_vxworks_shared_plt0_entry): Likewise. | |
1373 | (mips_vxworks_shared_plt_entry): Likewise. | |
1374 | (mips_elf_link_hash_newfunc): Initialize the new hash_entry fields. | |
1375 | (mips_elf_rel_dyn_section): Change the bfd argument to a | |
1376 | mips_elf_link_hash_table. Use MIPS_ELF_REL_DYN_NAME to get | |
1377 | the name of the section. | |
1378 | (mips_elf_initialize_tls_slots): Update the call to | |
1379 | mips_elf_rel_dyn_section. | |
1380 | (mips_elf_gotplt_index): New function. | |
1381 | (mips_elf_local_got_index): Add an input_section argument. | |
1382 | Update the call to mips_elf_create_local_got_entry. | |
1383 | (mips_elf_got_page): Likewise. | |
1384 | (mips_elf_got16_entry): Likewise. | |
1385 | (mips_elf_create_local_got_entry): Add bfd_link_info and input_section | |
1386 | arguments. Create dynamic relocations for each entry on VxWorks. | |
1387 | (mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE. | |
1388 | (mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE | |
1389 | and MIPS_RESERVED_GOTNO. | |
1390 | (mips_elf_create_got_section): Update the uses of | |
1391 | MIPS_ELF_GOT_MAX_SIZE. Create .got.plt on VxWorks. | |
1392 | (is_gott_symbol): New function. | |
1393 | (mips_elf_calculate_relocation): Use a dynobj local variable. | |
1394 | Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and | |
1395 | mips_elf_got_page_entry. Set G to the .got.plt entry when calculating | |
1396 | VxWorks R_MIPS_CALL* relocations. Calculate and use G for all GOT | |
1397 | relocations on VxWorks. Add dynamic relocations for references | |
1398 | to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Don't | |
1399 | create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 | |
1400 | in VxWorks executables. | |
1401 | (mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument. | |
1402 | Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry. | |
1403 | Don't allocate a null entry on VxWorks. | |
1404 | (mips_elf_create_dynamic_relocation): Update the call to | |
1405 | mips_elf_rel_dyn_section. Use absolute rather than relative | |
1406 | relocations for VxWorks, and make them RELA rather than REL. | |
1407 | (_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic | |
1408 | read-only on VxWorks. Update the call to mips_elf_rel_dyn_section. | |
1409 | Create the .plt, .rela.plt, .dynbss and .rela.bss sections on | |
1410 | VxWorks. Likewise create the _PROCEDURE_LINKAGE_TABLE symbol. | |
1411 | Call elf_vxworks_create_dynamic_sections for VxWorks and | |
1412 | initialize the plt_header_size and plt_entry_size fields. | |
1413 | (_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be | |
1414 | used in VxWorks executables. Don't allocate dynamic relocations | |
1415 | for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables. | |
1416 | Set is_relocation_target for each symbol referenced by a relocation. | |
1417 | Allocate .rela.dyn entries for relocations against the special | |
1418 | VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Create GOT | |
1419 | entries for all VxWorks R_MIPS_GOT16 relocations. Don't allocate | |
1420 | a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*, | |
1421 | R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations. Update the calls | |
1422 | to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations. | |
1423 | Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26 | |
1424 | relocations. Don't set no_fn_stub on VxWorks. | |
1425 | (_bfd_mips_elf_adjust_dynamic_symbol): Update the call to | |
1426 | mips_elf_allocate_dynamic_relocations. | |
1427 | (_bfd_mips_vxworks_adjust_dynamic_symbol): New function. | |
1428 | (_bfd_mips_elf_always_size_sections): Do not allocate GOT page | |
1429 | entries for VxWorks, and do not create multiple GOTs. | |
1430 | (_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME. | |
1431 | Handle .got specially for VxWorks. Update the uses of | |
1432 | MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations. | |
1433 | Check for sgotplt and splt. Allocate the .rel(a).dyn contents last, | |
1434 | once its final size is known. Set DF_TEXTREL for VxWorks. Add | |
1435 | DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL | |
1436 | tags on VxWorks. Do not add the MIPS-specific tags for VxWorks. | |
1437 | (_bfd_mips_vxworks_finish_dynamic_symbol): New function. | |
1438 | (mips_vxworks_finish_exec_plt): Likewise. | |
1439 | (mips_vxworks_finish_shared_plt): Likewise. | |
1440 | (_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call | |
1441 | to mips_elf_rel_dyn_section. Use a VxWorks-specific value of | |
1442 | DT_PLTGOT. Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, | |
1443 | DT_PLTRELSZ and DT_JMPREL. Update the uses of MIPS_RESERVED_GOTNO | |
1444 | and mips_elf_rel_dyn_section. Use a different GOT header for | |
1445 | VxWorks. Don't sort .rela.dyn on VxWorks. Finish the PLT on VxWorks. | |
1446 | (_bfd_mips_elf_link_hash_table_create): Initialize the new | |
1447 | mips_elf_link_hash_table fields. | |
1448 | (_bfd_mips_vxworks_link_hash_table_create): New function. | |
1449 | (_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_ | |
1450 | on VxWorks. Update the call to ELF_MIPS_GP_OFFSET. | |
1451 | * elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare. | |
1452 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
1453 | (_bfd_mips_vxworks_link_hash_table_create): Likewise. | |
1454 | * libbfd.h: Regenerate. | |
1455 | * Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h. | |
1456 | (elf32-mips.lo): Likewise. | |
1457 | * Makefile.in: Regenerate. | |
1458 | * reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare. | |
1459 | * targets.c (bfd_elf32_bigmips_vxworks_vec): Declare. | |
1460 | (bfd_elf32_littlemips_vxworks_vec): Likewise. | |
1461 | (_bfd_target_vector): Add entries for them. | |
1462 | ||
a2199086 DA |
1463 | 2006-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
1464 | ||
1465 | * elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss | |
1466 | section from SHF_PARISC_WEAKORDER to SHF_HP_TLS. | |
1467 | (elf_backend_special_sections): Remove #undef. | |
1468 | ||
af7cfa33 DA |
1469 | 2006-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
1470 | ||
1471 | * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry | |
1472 | for undefined weak symbols. | |
1473 | ||
a4676736 L |
1474 | 2006-03-17 Daniel Jacobowitz <dan@codesourcery.com> |
1475 | ||
1476 | PR ld/2462 | |
1477 | * elflink.c (bfd_elf_final_link): Remove | |
1478 | bed->elf_backend_emit_relocs from emit_relocs. | |
1479 | ||
e1710606 AO |
1480 | 2006-03-17 Alexandre Oliva <aoliva@redhat.com> |
1481 | ||
1482 | * elf32-ppc.c (ppc_elf_relocate_section): Copy addend from | |
1483 | first relocation to the second when relaxing TLS GD to LE; | |
1484 | zero it out when relaxing to IE. | |
1485 | ||
2de92251 AM |
1486 | 2006-03-17 Alan Modra <amodra@bigpond.net.au> |
1487 | ||
1488 | PR 2434 | |
1489 | * elflink.c (elf_link_add_object_symbols): Save and restore | |
1490 | warning sym's linked sym. | |
1491 | ||
66eb6687 AM |
1492 | 2006-03-16 Alan Modra <amodra@bigpond.net.au> |
1493 | ||
1494 | PR 2434 | |
1495 | * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete. | |
1496 | (elf_link_add_object_symbols): Delete unnecessary locals. Rename | |
1497 | hash_table -> htab. Formatting. Save entire symbol table | |
1498 | before loading as-needed syms, and restore afterwards if lib not | |
1499 | needed. Use bfd_hash_allocate rather than bfd_alloc for sym | |
1500 | name. Free some buffers earlier. | |
1501 | * bfd-in.h (struct bfd_hash_table): Add entsize. | |
1502 | (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype. | |
1503 | * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise | |
1504 | * hash.c (bfd_hash_table_init_n): Add entsize param, save to | |
1505 | hash table. | |
1506 | (bfd_hash_table_init): Add param, adjust calls. | |
1507 | * aoutx.h: Adjust all hash_table_init functions and calls. | |
1508 | * bfd.c: Likewise. | |
1509 | * coff-arm.c: Likewise. | |
1510 | * coff-h8300.c: Likewise. | |
1511 | * coff-ppc.c: Likewise. | |
1512 | * cofflink.c: Likewise. | |
1513 | * ecoff.c: Likewise. | |
1514 | * ecofflink.c: Likewise. | |
1515 | * elf-m10300.c: Likewise. | |
1516 | * elf-strtab.c: Likewise. | |
1517 | * elf.c: Likewise. | |
1518 | * elf32-arm.c: Likewise. | |
1519 | * elf32-bfin.c: Likewise. | |
1520 | * elf32-cris.c: Likewise. | |
1521 | * elf32-frv.c: Likewise. | |
1522 | * elf32-hppa.c: Likewise. | |
1523 | * elf32-i386.c: Likewise. | |
1524 | * elf32-m32r.c: Likewise. | |
1525 | * elf32-m68hc1x.c: Likewise. | |
1526 | * elf32-m68k.c: Likewise. | |
1527 | * elf32-ppc.c: Likewise. | |
1528 | * elf32-s390.c: Likewise. | |
1529 | * elf32-sh.c: Likewise. | |
1530 | * elf32-vax.c: Likewise. | |
1531 | * elf64-alpha.c: Likewise. | |
1532 | * elf64-hppa.c: Likewise. | |
1533 | * elf64-ppc.c: Likewise. | |
1534 | * elf64-s390.c: Likewise. | |
1535 | * elf64-sh64.c: Likewise. | |
1536 | * elf64-x86-64.c: Likewise. | |
1537 | * elfxx-ia64.c: Likewise. | |
1538 | * elfxx-mips.c: Likewise. | |
1539 | * elfxx-sparc.c: Likewise. | |
1540 | * i386linux.c: Likewise. | |
1541 | * libaout.h: Likewise. | |
1542 | * libbfd-in.h: Likewise. | |
1543 | * libcoff-in.h: Likewise. | |
1544 | * linker.c: Likewise. | |
1545 | * m68klinux.c: Likewise. | |
1546 | * merge.c: Likewise. | |
1547 | * opncls.c: Likewise. | |
1548 | * pdp11.c: Likewise. | |
1549 | * sparclinux.c: Likewise. | |
1550 | * stabs.c: Likewise. | |
1551 | * sunos.c: Likewise. | |
1552 | * vms.c: Likewise. | |
1553 | * xcofflink.c: Likewise. | |
1554 | * section.c (struct section_hash_entry): Move to.. | |
1555 | * libbfd-in.h: ..here. | |
1556 | * Makefile.am: Run "make dep-am" | |
1557 | * Makefile.in: Regenerate. | |
1558 | * bfd-in2.h: Regenerate. | |
1559 | * libbfd.h: Regenerate. | |
1560 | * libcoff.h: Regenerate. | |
1561 | ||
7123df0e AM |
1562 | 2006-03-16 Alan Modra <amodra@bigpond.net.au> |
1563 | ||
1564 | * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs | |
1565 | against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak | |
1566 | last change to REL32 relocs so that they are counted as | |
1567 | possibly dynamic as per REL24 and REL14. | |
1568 | ||
fd38b44c AM |
1569 | 2006-03-16 Alan Modra <amodra@bigpond.net.au> |
1570 | ||
1571 | * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24 | |
1572 | checks from REL32. | |
1573 | ||
eb111b1f BE |
1574 | 2006-03-15 Ben Elliston <bje@au.ibm.com> |
1575 | ||
1576 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all | |
1577 | in_list elements, not just the first. | |
1578 | ||
81d43bff RS |
1579 | 2006-03-14 Richard Sandiford <richard@codesourcery.com> |
1580 | ||
1581 | * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split | |
1582 | out from... | |
1583 | (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend | |
1584 | for final links too. | |
1585 | ||
d329bcd1 RS |
1586 | 2006-03-13 Richard Sandiford <richard@codesourcery.com> |
1587 | ||
1588 | * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot. | |
1589 | ||
75a657ba L |
1590 | 2006-03-11 H.J. Lu <hongjiu.lu@intel.com> |
1591 | ||
1592 | PR ld/2443 | |
241a6c40 | 1593 | * dwarf2.c (concat_filename): Don't issue an error if file is 0. |
75a657ba | 1594 | |
3a4a14e9 PB |
1595 | 2006-03-10 Paul Brook <paul@codesourcery.com> |
1596 | ||
1597 | * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5. | |
1598 | (elf32_arm_print_private_bfd_data): Ditto. | |
1599 | ||
38406048 PB |
1600 | 2006-03-09 Paul Brook <paul@codesourcery.com> |
1601 | ||
1602 | * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional | |
1603 | mapping symbols. | |
1604 | ||
eed62c48 NC |
1605 | 2006-03-09 Khem Raj <khem@mvista.com> |
1606 | ||
1607 | * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned | |
1608 | char type. | |
1609 | ||
6d2cf7d8 L |
1610 | 2006-03-08 H.J. Lu <hongjiu.lu@intel.com> |
1611 | ||
1612 | * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp. | |
1613 | ||
00a97672 RS |
1614 | 2006-03-07 Richard Sandiford <richard@codesourcery.com> |
1615 | Daniel Jacobowitz <dan@codesourcery.com> | |
1616 | Zack Weinberg <zack@codesourcery.com> | |
1617 | Nathan Sidwell <nathan@codesourcery.com> | |
1618 | Paul Brook <paul@codesourcery.com> | |
1619 | Ricardo Anguiano <anguiano@codesourcery.com> | |
1620 | Phil Edwards <phil@codesourcery.com> | |
1621 | ||
1622 | * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo. | |
1623 | (bfd_elf32_bigarm_symbian_vec): Likewise. | |
1624 | (bfd_elf32_bigarm_vxworks_vec): Likewise. | |
1625 | (bfd_elf32_littlearm_vec): Likewise. | |
1626 | (bfd_elf32_littlearm_symbian_vec): Likewise. | |
1627 | (bfd_elf32_littlearm_vxworks_vec): Likewise. | |
1628 | * configure: Regenerate. | |
1629 | * elf32-arm.c: Include libiberty.h and elf-vxworks.h. | |
1630 | (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros. | |
1631 | (elf32_arm_vxworks_bed): Add forward declaration. | |
1632 | (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12. | |
1633 | (elf32_arm_vxworks_exec_plt0_entry): New table. | |
1634 | (elf32_arm_vxworks_exec_plt_entry): Likewise. | |
1635 | (elf32_arm_vxworks_shared_plt_entry): Likewise. | |
1636 | (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields. | |
1637 | (reloc_section_p): New function. | |
1638 | (create_got_section): Use RELOC_SECTION. | |
1639 | (elf32_arm_create_dynamic_sections): Likewise. Call | |
1640 | elf_vxworks_create_dynamic_sections for VxWorks targets. | |
1641 | Choose between the two possible values of plt_header_size | |
1642 | and plt_entry_size. | |
1643 | (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2. | |
1644 | (elf32_arm_abs12_reloc): New function. | |
1645 | (elf32_arm_final_link_relocate): Call it. Allow the creation of | |
1646 | dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p, | |
1647 | RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the | |
1648 | r_addend fields of relocs. On rela targets, skip any code that | |
1649 | adjusts in-place addends. When using _bfd_link_final_relocate | |
1650 | to perform a final relocation, pass rel->r_addend as the addend | |
1651 | argument. | |
1652 | (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks | |
1653 | object, ignore flags that are not standard on VxWorks. | |
1654 | (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12 | |
1655 | relocs on VxWorks. Use reloc_section_p. | |
1656 | (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE. | |
1657 | (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of | |
1658 | .rela.plt.unloaded relocs on VxWorks targets. | |
1659 | (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for | |
1660 | .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags | |
1661 | instead of DT_REL* tags on RELA targets. | |
1662 | (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE | |
1663 | and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks | |
1664 | PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks. | |
1665 | (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE | |
1666 | and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ | |
1667 | like DT_RELSZ. Handle the VxWorks form of initial PLT entry. | |
1668 | Correct the .rela.plt.unreloaded symbol indexes. | |
1669 | (elf32_arm_output_symbol_hook): Call the VxWorks version of this | |
1670 | hook on VxWorks targets. | |
1671 | (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true. | |
1672 | Minor formatting tweak. | |
1673 | (elf32_arm_vxworks_final_write_processing): New function. | |
1674 | (elf_backend_add_symbol_hook): Override for VxWorks and reset | |
1675 | for Symbian. | |
1676 | (elf_backend_final_write_processing): Likewise. | |
1677 | (elf_backend_emit_relocs): Likewise. | |
1678 | (elf_backend_want_plt_sym): Likewise. | |
1679 | (ELF_MAXPAGESIZE): Likewise. | |
1680 | (elf_backend_may_use_rel_p): Minor formatting tweak. | |
1681 | (elf_backend_may_use_rela_p): Likewise. | |
1682 | (elf_backend_default_use_rela_p): Likewise. | |
1683 | (elf_backend_rela_normal): Likewise. | |
1684 | * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h. | |
1685 | ||
0b2e31dc NS |
1686 | 2006-03-06 Nathan Sidwell <nathan@codesourcery.com> |
1687 | ||
1688 | * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp): | |
1689 | New. Adjust other variants. | |
1690 | (bfd_default_scan): Update. | |
1691 | * bfd-in2.h: Rebuilt. | |
1692 | * cpu-m68k.c: Adjust. | |
1693 | (bfd_m68k_compatible): New. Use it for architectures. | |
1694 | * elf32-m68k.c (elf32_m68k_object_p): Adjust. | |
1695 | (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b | |
1696 | mismatch. | |
1697 | (elf32_m68k_print_private_bfd_data): Adjust. | |
1698 | * ieee.c (ieee_write_processor): Adjust. | |
1699 | ||
d8d1c398 AM |
1700 | 2006-03-06 Alan Modra <amodra@bigpond.net.au> |
1701 | ||
1702 | * dwarf2.c: Formatting. | |
1703 | (add_line_info): Remove outer loop. | |
1704 | ||
d4c32a81 L |
1705 | 2006-03-05 H.J. Lu <hongjiu.lu@intel.com> |
1706 | Alan Modra <amodra@bigpond.net.au> | |
1707 | ||
1708 | PR binutils/2338 | |
1709 | * dwarf2.c (loadable_section): New struct. | |
1710 | (dwarf2_debug): Add loadable_section_count and | |
1711 | loadable_sections. | |
1712 | (new_line_sorts_after): New. | |
1713 | (add_line_info): Use new_line_sorts_after to compare line | |
1714 | addresses. | |
1715 | (check_function_name): Removed. | |
1716 | (unset_sections): New. | |
1717 | (place_sections): New. | |
1718 | (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections | |
1719 | and unset_sections on relocatable files. | |
1720 | (_bfd_dwarf2_find_line): Likewise. | |
1721 | ||
4cdc7696 NC |
1722 | 2006-03-03 Nick Clifton <nickc@redhat.com> |
1723 | ||
1724 | * cpu-avr.c: Update to ISO-C90 formatting. | |
1725 | * elf32-avr.c: Likewise. | |
1726 | ||
df406460 NC |
1727 | 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de> |
1728 | ||
1729 | * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI | |
1730 | and R_AVR_MS8_LDI | |
1731 | (bfd_elf_avr_final_write_processing): Set | |
1732 | EF_AVR_LINKRELAX_PREPARED in e_flags field. | |
1733 | (elf32_avr_relax_section): New function. | |
1734 | (elf32_avr_relax_delete_bytes): New function. | |
1735 | (elf32_avr_get_relocated_section_contents): New function. | |
1736 | (avr_pc_wrap_around): New function. | |
1737 | (avr_relative_distance_considering_wrap_around): New function. | |
1738 | (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI. | |
1739 | * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG | |
1740 | * libbfd.h: Regenerate. | |
1741 | * bfd-in2.h: Regenerate. | |
1742 | ||
a1013894 DD |
1743 | 2006-03-02 DJ Delorie <dj@redhat.com> |
1744 | ||
1745 | * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol | |
1746 | calculations. | |
1747 | ||
7c492719 RS |
1748 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
1749 | ||
1750 | * elf32-ppc.c (is_ppc_elf_target): Return true if the target is | |
1751 | bfd_elf32_powerpc_vxworks_vec. | |
1752 | ||
e970df31 NC |
1753 | 2006-03-02 Nick Clifton <nickc@redhat.com> |
1754 | ||
1755 | * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'. | |
1756 | ||
711de32c RS |
1757 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
1758 | ||
1759 | * elf32-i386.c (elf_i386_create_dynamic_sections): Use | |
1760 | elf_vxworks_create_dynamic_sections. | |
1761 | (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT | |
1762 | symbol handling. | |
1763 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use | |
1764 | elf_vxworks_create_dynamic_sections. | |
1765 | (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT | |
1766 | symbol handling. | |
1767 | * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function. | |
1768 | * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare. | |
1769 | ||
9c72ff84 RS |
1770 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
1771 | ||
1772 | * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete. | |
1773 | (elf_backend_link_output_symbol_hook): Use | |
1774 | elf_vxworks_link_output_symbol_hook instead. | |
1775 | * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete. | |
1776 | (elf_backend_link_output_symbol_hook): Use | |
1777 | elf_vxworks_link_output_symbol_hook instead. | |
1778 | * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the | |
1779 | same interface as elf_backend_link_output_symbol_hook. | |
1780 | * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update | |
1781 | prototype accordingly. | |
1782 | ||
4a3dc543 RS |
1783 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
1784 | ||
1785 | * elf32-ppc.c (ppc_elf_plt_type): New enumeration. | |
1786 | (ppc_elf_link_hash_table): Replace old_got and new_got with | |
1787 | plt_type and can_use_new_plt. | |
1788 | (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS, | |
1789 | SEC_LOAD and SEC_READONLY to the VxWorks .plt flags. | |
1790 | (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt. | |
1791 | Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt. | |
1792 | (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to | |
1793 | either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that | |
1794 | this function should not be called for VxWorks targets. | |
1795 | (ppc_elf_tls_setup): Use plt_type instead of old_got. | |
1796 | (allocate_got): Likewise. Rearrange so that max_before_header | |
1797 | is only used for PLT_OLD and PLT_NEW. | |
1798 | (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks. | |
1799 | (ppc_elf_size_dynamic_sections): Likewise. | |
1800 | (ppc_elf_relax_section): Likewise. | |
1801 | (ppc_elf_relocate_section): Likewise. | |
1802 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
1803 | (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type. | |
1804 | ||
5ae0bfb6 RS |
1805 | 2006-02-28 Richard Sandiford <richard@codesourcery.com> |
1806 | ||
1807 | * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index. | |
1808 | (elf_i386_link_hash_table_create): Initialize it. | |
1809 | (elf_i386_compute_jump_table_size): Use it instead of | |
1810 | srelplt->reloc_count. | |
1811 | (allocate_dynrelocs): Likewise. | |
1812 | (elf_i386_size_dynamic_sections): Likewise. | |
1813 | (elf_i386_relocate_section): Likewise. | |
1814 | ||
63752a75 JJ |
1815 | 2006-02-27 Jakub Jelinek <jakub@redhat.com> |
1816 | ||
1817 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag. | |
1818 | (_bfd_elf_write_section_eh_frame): Likewise. | |
1819 | ||
f7d9e5c3 CD |
1820 | 2006-02-27 Carlos O'Donell <carlos@codesourcery.com> |
1821 | ||
1822 | * po/Make-in: Add html target. | |
1823 | ||
22edb2f1 RS |
1824 | 2006-02-27 Richard Sandiford <richard@codesourcery.com> |
1825 | ||
1826 | * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the | |
1827 | cached hgot entry to check for _GLOBAL_OFFSET_TABLE_. | |
1828 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise. | |
1829 | * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise. | |
1830 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
1831 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
1832 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
1833 | * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise. | |
1834 | * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise. | |
1835 | * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise. | |
1836 | * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise. | |
1837 | * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise. | |
1838 | * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise. | |
1839 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
1840 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
1841 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use | |
1842 | the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_. | |
1843 | * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise. | |
1844 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
1845 | * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise. | |
1846 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
1847 | ||
7325306f RS |
1848 | 2006-02-25 Richard Sandiford <richard@codesourcery.com> |
1849 | ||
1850 | * elf-bfd.h (elf_link_hash_table): Add hplt field. | |
1851 | * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it. | |
1852 | * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise. | |
1853 | * elf32-frv.c (_frv_create_got_section): Likewise. | |
1854 | * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise. | |
1855 | * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise. | |
1856 | * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise. | |
1857 | * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise. | |
1858 | * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt. | |
1859 | (elf_i386_link_hash_table_create): Don't initialize them. | |
1860 | (elf_i386_size_dynamic_sections): Use the generic ELF hplt and | |
1861 | hgot fields. | |
1862 | (elf_i386_finish_dynamic_symbol): Likewise. | |
1863 | * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt. | |
1864 | (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields. | |
1865 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
1866 | ||
6772dd07 DD |
1867 | 2006-02-24 DJ Delorie <dj@redhat.com> |
1868 | ||
1869 | * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs. | |
1870 | (m32c_elf_relocate_section): Don't relocate them. | |
1871 | (compare_reloc): New. | |
1872 | (relax_reloc): Remove. | |
1873 | (m32c_offset_for_reloc): New. | |
1874 | (m16c_addr_encodings): New. | |
1875 | (m16c_jmpaddr_encodings): New. | |
1876 | (m32c_addr_encodings): New. | |
1877 | (m32c_elf_relax_section): Relax jumps and address displacements. | |
1878 | (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up | |
1879 | short jumps. | |
1880 | ||
1881 | * reloc.c: Add m32c relax relocs. | |
1882 | * libbfd.h: Regenerate. | |
1883 | * bfd-in2.h: Regenerate. | |
1884 | ||
508c3946 L |
1885 | 2006-02-24 H.J. Lu <hongjiu.lu@intel.com> |
1886 | ||
1887 | PR ld/2218 | |
1888 | * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol. | |
1889 | (_bfd_elf_link_hash_fixup_symbol): New. | |
1890 | ||
1891 | * elflink.c (_bfd_elf_link_hash_fixup_symbol): New. | |
1892 | (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if | |
1893 | it isn't NULL. | |
1894 | ||
1895 | * elfxx-ia64.c (elf_backend_fixup_symbol): Defined. | |
1896 | ||
1897 | * elfxx-target.h (elf_backend_fixup_symbol): New. | |
1898 | (elfNN_bed): Initialize elf_backend_fixup_symbol. | |
1899 | ||
59cf82fe L |
1900 | 2006-02-23 H.J. Lu <hongjiu.lu@intel.com> |
1901 | ||
1902 | * cpu-ia64-opc.c (ins_immu5b): New. | |
1903 | (ext_immu5b): Likewise. | |
1904 | (elf64_ia64_operands): Add IMMU5b. | |
1905 | ||
22d606e9 AM |
1906 | 2006-02-21 Alan Modra <amodra@bigpond.net.au> |
1907 | ||
1908 | PR ld/2218 | |
1909 | * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie | |
1910 | is dynamic. | |
1911 | * elf32-hppa.c (allocate_dynrelocs): Likewise. | |
1912 | * elf32-i386.c (allocate_dynrelocs): Likewise. | |
1913 | * elf32-s390.c (allocate_dynrelocs): Likewise. | |
1914 | * elf32-sh.c (allocate_dynrelocs): Likewise. | |
1915 | * elf64-s390.c (allocate_dynrelocs): Likewise. | |
1916 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. | |
1917 | * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs | |
1918 | on undef weak with non-default visibility too. | |
1919 | * elfxx-sparc.c (allocate_dynrelocs): Ditto. | |
1920 | ||
3168356f AM |
1921 | 2006-02-21 Alan Modra <amodra@bigpond.net.au> |
1922 | ||
1923 | * bfd.c: (_bfd_default_error_handler): Don't call abort on | |
1924 | error, instead call _exit. | |
1925 | (_bfd_abort): Call _exit not xexit. | |
1926 | ||
888b45b8 KB |
1927 | 2006-02-17 Kevin Buettner <kevinb@redhat.com> |
1928 | ||
1929 | * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo): | |
1930 | New functions. | |
1931 | * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define. | |
1932 | ||
d70c5fc7 NC |
1933 | 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com> |
1934 | Anil Paranjape <anilp1@kpitcummins.com> | |
1935 | Shilin Shakti <shilins@kpitcummins.com> | |
1936 | ||
1937 | * Makefile.am: Add xc16x related entry | |
1938 | * Makefile.in: Regenerate | |
1939 | * archures.c: Add bfd_xc16x_arch | |
1940 | * bfd-in2.h: Regenerate | |
1941 | * config.bfd: Add xc16x-*-elf | |
1942 | * configure.in: Add bfd_elf32_xc16x_vec | |
1943 | * configure: Regenerate. | |
1944 | * targets.c: Added xc16x related information | |
1945 | * cpu-xc16x.c: New file | |
1946 | * reloc.c: Add new relocations specific to xc16x: | |
1947 | BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG, | |
1948 | BFD_RELOC_XC16X_SOF | |
1949 | * elf32-xc16x.c: New file. | |
1950 | ||
cab87ef9 AM |
1951 | 2006-02-17 Alan Modra <amodra@bigpond.net.au> |
1952 | ||
1953 | * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling. | |
1954 | * elf64-ppc.c (allocate_dynrelocs): Likewise. | |
1955 | ||
dfbb6ac9 AM |
1956 | 2006-02-17 Alan Modra <amodra@bigpond.net.au> |
1957 | ||
1958 | PR ld/2218 | |
1959 | * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is | |
1960 | dynamic. | |
1961 | (ppc64_elf_relocate_section): Check output reloc section size. | |
1962 | * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test. | |
1963 | ||
cedc298e L |
1964 | 2006-02-16 H.J. Lu <hongjiu.lu@intel.com> |
1965 | ||
1966 | PR ld/2322 | |
1967 | * elf.c (get_segment_type): New function. | |
1968 | (_bfd_elf_print_private_bfd_data): Use it. | |
1969 | (print_segment_map): New function. | |
1970 | (assign_file_positions_for_segments): Call print_segment_map | |
1971 | when there are not enough room for program headers. | |
1972 | ||
aaa2ab3d NH |
1973 | 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com> |
1974 | ||
1975 | * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use | |
1976 | traditional MIPS ELF targets. | |
1977 | ||
35ccda9e L |
1978 | 2006-02-15 H.J. Lu <hongjiu.lu@intel.com> |
1979 | ||
1980 | PR binutils/2338 | |
1981 | * dwarf2.c (check_function_name): New function. | |
1982 | (_bfd_dwarf2_find_nearest_line): Use check_function_name to | |
1983 | check if function is correct. | |
1984 | ||
e0ae6d6f AM |
1985 | 2006-02-16 Alan Modra <amodra@bigpond.net.au> |
1986 | ||
1987 | * elflink.c (_bfd_elf_default_action_discarded): Return 0 for | |
1988 | debug sections. | |
1989 | (elf_link_input_bfd): Adjust comments. | |
1990 | ||
d55ce4e2 L |
1991 | 2006-02-10 H.J. Lu <hongjiu.lu@intel.com> |
1992 | ||
1993 | * elf.c (copy_private_bfd_data): Minor update. | |
1994 | ||
84d1d650 L |
1995 | 2006-02-10 H.J. Lu <hongjiu.lu@intel.com> |
1996 | ||
1997 | PR binutils/2258 | |
1998 | * elf.c (copy_private_bfd_data): Renamed to ... | |
1999 | (rewrite_elf_program_header): This. | |
2000 | (copy_elf_program_header): New function. | |
2001 | (copy_private_bfd_data): Likewise. | |
2002 | ||
2003 | 2006-02-07 Nathan Sidwell <nathan@codesourcery.com> | |
266abb8f NS |
2004 | |
2005 | * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e, | |
2006 | bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x, | |
2007 | bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249, | |
2008 | bfd_mach_mcf547x, bfd_mach_mcf548x): Remove. | |
2009 | (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div, | |
2010 | bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac, | |
2011 | bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac, | |
2012 | bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp, | |
2013 | bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac, | |
2014 | bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac, | |
2015 | bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac, | |
2016 | bfd_mach_mcf_isa_b_usp_float_emac): New. | |
2017 | (bfd_default_scan): Update coldfire mapping. | |
2018 | * bfd-in.h (bfd_m68k_mach_to_features, | |
2019 | bfd_m68k_features_to_mach): Declare. | |
2020 | * bfd-in2.h: Rebuilt. | |
2021 | * cpu-m68k.c (arch_info_struct): Add new coldfire machines, | |
2022 | adjust legacy names. | |
2023 | (m68k_arch_features): New. | |
2024 | (bfd_m68k_mach_to_features, | |
2025 | bfd_m68k_features_to_mach): Define. | |
2026 | * elf32-m68k.c (elf32_m68k_object_p): New. | |
2027 | (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags. | |
2028 | (elf32_m68k_print_private_bfd_data): Print the CF EF flags. | |
2029 | (elf_backend_object_p): Define. | |
2030 | * ieee.c (ieee_write_processor): Update coldfire machines. | |
2031 | * libbfd.h: Rebuilt. | |
2032 | ||
75eb734c SE |
2033 | 2006-02-06 Steve Ellcey <sje@cup.hp.com> |
2034 | ||
2035 | * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS | |
2036 | if SHF_TLS is set. | |
2037 | ||
134dcee5 AM |
2038 | 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl> |
2039 | ||
2040 | * coff-z80.c (r_imm24): New howto. | |
2041 | (rtype2howto): New case R_IMM24. | |
2042 | (coff_z80_reloc_type_lookup): New case BFD_RELOC_24. | |
2043 | (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24. | |
2044 | ||
4005427f RS |
2045 | 2006-02-04 Richard Sandiford <richard@codesourcery.com> |
2046 | ||
2047 | * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol | |
2048 | has already been assigned a GOT index, copy that index to the | |
2049 | current hash table entry. | |
2050 | ||
bb29dfea EB |
2051 | 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr> |
2052 | ||
2053 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass | |
2054 | for call-to-undefweak reloc overflow. | |
2055 | ||
dc669dc8 EB |
2056 | 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr> |
2057 | ||
2058 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass | |
2059 | for 32-bit relocs overflow. | |
2060 | ||
1a0eb693 PB |
2061 | 2006-01-27 Paul Brook <paul@codesourcery.com> |
2062 | ||
2063 | * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb | |
2064 | objects. | |
2065 | ||
67a4f2b7 AO |
2066 | 2006-01-18 Alexandre Oliva <aoliva@redhat.com> |
2067 | ||
2068 | Introduce TLS descriptors for i386 and x86_64. | |
2069 | * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC, | |
2070 | BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC, | |
2071 | BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New. | |
2072 | * libbfd.h, bfd-in2.h: Rebuilt. | |
2073 | * elf32-i386.c (elf_howto_table): New relocations. | |
2074 | (R_386_tls): Adjust. | |
2075 | (elf_i386_reloc_type_lookup): Map new relocations. | |
2076 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. | |
2077 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. | |
2078 | (struct elf_i386_link_hash_entry): Add tlsdesc_got field. | |
2079 | (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field. | |
2080 | (elf_i386_local_tlsdesc_gotent): New macro. | |
2081 | (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size. | |
2082 | (elf_i386_compute_jump_table_size): New macro. | |
2083 | (link_hash_newfunc): Initialize tlsdesc_got. | |
2084 | (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size. | |
2085 | (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and | |
2086 | R_386_TLS_DESC_CALL. | |
2087 | (elf_i386_check_relocs): Likewise. Allocate space for | |
2088 | local_tlsdesc_gotent. | |
2089 | (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and | |
2090 | R_386_TLS_DESC_CALL. | |
2091 | (allocate_dynrelocs): Count function PLT relocations. Reserve | |
2092 | space for TLS descriptors and relocations. | |
2093 | (elf_i386_size_dynamic_sections): Reserve space for TLS | |
2094 | descriptors and relocations. Set up sgotplt_jump_table_size. | |
2095 | Don't zero reloc_count in srelplt. | |
2096 | (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_. | |
2097 | (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and | |
2098 | R_386_TLS_DESC_CALL. | |
2099 | (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. | |
2100 | (elf_backend_always_size_sections): Define. | |
2101 | * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC, | |
2102 | R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL. | |
2103 | (R_X86_64_standard): Adjust. | |
2104 | (x86_64_reloc_map): Map new relocs. | |
2105 | (elf64_x86_64_rtype_to_howto): New, split out of... | |
2106 | (elf64_x86_64_info_to_howto): ... this function, and... | |
2107 | (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val. | |
2108 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. | |
2109 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. | |
2110 | (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field. | |
2111 | (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field. | |
2112 | (elf64_x86_64_local_tlsdesc_gotent): New macro. | |
2113 | (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt, | |
2114 | tlsdesc_got and sgotplt_jump_table_size fields. | |
2115 | (elf64_x86_64_compute_jump_table_size): New macro. | |
2116 | (link_hash_newfunc): Initialize tlsdesc_got. | |
2117 | (elf64_x86_64_link_hash_table_create): Initialize new fields. | |
2118 | (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and | |
2119 | R_X86_64_TLSDESC_CALL. | |
2120 | (elf64_x86_64_check_relocs): Likewise. Allocate space for | |
2121 | local_tlsdesc_gotent. | |
2122 | (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and | |
2123 | R_X86_64_TLSDESC_CALL. | |
2124 | (allocate_dynrelocs): Count function PLT relocations. Reserve | |
2125 | space for TLS descriptors and relocations. | |
2126 | (elf64_x86_64_size_dynamic_sections): Reserve space for TLS | |
2127 | descriptors and relocations. Set up sgotplt_jump_table_size, | |
2128 | tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero | |
2129 | reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT | |
2130 | and DT_TLSDESC_GOT. | |
2131 | (elf64_x86_64_always_size_sections): New. Set up | |
2132 | _TLS_MODULE_BASE_. | |
2133 | (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and | |
2134 | R_386_TLS_DESC_CALL. | |
2135 | (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. | |
2136 | (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and | |
2137 | DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry. | |
2138 | (elf_backend_always_size_sections): Define. | |
2139 | ||
6dd55cb7 L |
2140 | 2006-01-17 H.J. Lu <hongjiu.lu@intel.com> |
2141 | ||
2142 | PR binutils/2096 | |
2143 | * dwarf2.c (comp_unit_contains_address): Update comment. | |
2144 | (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of | |
2145 | lma. Return TRUE only if both comp_unit_contains_address and | |
2146 | comp_unit_find_nearest_line return TRUE. | |
2147 | (_bfd_dwarf2_find_line): Use section's vma, instead of lma. | |
2148 | ||
64d03ab5 AM |
2149 | 2006-01-18 Alan Modra <amodra@bigpond.net.au> |
2150 | ||
2151 | * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref. | |
2152 | (bfd_elf_gc_mark_dynamic_ref_symbol): Declare. | |
2153 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from | |
2154 | elf_gc_mark_dynamic_ref_symbol. Make global. | |
2155 | (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref. | |
2156 | * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define. | |
2157 | (elfNN_bed): Init new field. | |
2158 | * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define. | |
2159 | (ppc64_elf_gc_mark_dynamic_ref): New function. | |
2160 | ||
b56cbdb9 AM |
2161 | 2006-01-17 Alan Modra <amodra@bigpond.net.au> |
2162 | ||
2163 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop. | |
2164 | ||
6c10990d NC |
2165 | 2006-01-17 Nick Clifton <nickc@redhat.com> |
2166 | ||
2167 | PR binutils/2159 | |
2168 | * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused | |
2169 | parameters. | |
2170 | ||
d7f735da NC |
2171 | 2006-01-11 Nick Clifton <nickc@redhat.com> |
2172 | ||
2173 | * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry | |
2174 | into the newly (re)allocated map array. | |
2175 | ||
2bfd55ca NC |
2176 | 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com> |
2177 | ||
2178 | * peXXigen.c (tbl): Add comma after "HIGH3ADJ". | |
2179 | ||
bce50a28 JJ |
2180 | 2006-01-01 Jakub Jelinek <jakub@redhat.com> |
2181 | ||
2182 | * elf64-ppc.c (ppc64_elf_action_discarded): Return 0 | |
2183 | for .toc1 section. | |
2184 | ||
e88d958a | 2185 | For older changes see ChangeLog-2005 |
56882138 AM |
2186 | \f |
2187 | Local Variables: | |
2188 | mode: change-log | |
2189 | left-margin: 8 | |
2190 | fill-column: 74 | |
2191 | version-control: never | |
2192 | End: |