Commit | Line | Data |
---|---|---|
1829f4b2 AM |
1 | 2004-04-27 Alan Modra <amodra@bigpond.net.au> |
2 | ||
3 | * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign | |
4 | structure field removed in 2004-04-24 patch. | |
5 | * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix. | |
6 | ||
7 | * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>): | |
8 | Constify hdr arg. | |
9 | * elf32-arm.h (elf32_arm_section_flags): Likewise. | |
10 | * elf64-alpha.c (elf64_alpha_section_flags): Likewise. | |
11 | * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise. | |
12 | * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section | |
13 | field before calling elf_backend_section_flags. | |
14 | ||
4030e8f6 CD |
15 | 2004-04-24 Chris Demetriou <cgd@broadcom.com> |
16 | ||
17 | * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16) | |
18 | (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove. | |
19 | (bfd_elf32_bfd_reloc_type_lookup): Remove cases for | |
20 | BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL, | |
21 | and BFD_RELOC_32_PCREL. | |
22 | (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16, | |
23 | R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32. | |
24 | * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. | |
25 | (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16. | |
26 | (mips_elf_next_relocation): Move comment about matching HI/LO | |
27 | relocations to... | |
28 | (_bfd_mips_elf_relocate_section): Here. Remove handling for | |
29 | R_MIPS_GNU_REL_HI16. | |
30 | ||
3e27568f CD |
31 | 2004-04-23 Chris Demetriou <cgd@broadcom.com> |
32 | ||
33 | * coff-mips.c (mips_relhi_reloc, mips_rello_reloc) | |
34 | (mips_switch_reloc, mips_read_relocs, mips_relax_section) | |
35 | (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove. | |
36 | (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments, | |
37 | and update comments to reflect current usage. | |
38 | (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO, | |
39 | and MIPS_R_SWITCH, as well as several empty entries. Update comment | |
40 | for MIPS_R_PCREL16. | |
41 | (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out) | |
42 | (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support | |
43 | for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations. | |
44 | (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation | |
45 | type number to be MIPS_R_PCREL16. | |
46 | (mips_relocate_section): Remove support for link-time relaxation | |
47 | of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH, | |
48 | MIPS_R_RELLO, and MIPS_R_RELHI relocations. | |
49 | (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section. | |
50 | * ecoff.c (ecoff_indirect_link_order): Remove support for link-time | |
51 | relaxation of branches used by embedded-PIC. | |
52 | * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise. | |
53 | * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC | |
54 | related members, update comment. | |
55 | * pe-mips.c: Remove disabled (commented-out and #if 0'd) | |
56 | code related to embedded-PIC. | |
57 | * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove | |
58 | initialization of now-removed 'adjust' member of | |
59 | 'struct ecoff_debug_info'. | |
60 | ||
b32de0bc | 61 | 2004-04-23 Chris Demetriou <cgd@broadcom.com> |
8472310d CD |
62 | |
63 | * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove. | |
64 | ||
955af222 PB |
65 | 2004-04-21 Philip Blundell <pb@nexus.co.uk> |
66 | ||
67 | * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32 | |
68 | relocs for locally defined symbols during -shared final link. | |
69 | (elf32_arm_final_link_relocate): Likewise. | |
70 | ||
47a9f7b3 JJ |
71 | 2004-04-22 Jakub Jelinek <jakub@redhat.com> |
72 | ||
73 | * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also | |
74 | ELF_LINK_POINTER_EQUALITY_NEEDED. | |
75 | (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED | |
76 | if r_type is not R_X86_64_PC32. | |
77 | (elf64_x86_64_finish_dynamic_symbol): If | |
78 | ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of | |
79 | SHN_UNDEF symbols. | |
80 | ||
1f1799d5 KK |
81 | 2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
82 | ||
83 | * elf32-sh.c (sh_elf_plt_sym_val): New function. | |
84 | (elf_backend_plt_sym_val): Define. | |
85 | ||
0fdea5ce AC |
86 | 2004-04-22 Andrew Cagney <cagney@redhat.com> |
87 | ||
88 | * opncls.c (bfd_alloc): Fix type of "wanted" in doco. | |
89 | ||
5198ba8b DA |
90 | 2004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
91 | ||
92 | * hpux-core.c (hpux_core_core_file_p): Add cast in call to | |
93 | make_bfd_asection. | |
94 | * som.c (som_set_section_contents): Constantify second argument. | |
95 | (hppa_som_gen_reloc_type): Abort for unsupported selectors. | |
96 | (som_object_setup): Rework to avoid warning. | |
97 | (setup_sections, som_write_fixups, bfd_section_from_som_symbol): | |
98 | Likewise. | |
99 | ||
fe2e161a AC |
100 | 2004-04-22 Andrew Cagney <cagney@redhat.com> |
101 | ||
102 | * cache.c (bfd_cache_close): Check for a previously closed file. | |
103 | ||
4c45e5c9 JJ |
104 | 2004-04-22 Jakub Jelinek <jakub@redhat.com> |
105 | ||
106 | * bfd.c (bfd_get_synthetic_symtab): Define. | |
107 | * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add | |
108 | NAME##_get_synthetic_symtab. | |
109 | (struct bfd_target): Add _bfd_get_synthetic_symtab. | |
110 | * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define. | |
111 | * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and | |
112 | relplt_name fields. | |
113 | (_bfd_elf_get_synthetic_symtab): New prototype. | |
114 | * elfcode.h (elf_get_synthetic_symtab): Define. | |
115 | * elf.c (_bfd_elf_get_synthetic_symtab): New function. | |
116 | * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define. | |
117 | (elf_backend_plt_sym_val, elf_backend_relplt_name): Define. | |
118 | (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name. | |
119 | * bfd-in2.h: Rebuilt. | |
120 | * libbfd.h: Rebuilt. | |
121 | * elf32-i386.c (elf_i386_plt_sym_val): New function. | |
122 | (elf_backend_plt_sym_val): Define. | |
123 | * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function. | |
124 | (elf_backend_plt_sym_val): Define. | |
125 | * elf32-s390.c (elf_s390_plt_sym_val): New function. | |
126 | (elf_backend_plt_sym_val): Define. | |
127 | * elf64-s390.c (elf_s390_plt_sym_val): New function. | |
128 | (elf_backend_plt_sym_val): Define. | |
129 | * elf32-sparc (elf32_sparc_plt_sym_val): New function. | |
130 | (elf_backend_plt_sym_val): Define. | |
131 | * elf64-sparc.c (sparc64_elf_plt_sym_val): New function. | |
132 | (elf_backend_plt_sym_val): Define. | |
133 | * elf32-ppc.c (ppc_elf_plt_sym_val): New function. | |
134 | (elf_backend_plt_sym_val): Define. | |
135 | * aout-target.h (MY_get_synthetic_symtab): Define. | |
136 | * aout-tic30.c (MY_get_synthetic_symtab): Define. | |
137 | * coff-rs6000.c (rs6000coff_vec): Add | |
138 | _bfd_nodynamic_get_synthetic_symtab. | |
139 | (pmac_xcoff_vec): Likewise. | |
140 | * coff64-rs6000.c (rs6000coff64_vec): Add | |
141 | _bfd_nodynamic_get_synthetic_symtab. | |
142 | (aix5coff64_vec): Likewise. | |
143 | * sunos.c (MY_get_synthetic_symtab): Define. | |
144 | * vms.c (vms_get_synthetic_symtab): Define. | |
145 | ||
d2f7ecac NC |
146 | 2004-04-22 Nick Clifton <nickc@redhat.com> |
147 | ||
148 | * bfd.c (bfd_archive_filename): Return NULL on NULL input. | |
149 | ||
fd99574b NC |
150 | 2004-04-22 Peter Barada <peter@the-baradas.com> |
151 | ||
152 | * archures.c: Add bfd_mach_mcfv4e to bfd_architecture. | |
153 | * bfd2-in.h: Regenerate. | |
154 | * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[]. | |
155 | ||
23867d67 CD |
156 | 2004-04-21 Chris Demetriou <cgd@broadcom.com> |
157 | ||
158 | * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove. | |
159 | * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove. | |
160 | * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs) | |
161 | (bfd_mips_elf32_create_embedded_relocs): Remove prototypes | |
162 | * bfd-in2.h: Regenerate. | |
163 | ||
2c8c90bc BW |
164 | 2004-04-21 Bob Wilson <bob.wilson@acm.org> |
165 | ||
166 | * elf32-xtensa.c (is_same_value): Add final_static_link argument and | |
167 | require relocations against a weak symbol to reference the same | |
168 | symbol hash entry if not a final, static link. | |
169 | (get_cached_value, add_value_map): Add final_static_link argument. | |
170 | (remove_literals): Pass final_static_link argument as needed. | |
171 | ||
40838a72 AC |
172 | 2004-04-21 Andrew Cagney <cagney@redhat.com> |
173 | ||
174 | * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec". | |
175 | (struct opncls, opncls_btell, opncls_bseek, opncls_bread) | |
176 | (opncls_bwrite, opncls_bclose, opncls_bflush) | |
177 | (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a | |
178 | bfd iovec that uses function callbacks. | |
179 | (bfd_close): Use the iovec's bclose. | |
180 | * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite) | |
181 | (cache_bclose, cache_bflush, cache_bstat) | |
182 | (cache_iovec): New functions and global variable, implement a | |
183 | cache "iovec", where applicable set bfd_error. | |
184 | (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec. | |
185 | * bfdio.c (struct bfd_iovec): Define. | |
186 | (real_read): Delete function. | |
187 | (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat) | |
188 | (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec", | |
189 | assume that bread and bwrite set bfd_error. | |
190 | * bfd.c (struct bfd): Add "iovec", update comments. | |
191 | * bfd-in2.h, libbfd.h: Re-generate. | |
192 | ||
7f919c84 AC |
193 | 2004-04-21 Andrew Cagney <cagney@redhat.com> |
194 | ||
195 | * libaout.h (enum machine_type): Add M_POWERPC_NETBSD. | |
196 | ||
715df9b8 EB |
197 | 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr> |
198 | ||
199 | * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function. | |
200 | (bfd_elf_gc_sections): Fail if a shared object is being created. | |
201 | Do not fail if dynamic sections have been created. Instead call | |
202 | elf_gc_mark_dynamic_ref_symbol to mark sections that contain | |
203 | dynamically referenced symbols. Do not mark the whole graph | |
204 | rooted at .eh_frame, only the section proper. | |
205 | ||
6482c264 NC |
206 | 2004-04-20 DJ Delorie <dj@redhat.com> |
207 | ||
208 | * reloc.c: Add BFD_RELOC_32_SECREL. | |
209 | * bfd-in2.h: Regenerate. | |
210 | * libbfd.h: Likewise. | |
211 | * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32. | |
212 | (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it. | |
213 | (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise. | |
214 | ||
4dc570c2 JJ |
215 | 2004-04-19 Jakub Jelinek <jakub@redhat.com> |
216 | ||
217 | * elf32-sparc.c (elf32_sparc_relocate_section): Handle | |
218 | relocs against hidden/protected undefweak symbols properly. | |
219 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
220 | ||
0b60d5d3 MK |
221 | 2004-04-18 Mark Kettenis <kettenis@gnu.org> |
222 | ||
223 | * libaout.h (enum machine_type): Add M_POWERPC_NETBSD. | |
224 | * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC | |
225 | core files. | |
226 | ||
d48bdb99 AM |
227 | 2004-04-17 Brian Ford <ford@vss.fsi.com> |
228 | ||
229 | * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero | |
230 | filepos for the SizeOfHeaders field. | |
231 | (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc | |
232 | overflow. | |
233 | (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment. | |
234 | ||
57a1784e AM |
235 | 2004-04-16 Alan Modra <amodra@bigpond.net.au> |
236 | ||
237 | * simple.c (bfd_simple_get_relocated_section_contents): Don't | |
238 | change reloc_done. Set and restore _cooked_size. | |
239 | (RETURN): Delete. | |
240 | ||
d1ad3f6f MK |
241 | 2004-04-15 Mark Kettenis <kettenis@gnu.org> |
242 | ||
243 | * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX | |
244 | core files. | |
245 | ||
3d1bca9d NC |
246 | 2004-04-15 Nick Clifton <nickc@redhat.com> |
247 | ||
248 | * bfd.c (bfd_archive_filename): Catch NULL bfd pointers. | |
249 | ||
019b892f AM |
250 | 2004-04-15 Alan Modra <amodra@bigpond.net.au> |
251 | ||
252 | * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change. | |
253 | ||
15b43f48 AM |
254 | 2004-04-15 H.J. Lu <hongjiu.lu@intel.com> |
255 | ||
256 | * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only | |
257 | when it is a definition. | |
258 | ||
6de00a78 AM |
259 | 2004-04-14 Alan Modra <amodra@bigpond.net.au> |
260 | ||
261 | * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort | |
262 | when statically linking PIC code. | |
263 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
264 | ||
279500de TS |
265 | 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
266 | ||
267 | * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets. | |
268 | * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3* | |
269 | targets amd aout_mips_big_vec, aout_mips_little_vec target vectors. | |
270 | * configure: Regenerate. | |
271 | ||
ccf2f652 RS |
272 | 2004-04-08 Richard Sandiford <rsandifo@redhat.com> |
273 | ||
274 | * elflink.c: Include libiberty.h. | |
275 | * Makefile.am (elflink.lo): Depend on libiberty.h. | |
276 | * Makefile.in: Regenerate. | |
277 | ||
ca07892d DJ |
278 | 2004-04-06 Daniel Jacobowitz <drow@mvista.com> |
279 | ||
280 | * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use | |
281 | ".MIPS.stubs". | |
282 | ||
a5a58ba4 L |
283 | 2004-04-05 H.J. Lu <hongjiu.lu@intel.com> |
284 | ||
285 | * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always | |
286 | reserve the memory for dynamic linker | |
287 | ||
24d18d30 MK |
288 | 2004-04-05 Mark Kettenis <kettenis@gnu.org> |
289 | ||
290 | * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define. | |
291 | (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc. | |
292 | ||
a4d7b4b5 L |
293 | 2004-04-02 H.J. Lu <hongjiu.lu@intel.com> |
294 | ||
295 | * elf32-cr16c.c (elf32_cr16c_relocate_section): Use | |
296 | RELOC_FOR_GLOBAL_SYMBOL. | |
297 | (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym. | |
298 | ||
1f433d93 L |
299 | 2004-04-02 H.J. Lu <hongjiu.lu@intel.com> |
300 | ||
301 | * elf32-arm.h (elf32_arm_final_link_relocate): Handle | |
302 | R_ARM_ALU* only if OLD_ARM_ABI is not defined. | |
303 | ||
e489d0ae PB |
304 | 2004-04-01 Paul Brook <paul@codesourcery.com> |
305 | ||
306 | * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update. | |
307 | * elf32-arm.h (struct elf32_elf_section_map): New. | |
308 | (struct _arm_elf_section_data): New. | |
309 | (elf32_arm_section_data): Define. | |
310 | (struct elf32_arm_link_hash_table): Add byteswap_code. | |
311 | (elf32_arm_link_hash_table_create): Initialize byteswap_code. | |
312 | (bfd_elf32_arm_process_before_allocation): Add byteswap_code. | |
313 | (elf32_arm_post_process_headers): Set EF_ARM_BE8. | |
314 | (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook, | |
315 | elf32_arm_compare_mapping, elf32_arm_write_section): New functions. | |
316 | (bfd_elf32_new_section_hook, elf_backend_write_section, | |
317 | elf_backend_link_output_symbol_hook): Define. | |
318 | ||
66a695f0 NC |
319 | 2004-04-01 Andy Chittenden <achittenden@bluearc.com> |
320 | ||
321 | * stabs.c (struct stab_link_includes_totals): Add field 'symb' | |
322 | that keeps the characters in a B_INCL..B_EINCL range. | |
323 | (_bfd_link_section_stabs): When computing the sum of the | |
324 | characters in a B_INCL..B_EINCL range also keep a copy of those | |
325 | characters. Use this information to distinguish between | |
326 | include sections that have the same sum and the same length | |
327 | but which are nevertheless unique. | |
328 | ||
8375c36b PB |
329 | 2004-03-31 Paul Brook <paul@codesourcery.com> |
330 | ||
331 | * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*. | |
332 | * elfarm-nabi.c (elf32_arm_howto_table): Ditto. | |
333 | ||
a56b48eb NC |
334 | 2004-03-31 Andy Chittenden <achittenden@bluearc.com> |
335 | ||
336 | * stabs.c (struct stab_link_includes_totals): Rename field 'total' | |
337 | to 'sum_chars' and add field 'num_chars'. | |
338 | (_bfd_link_section_stabs): When computing the sum of the | |
339 | characters in a B_INCL..B_EINCL range also keep a count of the | |
340 | number of characters. Use this information to help distinguish | |
341 | between include sections when have the same sum but which | |
342 | nevertheless are still unique. | |
343 |