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