Commit | Line | Data |
---|---|---|
ccba357f AM |
1 | 2004-03-16 Alan Modra <amodra@bigpond.net.au> |
2 | ||
3 | * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override | |
4 | values selected in configure.host. Require both to be defined | |
5 | before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to | |
6 | corresponding BFD_HOST vars with quotes. | |
7 | <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc; | |
8 | Always require BFD_HOST_64_BIT_DEFINED. | |
9 | <file_ptr type>: Find off_t size before emitting message. Combine | |
10 | off_t and ftello64 conditional. | |
11 | * configure: Regenerate. | |
12 | ||
41978308 AM |
13 | 2004-03-16 Alan Modra <amodra@bigpond.net.au> |
14 | ||
15 | * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer | |
16 | aliasing warning. Remove trailing whitespace throughout file. | |
17 | ||
d63b5ed9 DA |
18 | 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
19 | ||
20 | * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of | |
21 | input_section in calls to get_dyn_name. | |
22 | * elf64-hppa.c (get_dyn_name): Change type of first argument to "bfd *". Use section id of first section in input BFD to build dynamic name for | |
23 | local symbols. | |
24 | (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name. | |
25 | ||
8ce8c090 AM |
26 | 2004-03-15 Alan Modra <amodra@bigpond.net.au> |
27 | ||
28 | * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types. | |
29 | (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here. | |
30 | (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t. | |
31 | (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t. | |
32 | (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t. | |
33 | * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8. | |
34 | (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set | |
35 | when using long. | |
36 | * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t. | |
37 | (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT. | |
38 | (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise. | |
39 | (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT. | |
40 | (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise. | |
41 | * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t. | |
42 | (read_8_bytes, read_indirect_string, read_address): Likewise. | |
43 | (read_abbrevs, parse_comp_unit): Likewise. | |
44 | * targets.c (struct bfd_target): Likewise. | |
45 | * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use. | |
46 | * hppabsd-core.c: Likewise. Formatting. | |
47 | * hpux-core.c: Likewise. | |
48 | * irix-core.c: Likewise. | |
49 | * netbsd-core.c: Likewise. | |
50 | * osf-core.c: Likewise. | |
51 | * ptrace-core.c: Likewise. | |
52 | * sco5-core.c: Likewise. | |
53 | * trad-core.c: Likewise. | |
54 | * configure: Regenerate. | |
55 | * bfd-in2.h: Regenerate. | |
56 | ||
edeb6e24 AM |
57 | 2004-03-15 Alan Modra <amodra@bigpond.net.au> |
58 | ||
59 | * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*. | |
60 | (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise. | |
61 | (bfd_getb_signed_64, bfd_getl_signed_64): Likewise. | |
62 | (bfd_getb_signed_32, bfd_getl_signed_32): Likewise. | |
63 | (bfd_getb_signed_16, bfd_getl_signed_16): Likewise. | |
64 | (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise. | |
65 | (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise. | |
66 | * libbfd.c: Likewise in function definitions. | |
67 | (bfd_put_8): Mask with 0xff rather than casting to char. | |
68 | (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise. | |
69 | (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise. | |
70 | (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify. | |
71 | (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise. | |
72 | (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise. | |
73 | (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise. | |
74 | * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify. | |
75 | (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise. | |
76 | (H_GET_64, H_GET_32, H_GET_16): Likewise. | |
77 | (H_GET_S64, H_GET_S32, H_GET_S16): Likewise. | |
78 | * archive.c (do_slurp_coff_armap): Update swap prototype. | |
79 | * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*. | |
80 | (tic54x_getl_signed_32): Likewise. | |
81 | (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char. | |
82 | * mach-o.c (bfd_mach_o_read_header): Update get32 prototype. | |
83 | * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*. | |
84 | (bfd_getp_signed_32, bfd_putp32): Likewise. | |
85 | * targets.c (struct bfd_target): Use void* in place of bfd_byte* for | |
86 | bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32, | |
87 | bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16, | |
88 | bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64, | |
89 | bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16, | |
90 | bfd_h_getx_signed_16, bfd_h_putx16. | |
91 | * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes. | |
92 | * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS. | |
93 | * hpux-core.c: Likewise. | |
94 | * irix-core.c: Likewise. | |
95 | * netbsd-core.c: Likewise. | |
96 | * osf-core.c: Likewise. | |
97 | * ptrace-core.c: Likewise. | |
98 | * sco5-core.c: Likewise. | |
99 | * trad-core.c: Likewise. | |
100 | * bfd-in2.h: Regenerate. | |
101 | ||
c1b954e2 AM |
102 | 2004-03-15 Matt Thomas <matt@3am-software.com> |
103 | ||
104 | * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is | |
105 | selected. | |
106 | ||
85cfd8d3 MK |
107 | 2004-03-13 Mark Kettenis <kettenis@gnu.org> |
108 | ||
109 | * config.bfd: Add x86_64-*-openbsd*. | |
110 | * configure.in (x86_64-*-openbsd*): Set COREFILE to | |
111 | netbsd-core.lo. | |
112 | * configure: Regenerate. | |
113 | ||
d1f161ea NC |
114 | 2004-03-12 Nick Clifton <nickc@redhat.com> |
115 | Dave Murphy <wintermute2k4@ntlworld.com> | |
c1b954e2 | 116 | |
d1f161ea NC |
117 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks |
118 | if the input bfd does not contain any code. | |
119 | ||
8b6f2683 JW |
120 | 2004-03-09 Steve Ellcey <sje@cup.hp.com> |
121 | ||
122 | * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq. | |
123 | ||
79cda7cf FF |
124 | 2004-03-05 Fred Fish <fnf@redhat.com> |
125 | ||
126 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force | |
127 | mips16 symbols to be even rather than testing first for even/odd. | |
128 | (_bfd_mips_elf_link_output_symbol_hook): Ditto. | |
129 | ||
e5caec89 NS |
130 | 2004-03-05 Nathan Sidwell <nathan@codesourcery.com> |
131 | ||
132 | * elf.c (map_sections_to_segments): Ignore .tbss sections for | |
133 | layout purposes. | |
134 | ||
02bb6eae AO |
135 | 2004-03-03 Alexandre Oliva <aoliva@redhat.com> |
136 | ||
137 | * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and | |
138 | undefined symbols as hash_new. | |
139 | ||
ae51a426 JR |
140 | 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com> |
141 | ||
142 | * archures.c: Add bfd_mach_sh4_nommu_nofpu. | |
143 | * cpu-sh.c: Ditto. | |
144 | * elf32-sh.c: Ditto. | |
145 | * bfd-in2.h: Regenerate. | |
146 | ||
3b712a1a AO |
147 | 2004-03-02 Alexandre Oliva <aoliva@redhat.com> |
148 | ||
149 | * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and | |
150 | dynrelocs. | |
151 | (_frv_count_got_plt_entries): Initialize them. | |
152 | (frv_pic_relocs_info_find): Add insert argument. Adjust all | |
153 | callers. | |
154 | (frv_pic_relocs_info_for_global): Likewise. | |
155 | (frv_pic_relocs_info_for_local): Likewise. | |
156 | (frv_pic_merge_early_relocs_info): New. | |
157 | (_frv_resolve_final_relocs_info): Use it in case one entry maps to | |
158 | another. | |
159 | (_frv_add_dyn_reloc): Add entry argument. Adjust all callers. | |
160 | Check that we don't exceed the allocated count for entry. | |
161 | (_frv_add_rofixup): Likewise. | |
162 | (_frv_emit_got_relocs_plt_entries): Adjust for coding standards. | |
163 | (elf32_frv_finish_dynamic_sections): Improve error message in case | |
164 | we emit too few rofixup entries. | |
165 | ||
676a64f4 RS |
166 | 2004-03-01 Richard Sandiford <rsandifo@redhat.com> |
167 | ||
168 | * archures.c (bfd_mach_fr450): New. | |
169 | * bfd-in2.h: Regenerate. | |
170 | * cpu-frv.c (arch_info_450): New bfd_arch_info_type. | |
171 | (arch_info_500): Link to it. | |
172 | * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data) | |
173 | (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags. | |
174 | (frv_elf_arch_extension_p): New function. | |
175 | (frv_elf_merge_private_bfd_data): Use it. | |
176 | ||
0ad989f9 L |
177 | 2004-02-28 H.J. Lu <hongjiu.lu@intel.com> |
178 | ||
179 | * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype. | |
180 | ||
181 | * elflink.h (is_global_data_symbol_definition): Moved to | |
182 | elflink.c. | |
183 | (elf_link_is_defined_archive_symbol): Likewise. | |
184 | (elf_link_add_archive_symbols): Likewise. Renamed to | |
185 | _bfd_elf_link_add_archive_symbols. | |
186 | ||
187 | * elflink.c (elf_link_is_defined_archive_symbol): Get the size | |
188 | of ELF symbol table entry from backend. | |
189 | (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols | |
190 | instead of elf_link_add_object_symbols. | |
191 | ||
ec3391e7 AO |
192 | 2004-02-27 Alexandre Oliva <aoliva@redhat.com> |
193 | ||
194 | * elf-bfd.h (struct elf_backend_data): Added | |
195 | elf_backend_can_make_relative_eh_frame, | |
196 | elf_backend_can_make_lsda_relative_eh_frame and | |
197 | elf_backend_encode_eh_address. | |
198 | (_bfd_elf_encode_eh_address): Declare. | |
199 | (_bfd_elf_can_make_relative): Declare. | |
200 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new | |
201 | hooks to decide whether to attempt to make_relative and | |
202 | make_lsda_relative. | |
203 | (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address. | |
204 | (_bfd_elf_can_make_relative): New. | |
205 | (_bfd_elf_encode_eh_address): New. | |
206 | * elf32-frv.c (frv_elf_use_relative_eh_frame): New. | |
207 | (frv_elf_encode_eh_address): New. | |
208 | (elf_backend_can_make_relative_eh_frame): Define. | |
209 | (elf_backend_can_make_lsda_relative_eh_frame): Define. | |
210 | (elf_backend_encode_eh_address): Define. | |
211 | * elfxx-target.h | |
212 | (elf_backend_can_make_relative_eh_frame): Define. | |
213 | (elf_backend_can_make_lsda_relative_eh_frame): Define. | |
214 | (elf_backend_encode_eh_address): Define. | |
215 | (elfNN_bed): Add them. | |
216 | ||
e6deed0a AO |
217 | 2004-02-27 Alexandre Oliva <aoliva@redhat.com> |
218 | ||
219 | * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set | |
220 | complain_on_overflow to signed. | |
221 | ||
b60d7a1a L |
222 | 2004-02-27 H.J. Lu <hongjiu.lu@intel.com> |
223 | ||
224 | * elflink.h (sort_symbol): New. | |
225 | (elf_link_add_object_symbols): Use a sorted symbol array for | |
226 | weakdef. | |
227 | ||
1c3ff0f2 MS |
228 | 2004-02-27 Jakub Jelinek <jakub@redhat.com> |
229 | ||
230 | * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL | |
231 | for pc relative relocs. | |
232 | (elf_s390_relocate_section): Likewise. | |
233 | * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL | |
234 | for pc relative relocs. | |
235 | (elf_s390_relocate_section): Likewise. | |
236 | ||
de9811af L |
237 | 2004-02-26 H.J. Lu <hongjiu.lu@intel.com> |
238 | ||
239 | * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to | |
240 | count_dyn_reloc. | |
241 | ||
ac33696c L |
242 | 2004-02-25 H.J. Lu <hongjiu.lu@intel.com> |
243 | ||
244 | * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext. | |
245 | field to track if a relocation is against readonly section. | |
246 | (count_dyn_reloc): Take a new argument for rent->reltext. | |
247 | (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc. | |
248 | (get_reloc_section): Don't set ia64_info->reltext here. | |
249 | (allocate_dynrel_entries): Set ia64_info->reltext here. | |
250 | ||
072c8903 AO |
251 | 2004-02-24 Alexandre Oliva <aoliva@redhat.com> |
252 | ||
253 | * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local. | |
254 | (_frv_emit_got_relocs_plt_entries): Decay relocation to protected | |
255 | function's descriptor to symbol+offset, and map local undefweak | |
256 | symbol to NULL function descriptor. | |
257 | (elf32_frv_relocate_section): Likewise. | |
258 | ||
aca305d9 NC |
259 | 2004-02-23 Mark Kettenis <kettenis@gnu.org> |
260 | ||
261 | * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and | |
262 | M_X86_64_NETBSD. | |
263 | * netbsd-core.c (M_SPARC64_OPENBSD): Define. | |
264 | (netbsd_core_file_p): Set architecture from machine ID for | |
265 | selected machines. | |
266 | ||
646411fb JJ |
267 | 2004-02-23 Jakub Jelinek <jakub@redhat.com> |
268 | ||
269 | * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and | |
270 | DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry. | |
271 | ||
1de1a317 L |
272 | 2004-02-21 H.J. Lu <hongjiu.lu@intel.com> |
273 | ||
274 | * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined | |
275 | symbols with non-default visibility. | |
276 | ||
3c9d0484 DS |
277 | 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net> |
278 | ||
279 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear | |
280 | IMAGE_SCN_MEM_WRITE on known sections only. | |
281 | ||
a876ecf9 JJ |
282 | 2004-02-20 Jakub Jelinek <jakub@redhat.com> |
283 | ||
284 | * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak | |
285 | symbols used in PIE relocs. | |
286 | ||
a8a6d7ce JJ |
287 | 2004-02-19 Jakub Jelinek <jakub@redhat.com> |
288 | ||
289 | * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear | |
290 | .plt sh_entsize. | |
291 | ||
d080fcd2 DJ |
292 | 2004-02-18 Daniel Jacobowitz <drow@mvista.com> |
293 | ||
294 | * configure.in: Update version to 2.15.90. | |
295 | * configure: Regenerate. | |
296 | ||
d25aed71 | 297 | 2004-02-17 Daniel Jacobowitz <drow@mvista.com> |
c1b954e2 | 298 | Richard Sandiford <rsandifo@redhat.com> |
d25aed71 RS |
299 | |
300 | * elfxx-mips.c (mips_elf_calculate_relocation): Use | |
301 | _bfd_elf_symbol_refs_local_p to decide whether to decay | |
302 | a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend. | |
303 | (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE | |
304 | relocs if the symbol wasn't defined by a regular object file. | |
305 | Don't check the symbol's dynindx. | |
306 | ||
d7ce59e3 AC |
307 | 2004-02-16 Andrew Cagney <cagney@redhat.com> |
308 | ||
309 | * bfd-in.h (file_ptr, ufile_ptr): Configure type using | |
310 | @bfd_file_ptr@. | |
311 | * bfd-in2.h: Re-generate. | |
312 | ||
ca0b7686 AC |
313 | 2004-02-14 Andrew Cagney <cagney@redhat.com> |
314 | ||
315 | * configure.host (HDEFINES): When hppa*-*-hpux*, define | |
316 | _LARGEFILE64_SOURCE. | |
317 | ||
340b6d91 AC |
318 | 2004-02-13 Andrew Cagney <cagney@redhat.com> |
319 | ||
320 | * elf.c (vma_page_aligned_bias): New function. | |
321 | (assign_file_positions_except_relocs) | |
322 | (assign_file_positions_for_segments): Replace broken modulo | |
323 | arithmetic with call to vma_page_aligned_bias. | |
324 | ||
1012372a AC |
325 | 2004-02-11 Andrew Cagney <cagney@redhat.com> |
326 | ||
7c192733 AC |
327 | * bfd-in.h: Update copyright. |
328 | (bfd_tell): Change return type to file_ptr. | |
329 | * bfd-in2.h: Re-generate. | |
330 | * cache.c: Update copyright. | |
331 | (bfd_cache_lookup_worker): Use real_fseek, do not cast offset | |
332 | parameter. | |
333 | (close_one): Use real_ftell. | |
334 | * bfdio.c: Update copyright. | |
335 | (real_ftell, real_fseek): New functions. | |
336 | (bfd_tell): Use real_fseek and real_ftell, change return type to | |
337 | file_ptr. | |
338 | (bfd_seek): Use real_ftell and real_fseek, change type of | |
339 | file_position to a file_ptr. | |
340 | * libbfd-in.h: Update copyright. | |
341 | (real_ftell, real_fseek): Declare. | |
342 | * libbfd.h: Re-generate. | |
343 | ||
1012372a AC |
344 | * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64, |
345 | fseeko and fseeko64. Determine bfd_file_ptr. | |
346 | * configure: Re-generate. | |
c1ea0c09 | 347 | * config.in: Re-generate. |
c1b954e2 | 348 | |
3255318a NC |
349 | 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com> |
350 | ||
351 | * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w. | |
352 | * elf32-h8300.c: Likewise. | |
353 | ||
0d5f9994 NC |
354 | 2004-02-09 Christian Vogel <vogelchr@vogel.cx> |
355 | Nick Clifton <nickc@redhat.com> | |
356 | ||
357 | * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch | |
358 | GOT entries with no associated GOT subsection. | |
359 | ||
174fd7f9 RS |
360 | 2004-02-09 Richard Sandiford <rsandifo@redhat.com> |
361 | ||
362 | * bfd-elf.h (elf_backend_name_local_section_symbols): New hook. | |
363 | * elf.c (swap_out_syms): Use it to decide whether local section | |
364 | symbols should be named. | |
365 | * elfxx-target.h (elf_backend_name_local_section_symbols): New macro. | |
366 | * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare. | |
367 | (elf_backend_name_local_section_symbols): Define. | |
368 | * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New. | |
369 | ||
03609792 L |
370 | 2004-01-30 H.J. Lu <hongjiu.lu@intel.com> |
371 | ||
372 | * elfxx-ia64.c (elfNN_ia64_relax_brl): New function. | |
373 | (elfNN_ia64_relax_section): Optimize brl to br during the relax | |
374 | finalize pass. | |
375 | ||
ea01195e AO |
376 | 2004-01-30 Alexandre Oliva <aoliva@redhat.com> |
377 | ||
378 | * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer | |
379 | to bfd_link_hash_entry passed by reference to | |
380 | _bfd_generic_link_add_one_symbol. | |
381 | ||
838e70c5 L |
382 | 2004-01-25 H.J. Lu <hongjiu.lu@intel.com> |
383 | ||
384 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm | |
385 | relocations against dynamic symbols. | |
386 | ||
4f199be3 DJ |
387 | 2004-01-23 Daniel Jacobowitz <drow@mvista.com> |
388 | ||
389 | * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13 | |
390 | change. | |
391 | ||
28d39d1a NC |
392 | 2004-01-21 Tom Rix <tcrix@worldnet.att.net> |
393 | ||
394 | * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw. | |
395 | * bfd-in2.h, libbfd.h: Rebuilt. | |
396 | ||
66bed356 DS |
397 | 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net> |
398 | ||
399 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove | |
400 | IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT | |
401 | flag has been cleared. | |
402 | ||
7e89635a KH |
403 | 2004-01-19 Kazu Hirata <kazu@cs.umass.edu> |
404 | ||
405 | * coff-h8300.c: Add and adjust comments about relaxation. | |
406 | * elf32-h8300.c: Likewise. | |
407 | ||
e804e836 KH |
408 | 2004-01-16 Kazu Hirata <kazu@cs.umass.edu> |
409 | ||
410 | * coff-h8300.c: Fix comment typos. | |
411 | * elf32-h8300.c: Likewise. | |
412 | ||
630a7b0a KH |
413 | 2004-01-16 Kazu Hirata <kazu@cs.umass.edu> |
414 | ||
415 | * coff-h8300.c: Add comments about relaxation. | |
416 | * elf32-h8300.c: Likewise. | |
417 | ||
f8b73030 MR |
418 | 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl> |
419 | ||
420 | * acinclude.m4: Quote names of macros to be defined by AC_DEFUN | |
421 | throughout. | |
422 | * aclocal.m4: Regenerate. | |
423 | * configure: Regenerate. | |
424 | ||
32159579 ILT |
425 | 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com> |
426 | ||
427 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call | |
428 | mips_elf64_rtype_to_howto instead of using howto_table. | |
429 | ||
c84cd8ee DJ |
430 | 2004-01-13 Daniel Jacobowitz <drow@mvista.com> |
431 | ||
432 | * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created | |
433 | the .plt section. | |
434 | (elf32_arm_check_relocs): Don't increment the PLT refcount for | |
435 | relocs which would not use the PLT. | |
436 | ||
680a3378 AM |
437 | 2004-01-13 Alan Modra <amodra@bigpond.net.au> |
438 | ||
439 | * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs. | |
440 | (ppc64_elf_gc_sweep_hook): Likewise. | |
441 | (ppc64_elf_size_dynamic_sections): Test for .plt directly. | |
442 | ||
faca21e5 NC |
443 | 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com> |
444 | ||
445 | Adds linker relaxation support for bit manipulation insns like | |
680a3378 | 446 | band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset, |
faca21e5 | 447 | bst, btst, bxor. |
680a3378 | 448 | * elf32-h8300.c: Opcode for bit manipulation insn is checked in |
faca21e5 | 449 | elf32_h8_relax_section function while relxation for aa:16 and aa:32. |
680a3378 | 450 | * coff-h8300.c: Opcode for bit manipulation insn is checked in |
faca21e5 NC |
451 | h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32. |
452 | ||
818a27ac AM |
453 | 2004-01-12 Alan Modra <amodra@bigpond.net.au> |
454 | ||
455 | * dwarf2.c: Convert to C90, remove unneeded casts and prototypes. | |
456 | ||
96ef1419 KH |
457 | 2004-01-11 Kazu Hirata <kazu@cs.umass.edu> |
458 | ||
459 | * elf32-h8300.c: Fix formatting. | |
460 | ||
babfd660 KH |
461 | 2004-01-11 Kazu Hirata <kazu@cs.umass.edu> |
462 | ||
463 | * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no | |
464 | dynamic object is present. Declare r_symndx and h in an inner | |
465 | scope. | |
466 | * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise. | |
467 | ||
7359ea65 DJ |
468 | 2004-01-09 Daniel Jacobowitz <drow@mvista.com> |
469 | ||
470 | * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count. | |
471 | (elf32_arm_copy_indirect_symbol): Don't copy pc_count. | |
472 | (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs | |
473 | identically. Do not emit PC24 relocations for shared libraries. | |
474 | (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs | |
475 | identically. Don't adjust pc_count. | |
476 | (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically. | |
477 | Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't | |
478 | adjust count for branch relocations. | |
479 | (allocate_dynrelocs): Correct typo in call to | |
480 | WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for | |
481 | PC24 or PLT32 relocs when linking. | |
482 | ||
44e88952 NC |
483 | 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru> |
484 | ||
485 | * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D | |
486 | relocation howto with ARM_26 one for consistency. | |
487 | (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations | |
488 | that will be converted to ARM_26D ones, since we always want 'done' | |
489 | relocations to be reflected in section's data. | |
490 | (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction | |
491 | offset. | |
492 | (_bfd_final_link_relocate): Do not modify "inplace" data, if not | |
493 | requested. | |
494 | ||
1e7fef1d NC |
495 | 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru> |
496 | ||
497 | * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that | |
498 | are not partial_inplace during a relocatable link. | |
499 | ||
4f075348 KH |
500 | 2004-01-08 Kazu Hirata <kazu@cs.umass.edu> |
501 | ||
babfd660 | 502 | * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early |
4f075348 KH |
503 | if no dynamic object is present. Declare r_symndx and h in an |
504 | inner scope. | |
505 | ||
de0d9f33 L |
506 | 2004-01-07 H.J. Lu <hongjiu.lu@intel.com> |
507 | ||
508 | * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install | |
509 | trampoline if it is known out of range. | |
510 | ||
51532845 AO |
511 | 2004-01-06 Alexandre Oliva <aoliva@redhat.com> |
512 | ||
513 | 2003-12-17 Alexandre Oliva <aoliva@redhat.com> | |
514 | * elf32-frv.c (_frv_osec_readonly_p): New. | |
515 | (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for | |
516 | undefweak symbol. | |
517 | (_frv_count_got_plt_entries): Adjust expected count accordingly. | |
518 | (elf32_frv_relocate_section): Likewise. Error out if attempting | |
519 | to emit rofixups or dynamic relocs in read-only segments. Use | |
520 | _bfd_elf_section_offset to adjust r_offsets in rofixups and | |
521 | dynamic relocations. | |
522 | 2003-12-12 Alexandre Oliva <aoliva@redhat.com> | |
523 | * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic | |
524 | relocations or fixups involving merged sections correctly. Avoid | |
525 | crash when undefined symbol is referenced by R_FRV_32 or | |
526 | R_FRV_FUNCDESC_VALUE. | |
527 | 2003-12-02 Alexandre Oliva <aoliva@redhat.com> | |
528 | * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of | |
529 | input section holding local symbol to addend of R_FRV_32 or | |
530 | R_FRV_FUNCDESC_VALUE dynamic relocation. | |
531 | 2003-11-27 Alexandre Oliva <aoliva@redhat.com> | |
532 | * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg. | |
533 | (elf32_frv_always_size_sections): Don't store pointer to | |
534 | __stacksize symbol in sec_info. | |
535 | (elf32_frv_modify_segment_map): Look it up here. | |
536 | 2003-11-26 Alexandre Oliva <aoliva@redhat.com> | |
537 | * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address | |
538 | of the lazy PLT entry, not only its offset, as the low word of a | |
539 | function descriptor. | |
540 | 2003-11-10 Alexandre Oliva <aoliva@redhat.com> | |
541 | * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize | |
542 | if a hash table entry already exists but is not a definition. | |
543 | 2003-11-05 Alexandre Oliva <aoliva@redhat.com> | |
544 | * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc. | |
545 | (_frv_add_rofixup): Don't inline. | |
546 | (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address | |
547 | for undefweak symbols. | |
548 | (elf32_frv_relocate_section): Avoid crash while computing | |
549 | relocation when linking with shared library. Only emit rofixups | |
550 | and dynamic relocations for alloc&load sections. Mark binaries | |
551 | with inter-segment relocations for relocation as a unit. | |
552 | (_frv_create_got_section): Rename .rofixup.got to .rofixup. | |
553 | (DEFAULT_STACK_SIZE): New. | |
554 | (_frv_count_got_plt_entries): Fix thinko in deciding whether to | |
555 | emit rofixups or dynamic relocs when linking dynamic non-PIE | |
556 | executables. | |
557 | (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and | |
558 | shared libs too. Reserve the last entry for the GOT pointer. | |
559 | (elf32_frv_finish_dynamic_sections): Emit it. | |
560 | (elf32_frv_always_size_sections): New. | |
561 | (elf32_frv_modify_segment_map): New. | |
562 | (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC | |
563 | sections. | |
564 | (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set. | |
565 | (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC. | |
566 | (elf_backend_always_size_sections): New. | |
567 | (elf_backend_modify_segment_map): New. | |
568 | 2003-10-31 Alexandre Oliva <aoliva@redhat.com> | |
569 | * config.bfd: Added frv-*-*linux*. | |
570 | * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for | |
571 | ABS section, instead of crashing. | |
572 | (elf32_frv_relocate_section): Don't crash before warning about | |
573 | different segments in non-PIC relocation. | |
574 | 2003-10-17 Alexandre Oliva <aoliva@redhat.com> | |
575 | * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24 | |
576 | relocs to undefweak symbols. | |
577 | (elf32_frv_relocate_section): Ditto for undefined symbols. | |
578 | 2003-10-06 Alexandre Oliva <aoliva@redhat.com> | |
579 | * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure | |
580 | gotfixup section was created. | |
581 | 2003-09-30 Alexandre Oliva <aoliva@redhat.com> | |
582 | * elf32-frv.c (elf32_frv_howto_table): Change GOT12, | |
583 | FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to | |
584 | complain_overflow_signed. | |
585 | * elf32-frv.c (_frv_add_rofixup): Do not error out if contents | |
586 | have not been allocated. | |
587 | (_frv_emit_got_relocs_plt_entries): Return non-void. Assert | |
588 | privfd only if dynamic sections were created. | |
589 | (elf32_frv_relocate_section): Compute gprel_segment, and use it | |
590 | for GPREL relocs. When linking relocatable FDPIC executables, | |
591 | emit warnings for relocations that would be illegal on PIE or | |
592 | shared libraries. Emit rofixup for R_FRV_32 only if input object | |
593 | is not FDPIC. | |
594 | (_frv_create_got_section): Define _gp symbol in the rofixup | |
595 | section. | |
596 | (elf32_frv_finish_dynamic_sections): If rofixups needed but | |
597 | dynamic sections missing, error out requesting -melf32frvfd. | |
598 | 2003-09-19 Alexandre Oliva <aoliva@redhat.com> | |
599 | * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange | |
600 | computation of addends from section and global or local symbol | |
601 | value. Change return type to bfd_boolean, and return a failure if | |
602 | a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a | |
603 | nonzero addend is required. | |
604 | (elf32_frv_relocate_section): Likewise. Print error for | |
605 | unsupported nonzero addends. | |
606 | 2003-09-18 Alexandre Oliva <aoliva@redhat.com> | |
607 | * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections, | |
608 | force everything local. | |
609 | (_frv_emit_got_relocs_plt_entries): Cope with NULL sec. | |
610 | * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup. | |
611 | (frv_gotfixup_section): New. | |
612 | (FRV_SYM_LOCAL): Accept undefweak and local common symbols. | |
613 | (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd | |
614 | and relocsfdv. | |
615 | (_frv_add_rofixup): New. | |
616 | (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE | |
617 | fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and | |
618 | improve some ugly conditions. | |
619 | (elf32_frv_relocate_section): Likewise. Reject inter-segment | |
620 | relocations in fdpic. | |
621 | (_frv_create_got_section): Create .rofixup.got section. | |
622 | (struct _frv_dynamic_got_info): Added fixups. | |
623 | (_frv_count_got_plt_entries): Account in-GOT relocations into | |
624 | relocs32, relocsfd and relocsfdv. Account them into relocs or | |
625 | fixups, as appropriate. | |
626 | (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify | |
627 | sizing of gotrel. | |
628 | (elf32_frv_finish_dynamic_sections): Verify that the right number | |
629 | of relocations and fixups was generated. | |
630 | (elf32_frv_check_relocs): Compute relocs32, relocsfd and | |
631 | relocsfdv. | |
632 | * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of | |
633 | SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL. | |
634 | (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function | |
635 | descriptor of a (formerly-)global symbol is local. | |
636 | (struct frv_pic_relocs_info): Adjust comments. | |
637 | (_frv_emit_got_relocs_plt_entries): Adjust. | |
638 | (elf32_frv_relocate_section): Likewise. | |
639 | (_frv_count_got_plt_entries): Likewise. | |
640 | * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global | |
641 | symbol's value to addend in the common preamble. Decay dynamic | |
642 | symbols to section+offset if they bind or call locally, for GOT | |
643 | and FUNCDESC_VALUE, respectively. | |
644 | (elf32_frv_relocate_section): Likewise. | |
645 | (elf32_frv_check_relocs): Don't register as dynamic symbols of | |
646 | internal or hidden visibility. | |
647 | 2003-09-17 Alexandre Oliva <aoliva@redhat.com> | |
648 | * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as | |
649 | argument, so as to not call _bfd_elf_rel_local_sym to compute it. | |
650 | (elf32_frv_relocate_section): Pass relocation addend in. Use | |
651 | original relocation addend to look up the got relocs/plt entries | |
652 | table. Do not call _bfd_elf_rel_local_sym. Don't error out when | |
653 | processing relocations that reference .scommon symbols. | |
654 | 2003-09-15 Alexandre Oliva <aoliva@redhat.com> | |
655 | Introduce support for dynamic linking. | |
656 | * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits. | |
657 | (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto, | |
658 | elf32_frv_rel_funcdesc_value_howto): New REL descriptors. | |
659 | (frv_reloc_type_lookup): Return REL howtos for executables and | |
660 | dynamic libraries. | |
661 | (frv_info_to_howto_rel): New. | |
662 | (struct frv_elf_link_hash_table): New. | |
663 | (frv_hash_table, frv_got_section, frv_gotrel_section, | |
664 | frv_plt_section, frv_pltrel_section, frv_relocs_info, | |
665 | frv_got_initial_offset, frv_plt_initial_offset): New macros. | |
666 | (frv_elf_link_hash_table_create): New. | |
667 | (struct frv_pic_relocs_info): New. | |
668 | (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New. | |
669 | (frv_pic_relocs_info_find): New. | |
670 | (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local): | |
671 | New. | |
672 | (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New. | |
673 | (_frv_add_dyn_reloc, _frv_osec_to_segment): New. | |
674 | (_frv_emit_got_relocs_plt_entries): New. | |
675 | (elf32_frv_relocate_section): Add support for dynamic linking. | |
676 | Handle new relocations. | |
677 | (_frv_create_got_section): New. | |
678 | (elf32_frv_create_dynamic_sections): New. | |
679 | (ELF_DYNAMIC_INTERPRETER): New. | |
680 | (struct _frv_dynamic_got_info): New. | |
681 | (_frv_count_got_plt_entries): New. | |
682 | (struct _frv_dynamic_got_plt_info): New. | |
683 | (_frv_compute_got_alloc_data): New. | |
684 | (_frv_get_got_entry, _frv_get_fd_entry): New. | |
685 | (_frv_assign_got_entries, _frv_assign_plt_entries): New. | |
686 | (_frv_resolve_final_relocs_info): New. | |
687 | (elf32_frv_size_dynamic_sections): New. | |
688 | (elf32_frv_finish_dynamic_sections): New. | |
689 | (elf32_frv_adjust_dynamic_symbol): New. | |
690 | (elf32_frv_finish_dynamic_symbol): New. | |
691 | (elf32_frv_check_relocs): Handle new relocs. Explain how the | |
692 | whole thing works. | |
693 | (elf_info_to_howto_rel): Define. | |
694 | (bfd_elf32_bfd_link_hash_table_create): Define. | |
695 | (elf_backend_create_dynamic_sections): Define. | |
696 | (elf_backend_adjust_dynamic_symbol): Define. | |
697 | (elf_backend_size_dynamic_sections): Define. | |
698 | (elf_backend_finish_dynamic_symbol): Define. | |
699 | (elf_backend_finish_dynamic_sections): Define. | |
700 | (elf_backend_want_got_sym): Define. | |
701 | (elf_backend_got_header_size): Define. | |
702 | (elf_backend_want_got_plt): Define. | |
703 | (elf_backend_plt_readonly): Define. | |
704 | (elf_backend_want_plt_sym): Define. | |
705 | (elf_backend_plt_header_size): Define. | |
706 | (elf_backend_may_use_rel_p): Define. | |
707 | (elf_backend_may_use_rela_p): Define. | |
708 | (elf_backend_default_use_rela_p): Define. | |
709 | 2003-08-08 Alexandre Oliva <aoliva@redhat.com> | |
710 | * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12, | |
711 | R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, | |
712 | R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New. | |
713 | (frv_reloc_map): Map the corresponding BFD relocs to them. | |
714 | (frv_reloc_type_lookup): ... and back to BFD relocs. | |
715 | * reloc.c: New relocs. | |
716 | * bfd-in2.h, libbfd.h: Rebuilt. | |
717 | 2003-08-04 Alexandre Oliva <aoliva@redhat.com> | |
718 | * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO, | |
719 | R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI, | |
720 | R_FRV_FUNCDESC_GOTLO): New. | |
721 | (frv_reloc_map): Map the corresponding BFD relocs to them. | |
722 | (frv_reloc_type_lookup): ... and back to BFD relocs. | |
723 | * reloc.c: New relocs. | |
724 | * bfd-in2.h, libbfd.h: Rebuilt. | |
725 | ||
4301eeb1 MR |
726 | 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl> |
727 | ||
728 | * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional | |
729 | targets to support pages of up to 64kB. | |
730 | (elf32_bed): Redefine to get a separate backend data structure for | |
731 | traditional targets. | |
732 | * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional | |
733 | targets to support pages of up to 64kB. | |
734 | (elf64_bed): Redefine to get a separate backend data structure for | |
735 | traditional targets. | |
736 | * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional | |
737 | targets to support pages of up to 64kB. | |
738 | (elf32_bed): Redefine to get a separate backend data structure for | |
739 | traditional targets. | |
740 | ||
0647ed71 MK |
741 | 2004-01-04 Mark Kettenis <kettenis@gnu.org> |
742 | ||
743 | * elf32-sparc.c (elf32_sparc_grok_psinfo): New function. | |
744 | ||
61adc1a4 NC |
745 | 2004-01-02 Mark Kettenis <kettenis@gnu.org> |
746 | ||
747 | * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD. | |
748 | (elf_i386_grok_psinfo): Likewise. | |
749 | ||
b50c15dc NC |
750 | 2004-01-02 Bernardo Innocenti <bernie@develer.com> |
751 | ||
752 | * config.bfd: Add m68k-uClinux target. | |
753 | ||
2627de83 AM |
754 | 2004-01-01 Grant Edwards <grante@visi.com> |
755 | ||
756 | * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored. | |
757 | * elf32-h8300.c (elf32_h8_gc_mark_hook): New function. | |
758 | (elf32_h8_gc_sweep_hook): New function. | |
759 | (elf_backend_gc_mark_hook): Define. | |
760 | (elf_backend_gc_sweep_hook): Define. | |
761 | (elf_backend_can_gc_sections): Define. | |
762 | ||
c9e214e5 | 763 | For older changes see ChangeLog-0203 |
56882138 AM |
764 | \f |
765 | Local Variables: | |
766 | mode: change-log | |
767 | left-margin: 8 | |
768 | fill-column: 74 | |
769 | version-control: never | |
770 | End: |