Commit | Line | Data |
---|---|---|
2627de83 AM |
1 | 2004-01-01 Grant Edwards <grante@visi.com> |
2 | ||
3 | * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored. | |
4 | * elf32-h8300.c (elf32_h8_gc_mark_hook): New function. | |
5 | (elf32_h8_gc_sweep_hook): New function. | |
6 | (elf_backend_gc_mark_hook): Define. | |
7 | (elf_backend_gc_sweep_hook): Define. | |
8 | (elf_backend_can_gc_sections): Define. | |
9 | ||
6edf0760 NC |
10 | 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> |
11 | ||
12 | Adfd m32r-linux and PIC support. Add new ABI that uses RELA. | |
13 | * config.bfd (m32r*-*-linux*, m32r*le-*-linux*, m32r*le-*-*): Added. | |
14 | * configure.in (bfd_elf32_m32rlin_vec, bfd_elf32_m32rlelin_vec, | |
15 | bfd_elf32_m32rle_vec): Added | |
16 | * configure: Regenerated. | |
17 | * elf32-m32r.c (m32r_info_to_howto, m32r_elf_adjust_dynamic_symbol, | |
18 | m32r_elf_size_dynamic_sections, m32r_elf_create_dynamic_sections, | |
19 | m32r_elf_finish_dynamic_sections, m32r_elf_finish_dynamic_symbol, | |
20 | allocate_dynrelocs, readonly_dynrelocs, m32r_elf_reloc_type_class, | |
21 | m32r_elf_fake_sections): Added. | |
22 | (m32r_elf_howto_table): Added | |
23 | R_M32R_16_RELA, R_M32R_32_RELA, R_M32R_24_RELA, | |
24 | R_M32R_10_PCREL_RELA, R_M32R_18_PCREL_RELA, | |
25 | R_M32R_26_PCREL_RELA, R_M32R_HI16_ULO_RELA, | |
26 | R_M32R_HI16_SLO_RELA, R_M32R_LO16_RELA, | |
27 | R_M32R_SDA16_RELA, R_M32R_RELA_GNU_VTINHERIT, | |
28 | R_M32R_RELA_GNU_VTENTRY, R_M32R_GOT24, | |
29 | R_M32R_26_PLTREL, R_M32R_COPY, R_M32R_GLOB_DAT, | |
30 | R_M32R_JMP_SLOT, R_M32R_RELATIVE, R_M32R_GOTOFF, | |
31 | R_M32R_GOTPC24, R_M32R_GOT16_HI_ULO, | |
32 | R_M32R_GOT16_HI_SLO, R_M32R_GOT16_LO, | |
33 | R_M32R_GOTPC_HI_ULO, R_M32R_GOTPC_HI_SLO, | |
34 | R_M32R_GOTPC_LO. | |
35 | (m32r_elf_relocate_section, m32r_elf_check_relocs): Changed for | |
36 | New ABI. | |
37 | * reloc.c: Add BFD_RELOC_M32R_GOT24, BFD_RELOC_M32R_26_PLTREL, | |
38 | BFD_RELOC_M32R_COPY, BFD_RELOC_M32R_GLOB_DAT, | |
39 | BFD_RELOC_M32R_JMP_SLOT, BFD_RELOC_M32R_RELATIVE, | |
40 | BFD_RELOC_M32R_GOTOFF, BFD_RELOC_M32R_GOTPC24, | |
41 | BFD_RELOC_M32R_GOT16_HI_ULO, BFD_RELOC_M32R_GOT16_HI_SLO, | |
42 | BFD_RELOC_M32R_GOT16_LO, BFD_RELOC_M32R_GOTPC_HI_ULO, | |
43 | BFD_RELOC_M32R_GOTPC_HI_SLO, BFD_RELOC_M32R_GOTPC_LO. | |
44 | * targets.c (bfd_elf32_m32rlin_vec, bfd_elf32_m32rlelin_vec, | |
45 | bfd_elf32_m32rle_vec): Added. | |
46 | * bfd-in2.h: Regenerated. | |
47 | * libbfd.h: Regenerated. | |
48 | ||
c4bf7794 NC |
49 | 2003-12-19 Danny Smith <dannysmith@users.sourceforge.net> |
50 | ||
51 | * coffcode.h (styp_to_sec_flags): Don't treat .reloc section | |
52 | as SEC_DEBUGGING. | |
53 | ||
30ac9238 RS |
54 | 2003-12-18 Richard Sandiford <rsandifo@redhat.com> |
55 | ||
56 | * elf32-mips.c (elf_mips_howto_table_rel): Replace all uses of | |
57 | mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc. Use | |
58 | _bfd_mips_elf_hi16_reloc for R_MIPS_HI16 and R_MIPS_GNU_REL_HI16, | |
59 | _bfd_mips_elf_lo16_reloc for R_MIPS_LO16 and R_MIPS_GNU_REL_LO16, | |
60 | and _bfd_mips_elf_got16_reloc for R_MIPS_GOT16. Change rightshift | |
61 | to 16 for R_MIPS_HI16 and R_MIPS_GNU_REL_HI16. | |
62 | (mips_elf_generic_reloc, struct mips_hi16, mips_elf_hi16_reloc) | |
63 | (mips_elf_lo16_reloc, mips_elf_got16_reloc): Delete. | |
64 | (_bfd_mips_elf32_gprel16_reloc): Remove special case. | |
65 | (mips_elf_gprel32_reloc, mips32_64bit_reloc): Likewise. | |
66 | ||
67 | * elf64-mips.c (mips_elf64_howto_table_rel): Replace all uses of | |
68 | mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc. Use | |
69 | _bfd_mips_elf_hi16_reloc for R_MIPS_HI16, _bfd_mips_elf_lo16_reloc | |
70 | for R_MIPS_LO16 and _bfd_mips_elf_got16_reloc for R_MIPS_GOT16. | |
71 | Change R_MIPS_HI16's rightshift to 16. | |
72 | (mips_elf64_howto_table_rela): Replace all uses of | |
73 | mips_elf_generic_reloc with _bfd_mips_elf_generic_reloc. | |
74 | Use _bfd_mips_elf_generic_reloc for R_MIPS_GOT16 as well. | |
75 | (mips_elf64_hi16_reloc, mips_elf64_got16_reloc): Delete. | |
76 | (mips_elf64_shift6_reloc): Remove special case. Use | |
77 | _bfd_mips_elf_generic_reloc instead of returning bfd_reloc_continue. | |
78 | ||
79 | * elfn32-mips.c (prev_reloc_section): Delete. | |
80 | (prev_reloc_address, prev_reloc_addend): Delete. | |
81 | (elf_mips_howto_table_rel, elf_mips_howto_table_rela): As for | |
82 | elf64-mips.c | |
83 | (GET_RELOC_ADDEND, SET_RELOC_ADDEND): Delete. | |
84 | (mips_elf_generic_reloc, struct mips_hi16, mips_elf_hi16_reloc) | |
85 | (mips_elf_lo16_reloc, mips_elf_got16_reloc): Delete. | |
86 | (mips_elf_gprel16_reloc): Delete use of GET_RELOC_ADDEND. | |
87 | (mips_elf_literal_reloc, mips_elf_gprel32_reloc): Likewise. | |
88 | (mips16_jump_reloc, mips16_gprel_reloc): Likewise. | |
89 | (mips_elf_shift6_reloc): Likewise. Delete use of SET_RELOC_ADDEND. | |
90 | ||
91 | * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp): Use | |
92 | _bfd_relocate_contents to install an in-place addend. | |
93 | (mips_hi16): New structure. | |
94 | (mips_hi16_list): Moved from elf32-mips.c. | |
95 | (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_got16_reloc): New functions. | |
96 | (_bfd_mips_elf_lo16_reloc, _bfd_mips_elf_generic_reloc): New functions. | |
97 | (mips_elf_calculate_relocation): Assume addend is unshifted. | |
98 | (_bfd_mips_elf_relocate_section): Don't apply the howto rightshift | |
99 | on top of the usual high-part shift. Don't shift the addend right | |
100 | before calling mips_elf_calculate_relocation. | |
101 | ||
102 | * elfxx-mips.h (_bfd_mips_elf_hi16_reloc): Declare. | |
103 | (_bfd_mips_elf_got16_reloc, _bfd_mips_elf_lo16_reloc): Declare. | |
104 | (_bfd_mips_elf_generic_reloc): Declare. | |
105 | ||
87cc7031 NC |
106 | 2003-12-16 Eric Youngdale <eric@mkssoftware.com> |
107 | Nick Clifton <nickc@redhat.com> | |
108 | ||
109 | * peicode.h (pe_ILF_build_a_bfd): Only skip one instance of each | |
110 | prefix character, if they are present. | |
111 | ||
25c80428 NC |
112 | 2003-12-15 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru> |
113 | Nick Clifton <nickc@redhat.com> | |
114 | ||
115 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Ensure that correct flags | |
116 | are set on known section types. | |
2627de83 | 117 | |
d0a5adde NC |
118 | 2003-12-12 Nick Clifton <nickc@redhat.com> |
119 | ||
120 | * po/ro.po: Updated translation. | |
121 | ||
ac7bbf74 AM |
122 | 2003-12-12 Alan Modra <amodra@bigpond.net.au> |
123 | ||
124 | * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Check for | |
125 | NULL dyn_h. | |
126 | ||
03394ac9 NC |
127 | 2003-12-11 Nick Clifton <nickc@redhat.com> |
128 | ||
129 | * elf.c (INCLUDE_SECTION_IN_SEGMENT): Skip PT_GNU_STACK segments. | |
130 | ||
9719ad41 RS |
131 | 2003-12-08 Richard Sandiford <rsandifo@redhat.com> |
132 | ||
133 | * elfxx-mips.h, elfxx-mips.c, cpu-mips.c: Convert prototypes. | |
134 | Remove casts that were only needed for K&R compatibility. | |
135 | ||
754021d0 AM |
136 | 2003-12-08 Alan Modra <amodra@bigpond.net.au> |
137 | ||
138 | * elf-bfd.h (struct elf_backend_data): Remove "bfd *" and add | |
139 | "elflink_hash_entry *" param to elf_backend_link_output_symbol_hook. | |
140 | Add "elflink_hash_entry *" param to elf_backend_output_arch_syms. | |
141 | * elflink.h (elf_link_output_sym): Add "elflink_hash_entry *" param, | |
142 | and pass to output_symbol_hook. | |
143 | (elf_bfd_final_link): Adjust elf_link_output_sym calls. | |
144 | (elf_link_output_extsym): Likewise. | |
145 | (elf_link_input_bfd): Likewise. | |
146 | * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Adjust. | |
147 | * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise. | |
148 | * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise. | |
149 | * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise. | |
150 | * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise. | |
151 | * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise. | |
152 | * elf64-sparc.c (sparc64_elf_output_arch_syms): Likewise. | |
153 | * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise. | |
154 | Validate dynh->h against h. | |
155 | * elf64-ppc.c (struct ppc_link_hash_entry): Add adjust_done bitfield. | |
156 | (link_hash_newfunc): Init it. | |
157 | (adjust_opd_syms): New function. | |
158 | (ppc64_elf_edit_opd): Set adjust_done when global .opd sym adjusted. | |
159 | Set opd.adjust for all .opd relocs. Call adjust_opd_syms. | |
160 | (ppc64_elf_tls_optimize): Adjust possible .opd sym values here. | |
161 | (ppc64_elf_relocate_section): Also adjust syms not a multiple of 24. | |
162 | (ppc64_elf_output_symbol_hook): New function. | |
163 | (elf_backend_link_output_symbol_hook): Define. | |
164 | ||
11a2be4d RS |
165 | 2003-12-07 Richard Sandiford <rsandifo@redhat.com> |
166 | ||
167 | * elf32-mips.c, elfn32-mips.c, elf64-mips.c: Convert prototypes. | |
168 | Remove casts that were only needed for K&R compatibility. | |
169 | ||
d3793eaa NC |
170 | 2003-12-05 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru> |
171 | ||
172 | * coff-arm.c (aoutarm_std_reloc_howto [ARM_WINCE]): Set | |
173 | partial_inplace for these relocs to FALSE for comptability with | |
174 | the MS linker. | |
175 | Remap ARM_26D relocation from 5 to 0. This fixes "bad fixup" error | |
176 | generated by MS linker, and brings the relocation in line the MS | |
177 | PE documentation. | |
178 | ||
a070c2b1 L |
179 | 2003-12-04 H.J. Lu <hongjiu.lu@intel.com> |
180 | ||
181 | * elf32-ppc.c (ppc_elf_relax_section): Don't check relax_finalizing. | |
182 | ||
d9c458fc L |
183 | 2003-12-04 H.J. Lu <hongjiu.lu@intel.com> |
184 | ||
185 | * elfxx-ia64.c (elfNN_ia64_relax_section): Use the | |
186 | need_relax_finalize field in link_info instead of | |
187 | relax_finalizing to check if the relax finalize pass is being | |
188 | done. | |
189 | ||
d21356d8 NC |
190 | 2003-12-04 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru> |
191 | ||
192 | * coff-arm.c (coff_arm_relocate_section, bfd_arm_process_before_allocation): | |
193 | Change ARM26* to ARM_26* in comments to match definitions. | |
194 | (coff_arm_adjust_symndx): Replace hard-coded constants with | |
195 | appropriate definitions (ARM_26*). | |
196 | ||
1a101a42 AM |
197 | 2003-12-04 Alan Modra <amodra@bigpond.net.au> |
198 | ||
199 | * coff-i860.c (coff_i860_reloc_nyi): Return bfd_reloc_not_supported. | |
200 | * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Warning fixes. | |
201 | (mn10300_elf_relax_section): Likewise. | |
202 | * nlm32-alpha.c (ONES): Define. | |
203 | (nlm32_alpha_howto_table): Use it to avoid warnings. | |
204 | ||
66becf32 AM |
205 | 2003-12-04 Alan Modra <amodra@bigpond.net.au> |
206 | ||
207 | * elf32-i386.c (elf_i386_object_p): Delete. | |
208 | (elf_backend_object_p): Don't define. | |
209 | * elf32-s390.c (elf_s390_object_p): No need to alloc tdata here. | |
210 | * elf32-sh.c (sh_elf_object_p): Likewise. | |
211 | * elf32-sparc.c (elf32_sparc_object_p): Likewise. | |
212 | * elf64-alpha.c (elf64_alpha_object_p): Likewise. | |
213 | * elf64-s390.c (elf_s390_object_p): Likewise. | |
214 | * elf64-x86-64.c (elf64_x86_64_elf_object_p): Likewise. | |
215 | ||
88845958 NC |
216 | 2003-12-03 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> |
217 | ||
218 | * archures.c (bfd_mach_m32r2): Add new machine type. | |
219 | * bfd-in2.h: Regenerate. | |
220 | * cpu-m32r.c : Add new machine type. | |
221 | * elf32-m32r.c (m32r_elf_object_p, m32r_elf_final_write_processing, | |
2627de83 | 222 | m32r_elf_merge_private_bfd_data): Add support for new machine |
88845958 NC |
223 | type. |
224 | ||
f8fc3443 NC |
225 | 2003-12-03 Dave Airlie <airlied@linux.ie> |
226 | ||
227 | * config.bfd: Add vax-linux-gnu target. | |
228 | * configure.in: Likewise. | |
229 | * configure: Regenerate. | |
230 | ||
6ad841a1 AM |
231 | 2003-12-03 Alan Modra <amodra@bigpond.net.au> |
232 | ||
233 | * ecoff.c (ecoff_link_add_archive_symbols): Update for renamed | |
234 | bfd_link_hash_entry field "next" -> "und_next". | |
235 | * linker.c (_bfd_link_hash_newfunc): Likewise. | |
236 | (bfd_link_add_undef): Likewise. | |
237 | (_bfd_generic_link_add_archive_symbols): Likewise. | |
238 | (_bfd_generic_link_add_one_symbol): Likewise. | |
239 | * xcofflink.c (xcoff_link_add_symbols): Likewise. | |
240 | ||
f9d1e83f NC |
241 | 2003-12-02 Nick Clifton <nickc@redhat.com> |
242 | ||
243 | * configure.in (ALL_LINGUAS): Add ro. | |
244 | * po/ro.po: New Romanian translation. | |
245 | ||
9fa06c65 AM |
246 | 2003-12-02 Alan Modra <amodra@bigpond.net.au> |
247 | ||
248 | * Makefile.am: Run "make dep-am". | |
249 | * Makefile.in: Regenerate. | |
250 | ||
771e446b NC |
251 | 2003-12-01 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru> |
252 | ||
253 | * coffcode.h (coff_compute_section_file_positions): Set page_size | |
254 | to 1 instead of 0 in the case file alignment value is zero. | |
255 | ||
1c3bed7b KH |
256 | 2003-12-01 Kazu Hirata <kazu@cs.umass.edu> |
257 | ||
258 | * coff-rs6000.c: Remove ARGSUSED and VARARGS. | |
259 | * coff64-rs6000.c: Likewise. | |
260 | * coffcode.h: Likewise. | |
261 | * elf32-vax.c: Likewise. | |
262 | * hash.c: Likewise. | |
263 | * hppabsd-core.c: Likewise. | |
264 | * hpux-core.c: Likewise. | |
265 | * ihex.c: Likewise. | |
266 | * netbsd-core.c: Likewise. | |
267 | * osf-core.c: Likewise. | |
268 | * pdp11.c: Likewise. | |
269 | * ptrace-core.c: Likewise. | |
270 | * sco5-core.c: Likewise. | |
271 | * section.c: Likewise. | |
272 | * sunos.c: Likewise. | |
273 | * trad-core.c: Likewise. | |
274 | ||
0eddce27 AM |
275 | 2003-12-01 Alan Modra <amodra@bigpond.net.au> |
276 | ||
277 | * elf-bfd.h (is_elf_hash_table): Take hash tab rather than info arg. | |
278 | * elf.c (_bfd_elf_merge_sections): Adjust to suit. | |
279 | (_bfd_elf_link_just_syms): Likewise. | |
280 | (bfd_elf_get_needed_list): Likewise. | |
281 | (bfd_elf_get_runpath_list): Likewise. | |
282 | (_bfd_elf_link_hash_copy_indirect): Remove unneeded parens. | |
283 | * elf32-hppa.c (elf32_hppa_setup_section_lists): Don't check hash tab | |
284 | creator flavour. | |
285 | (elf32_hppa_set_gp): Look up output sections rather than using htab. | |
286 | * elf32-i960.c: Comment fix. Formatting. | |
287 | * elf32-m32r.c (m32r_elf_add_symbol_hook): Use is_elf_hash_table | |
288 | rather than testing creator flavour. | |
289 | * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise. | |
290 | * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise. | |
291 | * elflink.c (_bfd_elf_link_create_dynamic_sections): Adjust for | |
292 | is_elf_hash_table change. Remove redundant test. | |
293 | (bfd_elf_record_link_assignment): Use is_elf_hash_table rather than | |
294 | testing creator flavour. | |
295 | (elf_link_record_local_dynamic_symbol): Adjust for is_elf_hash_table. | |
296 | (_bfd_elf_fix_symbol_flags): Likewise. | |
297 | (_bfd_elf_adjust_dynamic_symbol): Likewise. | |
298 | * elflink.h (elf_link_add_object_symbols): Likewise. Remove redundant | |
299 | checks. Use is_elf_hash_table rather than testing creator flavour. | |
300 | Use hash_table throughout in place of info->hash. | |
301 | (elf_add_dynamic_entry): Adjust for is_elf_hash_table change. | |
302 | (NAME(bfd_elf,size_dynamic_sections)): Likewise. Remove redundant | |
303 | check. | |
304 | (elf_bfd_final_link): Adjust for is_elf_hash_table change. | |
305 | (elf_link_check_versioned_symbol): Use is_elf_hash_table rather than | |
306 | testing creator flavour. | |
307 | (elf_gc_sections): Add is_elf_hash_table check. | |
308 | (elf_gc_common_finalize_got_offsets): Likewise. | |
309 | (elf_bfd_discard_info): Adjust for is_elf_hash_table change. Remove | |
310 | redundant check. | |
311 | * elfxx-ia64.c (elfNN_ia64_relax_section): Use is_elf_hash_table | |
312 | rather than testing creator flavour. | |
313 | ||
552585ed CG |
314 | 2003-11-28 Christian Groessler <chris@groessler.org> |
315 | ||
316 | * cpu-z8k.c: Convert to ISO C90. | |
317 | * coff-z8k.c: Likewise. | |
318 | ||
c84fca4d AO |
319 | 2003-11-27 Alexandre Oliva <aoliva@redhat.com> |
320 | ||
321 | * elf-bfd.h (elf_backend_data::elf_backend_modify_segment_map): | |
322 | Add link info argument. | |
323 | * elf32-i370.c (elf_backend_modify_segment_map): Likewise. | |
324 | * elf32-ppc.c (ppc_elf_modify_segment_map): Likewise. | |
325 | * elf32-xtensa.c (elf_xtensa_modify_segment_map): Likewise. | |
326 | * elf64-hppa.c (elf64_hppa_modify_segment_map): Likewise. | |
327 | * elfxx-ia64.c (elfNN_ia64_modify_segment_map): Likewise. | |
328 | * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Likewise. | |
329 | * elfxx-mips.h (_bfd_mips_elf_modify_segment_map): Likewise. | |
330 | * elf.c (assign_file_positions_except_relocs, | |
331 | assign_file_positions_for_segments): Likewise. Adjust calls. | |
332 | ||
7720ba9f MK |
333 | 2003-11-27 Mark Kettenis <kettenis@gnu.org> |
334 | ||
335 | * elf.c (elfcore_grok_netbsd_procinfo): Make a pseudosection out | |
336 | of the note. | |
337 | ||
0626d451 | 338 | 2003-11-26 Daniel Jacobowitz <drow@mvista.com> |
0eddce27 | 339 | Richard Sandiford <rsandifo@redhat.com> |
0626d451 RS |
340 | |
341 | * elfxx-mips.c (mips_elf_set_global_got_offset): Don't set no_fn_stub. | |
342 | (mips_elf_set_no_stub): New function. | |
343 | (mips_elf_multi_got): Call it. | |
344 | (_bfd_mips_elf_finish_dynamic_symbol): If a relocation is needed for | |
345 | a secondary GOT entry, create an R_MIPS_32 or R_MIPS_64 relocation and | |
346 | use mips_elf_create_dynamic_relocation to deal with any compatibility | |
347 | issues. Store the adjusted addend in the GOT slot. | |
348 |