Commit | Line | Data |
---|---|---|
9e2a4898 JJ |
1 | 2001-12-18 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | * elf-eh-frame.c (struct cie): Add make_lsda_relative. | |
4 | (struct eh_cie_fde): Add lsda_encoding, lsda_offset, | |
5 | make_lsda_relative. | |
6 | (read_value, write_value): New. | |
7 | (_bfd_elf_discard_section_eh_frame): Inicialize | |
8 | lsda_encoding, lsda_offset and make_lsda_relative. | |
9 | (_bfd_elf_eh_frame_section_offset): If make_lsda_relative, | |
10 | request no dynamic reloc for LSDA field of FDE. | |
11 | (_bfd_elf_write_section_eh_frame): Handle make_lsda_relative. | |
12 | If a non-DW_EH_PE_absptr value is 0, don't adjust it by base | |
13 | or pcrel. Fix address computation for DW_EH_PE_pcrel relocs. | |
14 | Update LSDA field if LSDA encoding is DW_EH_PE_pcrel, because | |
15 | . might have changed due to deleted FDE or CIEs. | |
16 | ||
53c3f2be JJ |
17 | 2001-12-18 Jakub Jelinek <jakub@redhat.com> |
18 | ||
19 | * elf-strtab.c (struct elf_strtab_hash_entry): Add u.next. | |
20 | (last_eq): Remove. | |
21 | (_bfd_elf_strtab_finalize): Don't use a hash table for last | |
22 | character chains, instead use an array. | |
23 | ||
50b2bdb7 AM |
24 | 2001-12-18 Jason Thorpe <thorpej@wasabisystems.com> |
25 | ||
26 | * elf.c (elfcore_netbsd_get_lwpid): New function. | |
27 | (elfcore_grok_netbsd_procinfo): New function. | |
28 | (elfcore_grok_netbsd_note): New function. | |
29 | (elfcore_read_notes): Call elfcore_grok_netbsd_note to process | |
30 | NetBSD ELF core file notes. | |
31 | ||
ed591155 AM |
32 | 2001-12-18 Alan Modra <amodra@bigpond.net.au> |
33 | ||
34 | * elfcode.h (struct bfd_preserve): New. | |
35 | (elf_object_p): Replace preserved_* vars with instance of above. | |
36 | Save and restore arch_info pointer rather than arch, mach so that | |
37 | more cases can be restored. Save and restore new section_tail, | |
38 | section_htab structure, and init appropriately. Move "rest of | |
39 | section header" code so that i_shdrp needs no NULL initialisation. | |
40 | Free old section_htab on success. | |
41 | * elfcore.h (elf_core_file_p): Likewise. | |
42 | ||
ff4d2c95 | 43 | 2001-12-17 Tom Rix <trix@redhat.com> |
67fdeebe | 44 | |
50b2bdb7 | 45 | * coffcode.h (sec_to_styp_flags): Add STYP_EXCEPT and STYP_TYPCHK for |
67fdeebe TR |
46 | xcoff. |
47 | ||
ed4de5e2 JJ |
48 | 2001-12-17 Jakub Jelinek <jakub@redhat.com> |
49 | ||
50 | * elf-bfd.h (elf_discarded_section): Define. | |
51 | * elflink.h (elf_link_input_bfd): Use it. | |
52 | (elf_reloc_symbol_deleted_p): Likewise. | |
53 | ||
54 | * elf64-alpha.c (elf64_alpha_relocate_section): Don't warn about | |
55 | overflows for pc relative relocs against discarded sections. | |
56 | ||
a17aee54 TS |
57 | 2001-12-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
58 | ||
59 | * elf32-mips.c (_bfd_mips_elf_relocate_section): Formatting. | |
60 | * elf64-mips.c: Add most of the fixes and tweaks done in elf32-mips.c | |
61 | over the last months. Add some code for mips16 handling. | |
62 | (mips_elf64_check_mips16_stubs): New function. | |
63 | (mips_elf64_stub_section_p): Likewise. | |
64 | (mips_elf64_calculate_relocation): Change interface to support mips16. | |
65 | (mips_elf64_perform_relocation): Likewise. | |
66 | ||
76f63e91 | 67 | 2001-12-17 Alan Modra <amodra@bigpond.net.au> |
e5a9fb49 | 68 | |
9ad5cbcf AM |
69 | Support for more than 64k ELF sections. |
70 | * elf-bfd.h (elf_size_info <swap_symbol_out>): Add shndx param. | |
71 | (bfd_elf32_swap_symbol_in): Likewise. | |
72 | (bfd_elf32_swap_symbol_out): Likewise. | |
73 | (bfd_elf64_swap_symbol_in): Likewise. | |
74 | (bfd_elf64_swap_symbol_out): Likewise. | |
75 | (elf_reloc_cookie): Add locsym_shndx field. Make locsyms a PTR. | |
76 | (elf_obj_tdata): Add num_elf_sections, symtab_shndx_hdr and | |
77 | symtab_shndx_section. | |
78 | (elf_numsections): Define. | |
79 | (elf_symtab_shndx): Define. | |
80 | * elf.c (setup_group): Use elf_numsections rather than header e_shnum. | |
81 | (bfd_elf_find_section): Likewise. | |
82 | (bfd_section_from_elf_index): Likewise. | |
83 | (bfd_section_from_shdr): Likewise. Handle SHT_SYMTAB_SHNDX. | |
84 | (bfd_section_from_r_symndx): Read symbol shndx extension, and | |
85 | translate st_shndx for > SHN_HIRESERVE. | |
86 | (assign_section_numbers): Skip reserved sections. Assign | |
87 | symtab_shndx_section and elf_numsections. Exclude reserved | |
88 | sections from e_shnum. Set up symtab_shndx_hdr. | |
89 | (_bfd_elf_compute_section_file_positions): Handle symtab_shndx_hdr. | |
90 | (map_sections_to_segments): Don't map eh_frame_hdr unless required. | |
91 | (assign_file_positions_except_relocs): Use elf_numsections rather | |
92 | than header e_shnum. Skip reserved sections and symtab_shndx_section. | |
93 | (prep_headers): Set name for symtab_shndx_hdr. | |
94 | (_bfd_elf_assign_file_positions_for_relocs): Use elf_numsections. | |
95 | (_bfd_elf_write_object_contents): Likewise. Skip reserved sections. | |
96 | (_bfd_elf_section_from_bfd_section): Check bfd_{abs,com,und}_section | |
97 | first. Use elf_section_data if available. Use elf_numsections. | |
98 | Start scan at index 1. | |
99 | (copy_private_bfd_data ): Comment fixes. | |
100 | (MAP_ONESYMTAB): Define above SHN_HIOS. | |
101 | (MAP_DYNSYMTAB): Likewise. | |
102 | (MAP_STRTAB): Likewise. | |
103 | (MAP_SHSTRTAB): Likewise. | |
104 | (MAP_SYM_SHNDX): New define. | |
105 | (_bfd_elf_copy_private_symbol_data): Handle symtab_shndx_section. | |
106 | (swap_out_syms): Swap out SHT_SYMTAB_SHNDX section too. | |
107 | * elfcode.h (elf_swap_symbol_in): Add shndx param, and handle shndx | |
108 | extension. | |
109 | (elf_swap_symbol_out): Likewise. | |
110 | (elf_object_p): Set elf_numsections, and use instead of e_shnum. | |
111 | Initialialise reserved elf_elfsections to point at shdr[0]. Remove | |
112 | redundant bfd_release calls. | |
113 | (elf_slurp_symbol_table): Read symbol shndx extension, and use with | |
114 | elf_swap_symbol_in. Translate st_shndx for > SHN_HIRESERVE too. | |
115 | * elflink.h (elf_link_is_defined_archive_symbol): Read symbol shndx | |
116 | extension, and use with elf_swap_symbol_in. | |
117 | (elf_link_record_local_dynamic_symbol): Likewise. | |
118 | (elf_link_add_object_symbols): Likewise. Also translate st_shndx | |
119 | for elf sections > SHN_HIRESERVE. | |
120 | (NAME(bfd_elf,size_dynamic_sections)): Adjust elf_swap_symbol_out | |
121 | call. | |
122 | (struct elf_final_link_info): Add locsym_shndx and symshndxbuf. | |
123 | (elf_bfd_final_link): Allocate the above, and tidy code allocating | |
124 | other buffers. Use elf_numsections instead of e_shnum. Adjust | |
125 | elf_swap_symbol_out calls. | |
126 | (elf_link_output_sym): Swap out symbol shndx extension too. | |
127 | (elf_link_flush_output_syms): And flush them to disk. | |
128 | (elf_link_output_extsym): Use SHN_BAD. Adjust elf_swap_symbol_out | |
129 | calls. | |
130 | (elf_gc_mark): Read symbol shndx extension, and use with | |
131 | elf_swap_symbol_in. | |
132 | (elf_link_input_bfd): Likewise, Translate st_shndx for elf sections | |
133 | > SHN_HIRESERVE too. Use SHN_BAD. | |
134 | (elf_reloc_symbol_deleted_p): Use symbol shndx extensions with | |
135 | elf_swap_symbol_in. Translate st_shndx > SHN_HIRESERVE too. | |
136 | (elf_bfd_discard_info): Read symbol shndx extension. Don't attempt | |
137 | to continue after a bfd error. | |
138 | * elf-m10200.c (mn10200_elf_relax_section): Only read local syms. | |
139 | Stash them immediately to symtab_hdr->contents rather than later | |
140 | in multiple places. Clean up afterwards. Read symbol shndx | |
141 | extension, and use with swap_symbol_in. Translate SHN_UNDEF, | |
142 | SHN_ABS, SHN_COMMON and elf sections > SHN_HIRESERVE to bfd | |
143 | sections too. Remove dead code. | |
144 | (mn10200_elf_relax_delete_bytes): Use symbol shndx extension | |
145 | when swapping in symbols. Tidy code adjusting global syms. | |
146 | Don't swap in global syms. | |
147 | (mn10200_elf_symbol_address_p): Likewise. Remove extsyms param. | |
148 | (mn10200_elf_get_relocated_section_contents): Read symbol shndx | |
149 | extension, and use with swap_symbol_in. Rename "size" -> "amt" | |
150 | to maximize code in common with other files. Translate st_shndx | |
151 | for > SHN_HIRESERVE too. Remove dead code. | |
152 | * elf-m10300.c (mn10300_elf_relax_section): Only read local syms. | |
153 | Stash them immediately to symtab_hdr->contents rather than later | |
154 | in multiple places. Clean up afterwards. Read symbol shndx | |
155 | extension, and use with swap_symbol_in. Remove dead code. | |
156 | (mn10300_elf_relax_delete_bytes): As for elf-m10200.c. | |
157 | (mn10300_elf_symbol_address_p): Likewise. | |
158 | (mn10300_elf_get_relocated_section_contents): Likewise. | |
159 | * elf32-h8300.c (elf32_h8_relax_section): As for elf-m10300.c. | |
160 | (elf32_h8_relax_delete_bytes): Likewise. | |
161 | (elf32_h8_symbol_address_p): Likewise. | |
162 | (elf32_h8_get_relocated_section_contents): Likewise. | |
163 | * elf32-hppa.c (elf32_hppa_size_stubs): Read symbol shndx | |
164 | extension, and use with swap_symbol_in. | |
165 | * elf64-hppa.c (elf64_hppa_check_relocs): Likewise. | |
166 | * elf32-i370.c (i370_elf_finish_dynamic_sections): Adjust call to | |
167 | bfd_elf32_swap_symbol_out. | |
168 | * elf32-m32r.c (m32r_elf_get_relocated_section_contents): Translate | |
169 | elf sections > SHN_HIRESERVE too. | |
170 | * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Only read | |
171 | local syms. Read symbol shndx extension, and use with swap_symbol_in. | |
172 | * elf32-mips.c (_bfd_mips_elf_final_write_processing): Use | |
173 | elf_numsections rather than header e_shnum. | |
174 | * elf32-sh.c (sh_elf_relax_section): As for elf-m10300.c. | |
175 | (sh_elf_relax_delete_bytes): Likewise. | |
176 | (sh_elf_get_relocated_section_contents): Likewise. Only read local | |
177 | symbols. | |
178 | * elf32-v850.c (v850_elf_symbol_processing): Use an unsigned int to | |
179 | hold section index. Use elf_numsections rather than e_shnum. | |
180 | Rename "index" -> "indx" to avoid shadowing warning. | |
181 | (v850_elf_add_symbol_hook): Likewise. | |
182 | * elf64-alpha.c (elf64_alpha_relax_section): Only read local syms. | |
183 | Read symbol shndx extension, and use with swap_symbol_in. | |
184 | * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise. | |
185 | Translate SHN_COMMON and elf sections > SHN_HIRESERVE too. | |
186 | * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. | |
187 | (elfNN_ia64_aix_add_symbol_hook): Use elf_numsections. | |
76f63e91 | 188 | |
9ad5cbcf AM |
189 | * elf-m10300.c (mn10300_elf_gc_mark_hook): Remove unnecessary checks |
190 | before calling bfd_section_from_elf_index on local syms. | |
191 | * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise. | |
192 | * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise. | |
193 | * elf32-cris.c (cris_elf_gc_mark_hook): Likewise. | |
194 | * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise. | |
195 | * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise. | |
196 | * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise. | |
197 | * elf32-i386.c (elf_i386_gc_mark_hook): Likewise. | |
198 | * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise. | |
199 | * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise. | |
200 | * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise. | |
201 | * elf32-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise. | |
202 | * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise. | |
203 | * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise. | |
204 | * elf32-s390.c (elf_s390_gc_mark_hook): Likewise. | |
205 | * elf32-sh.c (sh_elf_gc_mark_hook): Likewise. | |
206 | * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise. | |
207 | * elf32-v850.c (v850_elf_gc_mark_hook): Likewise. | |
208 | * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise. | |
209 | * elf64-mips.c (mips_elf64_gc_mark_hook): Likewise. | |
210 | * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise. | |
211 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise. | |
212 | * elf64-s390.c (elf_s390_gc_mark_hook): Likewise. | |
213 | * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise. | |
214 | ||
215 | 2001-12-17 Alan Modra <amodra@bigpond.net.au> | |
216 | ||
217 | Hash bfd sections for fast lookup and create. | |
76f63e91 AM |
218 | * bfd.c (struct _bfd): Add section_htab, section_tail. |
219 | * libbfd-in.h (_bfd_delete_bfd): Declare. | |
220 | (bfd_section_hash_newfunc): Declare. | |
221 | * opncls.c (_bfd_new_bfd): Free memory on failure. Init | |
222 | section_htab and section_tail. | |
223 | (_bfd_delete_bfd): New function. | |
224 | (bfd_openr): Use it. | |
225 | (bfd_fdopenr): Likewise. | |
226 | (bfd_openstreamr): Likewise. | |
227 | (bfd_openw): Likewise. | |
228 | (bfd_close): Likewise. | |
229 | (bfd_close_all_done): Likewise. | |
230 | (bfd_release): Comment. | |
231 | * section.c (struct section_hash_entry): New. | |
232 | (bfd_section_hash_newfunc): New function. | |
233 | (section_hash_lookup): Define. | |
234 | (bfd_section_init): New function, split out from | |
235 | bfd_make_section_anyway. | |
236 | (bfd_get_section_by_name): Lookup via hash table. | |
237 | (bfd_get_unique_section_name): Likewise. | |
238 | (bfd_make_section_old_way): Rewrite to use hash table. | |
239 | (bfd_make_section_anyway): Likewise. | |
240 | (bfd_make_section): Likewise. Return NULL for attempts to make | |
241 | BFD_{ABS,COM,UND,IND}_SECTION_NAME. | |
242 | (_bfd_strip_section_from_output): Adjust section_tail if needed. | |
243 | * configure.in: Bump bfd version. | |
244 | * configure: Regenerate. | |
245 | * libbfd.h: Regenerate. | |
246 | * bfd-in2.h: Regenerate. | |
247 | ||
5b6a02bc TS |
248 | 2001-12-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
249 | ||
250 | * elf64-mips.c (mips_elf64_link_hash_entry): New link hash. | |
251 | (mips_elf64_high): New Function. | |
252 | (mips_elf64_higher): Likewise. | |
253 | (mips_elf64_highest): Likewise. | |
254 | (mips_elf64_info_to_howto_rel): Likewise. | |
255 | (mips_elf64_info_to_howto_rela): Likewise. | |
256 | (mips_elf64_write_rel): Likewise. | |
257 | (mips_elf64_write_rela): Likewise. | |
258 | (mips_elf64_link_hash_newfunc): Likewise. | |
259 | (mips_elf64_hi16_reloc): Likewise. | |
260 | (mips_elf64_higher_reloc): Likewise. | |
261 | (mips_elf64_highest_reloc): Likewise. | |
262 | (mips_elf64_gprel16_reloc): Likewise. | |
263 | (mips_elf64_gprel16_reloca): Likewise. | |
264 | (mips_elf64_literal_reloc): Likewise. | |
265 | (mips_elf64_gprel32_reloc): Likewise. | |
266 | (mips_elf64_shift6_reloc): Likewise. | |
267 | (mips_elf64_got16_reloc): Likewise. | |
268 | (mips_elf64_assign_gp): Likewise. | |
269 | (mips_elf64_final_gp): Likewise. | |
270 | (gprel16_with_gp): Likewise. | |
271 | (mips_elf64_additional_program_headers): Likewise. | |
272 | (mips_elf64_link_hash_table_create): Likewise. | |
273 | (mips_elf64_got_offset_from_index): Likewise. | |
274 | (_mips_elf64_got_info): Likewise. | |
275 | (mips_elf64_sign_extend): Likewise. | |
276 | (mips_elf64_overflow_p): Likewise. | |
277 | (mips_elf64_global_got_index): Likewise. | |
278 | (mips_elf64_sort_hash_table_f): Likewise. | |
279 | (mips_elf64_sort_hash_table): Likewise. | |
280 | (mips_elf64_swap_msym_out): Likewise. | |
281 | (mips_elf64_create_local_got_entry): Likewise. | |
282 | (mips_elf64_local_got_index): Likewise. | |
283 | (mips_elf64_got_page): Likewise. | |
284 | (mips_elf64_got16_entry): Likewise. | |
285 | (mips_elf64_local_relocation_p): Likewise. | |
286 | (mips_elf64_next_relocation): Likewise. | |
287 | (mips_elf64_create_dynamic_relocation): Likewise. | |
288 | (mips_elf64_calculate_relocation): Likewise. | |
289 | (mips_elf64_obtain_contents): Likewise. | |
290 | (mips_elf64_perform_relocation): Likewise. | |
291 | (mips_elf64_relocate_section): Likewise. | |
292 | (mips_elf64_create_dynamic_sections): Likewise. | |
293 | (mips_elf64_adjust_dynamic_symbol): Likewise. | |
294 | (mips_elf64_always_size_sections): Likewise. | |
295 | (mips_elf64_size_dynamic_sections): Likewise. | |
296 | (mips_elf64_finish_dynamic_symbol): Likewise. | |
297 | (mips_elf64_finish_dynamic_sections): Likewise. | |
298 | (mips_elf64_gc_mark_hook): Likewise. | |
299 | (mips_elf64_gc_sweep_hook): Likewise. | |
300 | (mips_elf64_create_got_section): Likewise. | |
301 | (mips_elf64_record_global_got_symbol): Likewise. | |
302 | (mips_elf64_create_msym_section): Likewise. | |
303 | (mips_elf64_allocate_dynamic_relocations): Likewise. | |
304 | (mips_elf64_check_relocs): Likewise. | |
305 | (mips_elf64_output_extsym): Likewise. | |
306 | (mips_elf64_swap_gptab_in): Likewise. | |
307 | (mips_elf64_swap_gptab_out): Likewise. | |
308 | (gptab_compare): Likewise. | |
309 | (mips_elf64_final_link): Likewise. | |
310 | (prev_reloc_addend): Remenber addend of previous parts of a combined | |
311 | reloc. | |
312 | (ELF_MIPS_GP_OFFSET): New define. | |
313 | (STUB_LW,STUB_MOVE,STUB_JALR,STUB_LI16): Likewise. | |
314 | (MIPS_FUNCTION_STUB_SIZE): Likewise. | |
315 | (mips_elf64_howto_rel): Fix HOWTO defines. | |
316 | (mips_elf64_howto_rela): Likewise. | |
317 | (mips_elf64_swap_reloca_out): Fix signedness. | |
318 | (mips_elf64_be_swap_reloc_in): Use ELF64* instead of ELF32*. | |
319 | (mips_elf64_be_swap_reloca_in): Likewise. | |
320 | (mips_elf64_be_swap_reloc_out): Likewise. Preserve extended type info. | |
321 | (mips_elf64_be_swap_reloca_out): Likewise. | |
322 | ||
68f69152 JJ |
323 | 2001-12-15 Jakub Jelinek <jakub@redhat.com> |
324 | ||
325 | * elf-bfd.h (_bfd_elf_maybe_strip_eh_frame_hdr): New prototype. | |
326 | * elf-eh-frame.c (struct eh_frame_hdr_info): Add strip. | |
327 | (_bfd_elf_discard_section_eh_frame): Don't create .eh_frame_hdr | |
328 | sec_info here. Free ehbuf. | |
329 | (_bfd_elf_discard_section_eh_frame_hdr): Don't size the section | |
330 | if hdr_info->strip. | |
331 | (_bfd_elf_maybe_strip_eh_frame_hdr): New. | |
332 | * elflink.h (size_dynamic_sections): Call it. | |
333 | ||
72dd6331 AM |
334 | 2001-12-14 Alan Modra <amodra@bigpond.net.au> |
335 | ||
336 | * elflink.h (elf_bfd_discard_info): Fix segfault when dynobj NULL. | |
337 | ||
65765700 JJ |
338 | 2001-12-13 Jakub Jelinek <jakub@redhat.com> |
339 | ||
340 | * elf-bfd.h (enum elf_link_info_type): New. | |
341 | (struct bfd_elf_section_data): Remove stab_info and merge_info | |
342 | fields, add sec_info and sec_info_type. | |
343 | (struct elf_obj_tdata): Add eh_frame_hdr field. | |
344 | (_bfd_elf_discard_section_eh_frame): New prototype. | |
345 | (_bfd_elf_discard_section_eh_frame_hdr): Likewise. | |
346 | (_bfd_elf_eh_frame_section_offset): Likewise. | |
347 | (_bfd_elf_write_section_eh_frame): Likewise. | |
348 | (_bfd_elf_write_section_eh_frame_hdr): Likewise. | |
349 | * Makefile.am (BFD32_BACKENDS): Add elf-eh-frame.lo. | |
350 | (BFD32_BACKENDS_CFILES): Add elf-eh-frame.c. | |
351 | (elf-eh-frame.lo): New. | |
352 | * Makefile.in: Rebuilt. | |
353 | * configure.in (elf): Add elf-eh-frame.lo. | |
354 | * configure: Rebuilt. | |
355 | * elf.c (_bfd_elf_print_private_bfd_data): Support PT_GNU_EH_FRAME. | |
356 | (map_sections_to_segments): Create PT_GNU_EH_FRAME if requested. | |
357 | (get_program_header_size): Take into account PT_GNU_EH_FRAME | |
358 | segment. | |
359 | (_bfd_elf_rela_local_sym): Use sec_info_type and sec_info. | |
360 | (_bfd_elf_rel_local_sym): Likewise. | |
361 | (_bfd_elf_section_offset): Likewise. Call | |
362 | _bfd_elf_eh_frame_section_offset too. | |
363 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Use sec_info_type and | |
364 | sec_info. | |
365 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
366 | * elf-eh-frame.c: New file. | |
367 | * elflink.h (elf_link_add_object_symbols): Don't optimize SHF_MERGE | |
368 | .stab sections. Set sec_info_type, use sec_info instead | |
369 | of merge_info and stab_info. | |
370 | (elf_link_create_dynamic_sections): Create .eh_frame_hdr section | |
371 | if --eh-frame-hdr. | |
372 | (elf_bfd_final_link): Write .eh_frame_hdr section. | |
373 | (elf_link_sec_merge_syms): Use sec_info_type and sec_info. | |
374 | (elf_link_input_bfd): Likewise. | |
375 | Call _bfd_elf_write_section_eh_frame to write .eh_frame sections. | |
376 | (elf_bfd_discard_info): Add output_bfd argument. | |
377 | Call _bfd_elf_discard_section_eh_frame and | |
378 | _bfd_elf_discard_section_eh_frame_hdr. | |
379 | (elf_section_ignore_discarded_relocs): Use sec_info_type, not section | |
380 | names. | |
381 | * bfd-in.h (bfd_elf32_discard_info, bfd_elf64_discard_info): Adjust | |
382 | prototypes. | |
383 | * bfd-in2.h (bfd_elf32_discard_info, bfd_elf64_discard_info): Likewise. | |
384 | ||
ce9c7f50 RH |
385 | 2001-12-12 Richard Henderson <rth@redhat.com> |
386 | ||
387 | * syms.c (_bfd_generic_read_minisymbols): Early return for | |
388 | no symbols. Patch from FreeBSD folk; exact origin unknown. | |
389 | ||
5732c114 AM |
390 | 2001-12-11 Alan Modra <amodra@bigpond.net.au> |
391 | ||
392 | * elfcode.h (elf_swap_ehdr_out): Adjust value written for e_shnum | |
393 | and e_shstrndx if out of range. | |
394 | (elf_object_p): Read extended values for e_shnum and e_shstrndx | |
395 | from the first section header. Allocate space in elf_elfsections | |
396 | for reserved sections and set to NULLs. | |
397 | (elf_write_shdrs_and_ehdr): Set overflow fields in first section | |
398 | header. Skip reserved sections in elf_elfsections. Remove | |
399 | duplicate size calculation. | |
400 | ||
93fbbb04 GK |
401 | 2001-12-07 Geoffrey Keating <geoffk@redhat.com> |
402 | Richard Henderson <rth@redhat.com> | |
403 | Corinna Vinschen <vinschen@redhat.com> | |
404 | ||
405 | * Makefile.am: Add support for xstormy16. | |
406 | * archures.c: Add support for xstormy16. | |
407 | * config.bfd: Add support for xstormy16. | |
408 | * configure.in: Add support for xstormy16. | |
409 | * reloc.c: Add support for xstormy16. | |
410 | * targets.c: Add support for xstormy16. | |
411 | * cpu-xstormy16.c: New file. | |
412 | * elf32-xstormy16.c: New file. | |
413 | * Makefile.in: Regenerated. | |
414 | * bfd-in2.h: Regenerated. | |
415 | * configure: Regenerated. | |
416 | * libbfd.h: Regenerated. | |
417 | ||
cdc7c09f NC |
418 | 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com> |
419 | ||
420 | * elf.c (assign_file_positions_for_segments): Combine sentance | |
421 | fragments into a single sentance in order to permit better | |
422 | translation into foreign languages. | |
423 | ||
979f4a38 NC |
424 | 2001-12-07 Jim Blandy <jimb@redhat.com> |
425 | ||
426 | * elf32-s390.c (elf32_s390_grok_prstatus): New function. | |
427 | (elf_backend_grok_prstatus): Define. | |
428 | ||
1fbc4a84 JJ |
429 | 2001-12-07 Jakub Jelinek <jakub@redhat.com> |
430 | ||
431 | * elf32-sparc.c (elf32_sparc_relocate_section): Revert | |
432 | 2001-09-14 change. | |
433 | ||
c629eae0 JJ |
434 | 2001-12-07 Jakub Jelinek <jakub@redhat.com> |
435 | ||
436 | * elf.c (_bfd_elf_rela_local_sym): Only call | |
437 | _bfd_merged_section_offset if merge_info is non-NULL. | |
438 | (_bfd_elf_rel_local_sym, _bfd_elf_section_offset): New. | |
439 | * elf-bfd.h (_bfd_elf_rel_local_sym, _bfd_elf_section_offset): New | |
440 | prototypes. | |
441 | * elf32-arm.h (elf32_arm_final_link_relocate): Use | |
442 | _bfd_elf_section_offset. | |
443 | (elf32_arm_relocate_section): Use _bfd_elf_rel_local_sym. | |
444 | * elf32-i386.c (elf_i386_relocate_section): Use | |
445 | _bfd_elf_section_offset and _bfd_elf_rel_local_sym. | |
446 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
447 | * elf32-sparc.c (elf32_sparc_relocate_section): Use | |
448 | _bfd_elf_section_offset. | |
449 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
450 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
451 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
452 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
453 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Likewise. | |
454 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
455 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
456 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
457 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
458 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
459 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
460 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
461 | * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise. | |
462 | ||
142f8c94 AM |
463 | 2001-12-07 Alan Modra <amodra@bigpond.net.au> |
464 | ||
465 | * elf32-hppa.c (clobber_millicode_symbols): Don't do anything if | |
466 | already forced local. | |
467 | ||
e3c8793a NC |
468 | 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com> |
469 | ||
470 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Combine | |
471 | fragmented sentence parts into a whole sentence to permit | |
472 | better translation into foreign languages. | |
473 | ||
2858ef35 HPN |
474 | 2001-12-06 Hans-Peter Nilsson <hp@bitrange.com> |
475 | ||
476 | * configure: Regenerate. | |
477 | * Makefile.in: Regenerate. | |
478 | ||
36b45482 TS |
479 | 2001-12-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
480 | ||
481 | * Makefile.am: split up BFD_LIBS like statements in BFD32_LIBS and | |
482 | BFD64_LIBS, make the latter depending on the availability of BFD64. | |
483 | Add archive64.c source file. | |
484 | * archive64.c: New file implementing bfd_elf64_archive_slurp_armap | |
485 | and bfd_elf64_archive_write_armap, code from elf64-mips.c | |
486 | * archive.c (bfd_slurp_armap): Add ELF64 archive support. | |
487 | * config.bfd (mips*-*-irix6*): Allow with BFD64 only. | |
488 | (mips64*el-*-linux*): Likewise. | |
489 | (mips*el-*-linux*): Likewise. Reorder entries. | |
490 | * configure.in (bfd_libs): Define in dependency of BFD64 and | |
491 | AC_SUBST it. | |
492 | * elf64-mips.c (mips_elf64_slurp_armap): Remove, use | |
493 | bfd_elf64_archive_slurp_armap instead. | |
494 | (mips_elf64_write_armap): Remove, use bfd_elf64_archive_write_armap | |
495 | instead. | |
496 | ||
956cd1d6 TS |
497 | 2001-12-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
498 | ||
499 | * config.bfd: Remove trailing blanks. | |
500 | * elf32-mips.c (gprel16_with_gp): Remove superfluous casts. | |
501 | ||
2888ec15 AO |
502 | 2001-12-04 Alexandre Oliva <aoliva@redhat.com> |
503 | ||
504 | * elf32-d10v.c (elf_d10v_howto_table): Adjust bit-size of | |
505 | R_D10V_10_PCREL_L, R_D10V_10_PCREL_R, R_D10V_18, | |
506 | R_D10V_18_PCREL. Check 10_PCREL relocations as signed. | |
507 | Disable pointless overflow checking of NONE and 32. | |
508 | ||
e207c4fa AM |
509 | 2001-12-04 Alan Modra <amodra@bigpond.net.au> |
510 | ||
511 | * reloc.c (bfd_install_relocation): Correct reloc address test. | |
512 | (bfd_perform_relocation): Formatting fix. | |
513 | * bfd-in2.h: Regenerate for 2001-12-02 reloc.c change. | |
514 | ||
2299ff43 NC |
515 | 2001-12-03 Nick Clifton <nickc@cambridge.redhat.com> |
516 | ||
517 | * configure.in (LINGUAS): Add tr. | |
518 | * configure: Regenerate. | |
a9ef678d | 519 | * po/tr.po: Import from translation project's web site. |
2299ff43 | 520 | |
f09ebc7d AM |
521 | 2001-12-03 Alan Modra <amodra@bigpond.net.au> |
522 | ||
523 | * elf32-hppa.c (hppa_get_stub_entry): Remove debug message that | |
524 | happens to trigger on undefined symbols. | |
525 | (final_link_relocate): Return bfd_reloc_undefined for undefined | |
526 | stubs. | |
527 | (elf32_hppa_relocate_section): Don't say we can't handle a reloc | |
528 | if we have already warned about an undefined symbol. | |
529 | ||
d75bc93d TS |
530 | 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
531 | ||
532 | * elf32-mips.c (NEWABI_P): New define. | |
533 | (USE_REL): Remove, replaced by | |
534 | (elf_backend_may_use_rel_p): New define. | |
535 | (elf_backend_may_use_rela_p): Likewise. | |
536 | (elf_backend_default_use_rela_p): Likewise. | |
537 | (elf_mips_howto_table): Rename to elf_mips_howto_table_rel. | |
538 | Fix some relocation definitions. | |
539 | (elf_mips_howto_table_rela): New RELA relocation definitions for | |
540 | NewABI support. | |
541 | (mips32_64bit_reloc): Use the renamed elf_mips_howto_table_rel. | |
542 | (bfd_elf32_bfd_reloc_type_lookup): Likewise. | |
543 | (mips_rtype_to_howto): Likewise. | |
544 | (_bfd_mips_elf_relocate_section): Likewise. | |
545 | (_bfd_mips_elf_object_p): Typo. | |
546 | (elf_backend_sign_extend_vma): Reordered together with many other | |
547 | defines nearby to resemble the order of declaration in the header | |
548 | file. | |
549 | ||
cdf6fd85 TS |
550 | 2001-12-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
551 | ||
552 | * coff-mips.c (mips_bfd_reloc_type_lookup): Replace | |
553 | BFD_RELOC_MIPS_GPREL by BFD_RELOC_GPREL16. | |
554 | * pe-mips.c (mips_bfd_reloc_type_lookup): Likewise. | |
555 | * elf32-mips.c (mips_reloc_map): Likewise. Replace | |
556 | BFD_RELOC_MIPS_GPREL32 by BFD_RELOC_GPREL32. | |
557 | * elf64-mips.c (mips_reloc_map): Likewise. | |
558 | * reloc.c (BFD_RELOC_MIPS_GPREL): Remove. | |
559 | (BFD_RELOC_MIPS_GPREL32): Remove. | |
560 | ||
215007a6 L |
561 | 2001-11-30 H.J. Lu <hjl@gnu.org> |
562 | ||
563 | * elflink.h (elf_add_default_symbol): New. | |
564 | (elf_link_add_object_symbols): Call elf_add_default_symbol () | |
565 | to create an indirect symbol from the default for the symbol | |
566 | with the default version if needed. | |
567 | ||
fa49d224 NC |
568 | 2001-11-29 "Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de> |
569 | ||
570 | * elf.c (elfcore_grok_prstatus): Do not overwite the core signal | |
571 | if it has already been set by another thread. | |
572 | ||
f7460f5f JJ |
573 | 2001-11-28 Jakub Jelinek <jakub@redhat.com> |
574 | ||
575 | * elf64-alpha.c (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Defined. | |
576 | (elf64_alpha_relocate_section): Translate local_got_entries | |
577 | for STT_SECTION symbol to SHF_MERGE section the first time | |
578 | we see it. | |
579 | * elfxx-ia64.c (struct elfNN_ia64_local_hash_entry): Add | |
580 | sec_merge_done. | |
581 | (get_local_sym_hash): New, extracted from get_dyn_sym_info. | |
582 | (get_dyn_sym_info): Use it. | |
583 | (elfNN_ia64_relocate_section): Translate local dyn entries | |
584 | for STT_SECTION symbol to SHF_MERGE section the first time | |
585 | we see it. | |
586 | ||
163c1c30 L |
587 | 2001-11-27 H.J. Lu <hjl@gnu.org> |
588 | ||
589 | * elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't | |
590 | ELF. | |
591 | ||
979f4a38 | 592 | 2001-11-26 Jeffrey A Law (law@cygnus.com) |
fd0999e1 JL |
593 | |
594 | * stabs.c (_bfd_discard_section_stabs): Use PARAMS in function | |
595 | prototypes. | |
596 | ||
a248e267 AM |
597 | 2001-11-24 Alan Modra <amodra@bigpond.net.au> |
598 | ||
599 | * elf32-hppa.c (elf32_hppa_size_stubs): Decrease default stub | |
f09ebc7d | 600 | group sizes to accommodate c++. |
a248e267 | 601 | |
2e549b45 JJ |
602 | 2001-11-23 Jakub Jelinek <jakub@redhat.com> |
603 | ||
604 | * elf32-sparc.c (elf32_sparc_relocate_section): Don't clear | |
605 | relocations in non-alloced sections against global symbols | |
606 | defined in shared library being built. | |
607 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
608 | ||
f8df10f4 JJ |
609 | 2001-11-23 Jakub Jelinek <jakub@redhat.com> |
610 | ||
611 | * elf.c (_bfd_elf_rela_local_sym): New. | |
612 | * elflink.h (elf_link_input_bfd): Don't consider empty | |
613 | merged sections as removed in relocation tests. | |
614 | * elf-bfd.h (_bfd_elf_rela_local_sym): Add prototype. | |
615 | * elf32-i386.c (elf_i386_relocate_section): Handle relocs | |
616 | against STT_SECTION symbol of SHF_MERGE section. | |
617 | * elf32-arm.h (elf32_arm_relocate_section): Likewise. | |
618 | * elf32-avr.c (elf32_avr_relocate_section): Call | |
619 | _bfd_elf_rela_local_sym. | |
620 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
621 | * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. | |
622 | * elf32-fr30.c (fr30_final_link_relocate): Likewise. | |
623 | * elf32-h8300.c (elf32_h8_relocate_section): Likewise. | |
624 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
625 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
626 | * elf32-i860.c (elf32_i860_relocate_section): Likewise. | |
627 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
628 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
629 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
630 | * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. | |
631 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
632 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
633 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
634 | * elf32-v850.c (v850_elf_relocate_section): Likewise. | |
635 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
636 | * elf64-mmix.c (mmix_elf_relocate_section): Likewise. | |
637 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
638 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
639 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
640 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
641 | * elf-hppa.h (elf_hppa_relocate_section): Likewise. | |
642 | * elf-m10200.c (mn10200_elf_relocate_section): Likewise. | |
643 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
644 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
645 | * elf32-sh.c (sh_elf_relocate_section): Likewise for | |
646 | !partial_inplace relocs. Handle relocs against STT_SECTION | |
647 | symbol of SHF_MERGE for partial_inplace relocs. | |
648 | ||
313e863f NC |
649 | 2001-11-21 Nick Clifton <nickc@cambridge.redhat.com> |
650 | ||
651 | * po/Make-in (distclean): Move SRC-POTFILES.in and | |
652 | BLD-POTFILES.in to maintainer-clean target. | |
653 | ||
d7458677 AM |
654 | 2001-11-21 Alan Modra <amodra@bigpond.net.au> |
655 | ||
656 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Test r_symndx rather | |
657 | than sym_sec->output_section to detect relocs against discarded | |
658 | sections. | |
659 | ||
45e9217a L |
660 | 2001-11-19 H.J. Lu <hjl@gnu.org> |
661 | ||
662 | * elflink.h (elf_link_input_bfd): Assert r_symndx != 0 when | |
663 | discarding relocations. | |
664 | ||
84c254c6 NC |
665 | 2001-11-19 Nick Clifton <nickc@cambridge.redhat.com> |
666 | ||
667 | * section.c (bfd_is_const_section): New macro. Return true if the | |
668 | given seciton is one of the special, constant, sections. | |
669 | * bfd-in2.h: Regenerate. | |
670 | * coffgen.c (coff_count_linenumbers): Use bfd_is_const_section. | |
671 | (coff_write_native_symbol): Use bfd_is_const_section. | |
672 | ||
e5ee5df1 AM |
673 | 2001-11-19 Alan Modra <amodra@bigpond.net.au> |
674 | ||
a0e94dc0 AM |
675 | * elf32-hppa.c (clobber_millicode_symbols): Dec dynstr refcount. |
676 | ||
2a5aaecb AM |
677 | * elf32-hppa.c (elf32_hppa_size_stubs): Don't consider undefined |
678 | millicode syms as candidates for import stubs. | |
679 | ||
e5ee5df1 AM |
680 | * elf32-hppa.c (PLABEL_PLT_ENTRY_SIZE): Delete. |
681 | (allocate_PIC_calls): Rename to allocate_plt_static. | |
682 | (allocate_dynrelocs): Move most of code handling .plt entries to.. | |
683 | (allocate_plt_static): ..here. Don't drop plabel entries. | |
684 | ||
6eeb40b2 HPN |
685 | 2001-11-19 Hans-Peter Nilsson <hp@bitrange.com> |
686 | ||
687 | * mmo.c: Adjust documentation tags to use texinfo 4 features. | |
688 | ||
84c254c6 NC |
689 | 2001-11-16 Nick Clifton <nickc@cambridge.redhat.com> |
690 | ||
691 | * section.c (bfd_is_const_section): New macro. Return true if the | |
692 | section pointer refers to one of the special, constant sections. | |
693 | * bfd-in2.h: Regenerate. | |
694 | ||
695 | * coffgen.c (coff_count_linenumbers): Only update the line number | |
696 | count in non-special sections. | |
697 | (coff_write_native_symbol): Only update the line number file | |
698 | position in non-special sections. | |
699 | ||
44421011 DJ |
700 | 2001-11-15 Daniel Jacobowitz <drow@mvista.com> |
701 | ||
702 | * elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against | |
703 | local syms from discarded sections. Update comment. | |
704 | ||
f9f32305 AM |
705 | 2001-11-15 Alan Modra <amodra@bigpond.net.au> |
706 | ||
beb1d4ec AM |
707 | * po/SRC-POTFILES.in: Regenerate. |
708 | ||
f9f32305 AM |
709 | * elflink.h (elf_link_input_bfd): Complain about all relocs |
710 | against local syms from discarded sections. K&R fixes. | |
711 | (elf_reloc_symbol_deleted_p): Don't try to swap in external syms. | |
712 | K&R fixes. | |
713 | ||
6361c4c9 AO |
714 | 2001-11-15 Alexandre Oliva <aoliva@redhat.com> |
715 | ||
716 | * elf64-sparc.c (sparc64_elf_relocate_section): Disregard | |
717 | overflows in the .stab section. | |
718 | ||
73d074b4 DJ |
719 | 2001-11-14 Daniel Jacobowitz <drow@mvista.com> |
720 | ||
721 | * bfd-in.h (bfd_elf32_discard_info): Add prototype. | |
722 | (bfd_elf64_discard_info): Likewise. | |
723 | * bfd-in2.h: Regenerate. | |
724 | * elf-bfd.h (struct elf_reloc_cookie): New. | |
725 | (struct elf_backend_data): Add elf_backend_discard_info, | |
726 | elf_backend_ignore_discarded_relocs, and elf_backend_write_section. | |
727 | (_bfd_elf32_reloc_symbol_deleted_p): Add prototype. | |
728 | (_bfd_elf64_reloc_symbol_deleted_p): Likewise. | |
729 | * elf32-mips.c (_bfd_elf32_mips_discard_info): New. | |
730 | (_bfd_elf32_mips_ignore_discarded_relocs): New. | |
731 | (_bfd_elf32_mips_write_section): New. | |
732 | (elf_backend_discard_info): Define. | |
733 | (elf_backend_ignore_discarded_relocs): Define. | |
734 | (elf_backend_write_section): Define. | |
735 | * elfcode.h (elf_bfd_discard_info): Define. | |
736 | (elf_reloc_symbol_deleted_p): Define. | |
737 | * elflink.h (elf_link_input_bfd): Check | |
738 | elf_section_ignore_discarded_relocs. Call | |
739 | bed->elf_backend_write_section if available. | |
740 | (elf_reloc_symbol_deleted_p): New. | |
741 | (elf_bfd_discard_info): New. | |
742 | (elf_section_ignore_discarded_relocs): New. | |
743 | * elfxx-target.h (elf_backend_discard_info): Define. | |
744 | (elf_backend_ignore_discarded_relocs): Define. | |
745 | (elf_backend_write_section): Define. | |
746 | (elfNN_bed): Add elf_backend_discard_info, | |
747 | elf_backend_ignore_discarded_relocs, and | |
748 | elf_backend_write_section. | |
749 | * libbfd-in.h (_bfd_discard_section_stabs): Add prototype. | |
750 | * libbfd.h: Regenerate. | |
751 | * stabs.c (_bfd_discard_section_stabs): New. | |
752 | ||
27018c3f MS |
753 | 2001-11-14 Martin Schwidefsky <schwidefsky@de.ibm.com> |
754 | ||
755 | * elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc" | |
50b2bdb7 | 756 | scheme to get rid of an ugly complicated test. |
27018c3f MS |
757 | * elf64-s390.c (elf_s390_relocate_section): Likewise. |
758 | ||
58a35813 AJ |
759 | 2001-11-14 Andreas Jaeger <aj@suse.de> |
760 | ||
761 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use | |
762 | x86-64 for display. | |
763 | ||
d03ba2a1 JJ |
764 | 2001-11-14 Jakub Jelinek <jakub@redhat.com> |
765 | ||
766 | * dwarf2.c (struct line_head) [total_length]: Change type to | |
767 | bfd_vma. | |
768 | (struct dwarf2_debug): Add dwarf_str_buffer and dwarf_str_size. | |
769 | (struct comp_unit): Add stash and offset_size. | |
770 | (read_8_bytes): Return bfd_vma. | |
771 | (read_indirect_string): New. | |
772 | (read_attribute): Handle DW_FORM_strp. | |
773 | (decode_line_info): Support 64-bit DWARF format. | |
774 | (_bfd_dwarf2_find_nearest_line): Likewise. | |
775 | (parse_comp_unit): Set offset_size and stash. | |
776 | ||
cf716c56 RH |
777 | 2001-11-13 Keith Walker <keith.walker@arm.com> |
778 | ||
779 | * dwarf2.c (read_attribute_value): New function to handle | |
780 | DW_FORM_indirect. | |
781 | (read_attribute): Use it. | |
782 | ||
1a509dcc GK |
783 | 2001-11-13 Geoffrey Keating <geoffk@redhat.com> |
784 | ||
785 | * dwarf2.c (decode_line_info): Properly deal with unknown standard | |
786 | opcodes. | |
787 | ||
4e6bfe8a AM |
788 | 2001-11-13 John Marshall <jmarshall@acm.org> |
789 | Alan Modra <amodra@bigpond.net.au> | |
790 | ||
791 | * section.c (bfd_make_section_anyway): Don't increment section_id | |
792 | and the BFD's section_count if adding the section failed. | |
793 | * vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway | |
794 | change. | |
795 | ||
bc0d28ee HPN |
796 | 2001-11-12 Orjan Friberg <orjanf@axis.com> |
797 | ||
798 | * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new | |
799 | core dump format. | |
800 | ||
350836e3 L |
801 | 2001-11-11 H.J. Lu <hjl@gnu.org> |
802 | ||
803 | * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call | |
804 | _bfd_elf_strtab_size instead of _bfd_stringtab_size. | |
805 | ||
806 | * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change | |
807 | dynstr type to `struct elf_strtab_hash *'. | |
808 | ||
b959dc73 HPN |
809 | 2001-11-11 Hans-Peter Nilsson <hp@bitrange.com> |
810 | ||
811 | * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i | |
812 | size_t. Rename second i to j. | |
813 | ||
979f4a38 | 814 | 2001-11-10 Jeffrey A Law (law@cygnus.com) |
7e250b6c JL |
815 | |
816 | * binary.c: Include safe-ctype.h after bfd.h and sysdep.h. | |
817 | ||
ec338859 AM |
818 | 2001-11-10 Alan Modra <amodra@bigpond.net.au> |
819 | ||
820 | * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF | |
821 | relocs into shared libs. | |
822 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
823 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
824 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
825 | * elf32-mips.c (mips_elf_calculate_relocation): Likewise. | |
826 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
827 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
828 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
829 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
830 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
831 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
832 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
833 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
834 | ||
835 | * elf.c (bfd_section_from_r_symndx): New function. | |
836 | * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define. | |
837 | (struct sym_sec_cache): New. | |
838 | (bfd_section_from_r_symndx): Declare. | |
839 | (struct bfd_elf_section_data): Change local_dynrel type to PTR. | |
840 | * elflink.h (elf_link_input_bfd): Don't test for removed linkonce | |
841 | relocs when relocatable. Don't zero entire reloc, just zero the | |
842 | addend and sym. | |
843 | * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec. | |
844 | (elf32_hppa_link_hash_table_create): Init it. | |
845 | (elf32_hppa_check_relocs): Track dynamic relocs needed for local | |
846 | syms on a per-section basis as we do for globals. | |
847 | (elf32_hppa_gc_sweep_hook): Update for local_dynrel change. | |
848 | (allocate_dynrelocs): Warning fix. | |
849 | (elf32_hppa_size_dynamic_sections): Don't allocate relocs when | |
850 | section has been discarded. | |
851 | (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs | |
852 | into shared libs. | |
853 | * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec. | |
854 | (elf_i386_link_hash_table_create): Init it. | |
855 | (elf_i386_check_relocs): Track dynamic relocs needed for local | |
856 | syms on a per-section basis as we do for globals. | |
857 | (elf_i386_gc_sweep_hook): Update for local_dynrel change. | |
858 | Remove dead code. | |
859 | (allocate_dynrelocs): Warning fix. | |
860 | (elf_i386_size_dynamic_sections): Don't allocate relocs when | |
861 | section has been discarded. | |
862 | (elf_i386_relocate_section): Don't copy STN_UNDEF relocs | |
863 | into shared libs. | |
864 | * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec. | |
865 | (elf_s390_link_hash_table_create): Init it. | |
866 | (elf_s390_check_relocs): Track dynamic relocs needed for local | |
867 | syms on a per-section basis as we do for globals. | |
868 | (elf_s390_gc_sweep_hook): Update for local_dynrel change. | |
869 | Remove dead code. | |
870 | (allocate_dynrelocs): Warning fix. | |
871 | (elf_s390_size_dynamic_sections): Don't allocate relocs when | |
872 | section has been discarded. | |
873 | (elf_s390_relocate_section): Don't copy STN_UNDEF relocs | |
874 | into shared libs. | |
875 | * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec. | |
876 | (ppc64_link_hash_table_create): Init it. | |
877 | (ppc64_elf_check_relocs): Track dynamic relocs needed for local | |
878 | syms on a per-section basis as we do for globals. | |
879 | (ppc64_elf_gc_sweep_hook): Update for local_dynrel change. | |
880 | (allocate_dynrelocs): Call the correct record_dynamic_dymbol | |
881 | function. Warning fix. | |
882 | (ppc64_elf_size_dynamic_sections): Don't allocate relocs when | |
883 | section has been discarded. | |
884 | (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs | |
885 | into shared libs. | |
886 | * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec. | |
887 | (elf_s390_link_hash_table_create): Init it. | |
888 | (elf_s390_check_relocs): Track dynamic relocs needed for local | |
889 | syms on a per-section basis as we do for globals. | |
890 | (elf_s390_gc_sweep_hook): Update for local_dynrel change. | |
891 | Remove dead code. | |
892 | (allocate_dynrelocs): Warning fix. | |
893 | (elf_s390_size_dynamic_sections): Don't allocate relocs when | |
894 | section has been discarded. | |
895 | (elf_s390_relocate_section): Don't copy STN_UNDEF relocs | |
896 | into shared libs. | |
897 | ||
0451c93c MS |
898 | 2001-11-08 Martin Schwidefsky <schwidefsky@de.ibm.com> |
899 | ||
900 | * elf32-s390: Major rework that introduces all recent changes to | |
901 | the s390 backends. Get a closer match to elf32-i386. | |
902 | (elf_s390_relocate_section): Make use of dynamic section short-cuts. | |
903 | Localise vars, and delay setting. Better error reporting, replace | |
904 | BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a | |
905 | symbol is not defined in the regular object file and tread the weak | |
906 | definition as the normal one. Don't discard relocs for undefweak or | |
907 | undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in | |
908 | test for avoided copy relocs. Reinstate fudge for unresolved relocs | |
909 | in debugging sections. | |
910 | (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy | |
911 | reloc processing for weakdefs. Remove redundant casts and aborts. | |
912 | Delay setting of vars until needed. Move creation of dynamic symbols | |
913 | and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace | |
914 | BFD_ASSERT with abort. Discard .plt entries for everything with | |
915 | plt.refcount <= 0. | |
916 | (elf_s390_check_relocs): Don't allocate space for dynamic relocs, | |
917 | .got or .relgot here but do it in allocate_dynrelocs. Reference count | |
918 | possible .plt and .got entries. Don't test input section SEC_READONLY | |
919 | here to try to avoid copy relocs, and keep dyn_relocs regardless of | |
920 | ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of | |
921 | variables until needed. Remove separate switch stmt for creating .got | |
922 | section. Initialise local_got_refcounts to 0. Cache pointer to | |
923 | "sreloc" section in elf_section_data. Tweak condition under which .got | |
924 | created. Report files with bad relocation section names. | |
925 | (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that | |
926 | have been forced local. Use same test to decide if we can use a | |
927 | relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF | |
928 | comment. Move expressions out of function calls. Replace BFD_ASSERT | |
929 | with abort. | |
930 | (elf_s390_finish_dynamic_sections): Migrate common code out of switch | |
931 | statement. Replace BFD_ASSERT with abort. | |
932 | (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i" | |
933 | to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag | |
934 | instead of looking up section names for DT_TEXTREL. Replace | |
935 | BFD_ASSERT with abort. Zero out the dynamic allocated content space. | |
936 | Add a comment to remind us that one day this ought to be fixed. | |
937 | (struct elf_s390_link_hash_entry): Rename "root" to "elf". | |
938 | (struct elf_s390_link_hash_table): Likewise. | |
939 | (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get | |
940 | rid of unnecessary casts. | |
941 | (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields. | |
942 | Remove "section" field. | |
943 | (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
944 | Reference count possible .plt entries. Don't deallocate .got and | |
945 | .relgot space here. | |
946 | (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs. | |
947 | Update comment. | |
948 | (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to | |
949 | dyn_relocs. | |
950 | (elf_s390_discard_copies): Delete. | |
951 | (elf_s390_link_hash_traverse): Delete. | |
952 | (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link | |
953 | rather than gc variety). | |
954 | (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt, | |
955 | srelplt, sdynbss, srelbss fields. | |
956 | (elf_s390_link_hash_table_create): Init them. | |
957 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
958 | (allocate_dynrelocs): New function. | |
959 | (create_got_section): New function. | |
960 | (elf_backend_can_refcount): Define. | |
961 | (elf_backend_copy_indirect_symbol): Define. | |
962 | (elf_s390_copy_indirect_symbol): New function. | |
963 | (elf_s390_create_dynamic_sections): New function. | |
964 | (readonly_dynrelocs): New function. | |
ec338859 | 965 | * elf64-s390.c: Likewise. |
0451c93c | 966 | |
2b0f7ef9 JJ |
967 | 2001-11-07 Jakub Jelinek <jakub@redhat.com> |
968 | ||
969 | * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo. | |
970 | (BFD32_BACKENDS_CFILES): Add elf-strtab.c. | |
971 | (elf-strtab.lo): Add rule. | |
972 | * Makefile.in: Rebuilt. | |
973 | * configure.in (elf): Add elf-strtab.lo. | |
974 | * configure: Rebuilt. | |
975 | * elf-bfd.h (elf_strtab_hash): Forward declare. | |
976 | (struct elf_link_hash_table): Change dynstr type to | |
977 | struct elf_strtab_hash *. | |
978 | (struct elf_obj_tdata): Change strtab_ptr type to | |
979 | struct elf_strtab_hash *. | |
980 | (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add, | |
981 | _bfd_elf_strtab_addref, _bfd_elf_strtab_delref, | |
982 | _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size, | |
983 | _bfd_elf_strtab_offset, _bfd_elf_strtab_emit, | |
984 | _bfd_elf_strtab_finalize): New prototypes. | |
985 | * elf-strtab.c: New file. | |
986 | * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add | |
987 | and _bfd_elf_strtab_size instead of _bfd_stringtab calls. | |
988 | Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or | |
989 | when forcing dynamic symbol to local. | |
990 | (elf_link_create_dynamic_sections): Call | |
991 | _bfd_elf_strtab_init instead of elf_stringtab_init. | |
992 | (elf_link_record_local_dynamic_symbol): Likewise, change | |
993 | dynstr type. Use _bfd_elf_strtab functions instead of | |
994 | _bfd_stringtab calls. | |
995 | (size_dynamic_sections): Use _bfd_elf_strtab functions instead of | |
996 | _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields, | |
997 | call _bfd_elf_strtab_addref. Call elf_finalize_dynstr. | |
998 | (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions. | |
999 | (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing | |
1000 | dynamic symbol to local. | |
1001 | (elf_link_assign_sym_version): Likewise. | |
1002 | (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of | |
1003 | _bfd_stringtab_emit. | |
1004 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr | |
1005 | type. Call _bfd_elf_strtab functions instead of | |
1006 | _bfd_stringtab functions. | |
1007 | * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise. | |
1008 | * elf.c (_bfd_elf_init_reloc_shdr): Likewise. | |
1009 | (elf_fake_sections): Likewise. | |
1010 | (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs | |
1011 | on shstrtab hash table, call _bfd_elf_strtab_addref on each section | |
1012 | name in the output. Call _bfd_elf_strtab_finalize and | |
1013 | use _bfd_elf_strtab_offset to finalize sh_name section header fields. | |
1014 | (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size | |
1015 | instead of _bfd_stringtab_size. | |
1016 | (prep_headers): Change shstrtab type. | |
1017 | Use _bfd_elf_strtab calls instead of _bfd_stringtab calls. | |
1018 | ||
1d761fc5 AM |
1019 | 2001-11-07 Alan Modra <amodra@bigpond.net.au> |
1020 | ||
1021 | * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix | |
1022 | bad symtab segfault. Formatting and warning fixes. Improve | |
1023 | error message for internationalisation. | |
1024 | ||
f8deed93 L |
1025 | 2001-11-06 H.J. Lu (hjl@gnu.org) |
1026 | ||
1d761fc5 | 1027 | * elflink.h (elf_link_input_bfd): Complain about relocs against |
f8deed93 L |
1028 | discarded sections. |
1029 | ||
7fda6dbc AM |
1030 | 2001-11-03 Alan Modra <amodra@bigpond.net.au> |
1031 | ||
1032 | * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order. | |
1033 | ||
d918dd35 L |
1034 | 2001-11-02 H.J. Lu <hjl@gnu.org> |
1035 | ||
1036 | * elf32-mips.c (mips_elf_calculate_relocation): Don't create | |
1037 | dynamic relocation for symbols defined in regular objects when | |
1038 | creating executables. | |
1039 | ||
b8819ab2 NC |
1040 | 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com> |
1041 | ||
3c62831e NC |
1042 | * configure.in (ALL_LINGUAS): Add "fr". |
1043 | * configure: Regenerate. | |
1044 | * po/fr.po: New file. | |
1045 | ||
b8819ab2 NC |
1046 | * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch. |
1047 | ||
21da9f89 NC |
1048 | 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca> |
1049 | ||
1050 | * som.c (setup_sections): Initialize subspace_sections. | |
1051 | ||
95f7d9f7 L |
1052 | 2001-11-02 H.J. Lu (hjl@gnu.org) |
1053 | ||
1054 | * coffgen.c (coff_object_p): Return 0 if the header is too big. | |
1055 | ||
12e1f53e HPN |
1056 | 2001-11-02 Hans-Peter Nilsson <hp@axis.com> |
1057 | ||
1058 | * elfcore.h (elf_core_file_p): Preserve and clear abfd section | |
1059 | information. Save bfd arch and mach values. Restore on error. | |
1060 | ||
a8d02d66 AM |
1061 | 2001-11-02 Alan Modra <amodra@bigpond.net.au> |
1062 | ||
1063 | * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls. | |
1064 | (allocate_PIC_calls): New function. | |
1065 | (allocate_dynrelocs): Don't allocate pic_call plt entries here. | |
1066 | (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls. | |
1067 | (elf32_hppa_finish_dynamic_symbol): Remove dead code. | |
1068 | ||
72209a1f HPN |
1069 | 2001-11-02 Hans-Peter Nilsson <hp@axis.com> |
1070 | ||
1071 | * elf32-cris.c (cris_elf_grok_prstatus): New function. | |
4a15251e | 1072 | (cris_elf_grok_psinfo): New function. |
72209a1f HPN |
1073 | (elf_backend_grok_prstatus): Define. |
1074 | (elf_backend_grok_psinfo): Define. | |
1075 | ||
86c76c7b AM |
1076 | 2001-11-01 Alan Modra <amodra@bigpond.net.au> |
1077 | ||
1078 | * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch | |
1079 | prediction bits. | |
1080 | ||
afdbd6d0 CD |
1081 | 2001-10-31 Chris Demetriou <cgd@demetriou.com> |
1082 | ||
1083 | * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative | |
1084 | relocations properly. | |
1085 | ||
2cd533b7 L |
1086 | 2001-10-31 H.J. Lu <hjl@gnu.org> |
1087 | ||
1088 | * elflink.h (elf_link_output_extsym): Don't clear the visibility | |
1089 | field for relocateable. | |
1090 | ||
4578e0a7 AM |
1091 | 2001-11-01 Alan Modra <amodra@bigpond.net.au> |
1092 | ||
4e12ff7f AM |
1093 | * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count |
1094 | .plt relocs in DT_RELASZ. | |
4578e0a7 | 1095 | |
7649aa50 NC |
1096 | 2001-10-29 NIIBE Yutaka <gniibe@m17n.org> |
1097 | ||
1098 | * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu | |
1099 | targets. | |
1100 | ||
a53ecf01 NC |
1101 | 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com> |
1102 | ||
1103 | * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec. | |
1104 | ||
3c3bdf30 NC |
1105 | 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com> |
1106 | ||
1107 | * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo. | |
1108 | (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo. | |
1109 | (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c. | |
1110 | Regenerate dependencies. | |
1111 | * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors. | |
1112 | * config.bfd: [BFD64] (mmix-*-*): New case. | |
1113 | * cpu-mmix.c, mmo.c, elf64-mmix.c: New files. | |
1114 | * archures.c (enum bfd_architecture): Add bfd_arch_mmix. | |
1115 | (bfd_mmix_arch): Declare. | |
1116 | (bfd_archures_list): Add bfd_mmix_arch. | |
1117 | * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour. | |
1118 | (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare. | |
1119 | (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and | |
1120 | bfd_mmo_mmix_vec. | |
1121 | * reloc.c: Add MMIX relocations. | |
1122 | * bfd.c (struct _bfd, tdata): Add mmo_data. | |
1123 | * Makefile.in: Regenerate. | |
1124 | * configure: Regenerate. | |
1125 | * libbfd.h: Regenerate. | |
1126 | * bfd-in2.h: Regenerate. | |
1127 | * configure: Rebuild. | |
1128 | ||
e0e8c97f NC |
1129 | 2001-10-30 Richard Earnshaw (rearnsha@arm.com) |
1130 | ||
1131 | * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the | |
1132 | p_paddr of the segment that contains it. | |
f5ffc919 NC |
1133 | (copy_private_bfd_data): If the LMA for a segment is known, use it |
1134 | for matching sections to segments. | |
1135 | (assign_file_positions_for_segments): Use the LMA when adjusting | |
1136 | for inter-section alignment padding. | |
e0e8c97f | 1137 | |
5b74f489 KH |
1138 | 2001-10-29 Kazu Hirata <kazu@hxi.com> |
1139 | ||
1140 | * README: Fix a typo. | |
1141 | ||
0b6488e2 RH |
1142 | 2001-10-24 Richard Henderson <rth@redhat.com> |
1143 | ||
1144 | * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy | |
1145 | timestamp to time_t for ctime. | |
1146 | ||
908d94bf HPN |
1147 | 2001-10-24 Hans-Peter Nilsson <hp@axis.com> |
1148 | ||
1149 | * elf32-cris.c (cris_reloc_type_lookup): Change loop to use | |
1150 | unsigned, increasing index. | |
1151 | ||
1b58be7e L |
1152 | 2001-10-23 H.J. Lu <hjl@gnu.org> |
1153 | ||
1154 | * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check | |
1155 | m != NULL before accessing it. | |
1156 | ||
ce757d15 AM |
1157 | 2001-10-23 Alan Modra <amodra@bigpond.net.au> |
1158 | ||
1159 | * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing | |
1160 | bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup | |
1161 | doesn't accept BFD_RELOC_* on some targets, eg. hppa. | |
1162 | ||
1163 | * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs. | |
1164 | (hppa_link_hash_newfunc): Likewise. | |
1165 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
1166 | (allocate_dynrelocs): Always allocate .got relocs if shared. | |
1167 | (elf32_hppa_relocate_section): Output them too. Similarly | |
1168 | consolidate .plt reloc code, and no longer initialise .plt | |
1169 | when a reloc is output. | |
1170 | (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries | |
1171 | when no reloc is output. | |
1172 | ||
1173 | From Herbert Xu <herbert@gondor.apana.org.au> | |
1174 | * elf32-hppa.c (final_link_relocate): Call bfd_set_error for | |
1175 | unreachable branches. | |
1176 | ||
ca51bfff L |
1177 | 2001-10-22 H.J. Lu <hjl@gnu.org> |
1178 | ||
1179 | * configure.in (WIN32LIBADD): Use -L../libiberty for | |
1180 | mips*-*-linux*. | |
1181 | * configure: Rebuild. | |
1182 | ||
78be1d6e L |
1183 | 2001-10-21 H.J. Lu <hjl@gnu.org> |
1184 | ||
1185 | * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty | |
1186 | if shared library is enabled only for Linux hosts. | |
1187 | * configure: Rebuild. | |
1188 | ||
1b90af26 L |
1189 | 2001-10-21 H.J. Lu <hjl@gnu.org> |
1190 | ||
1191 | * configure.in (WIN32LIBADD): Check if PICFLAG is defined in | |
1192 | ../libiberty/Makefile instead of $enable_shared. | |
1193 | * configure: Rebuild. | |
1194 | ||
ebe7507a L |
1195 | 2001-10-21 H.J. Lu <hjl@gnu.org> |
1196 | ||
908d94bf HPN |
1197 | * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover |
1198 | index 0. | |
ebe7507a | 1199 | |
39691762 L |
1200 | 2001-10-20 H.J. Lu <hjl@gnu.org> |
1201 | ||
1202 | * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty | |
1203 | if shared library is enabled. | |
1204 | * configure: Rebuild. | |
1205 | ||
6a7805b5 L |
1206 | 2001-10-20 H.J. Lu <hjl@gnu.org> |
1207 | ||
1208 | * elf32-cris.c (cris_reloc_type_lookup): Allow index 0. | |
1209 | ||
e0740195 L |
1210 | 2001-10-19 H.J. Lu <hjl@gnu.org> |
1211 | ||
1212 | * elfcode.h (elf_object_p): Don't clear D_PAGED if the section | |
1213 | size is empty. | |
1214 | ||
7595d193 L |
1215 | 2001-10-18 H.J. Lu <hjl@gnu.org> |
1216 | ||
1217 | * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE. | |
1218 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
1219 | ||
25263aad JJ |
1220 | 2001-10-18 Jakub Jelinek <jakub@redhat.com> |
1221 | ||
1222 | * section.c (_bfd_strip_section_from_output): Don't count | |
1223 | SEC_EXCLUDE sections as references. Set SEC_EXCLUDE. | |
1224 | ||
973ffd63 AM |
1225 | 2001-10-17 Alan Modra <amodra@bigpond.net.au> |
1226 | ||
1227 | * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to | |
1228 | Elf_Internal_Shdr.contents now that it's no longer a PTR. | |
1229 | * elf-m10300.c (mn10300_elf_relax_section): Likewise. | |
1230 | * elf32-h8300.c (elf32_h8_relax_section): Likewise. | |
1231 | * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise. | |
1232 | * elf32-sh.c (sh_elf_relax_section): Likewise. | |
1233 | * elf64-alpha.c (elf64_alpha_relax_section): Likewise. | |
1234 | * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. | |
1235 | * elf.c (setup_group): Warning fixes. | |
1236 | * elflink.h (elf_link_sort_relocs): Likewise. | |
1237 | * pdp11.c (slurp_reloc_table): Likewise. | |
1238 | ||
df22989b JH |
1239 | 2001-10-16 Jeff Holcomb <jeffh@redhat.com> |
1240 | ||
1241 | * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer | |
1242 | casts. | |
1243 | ||
1e09179f L |
1244 | 2001-10-15 H.J. Lu <hjl@gnu.org> |
1245 | ||
1246 | * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE | |
1247 | for relocations against discarded link-once section. | |
1248 | ||
1e370bd2 AM |
1249 | 2001-10-15 Alan Modra <amodra@bigpond.net.au> |
1250 | ||
cf5c0c5b AM |
1251 | * elf32-i386.c (elf_i386_relocate_section): Report some detail on |
1252 | bfd_reloc_outofrange and similar errors. | |
1253 | ||
1e370bd2 AM |
1254 | * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type |
1255 | rather than ind->weakdef. | |
1256 | * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise. | |
1257 | * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. | |
1258 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise. | |
1259 | * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. | |
1260 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise. | |
1261 | ||
bbd7ec4a AM |
1262 | 2001-10-15 Alan Modra <amodra@bigpond.net.au> |
1263 | H.J. Lu <hjl@gnu.org> | |
1264 | ||
1265 | * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc | |
1266 | counts for aliases instead of aborting. | |
1267 | * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. | |
1268 | * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. | |
1269 | ||
1270 | * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset | |
1271 | to -1 for non-function symbols. | |
1272 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. | |
1273 | * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
1274 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
1275 | * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
1276 | * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
1277 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to | |
1278 | plt.offset instead of plt.refcount when setting to -1. | |
1279 | ||
6a360bf4 NC |
1280 | 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com> |
1281 | ||
1282 | * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22 | |
1283 | like R_ARM_PC24. Include reloc number in error message about | |
1284 | unresolvable relocs. | |
1285 | ||
290394d6 JJ |
1286 | 2001-10-10 Jakub Jelinek <jakub@redhat.com> |
1287 | ||
1288 | * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT | |
1289 | relocations against the same symbol in .rel{,a}.dyn section. | |
1290 | ||
08da05b0 KH |
1291 | 2001-10-10 Kazu Hirata <kazu@hxi.com> |
1292 | ||
1293 | * aout-encap.c: Fix comment typos. | |
1294 | * aoutx.h: Likewise. | |
1295 | * archive.c: Likewise. | |
1296 | * bout.c: Likewise. | |
1297 | * coff64-rs6000.c: Likewise. | |
1298 | * coffcode.h: Likewise. | |
1299 | * coffgen.c: Likewise. | |
1300 | * cofflink.c: Likewise. | |
1301 | * coff-mips.c: Likewise. | |
1302 | * ecoff.c: Likewise. | |
1303 | * elf32-m32r.c: Likewise. | |
1304 | * libcoff-in.h: Likewise. | |
1305 | * libecoff.h: Likewise. | |
1306 | * libxcoff.h: Likewise. | |
1307 | * nlm32-i386.c: Likewise. | |
1308 | * pdp11.c: Likewise. | |
1309 | * section.c: Likewise. | |
1310 | * som.c: Likewise. | |
1311 | * som.h: Likewise. | |
1312 | * bfd-in2.h: Regenerate. | |
1313 | * libcoff.h: Likewise. | |
1314 | ||
079e9a2f AM |
1315 | 2001-10-10 Alan Modra <amodra@bigpond.net.au> |
1316 | ||
1317 | * elf.c (elf_map_symbols): Don't create new section symbols; Use | |
1318 | existing section syms. Update comments. | |
1319 | (copy_private_bfd_data): Formatting fixes. | |
1320 | (elfcore_grok_win32pstatus): Likewise. | |
1321 | (swap_out_syms): Likewise. Remove unnecessary level of braces. | |
1322 | ||
945906ff AM |
1323 | 2001-10-09 Alan Modra <amodra@bigpond.net.au> |
1324 | ||
1325 | * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to | |
1326 | "group_name". | |
1327 | (elf_group_name): Define. | |
1328 | (elf_next_in_group): Define. | |
1329 | * elf.c: Make use of elf_group_name and elf_next_in_group throughout. | |
1330 | (setup_group): Don't use sec->lineno for SHT_GROUP section to store | |
1331 | first member section; Instead use elf_next_in_group. | |
1332 | (bfd_section_from_shdr): Likewise. | |
1333 | (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol. | |
1334 | ||
dbb410c3 AM |
1335 | 2001-10-09 Alan Modra <amodra@bigpond.net.au> |
1336 | ||
1337 | * elf-bfd.h (struct bfd_elf_section_data): Add "group" and | |
1338 | "next_in_group". Fix gp and gp_size comments. | |
1339 | * elf.c (union elf_internal_group): New. | |
1340 | (setup_group): New function. | |
1341 | (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP. | |
1342 | Call setup_group for SHF_GROUP sections. | |
1343 | (bfd_section_from_shdr): Build a BFD section for SHT_GROUP. | |
1344 | (elf_fake_sections): Set header type for SEC_GROUP, and header | |
1345 | flags for sections in a group. | |
1346 | (set_group_contents): New function. | |
1347 | (_bfd_elf_compute_section_file_positions): Call it. | |
1348 | (assign_section_numbers): Set sh_link for SHT_GROUP. | |
945906ff | 1349 | |
dbb410c3 AM |
1350 | * elflink.h (gc_mark_hook): Handle section groups. |
1351 | * elfxx-target.h: Add SEC_GROUP to applicable_flags. | |
1352 | * section.c (SEC_GROUP): Define. | |
1353 | (struct sec): Comment fixes. | |
1354 | * bfd-in2.h: Regenerate. | |
1355 | ||
1356 | * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression | |
1357 | out of function args. | |
1358 | (_bfd_elf_canonicalize_reloc): Similarly. | |
1359 | (_bfd_elf_get_symtab): Here too. | |
1360 | (_bfd_elf_canonicalize_dynamic_symtab): And here. | |
1361 | * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for | |
1362 | bfd_bread, and remove unnecessary cast. | |
1363 | ||
24c603fa AH |
1364 | 2001-10-08 Aldy Hernandez <aldyh@redhat.com> |
1365 | ||
bbd7ec4a | 1366 | * bfd/config.bfd (targ_cpu): Add arm9e-*-elf. |
24c603fa | 1367 | |
3f5864e1 SC |
1368 | 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr> |
1369 | ||
1370 | * dwarf2.c (comp_unit_find_nearest_line): Check for end of | |
1371 | compilation unit. | |
1372 | ||
fb9ceeac AM |
1373 | 2001-10-06 Alan Modra <amodra@bigpond.net.au> |
1374 | ||
aec2f561 AM |
1375 | * bfd.c (bfd_assert): Report bfd version. |
1376 | (_bfd_abort): Likewise. | |
1377 | ||
50b4d486 AM |
1378 | * elflink.h (elf_link_input_bfd): Don't zero discarded link-once |
1379 | section sym values. Instead replace any relocs against them with | |
1380 | relocs against STN_UNDEF, which has a zero value. | |
1381 | ||
fb9ceeac AM |
1382 | * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all |
1383 | relocs. | |
1384 | ||
17617495 JL |
1385 | 2001-10-05 Jeff Law <law@redhat.com> |
1386 | ||
1387 | * som.h (som_exec_data): New field "version_id". | |
1388 | * som.c (som_object_setup): Record the version_id if it | |
1389 | exists. | |
1390 | (som_prep_headers): Do not initialize version_id here. | |
1391 | (som_finish_writing): Initialize version_id here. | |
1392 | ||
1393 | 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
7e766c3b TS |
1394 | |
1395 | * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos | |
1396 | according to the MIPS/SGI ELF64 ABI Draft. | |
1397 | (mips_elf_sort_hash_table): Typo. | |
1398 | ||
58e3d09d AM |
1399 | 2001-10-04 Alan Modra <amodra@bigpond.net.au> |
1400 | ||
8ea52284 AM |
1401 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo. |
1402 | ||
58e3d09d AM |
1403 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after |
1404 | copying flags if this is a weakdef. | |
1405 | ||
b13c7b49 AM |
1406 | 2001-10-04 Alan Modra <amodra@bigpond.net.au> |
1407 | ||
a90b9fca AM |
1408 | * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better |
1409 | packing. | |
1410 | ||
bbd7ec4a | 1411 | * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset |
3a6b8597 AM |
1412 | to 1 rather than 0 to avoid confusing copy_indirect_symbol. |
1413 | (mips_elf_sort_hash_table_f): Compare got.offset against 1. | |
1414 | ||
b13c7b49 AM |
1415 | * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything |
1416 | depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those | |
1417 | backends we configure. Run "make dep-am". | |
1418 | (install-data-local): Install symcat.h. | |
1419 | * dep-in.sed: Remove symcat.h from dependencies. | |
1420 | * Makefile.in: Regenerate. | |
1421 | ||
8bd621d8 AM |
1422 | 2001-10-03 Vassili Karpov <malc@pulsesoft.com> |
1423 | ||
1424 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc. | |
1425 | ||
1e2be829 TS |
1426 | 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
1427 | ||
1428 | * elf64-mips.c (elf_backend_may_use_rela_p): New define. | |
1429 | (elf_backend_default_use_rela_p): New define. | |
1430 | ||
0a991dfe AM |
1431 | 2001-10-03 Alan Modra <amodra@bigpond.net.au> |
1432 | ||
57c7194e AM |
1433 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last |
1434 | change. | |
1435 | ||
87b632fc AM |
1436 | * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h. |
1437 | * configure: Regenerate. | |
1438 | * Makefile.am (BFD_H_FILES): Add version.h. | |
1439 | * Makefile.in: Regenerate. | |
1440 | * po/SRC-POTFILES.in: Regenerate. | |
1441 | ||
0a991dfe AM |
1442 | * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using |
1443 | elf_backend_copy_indirect_symbol so that backend has a chance to | |
1444 | copy other necessary fields. | |
1445 | * elf-bfd.h (struct elf_backend_data): Update description of | |
1446 | elf_backend_copy_indirect_symbol. | |
1447 | * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after | |
1448 | copying flags if this is a weakdef. | |
1449 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise. | |
1450 | (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather | |
1451 | than bfd_link_hash_lookup. | |
bbd7ec4a | 1452 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy |
0a991dfe AM |
1453 | reloc processing for weakdefs. |
1454 | * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
1455 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
1456 | ||
a33d1f77 AM |
1457 | 2001-10-02 Alan Modra <amodra@bigpond.net.au> |
1458 | ||
1459 | * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast | |
1460 | result of ELF64_R_TYPE to enum before using in a switch. | |
1461 | (ppc64_elf_gc_mark_hook): Likewise. | |
1462 | (ppc64_elf_gc_sweep_hook): Likewise. | |
1463 | (ppc64_elf_reloc_type_class): Likewise. | |
1464 | ||
e43d48cc AM |
1465 | 2001-10-02 Alan Modra <amodra@bigpond.net.au> |
1466 | ||
1467 | * version.h: New file. | |
1468 | * bfd-in.h: (BFD_VERSION): Substitute bfd_version. | |
1469 | (BFD_VERSION_DATE): Define. | |
1470 | (BFD_VERSION_STRING): Define. | |
1471 | * configure.in: AC_SUBST bfd_version, bfd_version_date and | |
1472 | bfd_version_string. | |
1473 | (AC_OUTPUT <bfd-in3.h>): Depend on version.h. | |
1474 | * bfd-in2.h: Regenerate. | |
1475 | * configure: Regenerate. | |
1476 | * Makefile.am: Run "make dep-am". | |
1477 | * Makefile.in: Regenerate. | |
1478 | ||
1479 | * bfd-in.h: Include "symcat.h". | |
1480 | (CONCAT4): Redefine as for old CAT4. | |
1481 | * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros. | |
1482 | Add warning regarding whitespace. | |
1483 | * aout-cris.c: Likewise. | |
1484 | * aout-ns32k.c: Likewise. | |
1485 | * aout-sparcle.c: Likewise. | |
1486 | * aout-tic30.c: Likewise. | |
1487 | * aout0.c: Likewise. | |
1488 | * armnetbsd.c: Likewise. | |
1489 | * demo64.c: Likewise. | |
1490 | * elf-bfd.h: Likewise. | |
1491 | * gen-aout.c: Likewise. | |
1492 | * host-aout.c: Likewise. | |
1493 | * hp300bsd.c: Likewise. | |
1494 | * hp300hpux.c: Likewise. | |
1495 | * i386aout.c: Likewise. | |
1496 | * i386bsd.c: Likewise. | |
1497 | * i386dynix.c: Likewise. | |
1498 | * i386freebsd.c: Likewise. | |
1499 | * i386linux.c: Likewise. | |
1500 | * i386lynx.c: Likewise. | |
1501 | * i386mach3.c: Likewise. | |
1502 | * i386netbsd.c: Likewise. | |
1503 | * libaout.h: Likewise. | |
1504 | * m68k4knetbsd.c: Likewise. | |
1505 | * m68klinux.c: Likewise. | |
1506 | * m68klynx.c: Likewise. | |
1507 | * m68knetbsd.c: Likewise. | |
1508 | * m88kmach3.c: Likewise. | |
1509 | * mipsbsd.c: Likewise. | |
1510 | * newsos3.c: Likewise. | |
1511 | * ns32knetbsd.c: Likewise. | |
1512 | * pc532-mach.c: Likewise. | |
1513 | * pdp11.c: Likewise. | |
1514 | * riscix.c: Likewise. | |
1515 | * sparclinux.c: Likewise. | |
1516 | * sparclynx.c: Likewise. | |
1517 | * sparcnetbsd.c: Likewise. | |
1518 | * sunos.c: Likewise. | |
1519 | * targets.c: Likewise. | |
1520 | * vaxnetbsd.c: Likewise. | |
1521 | * vms-hdr.c: Likewise. | |
1522 | ||
4eef72c7 AM |
1523 | 2001-10-01 Alan Modra <amodra@bigpond.net.au> |
1524 | ||
1525 | * bfd-in.h: Remove comments regarding generated files. | |
1526 | * libbfd-in.h: Likewise. | |
1527 | * libcoff-in.h: Likewise. | |
1528 | * bfd-in2.h: Regenerate. | |
1529 | * libbfd.h: Likewise. | |
1530 | * libcoff.h: Likewise. | |
1531 | ||
146be91a | 1532 | 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp> |
bbd7ec4a | 1533 | Hans-Peter Nilsson <hp@bitrange.com> |
146be91a HPN |
1534 | |
1535 | * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make | |
1536 | partial_inplace, matching assembler output. Set src_mask to | |
1537 | all ones. | |
1538 | (sh_elf_relocate_section): Delete misplaced comment. | |
1539 | For relocatable linking against section symbol, call | |
1540 | _bfd_relocate_contents for partial_inplace relocs and adjust | |
1541 | rel->r_addend for others. | |
1542 | <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with | |
1543 | bfd_get_32, not at rel->r_addend. | |
1544 | ||
3c3e9281 AM |
1545 | 2001-09-30 Alan Modra <amodra@bigpond.net.au> |
1546 | ||
1547 | * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to | |
1548 | the old dir refcount, so we indirectly set them to init_refcount. | |
1549 | Short-circuit asserts when we've just verified they are true. | |
1550 | ||
862517b6 AM |
1551 | 2001-09-29 Alan Modra <amodra@bigpond.net.au> |
1552 | ||
1553 | * section.c (struct sec): Remove kept_section. | |
1554 | (STD_SECTION): Remove kept_section initialisation. | |
1555 | (bfd_make_section_anyway): Here too. | |
1556 | * ecoff.c (bfd_debug_section): Remove kept_section initialisation. | |
1557 | * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section. | |
1558 | * elflink.h (elf_link_input_bfd): Set discarded link-once section | |
1559 | symbols to zero, and remove all code involved with kept_section | |
1560 | and tracking section symbol values. | |
1561 | * bfd-in2.h: Regenerate. | |
1562 | * configure.in: Bump version number. | |
1563 | * configure: Regenerate. | |
1564 | ||
65f38f15 AM |
1565 | 2001-09-29 Alan Modra <amodra@bigpond.net.au> |
1566 | ||
1567 | * elf64-ppc.c (struct ppc_dyn_relocs): New. | |
1568 | (IS_ABSOLUTE_RELOC): Define. | |
1569 | (struct ppc_link_hash_entry): New. | |
1570 | (struct ppc_link_hash_table): New. | |
1571 | (ppc_hash_table): Define. | |
1572 | (link_hash_newfunc): New function. | |
1573 | (ppc64_elf_link_hash_table_create): New function. | |
1574 | (create_got_section): New function. | |
1575 | (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash | |
1576 | pointers to our dynamic sections in hash table. | |
1577 | (ppc64_elf_copy_indirect_symbol): New function. | |
1578 | (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to | |
1579 | dynamic sections. Localise vars. Modify code for refcounts | |
1580 | starting from zero. Don't allocate here, or force symbols dynamic. | |
1581 | Don't copy all relocs if shared, select ones we need. Add code | |
1582 | to track possible copy relocs for non-shared link. | |
1583 | (ppc64_elf_gc_mark_hook): Update comment. | |
1584 | (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too. | |
1585 | (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt | |
1586 | code for reference counting garbage collection. Don't create .plt | |
1587 | entries for functions that don't comply with ABI naming convention, | |
1588 | and don't allocate .plt space here. Use short-cuts to dynamic | |
1589 | sections. If possible, keep dynamic relocations instead of using | |
1590 | copy relocs. Remove confused comments. | |
1591 | (ppc_adjust_dynindx): Delete. | |
1592 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
1593 | (allocate_dynrelocs): New function. | |
1594 | (readonly_dynrelocs): New function. | |
1595 | (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got | |
1596 | space here, and call allocate_dynrelocs to allocate space for | |
1597 | global .plt, .got and reloc sections. Use short-cuts to dynamic | |
1598 | sections. Call readonly_dynrelocs to determine whether we need | |
1599 | DT_TEXTREL. Don't generate section symbols here, the generic | |
1600 | ELF linker code does it for us. | |
1601 | (ppc64_elf_final_link): Call regular ELF backend linker rather than | |
1602 | gc variety, since we do our own .got handling. | |
1603 | (ppc64_elf_relocate_section): Remove DEBUG code. Make use of | |
1604 | dynamic section short-cuts. Localise vars, and delay setting. | |
1605 | Handle unknown relocs in main switch statement. Replace ugly | |
1606 | complicated tests for unresolvable relocs with a simple direct | |
1607 | scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY | |
1608 | before allowing an undefined sym in a shared lib. Do R_*_DS tests | |
1609 | after main switch, when we've set addend. Do non-addend insn | |
1610 | tweaks before main swithc. Ignore input_section->vma when | |
1611 | calculating reloc offsets as it's always zero. Rewrite dynamic | |
1612 | reloc handling. Consolidate R_*_HA handling. Handle more relocs. | |
1613 | (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use | |
1614 | of dynamic section short-cuts. Reorganise .plt handling code. | |
1615 | Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL. | |
1616 | Move expressions out of swap_reloca_out function calls. | |
1617 | (ppc64_elf_reloc_type_class): New function. | |
1618 | (ppc64_elf_info_to_howto): Move common expression to local var. | |
1619 | (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use | |
1620 | of dynamic section short-cuts. Don't fiddle with section syms | |
1621 | here as the ELF linker does it for us. | |
1622 | (elf_backend_can_refcount): Define. | |
1623 | (bfd_elf64_bfd_link_hash_table_create): Define. | |
1624 | (elf_backend_copy_indirect_symbol): Define. | |
1625 | (elf_backend_reloc_type_class): Define. | |
1626 | (elf_backend_*, bfd_elf64_bfd_* defines): Sort. | |
1627 | ||
21d17a58 AM |
1628 | 2001-09-29 Alan Modra <amodra@bigpond.net.au> |
1629 | ||
51b64d56 AM |
1630 | * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount. |
1631 | (struct elf_backend_data): Add can_refcount. | |
1632 | * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set | |
1633 | got.refcount and plt.refcount from init_refcount. | |
1634 | (_bfd_elf_link_hash_table_init): Set up init_refcount. | |
1635 | (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount | |
1636 | rather than got/plt.offset, and test for <= 0 rather than -1. | |
1637 | * elflink.h (size_dynamic_sections): Set init_refcount to -1. | |
1638 | * elfxx-target.h (elf_backend_can_refcount): Define. | |
1639 | (elfNN_bed): Init can_refcount. | |
1640 | * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts. | |
1641 | (_bfd_generic_link_hash_newfunc): Likewise. | |
1642 | * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts | |
1643 | starting from zero. | |
1644 | (elf_backend_can_refcount): Define. | |
1645 | * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts | |
1646 | starting from zero. | |
1647 | (elf32_hppa_copy_indirect_symbol): Make static to agree with | |
1648 | prototype. | |
1649 | (elf_backend_can_refcount): Define. | |
1650 | * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts | |
1651 | starting from zero. | |
1652 | (allocate_dynrelocs): Set plt/got.offset rather than *.refcount. | |
1653 | (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment. | |
1654 | (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars. | |
1655 | (elf_backend_can_refcount): Define. | |
1656 | (elf_i386_copy_indirect_symbol): Make static to agree with | |
1657 | prototype. Formatting fix. | |
1658 | * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts | |
1659 | starting from zero. | |
1660 | (elf_backend_can_refcount): Define. | |
1661 | * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts | |
1662 | starting from zero. | |
1663 | (elf_backend_can_refcount): Define. | |
1664 | * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts | |
1665 | starting from zero. | |
1666 | (elf_backend_can_refcount): Define. | |
1667 | * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts | |
1668 | starting from zero. | |
1669 | (elf_backend_can_refcount): Define. | |
1670 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts | |
1671 | starting from zero. | |
1672 | (elf_backend_can_refcount): Define. | |
1673 | ||
21d17a58 AM |
1674 | * som.c (som_write_symbol_strings): Cast current_offset in |
1675 | bfd_seek call to match param type. | |
1676 | ||
78ae4cb9 JB |
1677 | 2001-09-28 J. Brobecker <brobecker@gnat.com> |
1678 | ||
1679 | * som.c (som_write_symbol_strings): Fix incorrect type of | |
1680 | current_offset to match the function definition. Fixes a build | |
1681 | failure on HPUX-11.00. | |
1682 | ||
65db3b0d RH |
1683 | 2001-09-28 Richard Henderson <rth@redhat.com> |
1684 | ||
e0aae569 RH |
1685 | * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA, |
1686 | SEC_MERGE, SEC_STRINGS. | |
1687 | ||
65db3b0d RH |
1688 | * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN. |
1689 | * bfd-in2.h: Rebuild. | |
1690 | ||
ced53ee5 AM |
1691 | 2001-09-28 Alan Modra <amodra@bigpond.net.au> |
1692 | ||
ffaef159 AM |
1693 | * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd |
1694 | reloc code using x86_64_reloc_map. | |
1695 | ||
3ac8354b AM |
1696 | * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we |
1697 | no longer allocate here. Localise some vars to blocks where they | |
1698 | are used. | |
1699 | (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay | |
1700 | setting of vars until needed. | |
1701 | (allocate_dynrelocs): Don't create a .plt entry without a reloc | |
1702 | when symbol visibilty makes a function local. | |
1703 | (elf32_hppa_finish_dynamic_symbol): Move expressions out of | |
1704 | swap_reloca_out function calls. | |
1705 | (elf32_hppa_relocate_section): Likewies. Comment typo fix. | |
1706 | (elf32_hppa_finish_dynamic_sections): Migrate common code out of | |
1707 | switch statement. | |
1708 | ||
0ac8d2ca AM |
1709 | * elf32-i386.c (elf_i386_check_relocs): Update comment since we |
1710 | no longer allocate here. Localise some vars to blocks where they | |
1711 | are used. Remove separate switch stmt for creating .got sec. | |
1712 | (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove | |
1713 | redundant casts and aborts. Delay setting of vars until needed. | |
1714 | (allocate_dynrelocs): Remove redundant casts and aborts. | |
1715 | (elf_i386_size_dynamic_sections): Move comment. | |
1716 | (elf_i386_finish_dynamic_symbol): Move expressions out of function | |
1717 | calls. | |
1718 | (elf_i386_relocate_section): Likewise. Comment typo fix. | |
1719 | (elf_i386_finish_dynamic_sections): Migrate common code out of | |
1720 | switch statement. | |
1721 | (elf_backend_* defines): Sort. | |
1722 | ||
ced53ee5 AM |
1723 | * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry |
1724 | without a reloc when symbol visibilty makes a function local. | |
1725 | ||
63b0f745 NC |
1726 | 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com> |
1727 | ||
06317a27 NC |
1728 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of |
1729 | conflicting float flags. | |
63b0f745 | 1730 | |
ebe50bae AM |
1731 | 2001-09-26 Alan Modra <amodra@bigpond.net.au> |
1732 | ||
1733 | * elf32-i386 (elf_i386_copy_indirect_symbol): New function. | |
1734 | (elf_backend_copy_indirect_symbol): Define. | |
1735 | (struct elf_i386_link_hash_entry): Rename "root" to "elf". | |
1736 | (struct elf_i386_link_hash_table): Likewise. | |
1737 | (link_hash_newfunc): Get rid of unnecessary casts. | |
1738 | (elf_i386_link_hash_table_create): Likewise. | |
1739 | (elf_i386_check_relocs): Initialise local_got_refcounts to 0. | |
1740 | Don't test input section SEC_READONLY here to try to avoid copy | |
1741 | relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF. | |
1742 | (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY | |
1743 | here to properly test whether we need copy relocs. Do so for weak | |
1744 | syms too. | |
1745 | ||
1746 | * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function. | |
1747 | (elf_backend_copy_indirect_symbol): Define. | |
1748 | (struct elf32_hppa_link_hash_table): Rename "root" to "elf". | |
1749 | (stub_hash_newfunc): Get rid of unnecessary casts. | |
1750 | (hppa_link_hash_newfunc): Likewise. | |
1751 | (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0. | |
1752 | Don't test input section SEC_READONLY here to try to avoid copy | |
1753 | relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF. | |
1754 | (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY | |
1755 | here to properly test whether we need copy relocs. Do so for weak | |
1756 | syms too. | |
1757 | ||
af6166c0 AM |
1758 | 2001-09-26 Alan Modra <amodra@bigpond.net.au> |
1759 | ||
1760 | * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS, | |
1761 | VA_OPEN, VA_FIXEDARG, VA_CLOSE. | |
1762 | (bfd_archive_filename): Cast bfd_malloc arg to the correct size. | |
1763 | ||
e62de969 JJ |
1764 | 2001-09-25 Jakub Jelinek <jakub@redhat.com> |
1765 | ||
1766 | * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot | |
1767 | computation. | |
1768 | ||
09c1cc88 L |
1769 | 2001-09-25 H.J. Lu <hjl@gnu.org> |
1770 | ||
1771 | * bfd-in2.h: Regenerated. | |
1772 | ||
38701953 AM |
1773 | 2001-09-25 Alan Modra <amodra@bigpond.net.au> |
1774 | ||
1775 | * elf32-i386.c: Add comment re linker function names and ordering. | |
1776 | (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc. | |
1777 | (elf_i386_grok_prstatus): Move before linker functions. | |
1778 | (elf_i386_grok_psinfo): Likewise. | |
1779 | (elf_i386_fake_sections): Move so that functions are ordered. | |
1780 | (elf_i386_reloc_type_class): Likewise. Comment function purpose. | |
1781 | ||
98ceb8ce AM |
1782 | 2001-09-25 Alan Modra <amodra@bigpond.net.au> |
1783 | ||
0ac8d2ca | 1784 | * elf32-hppa.c: Rename occurrences of "hplink" to "htab" |
83c81bfe AM |
1785 | throughout file. |
1786 | ||
98ceb8ce AM |
1787 | * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all |
1788 | code handling this option. | |
1789 | (LONG_BRANCH_VIA_PLT): Likewise. | |
1790 | (RELATIVE_DYNRELOCS): Define as zero. | |
1791 | (struct elf32_hppa_dyn_reloc_entry): Add "sec", and | |
1792 | "pc_count" fields. Remove "section" field. | |
1793 | (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs. | |
1794 | (elf32_hppa_check_relocs): Don't allocate space for dynamic | |
1795 | relocs here. Instead, record all needed dynamic relocs via | |
1796 | dyn_relocs and local_dynrel. Cache pointer to "sreloc" section | |
1797 | in elf_section_data. | |
1798 | (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
1799 | (allocate_plt_and_got_and_discard_relocs): Rename to | |
1800 | allocate_dynrelocs. Allocate rather than discarding dyn relocs. | |
1801 | (readonly_dynrelocs): New function. | |
1802 | (elf32_hppa_size_dynamic_sections): Mark output_bfd unused. | |
1803 | Call readonly_dynrelocs to determine need for DT_TEXTREL. | |
1804 | Rename "i" to "ibfd". Allocate space for local dyn relocs. | |
1805 | (elf32_hppa_relocate_section): Make use of cached sreloc. | |
1806 | (elf32_hppa_reloc_type_class): New function. | |
1807 | (elf_backend_reloc_type_class): Define. | |
1808 | ||
0c715baa AM |
1809 | 2001-09-25 Alan Modra <amodra@bigpond.net.au> |
1810 | ||
1811 | * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel" | |
1812 | and "sreloc" fields. | |
1813 | * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and | |
1814 | "pc_count" fields. Remove "section" field. | |
1815 | (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't | |
1816 | allocate space for dynamic relocs here. Instead, record all | |
1817 | needed dynamic relocs via dyn_relocs and local_dynrel. Cache | |
1818 | pointer to "sreloc" section in elf_section_data. | |
1819 | (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
1820 | (allocate_plt_and_got_and_discard_relocs): Rename to | |
1821 | allocate_dynrelocs. Allocate rather than discarding dyn relocs. | |
1822 | (readonly_dynrelocs): New function. | |
1823 | (elf_i386_size_dynamic_sections): Call readonly_dynrelocs. | |
1824 | Rename "i" to "ibfd". Allocate space for local dyn relocs. | |
1825 | (elf_i386_relocate_section): Make use of cached sreloc. | |
1826 | ||
f51e552e AM |
1827 | 2001-09-24 Alan Modra <amodra@bigpond.net.au> |
1828 | ||
1829 | * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire | |
1830 | reloc rather than just the type. | |
1831 | (_bfd_elf_reloc_type_class): Likewise. | |
1832 | * elf.c (_bfd_elf_reloc_type_class): Likewise. | |
1833 | * elf32-arm.h (elf32_arm_reloc_type_class): Likewise. | |
1834 | * elf32-cris.c (elf_cris_reloc_type_class): Likewise. | |
1835 | * elf32-i386.c (elf_i386_reloc_type_class): Likewise. | |
1836 | * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise. | |
1837 | * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise. | |
1838 | * elf32-s390.c (elf_s390_reloc_type_class): Likewise. | |
1839 | * elf32-sh.c (sh_elf_reloc_type_class): Likewise. | |
1840 | * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise. | |
1841 | * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise. | |
1842 | * elf64-s390.c (elf_s390_reloc_type_class): Likewise. | |
1843 | * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise. | |
1844 | * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise. | |
1845 | * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise. | |
1846 | * elflink.h: Formatting fixes. | |
1847 | (elf_link_sort_relocs): Make "count" and "size" bfd_size_type. | |
1848 | Call bfd_zmalloc rather than calloc. Remove unnecessary cast of | |
1849 | o->contents to PTR. Update call to elf_backend_reloc_type_class. | |
1850 | ||
0c35f01a AM |
1851 | 2001-09-22 John Reiser <jreiser@BitWagon.com> |
1852 | ||
1853 | * elfcode.h (elf_object_p): Allow for no section header at all in | |
1854 | non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff. | |
1855 | ||
1e738b87 NC |
1856 | 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com> |
1857 | ||
1858 | * elfxx-ia64.c: Fix compile time warning messages. | |
09c1cc88 L |
1859 | * coff-mcore.c: Fix compile time warning messages. |
1860 | * coff-ppc.c: Fix compile time warning messages. | |
1861 | * coffcode.h: Fix compile time warning messages. | |
1862 | * elf32-mips.c: Fix compile time warning messages. | |
1863 | * elf64-alpha.c: Fix compile time warning messages. | |
1864 | * libbfd.c: Fix compile time warning messages. | |
1865 | * bfd-in2.h: Regenerate. | |
1e738b87 | 1866 | |
923f08ff AM |
1867 | 2001-09-21 Alan Modra <amodra@bigpond.net.au> |
1868 | ||
1869 | * Makefile.am: Run "make dep-am". | |
1870 | * Makefile.in: Regenerate. | |
1871 | ||
1872 | * aoutx.h: Formatting fixes. | |
1873 | * merge.c (_bfd_merged_section_offset): Break line at 80 chars. | |
1874 | ||
1875 | * linker.c: Replace bfd_get_filename with bfd_archive_filename | |
1876 | in error message. | |
1877 | ||
8f615d07 AM |
1878 | 2001-09-21 Alan Modra <amodra@bigpond.net.au> |
1879 | ||
1880 | * bfd.c (bfd_archive_filename): New function. | |
1881 | * bfd-in2.h: Regenerate. | |
1882 | * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename | |
1883 | in error messages where the bfd is an input bfd. | |
1884 | * aout-cris.c: Likewise. | |
1885 | * coff-arm.c: Likewise. | |
1886 | * coff-mcore.c: Likewise. | |
1887 | * coff-ppc.c: Likewise. | |
1888 | * coff-rs6000.c: Likewise. | |
1889 | * coff-sh.c: Likewise. | |
1890 | * coff-tic54x.c: Likewise. | |
1891 | * coff-tic80.c: Likewise. | |
1892 | * coff64-rs6000.c: Likewise. | |
1893 | * coffcode.h: Likewise. | |
1894 | * coffgen.c: Likewise. | |
1895 | * cofflink.c: Likewise. | |
1896 | * ecofflink.c: Likewise. | |
1897 | * elf-hppa.h: Likewise. | |
1898 | * elf.c: Likewise. | |
1899 | * elf32-arm.h: Likewise. | |
1900 | * elf32-cris.c: Likewise. | |
1901 | * elf32-gen.c: Likewise. | |
1902 | * elf32-hppa.c: Likewise. | |
1903 | * elf32-i370.c: Likewise. | |
1904 | * elf32-i386.c: Likewise. | |
1905 | * elf32-m32r.c: Likewise. | |
1906 | * elf32-mcore.c: Likewise. | |
1907 | * elf32-mips.c: Likewise. | |
1908 | * elf32-ppc.c: Likewise. | |
1909 | * elf32-s390.c: Likewise. | |
1910 | * elf32-sh.c: Likewise. | |
1911 | * elf32-sparc.c: Likewise. | |
1912 | * elf32-v850.c: Likewise. | |
1913 | * elf64-alpha.c: Likewise. | |
1914 | * elf64-gen.c: Likewise. | |
1915 | * elf64-ppc.c: Likewise. | |
1916 | * elf64-s390.c: Likewise. | |
1917 | * elf64-sparc.c: Likewise. | |
1918 | * elf64-x86-64.c: Likewise. | |
1919 | * elflink.h: Likewise. | |
1920 | * elfxx-ia64.c: Likewise. | |
1921 | * ieee.c: Likewise. | |
1922 | * ihex.c: Likewise. | |
1923 | * libbfd.c: Likewise. | |
1924 | * pdp11.c: Likewise. | |
1925 | * pe-mips.c: Likewise. | |
1926 | * peicode.h: Likewise. | |
1927 | * srec.c: Likewise. | |
1928 | * xcofflink.c: Likewise. | |
1929 | ||
1930 | * elf32-arm.h: Make _bfd_error_handler calls K&R compatible. | |
1931 | ||
1932 | * elflink.c (_bfd_elf_create_linker_section): Better grammar for | |
1933 | error message. | |
1934 | ||
1935 | * coff-mcore.c (coff_mcore_relocate_section): Internalionalise | |
1936 | error message. | |
1937 | ||
1938 | * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types. | |
1939 | Consolidate error messages, and split long messages to two lines. | |
1940 | ||
671bae9c | 1941 | 2001-09-20 John Reiser <jreiser@BitWagon.com> |
83c81bfe | 1942 | |
f51e552e AM |
1943 | * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic |
1944 | and info->allow_shlib_undefined. | |
1945 | * elf32-cris.c: Likewise. | |
1946 | * elf32-hppa.c: Likewise. | |
1947 | * elf32-m68k.c: Likewise. | |
1948 | * elf32-mips.c: Likewise. | |
1949 | * elf32-ppc.c: Likewise. | |
1950 | * elf32-s390.c: Likewise. | |
1951 | * elf32-sh.c: Likewise. | |
1952 | * elf32-sparc.c: Likewise. | |
1953 | * elf64-alpha.c: Likewise. | |
1954 | * elf64-hppa.c: Likewise. | |
1955 | * elf64-ppc.c: Likewise. | |
1956 | * elf64-s390.c: Likewise. | |
1957 | * elf64-sparc.c: Likewise. | |
1958 | * elf64-x86-64.c: Likewise. | |
1959 | * elfxx-ia64.c: Likewise. | |
671bae9c | 1960 | |
3882b010 L |
1961 | 2001-09-18 Bruno Haible <haible@clisp.cons.org> |
1962 | ||
1963 | * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>. | |
1964 | (aout_link_write_symbols): Use ISDIGIT instead of isdigit. | |
1965 | * archive.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1966 | (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit. | |
1967 | * archures.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1968 | (bfd_default_scan): Use ISDIGIT instead of isdigit. | |
1969 | * bfd.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1970 | (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of | |
1971 | isxdigit/isdigit/islower. | |
1972 | * binary.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1973 | (mangle_name): Use ISALNUM instead of isalnum. | |
1974 | * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1975 | (scan): Use ISDIGIT instead of isdigit. | |
1976 | * hosts/alphavms.h: Don't include <ctype.h>. | |
1977 | * ieee.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1978 | (ieee_object_p): Use TOUPPER instead of toupper. | |
1979 | * ihex.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1980 | (ihex_bad_byte): Use ISPRINT instead of isprint. | |
1981 | * merge.c: Don't include <ctype.h>. | |
1982 | * oasys.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1983 | (oasys_write_sections): Use ISDIGIT instead of isdigit. | |
1984 | * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1985 | (aout_link_write_symbols): Use ISDIGIT instead of isdigit. | |
1986 | * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1987 | (mangle_name): Use ISALNUM instead of isalnum. | |
1988 | * som.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1989 | (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of | |
1990 | isupper/islower/isdigit. | |
1991 | (som_decode_symclass): Use TOUPPER instead of toupper. | |
1992 | * srec.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1993 | (srec_bad_byte): Use ISPRINT instead of isprint. | |
1994 | (srec_scan): Use ISSPACE instead of isspace. | |
1995 | * stabs.c: Include "safe-ctype.h" instead of <ctype.h>. | |
1996 | (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit. | |
1997 | * syms.c: Include "safe-ctype.h" | |
1998 | (islower, toupper): Remove macro definitions. | |
1999 | (bfd_decode_symclass): Use TOUPPER instead of toupper. | |
2000 | * vms-gsd.c: Don't include <ctype.h>. | |
2001 | * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>. | |
2002 | (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of | |
2003 | islower/toupper. | |
2004 | * vms-tir.c: Don't include <ctype.h>. | |
2005 | ||
dc810e39 AM |
2006 | 2001-09-18 Alan Modra <amodra@bigpond.net.au> |
2007 | ||
2008 | * libbfd.c (bfd_bread): New function replacing bfd_read without | |
2009 | redundant params. Allow reads up to (size_t) -2 in length. | |
2010 | (bfd_bwrite): Similarly for bfd_write. | |
2011 | (real_read): Return a size_t. | |
2012 | (bfd_read): Call bfd_bread. | |
2013 | (bfd_write): Call bfd_bwrite. | |
2014 | (warn_deprecated): New function to annoy everybody. | |
2015 | (bfd_get_file_window): Don't call bfd_set_error unnecessarily. | |
2016 | * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare. | |
2017 | (bfd_read, bfd_write): Define as macro. | |
2018 | * aix386-core.c: Replace calls to bfd_read with bfd_bread, and | |
2019 | likewise for bfd_write. Ensure function args are correct size by | |
2020 | using casts or local vars. In some cases, remove unnecessary | |
2021 | casts. Formatting fixes, in some cases removing a large expression | |
2022 | from function args by using a local var. Replace CONST with const. | |
2023 | Modify variable types to avoid warings. Use casts to avoid | |
2024 | warnings when using negative numbers in unsigned expressions. | |
2025 | * aout-adobe.c: Likewise. | |
2026 | * aout-arm.c: Likewise. | |
2027 | * aout-cris.c: Likewise. | |
2028 | * aout-encap.c: Likewise. | |
2029 | * aout-ns32k.c: Likewise. | |
2030 | * aout-target.h: Likewise. | |
2031 | * aout-tic30.c: Likewise. | |
2032 | * aoutf1.h: Likewise. | |
2033 | * aoutx.h: Likewise. | |
2034 | * archive.c: Likewise. | |
2035 | * archures.c: Likewise. | |
2036 | * bfd-in.h: Likewise. | |
2037 | * bfd.c: Likewise. | |
2038 | * binary.c: Likewise. | |
2039 | * bout.c: Likewise. | |
2040 | * cache.c: Likewise. | |
2041 | * cisco-core.c: Likewise. | |
2042 | * coff-a29k.c: Likewise. | |
2043 | * coff-alpha.c: Likewise. | |
2044 | * coff-arm.c: Likewise. | |
2045 | * coff-h8300.c: Likewise. | |
2046 | * coff-h8500.c: Likewise. | |
2047 | * coff-i386.c: Likewise. | |
2048 | * coff-i860.c: Likewise. | |
2049 | * coff-i960.c: Likewise. | |
2050 | * coff-ia64.c: Likewise. | |
2051 | * coff-m68k.c: Likewise. | |
2052 | * coff-m88k.c: Likewise. | |
2053 | * coff-mcore.c: Likewise. | |
2054 | * coff-mips.c: Likewise. | |
2055 | * coff-ppc.c: Likewise. | |
2056 | * coff-rs6000.c: Likewise. | |
2057 | * coff-sh.c: Likewise. | |
2058 | * coff-sparc.c: Likewise. | |
2059 | * coff-stgo32.c: Likewise. | |
2060 | * coff-tic30.c: Likewise. | |
2061 | * coff-tic54x.c: Likewise. | |
2062 | * coff-tic80.c: Likewise. | |
2063 | * coff-w65.c: Likewise. | |
2064 | * coff-z8k.c: Likewise. | |
2065 | * coff64-rs6000.c: Likewise. | |
2066 | * coffcode.h: Likewise. | |
2067 | * coffgen.c: Likewise. | |
2068 | * cofflink.c: Likewise. | |
2069 | * coffswap.h: Likewise. | |
2070 | * corefile.c: Likewise. | |
2071 | * cpu-arc.c: Likewise. | |
2072 | * cpu-h8300.c: Likewise. | |
2073 | * cpu-h8500.c: Likewise. | |
2074 | * cpu-i960.c: Likewise. | |
2075 | * cpu-ia64-opc.c: Likewise. | |
2076 | * cpu-ns32k.c: Likewise. | |
2077 | * cpu-pdp11.c: Likewise. | |
2078 | * cpu-pj.c: Likewise. | |
2079 | * cpu-sh.c: Likewise. | |
2080 | * cpu-w65.c: Likewise. | |
2081 | * cpu-z8k.c: Likewise. | |
2082 | * dwarf1.c: Likewise. | |
2083 | * dwarf2.c: Likewise. | |
2084 | * ecoff.c: Likewise. | |
2085 | * ecofflink.c: Likewise. | |
2086 | * ecoffswap.h: Likewise. | |
2087 | * elf-bfd.h: Likewise. | |
2088 | * elf-hppa.h: Likewise. | |
2089 | * elf-m10200.c: Likewise. | |
2090 | * elf-m10300.c: Likewise. | |
2091 | * elf.c: Likewise. | |
2092 | * elf32-arc.c: Likewise. | |
2093 | * elf32-arm.h: Likewise. | |
2094 | * elf32-avr.c: Likewise. | |
2095 | * elf32-cris.c: Likewise. | |
2096 | * elf32-fr30.c: Likewise. | |
2097 | * elf32-gen.c: Likewise. | |
2098 | * elf32-h8300.c: Likewise. | |
2099 | * elf32-hppa.c: Likewise. | |
2100 | * elf32-i370.c: Likewise. | |
2101 | * elf32-i386.c: Likewise. | |
2102 | * elf32-i860.c: Likewise. | |
2103 | * elf32-m32r.c: Likewise. | |
2104 | * elf32-m68k.c: Likewise. | |
2105 | * elf32-mcore.c: Likewise. | |
2106 | * elf32-mips.c: Likewise. | |
2107 | * elf32-openrisc.c: Likewise. | |
2108 | * elf32-pj.c: Likewise. | |
2109 | * elf32-ppc.c: Likewise. | |
2110 | * elf32-s390.c: Likewise. | |
2111 | * elf32-sh-lin.c: Likewise. | |
2112 | * elf32-sh.c: Likewise. | |
2113 | * elf32-sparc.c: Likewise. | |
2114 | * elf32-v850.c: Likewise. | |
2115 | * elf64-alpha.c: Likewise. | |
2116 | * elf64-hppa.c: Likewise. | |
2117 | * elf64-mips.c: Likewise. | |
2118 | * elf64-ppc.c: Likewise. | |
2119 | * elf64-s390.c: Likewise. | |
2120 | * elf64-sparc.c: Likewise. | |
2121 | * elf64-x86-64.c: Likewise. | |
2122 | * elfarm-nabi.c: Likewise. | |
2123 | * elfcode.h: Likewise. | |
2124 | * elfcore.h: Likewise. | |
2125 | * elflink.c: Likewise. | |
2126 | * elflink.h: Likewise. | |
2127 | * elfxx-ia64.c: Likewise. | |
2128 | * elfxx-target.h: Likewise. | |
2129 | * format.c: Likewise. | |
2130 | * hash.c: Likewise. | |
2131 | * hp300hpux.c: Likewise. | |
2132 | * hppabsd-core.c: Likewise. | |
2133 | * hpux-core.c: Likewise. | |
2134 | * i386aout.c: Likewise. | |
2135 | * i386dynix.c: Likewise. | |
2136 | * i386linux.c: Likewise. | |
2137 | * i386lynx.c: Likewise. | |
2138 | * i386mach3.c: Likewise. | |
2139 | * i386msdos.c: Likewise. | |
2140 | * i386os9k.c: Likewise. | |
2141 | * ieee.c: Likewise. | |
2142 | * ihex.c: Likewise. | |
2143 | * irix-core.c: Likewise. | |
2144 | * libaout.h: Likewise. | |
2145 | * libbfd-in.h: Likewise. | |
2146 | * libbfd.c: Likewise. | |
2147 | * libcoff-in.h: Likewise. | |
2148 | * libecoff.h: Likewise. | |
2149 | * libieee.h: Likewise. | |
2150 | * libnlm.h: Likewise. | |
2151 | * libpei.h: Likewise. | |
2152 | * libxcoff.h: Likewise. | |
2153 | * linker.c: Likewise. | |
2154 | * lynx-core.c: Likewise. | |
2155 | * m68klinux.c: Likewise. | |
2156 | * merge.c: Likewise. | |
2157 | * mipsbsd.c: Likewise. | |
2158 | * netbsd-core.c: Likewise. | |
2159 | * nlm.c: Likewise. | |
2160 | * nlm32-alpha.c: Likewise. | |
2161 | * nlm32-i386.c: Likewise. | |
2162 | * nlm32-ppc.c: Likewise. | |
2163 | * nlm32-sparc.c: Likewise. | |
2164 | * nlmcode.h: Likewise. | |
2165 | * nlmswap.h: Likewise. | |
2166 | * ns32k.h: Likewise. | |
2167 | * oasys.c: Likewise. | |
2168 | * opncls.c: Likewise. | |
2169 | * osf-core.c: Likewise. | |
2170 | * pc532-mach.c: Likewise. | |
2171 | * pdp11.c: Likewise. | |
2172 | * pe-mips.c: Likewise. | |
2173 | * peXXigen.c: Likewise. | |
2174 | * peicode.h: Likewise. | |
2175 | * ppcboot.c: Likewise. | |
2176 | * ptrace-core.c: Likewise. | |
2177 | * reloc.c: Likewise. | |
2178 | * reloc16.c: Likewise. | |
2179 | * riscix.c: Likewise. | |
2180 | * rs6000-core.c: Likewise. | |
2181 | * sco5-core.c: Likewise. | |
2182 | * section.c: Likewise. | |
2183 | * som.c: Likewise. | |
2184 | * sparclinux.c: Likewise. | |
2185 | * sparclynx.c: Likewise. | |
2186 | * srec.c: Likewise. | |
2187 | * stabs.c: Likewise. | |
2188 | * sunos.c: Likewise. | |
2189 | * syms.c: Likewise. | |
2190 | * targets.c: Likewise. | |
2191 | * tekhex.c: Likewise. | |
2192 | * trad-core.c: Likewise. | |
2193 | * versados.c: Likewise. | |
2194 | * vms-gsd.c: Likewise. | |
2195 | * vms-hdr.c: Likewise. | |
2196 | * vms-misc.c: Likewise. | |
2197 | * vms-tir.c: Likewise. | |
2198 | * vms.c: Likewise. | |
2199 | * vms.h: Likewise. | |
2200 | * xcofflink.c: Likewise. | |
2201 | * bfd-in2.h: Regenerate. | |
2202 | * libbfd.h: Regenerate. | |
2203 | * libcoff.h: Regenerate. | |
2204 | ||
2205 | * bfd.c (struct _bfd): Make "where" and "origin" unsigned. | |
2206 | * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma. | |
2207 | (ufile_ptr): Define. | |
2208 | (bfd_tell): Return a ufile_ptr. | |
2209 | * libbfd.c (bfd_tell): Likewise. | |
2210 | (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error | |
2211 | unnecessarily. | |
2212 | * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0. | |
2213 | * aoutf1.h: Likewise. | |
2214 | * som.c: Likewise. | |
2215 | * cache.c (bfd_cache_lookup_worker): Guard against abfd->where | |
2216 | larger than unsigned long can represent. | |
2217 | ||
2218 | * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if | |
2219 | size overflows size_t. | |
2220 | (bfd_realloc): Likewise. | |
2221 | (bfd_zmalloc): Likewise. | |
2222 | * opncls.c (bfd_alloc): Likewise. | |
2223 | (bfd_zalloc): Likewise. | |
2224 | * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update. | |
2225 | (bfd_alloc, bfd_zalloc): Update. | |
2226 | ||
2227 | * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than | |
2228 | 8 bits. | |
2229 | (bfd_get_signed_8): Likewise. | |
2230 | (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8, | |
2231 | H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8, | |
2232 | H_GET_64, H_GET_32, H_GET_16, H_GET_8, | |
2233 | H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use. | |
2234 | * libaout.h: Likewise define and use here. | |
2235 | * aout-adobe.c: Use H_GET_* and H_PUT_* macros. | |
2236 | * aout-arm.c: Likewise. | |
2237 | * aout-encap.c: Likewise. | |
2238 | * aout-ns32k.c: Likewise. | |
2239 | * aout-tic30.c: Likewise. | |
2240 | * aoutf1.h: Likewise. | |
2241 | * aoutx.h: Likewise. | |
2242 | * bout.c: Likewise. | |
2243 | * coff-alpha.c: Likewise. | |
2244 | * coff-h8300.c: Likewise. | |
2245 | * coff-h8500.c: Likewise. | |
2246 | * coff-i960.c: Likewise. | |
2247 | * coff-ia64.c: Likewise. | |
2248 | * coff-m88k.c: Likewise. | |
2249 | * coff-mips.c: Likewise. | |
2250 | * coff-ppc.c: Likewise. | |
2251 | * coff-rs6000.c: Likewise. | |
2252 | * coff-sh.c: Likewise. | |
2253 | * coff-sparc.c: Likewise. | |
2254 | * coff-stgo32.c: Likewise. | |
2255 | * coff-tic30.c: Likewise. | |
2256 | * coff-tic80.c: Likewise. | |
2257 | * coff-w65.c: Likewise. | |
2258 | * coff-z8k.c: Likewise. | |
2259 | * coff64-rs6000.c: Likewise. | |
2260 | * coffgen.c: Likewise. | |
2261 | * cofflink.c: Likewise. | |
2262 | * coffswap.h: Likewise. | |
2263 | * ecoff.c: Likewise. | |
2264 | * ecoffswap.h: Likewise. | |
2265 | * elf.c: Likewise. | |
2266 | * elf32-mips.c: Likewise. | |
2267 | * elf64-mips.c: Likewise. | |
2268 | * hp300hpux.c: Likewise. | |
2269 | * i386dynix.c: Likewise. | |
2270 | * i386lynx.c: Likewise. | |
2271 | * i386msdos.c: Likewise. | |
2272 | * i386os9k.c: Likewise. | |
2273 | * libpei.h: Likewise. | |
2274 | * nlm32-alpha.c: Likewise. | |
2275 | * nlm32-i386.c: Likewise. | |
2276 | * nlm32-ppc.c: Likewise. | |
2277 | * nlmcode.h: Likewise. | |
2278 | * nlmswap.h: Likewise. | |
2279 | * oasys.c: Likewise. | |
2280 | * pdp11.c: Likewise. | |
2281 | * pe-mips.c: Likewise. | |
2282 | * peXXigen.c: Likewise. | |
2283 | * peicode.h: Likewise. | |
2284 | * riscix.c: Likewise. | |
2285 | * sunos.c: Likewise. | |
2286 | * xcofflink.c: Likewise. | |
2287 | * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word): | |
2288 | Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD. | |
2289 | * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use | |
2290 | equivalent H_PUT_* macro instead. | |
2291 | (GETWORD, GETHALF, GETBYTE): Similarly. | |
2292 | * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise. | |
2293 | (GETWORD, GETHALF, GETBYTE): Likewise. | |
2294 | * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise. | |
2295 | ||
2296 | * bfd-in.h (struct orl): Change "pos" to a union. | |
2297 | * archive.c (_bfd_compute_and_write_armap): Use it instead of casts. | |
2298 | (bsd_write_armap): Here too. | |
2299 | (coff_write_armap): And here. | |
2300 | * coff-rs6000.c (xcoff_write_armap_old): And here. | |
2301 | (xcoff_write_one_armap_big): And here. | |
2302 | (xcoff_write_armap_big): And here. | |
2303 | * ecoff.c (_bfd_ecoff_write_armap): And here. | |
2304 | * elf64-mips.c (mips_elf64_write_armap): And here. | |
2305 | ||
2306 | * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum. | |
2307 | * elf-m10300.c (elf_mn10300_mach): Return an unsigned long. | |
2308 | * elf32-h8300.c (elf32_h8_mach): Likewise. | |
2309 | * elf32-mips.c (elf_mips_mach): Likewise. | |
2310 | * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise. | |
2311 | ||
2312 | * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release | |
2313 | calls. | |
2314 | (aix386_core_vec): Typo fix. | |
2315 | ||
2316 | * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR | |
2317 | etc. to avoid redefined macro warning. | |
2318 | (MY(put_reloc)): Use bfd_vma for "value" rather than long. | |
2319 | (MY(fix_pcrel_26)): Likewise. | |
2320 | * aout-ns32k.c (MY(put_reloc)): Likewise. | |
2321 | * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend. | |
2322 | * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise. | |
2323 | * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset. | |
2324 | ||
2325 | * aout-encap.c: Include "file", not <file> for binutils headers. | |
2326 | (encap_object_p): Half baked attempt to fix compile errors in | |
2327 | code dealing with "magic". | |
2328 | ||
2329 | * aout-ns32k.c: Include "file", not <file> for binutils headers. | |
2330 | (_bfd_ns32k_relocate_contents): get_data and put_data manipulate | |
2331 | bfd_vma's rather than longs. | |
2332 | * cpu-ns32k.c (ns32k_sign_extend): Delete. | |
2333 | (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset. | |
2334 | (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values, | |
2335 | remove case 3. | |
2336 | (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset. | |
2337 | Use unsigned comparisons. | |
2338 | (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values. | |
2339 | (do_ns32k_reloc): get_data and put_data operate on bfd_vma's. | |
2340 | (_bfd_do_ns32k_reloc_contents): Likewise. | |
2341 | * ns32k.h (_bfd_ns32k_get_displacement): Update prototype. | |
2342 | (_bfd_ns32k_get_immediate): Likewise. | |
2343 | (_bfd_ns32k_put_displacement): Likewise. | |
2344 | (_bfd_ns32k_put_immediate): Likewise. | |
2345 | (bfd_reloc_status_type): Likewise. | |
2346 | ||
2347 | * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon' | |
2348 | to avoid shadowing. | |
2349 | * pdp11.c (NAME(aout,find_nearest_line)): Likewise. | |
2350 | * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value". | |
2351 | * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to | |
2352 | avoid shadowing. | |
2353 | (record_toc): Use a bfd_signed_vma for our_toc_offset. | |
2354 | * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing. | |
2355 | * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid | |
2356 | shadow warning. | |
2357 | (_bfd_elfcore_strndup): Likewise for "dup". | |
2358 | * elf32-cris.c (cris_elf_relocate_section): "symname" instead of | |
2359 | "name" to avoid shadowing. | |
2360 | * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate | |
2361 | definition of "off". | |
2362 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
2363 | * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate | |
2364 | definition of "s". | |
2365 | (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate | |
2366 | "secpp". | |
2367 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx" | |
2368 | to avoid shadowing. | |
2369 | * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink" | |
2370 | to avoid shadowing. | |
2371 | (elf_link_input_bfd): Likewise. | |
2372 | (elf_bfd_final_link): Remove duplicate innermost "off" var. | |
2373 | * oasys.c (oasys_write_data): Rename innermost "p" to "sym". | |
2374 | * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to | |
2375 | "input_section". | |
2376 | * som.c (som_prep_for_fixups): Rename inner "i" to "j". | |
2377 | * sunos.c (sunos_add_dynamic_symbols): Localise "s" var. | |
2378 | (sunos_write_dynamic_symbol): Remove unused vars. | |
2379 | * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate | |
2380 | innermost "directory_name" and "file_name" vars. | |
2381 | * tekhex.c (first_phase): Rename local var "type" to "stype". | |
2382 | (tekhex_write_object_contents): Rename innermost "s" to "sym". | |
2383 | * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize", | |
2384 | doing comparison at caller. | |
2385 | (vms_esecflag_by_name): Likewise. | |
2386 | * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1". | |
2387 | * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o". | |
2388 | (xcoff_write_global_symbol): Rename "p" param to "inf". | |
2389 | ||
2390 | * cisco-core.c: Add missing prototypes. | |
2391 | (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED. | |
2392 | (cisco_core_file_failing_signal): Likewise. | |
2393 | (cisco_core_file_matches_executable_p): Likewise. | |
2394 | * hpux-core.c (hpux_core_core_file_failing_signal): Likewise. | |
2395 | * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise. | |
2396 | * osf-core.c (osf_core_core_file_matches_executable_p): Likewise. | |
2397 | * sco5-core.c (sco5_core_file_matches_executable_p): Likewise. | |
2398 | ||
2399 | * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for | |
2400 | thumb_glue_size and arm_glue_size. | |
2401 | * elf32-arm.h (elf32_arm_link_hash_table): Likewise here. | |
2402 | ||
2403 | * coff64-rs6000.c: Group prototypes together. | |
2404 | ||
2405 | * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED. | |
2406 | (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type. | |
2407 | ||
2408 | * cpu-arc.c: Add missing prototypes. | |
2409 | * cpu-h8500.c: Likewise. | |
2410 | * cpu-i960.c: Likewise. | |
2411 | * cpu-pj.c: Likewise. | |
2412 | * cpu-sh.c: Likewise. | |
2413 | * cpu-w65.c: Likewise. | |
2414 | * cpu-z8k.c: Likewise. | |
2415 | * elf32-fr30.c: Likewise. | |
2416 | * elf32-h8300.c: Likewise. | |
2417 | * elf32-i370.c: Likewise. | |
2418 | * hpux-core.c: Likewise. | |
2419 | * versados.c: Likewise. | |
2420 | ||
2421 | * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare. | |
2422 | * cpu-h8500.c: Likewise. | |
2423 | * cpu-i960.c: Likewise. | |
2424 | * cpu-z8k.c: Likewise. | |
2425 | ||
2426 | * cpu-ia64-opc.c: Correct comment. | |
2427 | ||
2428 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var. | |
2429 | ||
2430 | * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs | |
2431 | to unsigned. | |
2432 | (bfd_elf32_write_out_phdrs): Likewise. | |
2433 | (bfd_elf64_write_out_phdrs): Likewise. | |
2434 | (elf_linker_section_pointers): Change addend to bfd_vma. | |
2435 | (_bfd_elf_find_pointer_linker_section): Likewise. | |
2436 | (_bfd_elfcore_make_pseudosection): Change size param to size_t and | |
2437 | filepos to unsigned file_ptr. | |
2438 | (_bfd_elfcore_strndup): Change max param to size_t. | |
2439 | * elf.c (_bfd_elfcore_make_pseudosection): As above. | |
2440 | (_bfd_elfcore_strndup): Likewise. | |
2441 | (_bfd_elf_find_pointer_linker_section): Likewise. | |
2442 | ||
2443 | * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change | |
2444 | insn and sym_value to ints. | |
2445 | ||
2446 | * elf.c (elf_read): Make "offset" param a file_ptr, "size" a | |
2447 | bfd_size_type. | |
2448 | (elfcore_read_notes): Likewise. | |
2449 | ||
2450 | * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags | |
2451 | param from unsigned char to int. | |
2452 | (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately | |
2453 | for info_to_howto call. | |
2454 | (add_dynamic_entry): Define macro. | |
2455 | (elf32_arm_size_dynamic_sections): Use add_dynamic_entry. | |
2456 | ||
2457 | * elf32-cris.c (add_dynamic_entry): Define macro. | |
2458 | (elf_cris_size_dynamic_sections): Use add_dynamic_entry. | |
2459 | ||
2460 | * elf32-h8300.c (elf32_h8_final_write_processing): Make static. | |
2461 | (elf32_h8_object_p): Likewise. | |
2462 | (elf32_h8_merge_private_bfd_data): Likewise. | |
2463 | (elf32_h8_relax_section): Cast gap to int so signed comparisons work. | |
2464 | ||
2465 | * elf32-hppa.c (add_dynamic_entry): Define macro. | |
2466 | (elf32_hppa_size_dynamic_sections): Use it. | |
2467 | * elf32-i370.c (add_dynamic_entry): Define macro. | |
2468 | (i370_elf_size_dynamic_sections): Use it. | |
2469 | (i370_noop): Make static. | |
2470 | * elf32-i386.c (add_dynamic_entry): Define macro. | |
2471 | (elf_i386_size_dynamic_sections): Use it. | |
2472 | * elf32-m68k.c (add_dynamic_entry): Define macro. | |
2473 | (elf_m68k_size_dynamic_sections): Use it. | |
2474 | * elf32-ppc.c (add_dynamic_entry): Define macro. | |
2475 | (ppc_elf_size_dynamic_sections): Use it. | |
2476 | * elf32-s390.c (add_dynamic_entry): Define macro. | |
2477 | (elf_s390_size_dynamic_sections): Use it. | |
2478 | * elf64-alpha.c (add_dynamic_entry): Define macro. | |
2479 | (elf64_alpha_size_dynamic_sections): Use it. | |
2480 | * elf64-hppa.c (add_dynamic_entry): Define macro. | |
2481 | (elf64_hppa_size_dynamic_sections): Use it. | |
2482 | * elf64-ppc.c (add_dynamic_entry): Define macro. | |
2483 | (ppc64_elf_size_dynamic_sections): Use it. | |
2484 | * elf64-s390.c (add_dynamic_entry): Define macro. | |
2485 | (elf_s390_size_dynamic_sections): Use it. | |
2486 | * elf64-sparc.c (add_dynamic_entry): Define macro. | |
2487 | (sparc64_elf_size_dynamic_sections): Use it. | |
2488 | * elf64-x86-64.c (add_dynamic_entry): Define macro. | |
2489 | (elf64_x86_64_size_dynamic_sections): Use it. | |
2490 | * elfxx-ia64.c (add_dynamic_entry): Define macro. | |
2491 | (elfNN_ia64_size_dynamic_sections): Use it. | |
2492 | ||
2493 | * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning. | |
2494 | (v850_elf_perform_relocation): Make "r_type" param unsigned. | |
2495 | ||
2496 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return | |
2497 | false if the first malloc fails rather than going via error_return. | |
2498 | ||
2499 | * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for | |
2500 | "index" param. | |
2501 | (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too. | |
2502 | ||
2503 | * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message. | |
2504 | ||
2505 | * elfxx-ia64.c (global_sym_index): Return a long. | |
2506 | ||
2507 | * ieee.c (get_symbol): Use int rather than char param. | |
2508 | (ieee_slurp_sections): Move "section" var to inner blocks. | |
2509 | (copy_expression): Don't init "value" to zero or worry about | |
2510 | clearing to zero after using. | |
2511 | (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid | |
2512 | shadowing. | |
2513 | ||
2514 | * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an | |
2515 | unsigned int. | |
2516 | ||
2517 | * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning. | |
2518 | (bfd_write_bigendian_4byte_int): Pass an unsigned int value param. | |
2519 | ||
2520 | * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param. | |
2521 | ||
2522 | * pc532-mach.c (MYNSX): Delete. | |
2523 | (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX. | |
2524 | (write_object_contents): Correct prototype. | |
2525 | ||
2526 | * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather | |
2527 | than unsigned short. | |
2528 | ||
2529 | * section.c (bfd_set_section_contents): Remove redundant | |
2530 | "offset < 0" test. Check that "count" doesn't overflow size_t. | |
2531 | (bfd_get_section_contents): Likewise. | |
2532 | ||
2533 | * som.c (som_fixup_formats): Add missing braces. | |
2534 | (som_reloc_addend): Pass a bfd_vma for "addend". | |
2535 | ||
2536 | * srec.c (srec_write_record): Pass "type" as an unsigned int. | |
2537 | (srec_write_symbols): Remove an unnecessary var. | |
2538 | ||
2539 | * targets.c (_bfd_target_vector): Sort entries. Sort externs | |
2540 | to match. | |
2541 | * configure.in: Sort to match. Bump version number. | |
2542 | * configure: Regenerate. | |
2543 | ||
2544 | * tekhex.c (move_section_contents): Assert offset == 0. | |
2545 | ||
2546 | * versados.c (new_symbol_string): Constify arg. | |
2547 | (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section. | |
2548 | (versados_get_symbol_info): Make static. | |
2549 | (versados_print_symbol): Likewise. | |
2550 | (versados_get_reloc_upper_bound): Likewise. | |
2551 | (versados_canonicalize_reloc): Likewise. | |
2552 | ||
417412a2 NC |
2553 | 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com> |
2554 | ||
2555 | * elflink.h (elf_link_input_bfd): Fix typo in error message. | |
2556 | ||
bb731fb6 L |
2557 | 2001-09-17 H.J. Lu <hjl@gnu.org> |
2558 | ||
2559 | * dwarf1.c (parse_die): Take a new arg for the end of the | |
2560 | section. Return false if die is beyond the section. | |
2561 | (parse_functions_in_unit): Pass the end of the section to | |
2562 | parse_die (). | |
2563 | (_bfd_dwarf1_find_nearest_line): Likewise. | |
2564 | ||
841989d6 NC |
2565 | 2001-09-14 Michael Rauch <mrauch@netbsd.org> |
2566 | ||
2567 | * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32 | |
2568 | just like R_SPARC_32. | |
2569 | ||
056a1d49 NC |
2570 | 2001-09-14 Kevin Lo <kevlo@openbsd.org> |
2571 | ||
2572 | * configure.bfd: Add arm-openbsd target. | |
2573 | ||
4008bd9b TS |
2574 | 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
2575 | ||
2576 | * config.bfd: Change machine triplets from mips*el*-* to mips*el-*. | |
2577 | Add support for mips64. | |
2578 | ||
c11cc227 AO |
2579 | 2001-09-13 Alexandre Oliva <aoliva@redhat.com> |
2580 | ||
2581 | * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD. | |
2582 | ||
aa4f99bb AO |
2583 | 2001-09-12 Alexandre Oliva <aoliva@redhat.com> |
2584 | ||
2585 | * elf.c (prep_headers): Get the machine code from the elf | |
2586 | backend data. | |
2587 | * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200. | |
2588 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200. | |
2589 | * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300. | |
2590 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300. | |
2591 | * elf-arc.c (arc_elf_final_write_processing): Don't override | |
2592 | e_machine, it's now properly set in prep_headers. | |
2593 | * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and | |
2594 | EM_AVR_OLD. | |
2595 | (ELF_MACHINE_ALT1): Define to EM_AVR_OLD. | |
2596 | * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V. | |
2597 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V. | |
2598 | * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V. | |
2599 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V. | |
2600 | * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30. | |
2601 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30. | |
2602 | * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R. | |
2603 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R. | |
2604 | * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD. | |
2605 | * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850. | |
2606 | (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850. | |
2607 | ||
204692d7 RH |
2608 | 2001-09-11 Richard Henderson <rth@redhat.com> |
2609 | ||
2610 | * elf64-alpha.c (elf64_alpha_section_flags): New. | |
2611 | (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL. | |
2612 | ||
f94952df RH |
2613 | 2001-09-11 Richard Henderson <rth@redhat.com> |
2614 | ||
2615 | * elf64-alpha.c (elf64_alpha_relocate_section): Do not | |
2616 | apply HINT relocations against dynamic symbols. | |
2617 | ||
146f1a87 L |
2618 | 2001-09-11 H.J. Lu <hjl@gnu.org> |
2619 | ||
f94952df | 2620 | * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM. |
146f1a87 | 2621 | |
1cd6895c RH |
2622 | 2001-09-09 Richard Henderson <rth@redhat.com> |
2623 | ||
96e2734b RH |
2624 | * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code. |
2625 | ||
1cd6895c RH |
2626 | * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp |
2627 | following a call to a near function. | |
2628 | ||
f16fbd61 RH |
2629 | 2001-09-08 Richard Henderson <rth@redhat.com> |
2630 | ||
2631 | * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail | |
2632 | relocation errors. Fail gp-relative relocations against | |
2633 | dynamic symbols. | |
2634 | ||
56882138 AM |
2635 | 2001-09-08 Alan Modra <amodra@bigpond.net.au> |
2636 | ||
2637 | * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR | |
2638 | as well as DEF_DYNAMIC in test for avoided copy relocs. | |
2639 | (allocate_plt_and_got_and_discard_relocs): Likewise. | |
2640 | * elf32-hppa.c (elf_i386_relocate_section): Likewise. | |
2641 | (allocate_plt_and_got_and_discard_relocs): Likewise. | |
2642 | ||
cb56d3d3 TS |
2643 | 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
2644 | ||
2645 | * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling | |
2646 | of R_MIPS_PC16. | |
56882138 AM |
2647 | |
2648 | 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
2649 | ||
2650 | * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO | |
2651 | definitions. | |
2652 | (mips_elf64_howto_table_rel): Likewise. | |
2653 | ||
2654 | 2001-09-05 Tom Rix <trix@redhat.com> | |
2655 | ||
2656 | * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO | |
2657 | and syscall symbols. | |
2658 | (write_global_symbol) : Same. | |
2659 | (bfd_xcoff_export_symbol): Remove unused syscall param. | |
2660 | * libxcoff.h: Change prototype of bfd_xcoff_export symbol and | |
2661 | bfd_xcoff_import_symbol. | |
2662 | * bfd-in.h: Same. | |
2663 | * bfd-in2.h : Regenerate. | |
2664 | ||
2665 | 2001-09-04 Richard Henderson <rth@redhat.com> | |
2666 | ||
2667 | * elf64-alpha.c (SKIP_HOWTO): New. | |
2668 | (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs. | |
2669 | Fix sizes of 16-bit mem format relocs. | |
2670 | (elf64_alpha_reloc_map): Update to match. | |
2671 | (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate. | |
2672 | (elf64_alpha_relax_without_lituse): Likewise. | |
2673 | (elf64_alpha_check_relocs): Handle GPREL16. | |
2674 | (elf64_alpha_relocate_section): Likewise. | |
2675 | * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove. | |
2676 | (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New. | |
2677 | * bfd-in2.h, libbfd.h: Rebuild. | |
2678 | ||
2679 | 2001-09-04 Jeff Law <law@redhat.com> | |
2680 | ||
2681 | * elf32-h8300.c (elf32_h8_relax_section): New function. | |
2682 | (elf32_h8_relax_delete_bytes): Likewise. | |
2683 | (elf32_h8_symbol_address_p): Likewise. | |
2684 | (elf32_h8_get_relocated_section_contents): Likewise. | |
2685 | (bfd_elf32_bfd_relax_section): Define. | |
2686 | (bfd_elf32_bfd_get_relocated_section_contents): Likewise. | |
2687 | ||
2688 | * elf32-h8300.c (special): New function. | |
2689 | (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in | |
2690 | all relocations. | |
2691 | (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit | |
2692 | relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8. | |
2693 | Fix minor problems with 8bit and 16bit PC relative relocations. | |
2694 | ||
2695 | 2001-09-01 Andreas Jaeger <aj@suse.de> | |
2696 | ||
2697 | * vms-tir.c: Add missing prototypes. | |
2698 | * vms-hdr.c: Likewise. | |
2699 | * vms-gsd.c: Likewise. | |
2700 | * vms-misc.c: Likewise. | |
2701 | ||
2702 | 2001-08-31 H.J. Lu <hjl@gnu.org> | |
2703 | ||
2704 | * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename | |
2705 | with bad relocation. | |
2706 | ||
2707 | 2001-08-31 Eric Christopher <echristo@redhat.com> | |
2708 | Jason Eckhardt <jle@redhat.com> | |
2709 | ||
2710 | * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32, | |
2711 | mips32_4k and mips64. | |
2712 | * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k, | |
2713 | bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64. | |
2714 | * bfd/cpu-mips.c: Ditto. | |
2715 | * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto. | |
2716 | * bfd/bfd-in2.h: Regenerate. | |
2717 | ||
2718 | 2001-08-31 Jakub Jelinek <jakub@redhat.com> | |
2719 | ||
2720 | * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory | |
2721 | value into R_ALPHA_RELATIVE's addend. | |
2722 | (elf64_alpha_finish_dynamic_symbol): Likewise. | |
2723 | ||
2724 | 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com> | |
2725 | ||
2726 | * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift | |
2727 | recomputed addend during relocatable link if not USE_REL. | |
2728 | ||
2729 | * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one | |
2730 | error. | |
2731 | ||
2732 | 2001-08-30 H.J. Lu <hjl@gnu.org> | |
2733 | ||
2734 | * elf32-mips.c (mips_elf_calculate_relocation): Revert the last | |
2735 | 2 changes. | |
2736 | (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic | |
2737 | relocations for weak definitions. | |
2738 | ||
2739 | 2001-08-30 H.J. Lu <hjl@gnu.org> | |
2740 | ||
2741 | * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo. | |
2742 | (BFD32_BACKENDS_CFILES): Add elf32-h8300.c. | |
2743 | * Makefile.in: Rebuild. | |
2744 | ||
2745 | 2001-08-30 H.J. Lu <hjl@gnu.org> | |
2746 | ||
2747 | * elf32-mips.c (mips_elf_calculate_relocation): Don't create | |
2748 | dynamic relocation for undefined weak symbols when creating | |
2749 | executables. Check h->root.root.type, instead of h->root.type. | |
2750 | ||
2751 | 2001-08-29 Joel Sherrill <joel@OARcorp.com> | |
2752 | ||
2753 | * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change | |
2754 | default from coff to elf. | |
2755 | ||
2756 | 2001-08-29 Jeff Law <law@redhat.com> | |
2757 | ||
2758 | * elf32-h8300.c (h8_elf_howto_table): Add new PC relative | |
2759 | relocations. | |
2760 | (h8_reloc_map): Similarly. | |
2761 | (elf32_h8_final_link_relocate): Remove incorrect overflow tests. | |
2762 | Add support for PC relative relocations. | |
2763 | ||
2764 | * elf32-h8300.c: Put all prototypes together. | |
2765 | (elf32_h8_info_to_howto): Parameter elf_reloc is used. | |
2766 | (elf32_h8_final_link_relocate): New function for linker. | |
2767 | (elf32_h8_relocate_section): Similarly. | |
2768 | (elf_backend_relocate_section): Define. | |
2769 | ||
2770 | * cpu-h8300.c (h8300_scan, compatible): Prototype. | |
2771 | (h8300_scan): Handle architecture:machine encodings typically | |
2772 | found in linker scripts. | |
2773 | * elf.c (prep_headers): Do not try to do H8 machine recognition | |
2774 | here. | |
2775 | * elf32-h8300.c: Add some missing prototypes. | |
2776 | (elf32_h8_mach, elf32_h8_final_write_processing): New functions. | |
2777 | (elf32_h8_object_p): Similarly. | |
2778 | ||
2779 | 2001-08-29 Tom Rix <trix@redhat.com> | |
2780 | ||
2781 | * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that | |
2782 | does not follow a XTY_SD. | |
2783 | ||
2784 | 2001-08-29 Alan Modra <amodra@bigpond.net.au> | |
2785 | ||
2786 | * targmatch.sed: Delete case statements. | |
2787 | * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for | |
2788 | aix4.3 and above. | |
2789 | ||
979f4a38 | 2790 | 2001-08-29 J"orn Rennecke <amylaar@redhat.com> |
56882138 AM |
2791 | |
2792 | * Makefile.am (elf32-h8300.lo): New target. | |
2793 | * config.bfd (h8300*-*-elf): New case. | |
2794 | * configure.in (bfd_elf32_h8300_vec): New case. | |
2795 | * elf.c (prep_headers): Add case for bfd_arch_h8300. | |
2796 | * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation. | |
2797 | (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise. | |
2798 | (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise. | |
2799 | * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration. | |
2800 | * elf32-h8300.c: New file. | |
2801 | * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated. | |
2802 | ||
2803 | 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com> | |
2804 | ||
2805 | * sparclynx.c: Add missing prototypes. | |
2806 | * coff-mcore.c: Add missing prototypes. | |
2807 | * elf32-pj.c: Add missing prototypes. | |
2808 | * nlm32-sparc.c: Add missing prototypes. | |
2809 | * oasys.c: Add missing prototypes. | |
2810 | * pdp11.c: Add missing prototypes. | |
2811 | * pe-mips.c: Add missing prototypes. | |
2812 | * riscix.c: Add missing prototypes. | |
2813 | ||
2814 | 2001-08-27 Daniel Jacobowitz <drow@mvista.com> | |
2815 | ||
2816 | * elf32-i386.c: Add missing prototypes. | |
2817 | * elf32-ppc.c: Likewise. | |
2818 | * elf32-sh-lin.c: Likewise. | |
2819 | * elfarm-nabi.c: Likewise. | |
2820 | ||
2821 | 2001-08-27 Daniel Jacobowitz <drow@mvista.com> | |
2822 | ||
2823 | * elf32-i386.c (elf_i386_grok_prstatus): New function. | |
2824 | (elf_i386_grok_psinfo): New function. | |
2825 | (elf_backend_grok_prstatus): Define. | |
2826 | (elf_backend_grok_psinfo): Likewise. | |
2827 | * elf32-ppc.c (ppc_elf_grok_prstatus): New function. | |
2828 | (ppc_elf_grok_psinfo): New function. | |
2829 | (elf_backend_grok_prstatus): Define. | |
2830 | (elf_backend_grok_psinfo): Likewise. | |
2831 | * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function. | |
2832 | (elf32_shlin_grok_psinfo): New function. | |
2833 | (elf_backend_grok_prstatus): Define. | |
2834 | (elf_backend_grok_psinfo): Likewise. | |
2835 | * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function. | |
2836 | (elf32_arm_nabi_grok_psinfo): New function. | |
2837 | (elf_backend_grok_prstatus): Define. | |
2838 | (elf_backend_grok_psinfo): Likewise. | |
2839 | ||
2840 | 2001-08-27 H.J. Lu <hjl@gnu.org> | |
2841 | ||
2842 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more | |
2843 | sanity check. | |
2844 | (mips_elf_calculate_relocation): Create dynamic relocation for | |
2845 | symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR | |
2846 | bit is not set. | |
2847 | ||
2848 | 2001-08-27 H.J. Lu <hjl@gnu.org> | |
2849 | ||
2850 | * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype. | |
2851 | (_bfd_mips_elf_copy_indirect_symbol): Likewise. | |
2852 | (_bfd_elf32_mips_grok_prstatus): Likewise. | |
2853 | (_bfd_elf32_mips_grok_psinfo): Likewise. | |
2854 | (_bfd_mips_elf_hide_symbol): Make it static and cast to | |
2855 | `struct mips_elf_link_hash_entry *'. | |
2856 | (_bfd_mips_elf_copy_indirect_symbol): Make it static. | |
2857 | ||
2858 | 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com> | |
2859 | ||
2860 | * mipsbsd.c: Add missing prototypes. | |
2861 | * hp300hpux.c: Add missing prototypes. | |
2862 | * i386aout.c: Add missing prototypes. | |
2863 | * i386lynx.c: Add missing prototypes. | |
2864 | * i386mach3.c: Add missing prototypes. | |
2865 | * i386msdos.c: Add missing prototypes. | |
2866 | * i386os9k.c: Add missing prototypes. | |
2867 | ||
2868 | 2001-08-27 Linus Nordberg <linus@swox.se> | |
2869 | Torbjorn Granlund <tege@swox.com> | |
2870 | Staffan Ulfberg <staffanu@swox.se> | |
2871 | Alan Modra <amodra@bigpond.net.au> | |
2872 | ||
2873 | * config.bfd: Add powerpc64 target. Add powerpc64 vectors to | |
2874 | targ64_selvecs for 32 bit powerpc targets. | |
2875 | * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo. | |
2876 | (BFD64_BACKENDS_CFILES): Add elf64-ppc.c. | |
2877 | Run "make dep-am". | |
2878 | * Makefile.in: Regenerate. | |
2879 | * configure.in: Add elf64_powerpc vecs. | |
2880 | * configure: Regenerate. | |
2881 | * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit. | |
2882 | * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target. | |
2883 | * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec. | |
2884 | * elf64-ppc.c: New file. | |
2885 | * reloc.c: Add powerpc64 relocs. | |
2886 | * libbfd.h: Regenerate. | |
2887 | * bfd-in2.h: Regenerate. | |
2888 | ||
2889 | 2001-08-27 Andreas Schwab <schwab@suse.de> | |
2890 | ||
2891 | * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the | |
2892 | reloc is against read-only section. | |
2893 | (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2894 | looking up section names for DT_TEXTREL. | |
2895 | (elf32_m68k_reloc_type_class): New function. | |
2896 | (elf_backend_reloc_type_class): Define. | |
2897 | ||
2898 | 2001-08-27 Andreas Jaeger <aj@suse.de> | |
2899 | ||
2900 | * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the | |
2901 | reloc is against read-only section. | |
2902 | (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2903 | looking up section names for DT_TEXTREL. | |
2904 | (elf_s390_reloc_type_class): New. | |
2905 | (elf_backend_reloc_type_class): Define. | |
2906 | ||
2907 | * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the | |
2908 | reloc is against read-only section. | |
2909 | (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2910 | looking up section names for DT_TEXTREL. | |
2911 | (elf_s390_reloc_type_class): New. | |
2912 | (elf_backend_reloc_type_class): Define. | |
2913 | ||
2914 | * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc | |
2915 | is against read-only section. | |
2916 | (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2917 | looking up section names for DT_TEXTREL. | |
2918 | (ppc_elf_reloc_type_class): New. | |
2919 | (elf_backend_reloc_type_class): Define. | |
2920 | ||
2921 | 2001-08-26 Andreas Jaeger <aj@suse.de> | |
2922 | ||
2923 | * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the | |
2924 | reloc is against read-only section. | |
2925 | (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2926 | looking up section names for DT_TEXTREL. | |
2927 | (elf_cris_reloc_type_class): New. | |
2928 | (elf_backend_reloc_type_class): Define. | |
2929 | ||
2930 | * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is | |
2931 | against read-only section. | |
2932 | (elf_backend_reloc_type_class): Define. | |
2933 | (sh_elf_reloc_type_class): New. | |
2934 | (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2935 | looking up section names for DT_TEXTREL. | |
2936 | ||
2937 | * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the | |
2938 | reloc is against read-only section. | |
2939 | (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
2940 | looking up section names for DT_TEXTREL. | |
2941 | (elf32_arm_reloc_type_class): New. | |
2942 | (elf_backend_reloc_type_class): Define. | |
2943 | ||
2944 | 2001-08-25 Andreas Jaeger <aj@suse.de> | |
2945 | ||
2946 | * oasys.c: Add missing prototypes. | |
2947 | ||
2948 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused | |
2949 | attribute for parameter. | |
2950 | * elf.c (_bfd_elf_reloc_type_class): Likewise. | |
2951 | ||
2952 | * versados.c (get_4): Make static. | |
2953 | (get_10): Make static. | |
2954 | Add missing prototypes. | |
2955 | (process_esd): Fix call to versados_new_symbol. | |
2956 | ||
2957 | 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com> | |
2958 | ||
2959 | * coff-a29k.c: Add missing prototypes. | |
2960 | * coff-apollo.c: Add missing prototypes. | |
2961 | * coff-arm.c: Add missing prototypes. | |
2962 | * coff-i860.c: Add missing prototypes. | |
2963 | * coff-rs6000.c: Add missing prototypes. | |
2964 | * coff-tic80.c: Add missing prototypes. | |
2965 | * elf-m10200.c: Add missing prototypes. | |
2966 | * elf-m10300.c: Add missing prototypes. | |
2967 | * elf32-arm.h: Add missing prototypes. | |
2968 | * elf32-d10v.c: Add missing prototypes. | |
2969 | * elf32-m32r.c: Add missing prototypes. | |
2970 | * elf32-mcore.c: Add missing prototypes. | |
2971 | * elf32-openrisc.c: Add missing prototypes. | |
2972 | * elf32-sh.c: Add missing prototypes. | |
2973 | * elf32-sparc.c: Add missing prototypes. | |
2974 | * elf32-v850.c: Add missing prototypes. | |
2975 | * elfarm-nabi.c: Add missing prototypes. | |
2976 | * elfarm-oabi.c: Add missing prototypes. | |
2977 | ||
2978 | 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
2979 | ||
2980 | * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for | |
2981 | E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64 | |
2982 | ||
2983 | 2001-08-24 H.J. Lu <hjl@gnu.org> | |
2984 | ||
2985 | * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF | |
2986 | hash structure. | |
2987 | ||
2988 | 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com> | |
2989 | ||
2990 | * elf-bfd.h (elf_hash_table): Revert definition. | |
2991 | (is_elf_hash_table): New macro. | |
2992 | * elflink.h (elf_link_add_object_symbols): Test | |
2993 | is_elf_hash_table before accessing ELF only fields in hash | |
2994 | structure. | |
2995 | (elf_link_create_dynamic_sections): Fail if not using an ELF | |
2996 | hash structure. | |
2997 | (elf_add_dynamic_entry): Fail if not using an ELF hash | |
2998 | structure. | |
2999 | (elf_link_record_local_dynamic_symbol): Fail if not using an | |
3000 | ELF hash structure. | |
3001 | (size_dynamic_sections): Fail if not using an ELF hash | |
3002 | structure. | |
3003 | (elf_adjust_dynamic_symbol): Fail if not using an ELF | |
3004 | hash structure. | |
3005 | (elf_bfd_final_link): Fail if not using an ELF hash | |
3006 | structure. | |
3007 | ||
3008 | 2001-08-24 H.J. Lu <hjl@gnu.org> | |
3009 | ||
3010 | * elf-bfd.h (elf_hash_table): Return NULL if the linker hash | |
3011 | table is not an ELF linker hash table. | |
3012 | ||
3013 | * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash | |
3014 | table type to bfd_link_elf_hash_table. | |
3015 | ||
3016 | * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert | |
3017 | the last change. | |
3018 | ||
3019 | * linker.c (_bfd_link_hash_table_init): Set the linker hash | |
3020 | table type to bfd_link_generic_hash_table. | |
3021 | ||
3022 | 2001-08-24 Alexandre Oliva <aoliva@redhat.com> | |
3023 | ||
3024 | * bfd.c (bfd_alt_mach_code): New function. | |
3025 | * bfd-in2.h: Rebuilt. | |
3026 | ||
3027 | 2001-08-24 Alexandre Oliva <aoliva@redhat.com> | |
3028 | ||
3029 | * elf-m10300.c (mn10300_elf_relocate_section): Test the right | |
3030 | `type' field in the hash entry when deciding whether to follow a | |
3031 | link. | |
3032 | ||
3033 | 2001-08-24 Jakub Jelinek <jakub@redhat.com> | |
3034 | ||
3035 | * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not | |
3036 | last. | |
3037 | (elf_link_sort_relocs): Adjust accordingly. | |
3038 | ||
3039 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag. | |
3040 | (elf64_alpha_check_relocs): Set it if section this reloc is against | |
3041 | is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against | |
3042 | read-only section. | |
3043 | (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation | |
3044 | is is against read-only section. | |
3045 | (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't | |
3046 | check section names. | |
3047 | (elf64_alpha_reloc_type_class): New. | |
3048 | (elf_backend_reloc_type_class): Define. | |
3049 | ||
3050 | 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
3051 | ||
3052 | * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca() | |
3053 | by bfd_malloc(). | |
3054 | ||
3055 | 2001-08-23 Andreas Jaeger <aj@suse.de> | |
3056 | ||
3057 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if | |
3058 | the reloc is against read-only section. | |
3059 | (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead | |
3060 | of looking up section names for DT_TEXTREL. | |
3061 | (elf64_x86_64_reloc_type_class): New. | |
3062 | (elf_backend_reloc_type_class): Define. | |
3063 | ||
3064 | 2001-08-23 H.J. Lu <hjl@gnu.org> | |
3065 | ||
3066 | * syms.c (bfd_print_symbol_vandf): Add abfd to arg. | |
3067 | * bfd-in2.h (bfd_print_symbol_vandf): Regenerated. | |
3068 | ||
3069 | * aoutx.h (NAME(aout,print_symbol)): Pass abfd to | |
3070 | bfd_print_symbol_vandf. | |
3071 | * coffgen.c (coff_print_symbol): Likewise. | |
3072 | * elf.c (bfd_elf_print_symbol): Likewise. | |
3073 | * ieee.c (ieee_print_symbol): Likewise. | |
3074 | * nlmcode.h (nlm_print_symbol): Likewise. | |
3075 | * oasys.c (oasys_print_symbol): Likewise. | |
3076 | * pdp11.c (NAME(aout,print_symbol)): Likewise. | |
3077 | * som.c (som_print_symbol): Likewise. | |
3078 | * srec.c (srec_print_symbol): Likewise. | |
3079 | * tekhex.c (tekhex_print_symbol): Likewise. | |
3080 | * versados.c (versados_print_symbol): Likewise. | |
3081 | * vms.c (vms_print_symbol): Likewise. | |
3082 | ||
3083 | * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma | |
3084 | with bfd_fprintf_vma. | |
3085 | (bfd_elf_print_symbol): Likewise. | |
3086 | * syms.c (bfd_print_symbol_vandf): Likewise. | |
3087 | ||
3088 | 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com> | |
3089 | ||
3090 | * aoutf1.h (sunos_write_object_contents): Silence compile time | |
3091 | warning. | |
3092 | * libaout.h (N_SET_DYNAMIC): Silence compile time warning. | |
3093 | ||
3094 | * bout.c: Add missing function prototypes. Fix formatting. | |
3095 | * coff-z8k.c: Add missing function prototypes. Fix formatting. | |
3096 | * coff-w65.c: Add missing function prototypes. Fix formatting. | |
3097 | * coff-h8500.c: Add missing function prototypes. Fix formatting. | |
3098 | * coff-h8300.c: Add missing function prototypes. Fix formatting. | |
3099 | * coff-tic54x.c: Add missing function prototypes. Fix formatting. | |
3100 | * coff-tic30.c: Add missing function prototypes. Fix formatting. | |
3101 | * coff-m68k.c: Add missing function prototypes. Fix formatting. | |
3102 | * coff-rs6000.c: Add missing function prototypes. Fix formatting. | |
3103 | * coff-sh.c: Add missing function prototypes. Fix formatting. | |
3104 | ||
3105 | 2001-08-23 Jakub Jelinek <jakub@redhat.com> | |
3106 | ||
3107 | * elf-bfd.h (enum elf_reloc_type_class): New. | |
3108 | (struct elf_backend_data): Add elf_backend_reloc_type_class. | |
3109 | (_bfd_elf_reloc_type_class): New. | |
3110 | * elfxx-target.h (elf_backend_reloc_type_class): Define. | |
3111 | (elfNN_bed): Add elf_backend_reloc_type_class. | |
3112 | * elf.c (_bfd_elf_reloc_type_class): New. | |
3113 | * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc | |
3114 | is against read-only section. | |
3115 | (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
3116 | looking up section names for DT_TEXTREL. | |
3117 | (elf_i386_reloc_type_class): New. | |
3118 | (elf_backend_reloc_type_class): Define. | |
3119 | * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the | |
3120 | reloc is against read-only section. | |
3121 | (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
3122 | looking up section names for DT_TEXTREL. | |
3123 | (elf32_sparc_reloc_type_class): New. | |
3124 | (elf_backend_reloc_type_class): Define. | |
3125 | * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the | |
3126 | reloc is against read-only section. | |
3127 | (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of | |
3128 | looking up section names for DT_TEXTREL. | |
3129 | (sparc64_elf_reloc_type_class): New. | |
3130 | (elf_backend_reloc_type_class): Define. | |
3131 | * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field. | |
3132 | (elfNN_ia64_hash_table_create): Clear ia64_info. | |
3133 | (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only | |
3134 | section. | |
3135 | (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag | |
3136 | instead of looking up section names for DT_TEXTREL. | |
3137 | (elfNN_ia64_reloc_type_class): New. | |
3138 | (elf_backend_reloc_type_class): Define. | |
3139 | * elflink.h (size_dynamic_sections): Add spare DT_NULL tags. | |
3140 | (struct elf_link_sort_rela): New. | |
3141 | (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New. | |
3142 | (elf_bfd_final_link): Call elf_link_sort_relocs. | |
3143 | Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if | |
3144 | necessary. | |
3145 | ||
3146 | 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com> | |
3147 | ||
3148 | * configure.in (x86-bsdi): No corefile support. | |
3149 | * configure: Regenerate. | |
3150 | ||
3151 | 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com> | |
3152 | ||
3153 | * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing | |
3154 | comma. | |
3155 | ||
3156 | 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com> | |
3157 | ||
3158 | * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set | |
3159 | the alignment of dwarf2 linkonce sections to 0. | |
3160 | * coff-sto32.c: Likewise. | |
3161 | ||
3162 | 2001-08-20 Andreas Jaeger <aj@suse.de> | |
3163 | ||
3164 | * coff-sparc.c: Add missing prototypes. | |
3165 | * elf32-s390.c: Likewise. | |
3166 | * elf32-i960.c: Likewise. | |
3167 | * aout-target.h: Likewise. | |
3168 | ||
3169 | 2001-08-20 H.J. Lu <hjl@gnu.org> | |
3170 | ||
3171 | * elf-bfd.h (elf_obj_tdata): Add num_section_syms. | |
3172 | (elf_num_section_syms): New for num_section_syms. | |
3173 | ||
3174 | * elf.c (elf_map_symbols): Set num_section_syms. | |
3175 | (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for | |
3176 | the section symbol index. | |
3177 | ||
3178 | 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com> | |
3179 | ||
3180 | * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never | |
3181 | select the generic has table creator. All elf backends need elf | |
3182 | specific fields in the hash table. | |
3183 | ||
3184 | 2001-08-20 Alan Modra <amodra@bigpond.net.au> | |
3185 | ||
3186 | * archive.c (offsetof): Remove define. | |
3187 | * elf.c: Likewise. | |
3188 | * oasys.c: Likewise | |
3189 | * sysdep.h (offsetof): Define. | |
3190 | ||
3191 | 2001-08-17 Alan Modra <amodra@bigpond.net.au> | |
3192 | ||
3193 | * bfd.c (bfd_get_gp_size): Return an unsigned int. | |
3194 | (bfd_set_gp_size): Make param unsigned. | |
3195 | * bfd-in2.h: Regenerate. | |
3196 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather | |
3197 | than calling bfd_get_gp_size. | |
3198 | * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise. | |
3199 | * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise. | |
3200 | ||
3201 | 2001-08-17 Alan Modra <amodra@bigpond.net.au> | |
3202 | ||
3203 | * linker.c (default_fill_link_order): Handle four byte fill value. | |
3204 | ||
3205 | 2001-08-17 Alan Modra <amodra@bigpond.net.au> | |
3206 | ||
3207 | * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing | |
3208 | prototype. | |
3209 | * nlm32-alpha.c (nlm_alpha_write_external): Fix warning. | |
3210 | ||
3211 | * elf64-mips.c (UNUSED_RELOC): Define. | |
3212 | (mips_elf64_howto_table_rel): Use it. | |
3213 | (mips_elf64_howto_table_rela): Here too. | |
3214 | (mips_elf64_write_relocs): Fix signed/unsigned warning. | |
3215 | ||
3216 | * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to | |
3217 | silence warning. | |
3218 | * coffgen.c (coff_print_symbol): Fix warnings. | |
3219 | (coff_find_nearest_line): Likewise. | |
3220 | * cofflink.c (_bfd_coff_link_input_bfd): Likewise. | |
3221 | * coff-alpha.c (alpha_convert_external_reloc): Likewise. | |
3222 | * format.c (bfd_check_format_matches): Likewise. | |
3223 | (bfd_set_format): Likewise. | |
3224 | * coff-ia64.c: Add missing prototypes. | |
3225 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend | |
3226 | signed to silence warnings. | |
3227 | (elf64_alpha_relocate_section): Likewise. | |
3228 | (elf64_alpha_find_reloc_at_ofs): Fix warnings. | |
3229 | (elf64_alpha_add_symbol_hook): Likewise. | |
3230 | (elf64_alpha_final_link): Likewise. | |
3231 | (elf64_alpha_relax_section): Remove redundant assign to info.gotent. | |
3232 | (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args. | |
3233 | (elf64_alpha_size_got_sections): Likewise. | |
3234 | * elfxx-ia64.c: Add missing prototypes. | |
3235 | (elfNN_ia64_relocate_section): Fix warning. | |
3236 | (elfNN_ia64_unwind_entry_compare): Make params const. | |
3237 | ||
3238 | 2001-08-17 Alan Modra <amodra@bigpond.net.au> | |
3239 | ||
3240 | * config.bfd (targ64_selvecs): New. | |
3241 | <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef. | |
3242 | ||
3243 | * bfd-in.h (BFD_VERSION): Remove wrong comment. | |
3244 | (BFD_DEFAULT_TARGET_SIZE): New. | |
3245 | (BFD_ARCH_SIZE): Comment. | |
3246 | * configure.in (target_size): New. Set instead of target64 in | |
3247 | selvecs case statement. Set target64 from it. | |
3248 | (bfd_default_target_size): New. Set from taget_size. AC_SUBST. | |
3249 | * bfd-in2.h: Regenerate. | |
3250 | * configure: Regenerate. | |
3251 | ||
3252 | 2001-08-17 Alan Modra <amodra@bigpond.net.au> | |
3253 | ||
3254 | * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format. | |
3255 | (bfd_errmsgs): Add corresponding message. | |
3256 | * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when | |
3257 | finding an archive that contains different format object files. | |
3258 | Return bfd_error_wrong_object_format for this case. | |
3259 | * format.c: Formatting fixes. s/CONST/const/. | |
3260 | (bfd_check_format_matches): Accept archives that give | |
3261 | bfd_error_wrong_object_format if no full match is found. Tidy | |
3262 | code handling matching_vector. Don't return a pointer to freed | |
3263 | memory in `matching'. Handle ambiguous matches as for partial | |
3264 | archive matches. | |
3265 | * bfd-in2.h: Regenerate. | |
3266 | ||
3267 | 2001-08-15 Alan Modra <amodra@bigpond.net.au> | |
3268 | ||
3269 | * libieee.h (common_header_type): Add last_byte field. | |
3270 | ||
3271 | * ieee.c: Add missing prototypes. Some format fixes. | |
3272 | (struct output_buffer_struct): Move for availability to prototypes. | |
3273 | (ieee_part_after): New function. | |
3274 | (ieee_slurp_debug): Use it here. | |
3275 | (ieee_seek): Pass in ieee_data_struct rather than bfd. Use | |
3276 | ieee_part_after to set last_byte to one past end of current part. | |
3277 | Update callers. | |
3278 | (ieee_pos): Pass in ieee_data_struct rather than bfd. | |
3279 | Update callers. | |
3280 | (parse_expression): Don't go beyond the end of the current part. | |
3281 | (ieee_slurp_external_symbols): Correct type passed to read_2bytes. | |
3282 | (ieee_get_symtab_upper_bound, ieee_get_symtab, | |
3283 | ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook, | |
3284 | ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block, | |
3285 | ieee_set_section_contents, ieee_write_object_contents, | |
3286 | ieee_make_empty_symbol): Make static. | |
3287 | (ieee_archive_p): Correct comments regarding bfd_read. | |
3288 | (ieee_object_p): Similarly. | |
3289 | (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr, | |
3290 | output_ptr_end, input_ptr_start, input_ptr, input_ptr_end, | |
3291 | input_bfd, output_bfd, output_buffer. | |
3292 | (do_as_repeat): Write out ieee_set_current_pc_enum value as for | |
3293 | do_with_relocs, ie. as a symbol for relocatable files. | |
3294 | (ieee_vec): Add comments showing functions referenced by macros. | |
3295 | ||
3296 | 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com> | |
3297 | ||
3298 | * aout-tic30.c: Add missing prototypes. Fix formatting. | |
3299 | * aout-ns32k.c: Add missing prototypes. Fix formatting. | |
3300 | * peXXigen.c: Add missining prototypes. Fix formatting. | |
3301 | * aout-adobe.c: Add missining prototypes. Fix formatting. | |
3302 | ||
3303 | 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com> | |
3304 | ||
3305 | * elf32-v850.c: Add missing function prototypes. | |
3306 | Fix some formatting. | |
3307 | ||
3308 | * cpu-v850.c: Add missing function prototype. | |
3309 | Fix some formatting. | |
3310 | ||
3311 | 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com> | |
3312 | ||
3313 | * elf-bfd.h (struct elf_backend_data): Add new fields | |
3314 | 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'. | |
3315 | (bfd_elf_sprintf_vma): Rename function prototype to | |
3316 | '_bfd_elf_sprintf_vma'. | |
3317 | (bfd_elf_fprintf_vma): Rename function prototype to | |
3318 | '_bfd_elf_fprintf_vma'. | |
3319 | * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma | |
3320 | directly, instead indirect via the elf_backend_data structure. | |
3321 | (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly, | |
3322 | instead indirect via the elf_backend_data structure. | |
3323 | * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma. | |
3324 | (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma. | |
3325 | * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not | |
3326 | already defined. | |
3327 | (elf_backend_fprintf_vma): Initialise if not already defined. | |
3328 | (struct elf_backend_data): Initialise the | |
3329 | elf_backend_sprintf_vma and elf_backend_fprintf_vma fields. | |
3330 | ||
3331 | 2001-08-10 Andreas Jaeger <aj@suse.de> | |
3332 | ||
3333 | * elf64-sparc.c: Add missing prototypes. | |
3334 | * elf32-cris.c: Likewise. | |
3335 | * elf32-i370.c: Likewise. | |
3336 | * elf64-hppa.c: Likewise. | |
3337 | * elf64-s390.c: Likewise. | |
3338 | ||
3339 | 2001-08-10 Andreas Jaeger <aj@suse.de> | |
3340 | ||
3341 | * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static. | |
3342 | Add prototypes where needed. | |
3343 | ||
3344 | 2001-08-10 H.J. Lu <hjl@gnu.org> | |
3345 | ||
3346 | * bfd.c (bfd_sprintf_vma): Fix a typo in the last change. | |
3347 | (bfd_fprintf_vma): Likewise. | |
3348 | ||
3349 | 2001-08-10 H.J. Lu <hjl@gnu.org> | |
3350 | ||
3351 | * bfd.c (bfd_sprintf_vma): Don't return void. | |
3352 | (bfd_fprintf_vma): Likewise. | |
3353 | ||
3354 | 2001-08-10 Andreas Jaeger <aj@suse.de> | |
3355 | ||
3356 | * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes | |
3357 | to build warnings. | |
3358 | * configure: Regenerate. | |
3359 | ||
3360 | 2001-08-10 Alan Modra <amodra@bigpond.net.au> | |
3361 | ||
3362 | * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet | |
3363 | warning if not BFD64. Add braces so emacs auto format works. | |
3364 | (bfd_elf_fprintf_vma): Likewise. | |
3365 | ||
3366 | * libxcoff.h (struct xcoff_backend_data_rec): Constify src param | |
3367 | of _xcoff_swap_ld*. | |
3368 | * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external | |
3369 | param to agree with libxcoff.h. | |
3370 | (xcoff_swap_ldhdr_out): Likewise. | |
3371 | (xcoff_swap_ldsym_in): Likewise. | |
3372 | (xcoff_swap_ldsym_out): Likewise. | |
3373 | (xcoff_swap_ldrel_in): Likewise. | |
3374 | (xcoff_swap_ldrel_out): Likewise. | |
3375 | (xcoff_create_csect_from_smclas): Likewise. | |
3376 | * coff64-rs6000.c: Add missing prototypes. | |
3377 | (xcoff64_swap_ldhdr_in): Modify type of external param to agree | |
3378 | with libxcoff.h. | |
3379 | (xcoff64_swap_ldhdr_out): Likewise. | |
3380 | (xcoff64_swap_ldsym_in): Likewise. | |
3381 | (xcoff64_swap_ldsym_out): Likewise. | |
3382 | (xcoff64_swap_ldrel_in): Likewise. | |
3383 | (xcoff64_swap_ldrel_out): Likewise. | |
3384 | (xcoff64_ppc_relocate_section): Make static. | |
3385 | (xcoff64_slurp_armap): Likewise. | |
3386 | (xcoff64_archive_p): Likewise. | |
3387 | (xcoff64_openr_next_archived_file): Likewise. | |
3388 | (xcoff64_sizeof_headers): Likewise. | |
3389 | (xcoff64_is_lineno_count_overflow): Likewise. | |
3390 | (xcoff64_is_reloc_count_overflow): Likewise. | |
3391 | (xcoff64_loader_symbol_offset): Likewise. | |
3392 | (xcoff64_loader_reloc_offset): Likewise. | |
3393 | * elf64-gen.c: Add missing prototypes. | |
3394 | ||
3395 | 2001-08-09 H.J. Lu <hjl@gnu.org> | |
3396 | ||
3397 | * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64. | |
3398 | (bfd_elf_fprintf_vma): Likewise. | |
3399 | ||
3400 | 2001-08-09 H.J. Lu <hjl@gnu.org> | |
3401 | ||
3402 | * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved | |
3403 | to ... | |
3404 | * elf-bfd.h: Here. | |
3405 | * bfd-in2.h: Regenerated. | |
3406 | ||
3407 | 2001-08-09 H.J. Lu <hjl@gnu.org> | |
3408 | ||
3409 | * bfd-in.h (bfd_sprintf_vma): New prototype. | |
3410 | (bfd_fprintf_vma): Likewise. | |
3411 | (bfd_elf_sprintf_vma): Likewise. | |
3412 | (bfd_elf_fprintf_vma): Likewise. | |
3413 | (bfd_printf_vma): New. Defined with bfd_fprintf_vma. | |
3414 | * bfd-in2.h: Regenerated. | |
3415 | ||
3416 | * bfd.c (bfd_sprintf_vma): New. Defined. | |
3417 | (bfd_fprintf_vma): Likewise. | |
3418 | ||
3419 | * elf.c (bfd_elf_sprintf_vma): New. Defined. | |
3420 | (bfd_elf_fprintf_vma): Likewise. | |
3421 | ||
3422 | 2001-08-09 Alan Modra <amodra@bigpond.net.au> | |
3423 | ||
3424 | * coff-rs6000.c: Add missing prototypes. | |
3425 | (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow, | |
3426 | xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset, | |
3427 | xcoff_loader_reloc_offset): Make static. | |
3428 | * dwarf1.c: Add missing prototypes. | |
3429 | * dwarf2.c: Add missing prototypes. | |
3430 | (struct abbrev_info): Move definition. | |
3431 | (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise. | |
3432 | * elf.c: Add missing prototypes. | |
3433 | * elf32-gen.c: Likewise. | |
3434 | * elf32-i386.c: Likewise. | |
3435 | * elf32-ppc.c: Likewise. | |
3436 | (ppc_elf_sort_rela): Use PTR instead of "void *". | |
3437 | * elflink.h: Add missing prototypes. Formatting fixes. | |
3438 | * merge.c: Add missing prototypes. | |
3439 | (last4_eq): Use PTR instead of "void *". | |
3440 | (last_eq): Likewise. | |
3441 | * syms.c: Add missing prototypes. | |
3442 | ||
3443 | 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com> | |
3444 | ||
3445 | * bfd.c: Fix formatting. | |
3446 | * bfd-in2.h: Regenerate. | |
3447 | ||
3448 | 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com> | |
3449 | ||
3450 | * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to | |
3451 | true (this target uses REL relocations) and 'pcrel_offset' to | |
3452 | false (the PC is implied, not stored in the offset). | |
3453 | ||
3454 | 2001-08-08 Alan Modra <amodra@bigpond.net.au> | |
3455 | ||
3456 | 1999-10-19 Linus Nordberg <linus@swox.se> | |
3457 | * elf-bfd.h (struct elf_backend_data): Add want_got_sym. | |
3458 | * elfxx-target.h (elf_backend_want_got_sym): Define. | |
3459 | (elfNN_bed): Add elf_backend_want_got_sym. | |
3460 | * elflink.c (_bfd_elf_create_got_section): Define | |
3461 | _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym. | |
3462 | ||
3463 | 2001-08-08 Alexandre Oliva <aoliva@redhat.com> | |
3464 | ||
3465 | * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms. | |
3466 | (find_rela_addend): New function. | |
3467 | (parse_comp_unit): Call it to find the abbrev offset addend. | |
3468 | (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new | |
3469 | members of dwarf2_debug as debugging information is read. | |
3470 | ||
3471 | 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com> | |
3472 | ||
3473 | * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff | |
3474 | targets as well as sh-pe. | |
3475 | ||
3476 | 2001-08-03 Ben Harris <bjh21@netbsd.org> | |
3477 | ||
3478 | * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of | |
3479 | reloc from start of section when computing value for R_ARM_REL32 | |
3480 | reloc. | |
3481 | ||
3482 | 2001-08-03 Alan Modra <amodra@bigpond.net.au> | |
3483 | ||
3484 | From H.J. Lu <hjl@gnu.org> | |
3485 | * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't | |
3486 | keep relocs for undefined syms if there are no dynamic sections in | |
3487 | executable. | |
3488 | * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise. | |
3489 | ||
3490 | 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com> | |
3491 | ||
3492 | * cofflink.c (coff_link_check_ar_symbols): also search for | |
3493 | __imp__symbol as well as _symbol. | |
3494 | * linker.c (_bfd_generic_link_add_archive_symbols): also | |
3495 | search for __imp__symbol as well as _symbol. | |
3496 | ||
3497 | 2001-08-01 Adam Nemet <anemet@lnxw.com> | |
3498 | ||
3499 | * elf.c (elf_sort_sections): Return zero only as the last step. | |
3500 | ||
3501 | 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com> | |
3502 | ||
3503 | * config.bfd (arm-vxworks): Change name of define from VXWORKS to | |
3504 | ARM_COFF_BUGFIX. | |
3505 | (arm-epoc-pe): Define ARM_COFF_BUGFIX. | |
3506 | coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with | |
3507 | ARM_COFF_BUGFIX. | |
3508 | ||
3509 | 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | |
3510 | ||
3511 | * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type | |
3512 | to match corresponding bfd_coff_backend data member. | |
3513 | ||
3514 | 2001-07-24 Alan Modra <amodra@bigpond.net.au> | |
3515 | ||
3516 | * Makefile.am: Update dependencies with "make dep-am". | |
3517 | * Makefile.in: Regenerate | |
3518 | ||
3519 | 2001-07-15 H.J. Lu <hjl@gnu.org> | |
3520 | ||
3521 | * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp. | |
3522 | (po/BLD-POTFILES.in): Use tmp.bld instead of tmp. | |
3523 | * Makefile.in: Regenerate. | |
3524 | ||
3525 | 2001-07-11 H.J. Lu <hjl@gnu.org> | |
3526 | ||
3527 | * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD | |
3528 | flags when creating the reloc section if the ALLOC flag in the | |
3529 | source section is set. | |
3530 | ||
3531 | 2001-07-11 Steve Ellcey <sje@cup.hp.com> | |
3532 | ||
3533 | * reloc.c (bfd_reloc_code_type): Add IA64 relocs | |
3534 | BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB | |
3535 | * bfd-in2.h: Regenerate. | |
3536 | * libbfd.h: Regenerate. | |
3537 | * elfxx-ia64.c (ia64_howto_table): Define how to handle | |
3538 | new relocations. | |
3539 | (elfNN_ia64_reloc_type_lookup): Handle new relocations. | |
3540 | (elfNN_ia64_check_relocs): Likewise. | |
3541 | (elfNN_ia64_install_value): Likewise. | |
3542 | (elfNN_ia64_relocate_section): Likewise. | |
3543 | ||
3544 | 2001-07-11 Jakub Jelinek <jakub@redhat.com> | |
3545 | ||
3546 | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for | |
3547 | R_SPARC_UA64. | |
3548 | (elf32_sparc_check_relocs): Likewise. | |
3549 | Only create .rela section for alloced sections in shared libraries. | |
3550 | (elf32_sparc_relocate_section): Likewise. | |
3551 | Remove redundant check. | |
3552 | Optimize unaligned reloc usage. | |
3553 | * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant | |
3554 | check. | |
3555 | ||
3556 | 2001-07-11 H.J. Lu <hjl@gnu.org> | |
3557 | ||
3558 | * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same | |
3559 | ALLOC|LOAD flags as the source section for debugging sections | |
3560 | when creating the reloc section. | |
3561 | ||
3562 | 2001-07-05 Jim Wilson <wilson@redhat.com> | |
3563 | ||
3564 | * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use | |
3565 | the section of the bigger symbol. | |
3566 | ||
3567 | * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM. | |
3568 | ||
3569 | 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com> | |
3570 | ||
3571 | * peicode.h (coff_swap_scnhdr_in): For sections containing | |
3572 | uninitialised data, only set their size to s_paddr if this does | |
3573 | not reset their size to zero. MS's latest compilers will set | |
3574 | s_paddr to zero. | |
3575 | ||
3576 | 2001-07-04 H.J. Lu <hjl@gnu.org> | |
3577 | ||
3578 | * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): | |
3579 | Handle bfd_mach_mips4400, bfd_mach_mips4600 and | |
3580 | bfd_mach_mips5000. | |
3581 | ||
3582 | 2001-07-03 Mark Elbrecht <snowball3@softhome.net> | |
3583 | ||
3584 | * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets. | |
3585 | ||
3586 | * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from | |
3587 | sections being discarded. | |
3588 | ||
3589 | 2001-06-30 Alan Modra <amodra@bigpond.net.au> | |
3590 | ||
3591 | * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly | |
3592 | instead of _bfd_elfcore_section_from_phdr. | |
3593 | * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove. | |
3594 | * elf.c (_bfd_elfcore_section_from_phdr): Remove. | |
3595 | (_bfd_elfcore_make_pseudosection): Expedite tail-call. | |
3596 | (elfcore_grok_prstatus): Likewise. | |
3597 | (elfcore_grok_lwpstatus): Likewise. | |
3598 | (bfd_get_elf_phdr_upper_bound): Likewise. | |
3599 | (elfcore_make_note_pseudosection): Formatting. | |
3600 | (_bfd_elfcore_strndup): Formatting. | |
3601 | * elf32-mips.c (mips_elf_sym_is_global): Formatting. | |
3602 | (_bfd_elf32_mips_grok_prstatus): Expedite tail-call. | |
3603 | ||
3604 | 2001-06-29 Daniel Jacobowitz <drow@mvista.com> | |
3605 | ||
3606 | * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection | |
3607 | and _bfd_elfcore_strndup. | |
3608 | (struct elf_backend_data): Add elf_backend_grok_prstatus | |
3609 | and elf_backend_grok_psinfo. | |
3610 | * elf.c (_bfd_elfcore_make_pseudosection): New function. | |
3611 | (elfcore_grok_prstatus): Use it. | |
3612 | (elfcore_make_note_pseudosection): Likewise. | |
3613 | (elfcore_strndup): Rename to... | |
3614 | (_bfd_elfcore_strndup): Here, and make global. | |
3615 | (elfcore_grok_psinfo): Use _bfd_elfcore_strndup. | |
3616 | (elfcore_grok_note): Call elf_backend_grok_prstatus | |
3617 | and elf_backend_grok_psinfo if available. | |
3618 | * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function. | |
3619 | (_bfd_elf32_mips_grok_psinfo): New function. | |
3620 | (elf_backend_grok_prstatus): Define. | |
3621 | (elf_backend_grok_psinfo): Define. | |
3622 | * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL. | |
3623 | (elf_backend_grok_psinfo): Likewise. | |
3624 | (elfNN_bed): Include elf_backend_grok_prstatus and | |
3625 | elf_backend_grok_psinfo. | |
3626 | ||
3627 | 2001-06-29 H.J. Lu <hjl@gnu.org> | |
3628 | ||
3629 | * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if | |
3630 | hplink->sgot is NULL before filling GOT. Check if hplink->splt | |
3631 | is NULL before filling PLT. | |
3632 | ||
3633 | 2001-06-29 Alan Modra <amodra@bigpond.net.au> | |
3634 | ||
3635 | * elflink.h (elf_link_output_extsym): Revert 1999-04-10. | |
3636 | ||
3637 | 2001-06-27 Alan Modra <amodra@bigpond.net.au> | |
3638 | ||
3639 | * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic | |
3640 | here.. | |
3641 | (elf32_hppa_adjust_dynamic_symbol): ..nor here.. | |
3642 | (allocate_plt_and_got_and_discard_relocs): .. instead do so here | |
3643 | after gc has run. | |
3644 | ||
3645 | * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete. | |
3646 | (IS_ABSOLUTE_RELOC): Define. | |
3647 | (elf32_hppa_link_hash_entry): Always include reloc_entries field. | |
3648 | (hppa_link_hash_newfunc): Always init it. | |
3649 | (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to | |
3650 | create COPY relocs only when the reloc is in a read-only section. | |
3651 | Instead, allocate space for a dynamic reloc to reference the | |
3652 | library symbol directly. Keep track of space we allocate using | |
3653 | relocs_entries. | |
3654 | (hppa_discard_copies): Delete, and move code to.. | |
3655 | (allocate_plt_and_got): ..here. Rename to | |
3656 | allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic | |
3657 | relocs for non-shared link. | |
3658 | (elf32_hppa_size_dynamic_sections): Update calls to above. | |
3659 | (elf32_hppa_relocate_section): Write out the dynamic relocs used | |
3660 | in lieu of COPY relocs. | |
3661 | ||
3662 | * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic | |
3663 | here.. | |
3664 | (elf_i386_adjust_dynamic_symbol): ..nor here.. | |
3665 | (allocate_plt_and_got_and_discard_relocs): .. instead do so here | |
3666 | after gc has run. | |
3667 | (elf_i386_size_dynamic_sections): Fix a comment. | |
3668 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code | |
3669 | involved in writing reloc out. | |
3670 | ||
3671 | 2001-06-25 Alan Modra <amodra@bigpond.net.au> | |
3672 | ||
3673 | * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>): | |
3674 | Ensure syms are dynamic if we might be emitting a reloc. | |
3675 | (allocate_plt_and_got_and_discard_relocs): Don't discard relocs | |
3676 | for undefweak or undefined syms.. | |
3677 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit. | |
3678 | ||
3679 | * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard | |
3680 | relocs without ELF_LINK_HASH_DEF_DYNAMIC set. | |
3681 | (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove | |
3682 | redundant bfd_link_hash_defined, bfd_link_hash_defweak test. | |
3683 | ||
3684 | 2001-06-24 H.J. Lu <hjl@gnu.org> | |
3685 | ||
3686 | * cpu-i960.c (scan_960_mach): Don't modify const char *. Use | |
3687 | strncasecmp/strcasecmp instead of strncmp/strcmp. | |
3688 | ||
3689 | 2001-06-23 H.J. Lu <hjl@gnu.org> | |
3690 | ||
3691 | * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>): | |
3692 | Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined | |
3693 | in the regular object file and treat the weak definition as | |
3694 | the normal one. | |
3695 | ||
3696 | 2001-06-23 Alan Modra <amodra@bigpond.net.au> | |
3697 | ||
3698 | * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten | |
3699 | unresolved_reloc test to exclude cases where we use "relocation" | |
3700 | before setting it to point into the .got. Reinstate fudge for | |
3701 | unresolved relocs in debugging sections. | |
3702 | ||
3703 | * elf32-i386.c (elf_i386_relocate_section): Replace ugly | |
3704 | complicated tests for unresolvable relocs with a simple direct | |
3705 | scheme using "unresolved_reloc" var. | |
3706 | ||
3707 | * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to | |
3708 | elf_i386_dyn_relocs. Update comment. | |
3709 | (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to | |
3710 | dyn_relocs. | |
3711 | (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change | |
3712 | others to aborts. | |
3713 | (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with | |
3714 | abort. | |
3715 | (elf_i386_size_dynamic_sections): Likewise. | |
3716 | (elf_i386_finish_dynamic_symbol): Likewise. | |
3717 | (elf_i386_finish_dynamic_sections): Likewise. | |
3718 | (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error | |
3719 | handling code. | |
3720 | ||
3721 | Avoid creating COPY relocs if possible. | |
3722 | * elf32-i386.c (elf_i386_check_relocs): Tweak condition under | |
3723 | which .got created. Mark symbols used by R_386_32 and R_386_PC32 | |
3724 | relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the | |
3725 | reloc is in a read-only section. Instead, allocate space for a | |
3726 | dynamic reloc to reference the library symbol directly. Keep | |
3727 | track of space we allocate using pcrel_relocs_copied. | |
3728 | (discard_copies): Delete, and move code to .. | |
3729 | (allocate_plt_and_got): ..here. Rename to | |
3730 | allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic | |
3731 | relocs for non-shared link. | |
3732 | (elf_i386_size_dynamic_sections): Update calls to above functions. | |
3733 | (elf_i386_relocate_section): Write out the dynamic relocs. Add | |
3734 | more ugly logic to avoid "unresolvable relocation" error. Use | |
3735 | htab shortcut in place of elf_hash_table macro. | |
3736 | (elf_i386_finish_dynamic_sections): Allow that dynamic .got may | |
3737 | not always be created now. | |
3738 | ||
3739 | 2001-06-20 Bo Thorsen <bo@suse.co.uk> | |
3740 | ||
3741 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of | |
3742 | shared libraries. | |
3743 | ||
3744 | 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
3745 | ||
3746 | * configure.host (mips64-*-linux): Reformat. | |
3747 | ||
3748 | 2001-06-21 Alan Modra <amodra@bigpond.net.au> | |
3749 | ||
3750 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always | |
3751 | allocate local .got space. Use shortcuts from hash table for .got | |
3752 | and .plt rather than comparing section names. | |
3753 | (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than | |
3754 | adjusting index into local_got_refcounts to document what we are | |
3755 | really doing. | |
3756 | (elf32_hppa_relocate_section): Similarly for local_plt_offsets. | |
3757 | Tidy .got and .plt error checking. | |
3758 | ||
3759 | 2001-06-20 Catherine Moore <clm@redhat.com> | |
3760 | ||
3761 | * elf-bfd.h (struct elf_backend_data): | |
3762 | elf_backend_emit_relocs: New field: Function for emitting | |
3763 | relocs. | |
3764 | elf_backend_count_relocs: New field: Function for determining | |
3765 | the number of relocs to be emitted. | |
3766 | * elfxx-target.h: Provide default (NULL) values for | |
3767 | elf_backend_emit_relocs and elf_backend_count_relocs. | |
3768 | * elflink.h (elf_link_size_reloc_section): Make the hash table | |
3769 | big enough to hold the relocs counted by either reloc_count or | |
3770 | o->reloc_count. | |
3771 | (elf_bfd_final_link) emit_relocs: New boolean, set if relocs | |
3772 | should be emitted, either because of a command line option | |
3773 | stored in the info structure or because the target provides a | |
3774 | special reloc emitting function. | |
3775 | If the target provides a reloc counting function use it, | |
3776 | unless performing a relocatable link or emitting all relocs. | |
3777 | Also set the SEC_RELOC flag on any output section which will | |
3778 | contain relocs. | |
3779 | (elf_link_input_bfd): emit_relocs: New boolean, set if relocs | |
3780 | should be emitted, either because of a command line option | |
3781 | stored in the info structure or because the target provides a | |
3782 | special reloc emitting function. | |
3783 | If the target provides a reloc emitting function, use it, | |
3784 | unless performing a relocatable link or emitting all relocs. | |
3785 | ||
3786 | 2001-06-20 H.J. Lu <hjl@gnu.org> | |
3787 | ||
3788 | * elf32-i386.c (elf_i386_size_dynamic_sections): Always | |
3789 | allocate local .got space. | |
3790 | ||
3791 | 2001-06-19 Andreas Jaeger <aj@suse.de> | |
3792 | ||
3793 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of | |
3794 | dynamic symbols. | |
3795 | ||
3796 | 2001-06-18 Hans-Peter Nilsson <hp@axis.com> | |
3797 | ||
3798 | * elflink.h (struct elf_assign_sym_version_info): Remove member | |
3799 | export_dynamic. All users changed to use info member. | |
3800 | NAME(bfd_elf,size_dynamic_sections)): Remove parameter | |
3801 | export_dynamic, instead use member in parameter info. | |
3802 | * bfd-in.h (bfd_elf32_size_dynamic_sections, | |
3803 | bfd_elf64_size_dynamic_sections): Update prototype. | |
3804 | * bfd-in2.h: Regenerate. | |
3805 | ||
3806 | 2001-06-18 H.J. Lu <hjl@gnu.org> | |
3807 | ||
3808 | * elflink.h (elf_info_failed): Add a new field, verdefs. | |
3809 | (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to | |
3810 | elf_export_symbol. | |
3811 | (elf_export_symbol): Check eif->verdefs to decide if a symbol | |
3812 | should be exported. | |
3813 | ||
3814 | 2001-06-17 H.J. Lu <hjl@gnu.org> | |
3815 | ||
3816 | * elf32-mips.c (mips_elf_link_hash_entry): Add a new field, | |
3817 | readonly_reloc, to record if a relocation in the .rel.dyn | |
3818 | section is against a read-only section. | |
3819 | (mips_elf_link_hash_newfunc): Initialize the readonly_reloc | |
3820 | field to false. | |
3821 | (_bfd_mips_elf_check_relocs): Record if there is a relocation | |
3822 | in the .rel.dyn section against a read-only section by setting | |
3823 | DF_TEXTREL or readonly_reloc. | |
3824 | (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if | |
3825 | it is true. | |
3826 | (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if | |
3827 | there is a relocation in the .rel.dyn section against a | |
3828 | read-only section. | |
3829 | (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if | |
3830 | DF_TEXTREL is set. | |
3831 | ||
3832 | 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com> | |
3833 | ||
3834 | * coffcode.h (styp_flags_to_sec_flags): Change to a boolean | |
3835 | function. Move flagword result into parameter list. Remove | |
3836 | comment about setting bfd_error_handler to intercept failure | |
3837 | results. | |
3838 | * coffgen.c (make_a_section_from_file): Examine result of | |
3839 | calling bfd_coff_styp_to_sec_flags and pass a failure back to | |
3840 | caller. | |
3841 | * ecoff.h (styp_flags_to_sec_flags): Change to a boolean | |
3842 | function. Move flagword result into parameter list. | |
3843 | * libcoff.h: Regenerate. | |
3844 | * libecoff.h: Regenerate. | |
3845 | ||
3846 | 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com> | |
3847 | ||
3848 | * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data | |
3849 | section is going to follow it. | |
3850 | ||
3851 | 2001-06-12 Catherine Moore <clm@redhat.com> | |
3852 | ||
3853 | * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN | |
3854 | with the file_align entry from elf_backend_data. | |
3855 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
3856 | (elf_gc_record_vtentry): Likewise. | |
3857 | ||
3858 | 2001-06-10 Alan Modra <amodra@bigpond.net.au> | |
3859 | ||
3860 | * elflink.h: Whitespace changes. | |
3861 | (elf_link_read_relocs_from_section): Use "unsigned int" iterator | |
3862 | rather than "unsigned char". | |
3863 | (elf_link_output_relocs): Likewise. | |
3864 | (elf_link_input_bfd): Likewise. | |
3865 | (elf_reloc_link_order): LIkewise. | |
3866 | * elf.c: s/CONST/const/. Whitespace changes. | |
3867 | * elf32-mips.c: Formatting fix. | |
3868 | ||
3869 | * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h. | |
3870 | * Makefile.in: Regenerate. | |
3871 | * po/Make-in: Remove trailing tab. | |
3872 | ||
3873 | 2001-06-09 Philip Blundell <philb@gnu.org> | |
3874 | ||
3875 | * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last | |
3876 | change. | |
3877 | (elf32_arm_plt_entry): Likewise. | |
3878 | ||
3879 | 2001-06-08 H.J. Lu <hjl@gnu.org> | |
3880 | ||
3881 | * elf.c (swap_out_syms): Keep names for global section symbols. | |
3882 | ||
3883 | 2001-06-07 H.J. Lu <hjl@gnu.org> | |
3884 | ||
3885 | * config.bfd: Put back ecoff for Linux/mips. Firmwares on some | |
3886 | MIPS-based machines need it. | |
3887 | ||
3888 | 2001-06-07 H.J. Lu <hjl@gnu.org> | |
3889 | ||
3890 | * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab | |
3891 | for SGI only. | |
3892 | ||
3893 | * config.bfd: Remove ecoff from Linux/mips. | |
3894 | ||
3895 | 2001-06-07 Andreas Jaeger <aj@suse.de> | |
3896 | ||
3897 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an | |
3898 | assertion. | |
3899 | (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an | |
3900 | alignment of 8 for .rela sections; handle further relocations. | |
3901 | ||
3902 | 2001-06-06 Christian Groessler <cpg@aladdin.de> | |
3903 | ||
3904 | * coff-z8k.c: Fix formatting. | |
3905 | Fix howtos: howto->size was always 1. | |
3906 | ||
3907 | 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
3908 | ||
3909 | * configure.host (mips64*-*-linux*): Define. | |
3910 | ||
3911 | 2001-06-05 Alan Modra <amodra@bigpond.net.au> | |
3912 | ||
3913 | * elf32-i386.c (elf_i386_discard_copies): Rename to | |
3914 | discard_copies, and use elf_link_hash_entry arg rather than | |
3915 | elf_i386_link_hash_entry. | |
3916 | (elf_i386_link_hash_traverse): Delete. | |
3917 | (elf_i386_size_dynamic_sections): Adjust call to discard_copies. | |
3918 | Tidy sizing of dynamic sections. | |
3919 | (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count | |
3920 | possible .plt entries. | |
3921 | (elf_i386_gc_sweep_hook): Likewise. | |
3922 | (elf_i386_adjust_dynamic_symbol): Discard .plt entries for | |
3923 | everything with plt.refcount <= 0. | |
3924 | ||
3925 | * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and | |
3926 | .relgot space here. | |
3927 | (elf_i386_gc_sweep_hook): ..and no need to deallocate here.. | |
3928 | (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and | |
3929 | .rel.plt here.. | |
3930 | (allocate_plt_and_got): ..instead do it all here. New function. | |
3931 | (elf_i386_size_dynamic_sections): Allocate local .got space and | |
3932 | call allocate_plt_and_got. No need to zap .relgot if not dynamic. | |
3933 | (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link | |
3934 | rather than gc variety). | |
3935 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
3936 | (elf_i386_relocate_section): Use it here and correct handling of | |
3937 | R_386_GOT32. Provide section and offset for "unresolvable | |
3938 | relocation" error message. | |
3939 | (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32. | |
3940 | ||
3941 | * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot, | |
3942 | sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields. | |
3943 | (elf_i386_link_hash_table_create): Init them. | |
3944 | (create_got_section): New function. | |
3945 | (elf_i386_create_dynamic_sections): New function. | |
3946 | (elf_backend_create_dynamic_sections): Set to above. | |
3947 | (elf_i386_check_relocs): Use shortcuts from hash table rather than | |
3948 | calling bfd_get_section_by_name. | |
3949 | (elf_i386_gc_sweep_hook): Likewise. | |
3950 | (elf_i386_adjust_dynamic_symbol): Likewise. | |
3951 | (elf_i386_size_dynamic_sections): Likewise. | |
3952 | (elf_i386_relocate_section): Likewise. | |
3953 | (elf_i386_finish_dynamic_sections): Likewise. | |
3954 | ||
3955 | * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms. | |
3956 | ||
3957 | 2001-06-02 H.J. Lu <hjl@gnu.org> | |
3958 | ||
3959 | * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX | |
3960 | and ELFOSABI_HPUX. | |
3961 | * elf64-hppa.c (elf64_hppa_object_p): Likewise. | |
3962 | ||
3963 | 2001-06-02 H.J. Lu <hjl@gnu.org> | |
3964 | ||
3965 | * aout-cris.c (MACHTYPE_OK): New. Defined. | |
3966 | ||
3967 | 2001-06-02 Hans-Peter Nilsson <hp@axis.com> | |
3968 | ||
3969 | * section.c (_bfd_strip_section_from_output): Handle NULL | |
3970 | output_section. | |
3971 | ||
3972 | 2001-06-02 H.J. Lu <hjl@gnu.org> | |
3973 | ||
3974 | * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add | |
3975 | rs6000coff64_vec only if BFD64 is defined. | |
3976 | (powerpc64-*-aix*): Enable only if BFD64 is defined. | |
3977 | ||
3978 | 2001-06-02 H.J. Lu <hjl@gnu.org> | |
3979 | ||
3980 | * coff-ia64.c (ia64coff_object_p): Rewrite with | |
3981 | external_PEI_DOS_hdr and external_PEI_IMAGE_hdr. | |
3982 | ||
3983 | 2001-06-01 Andreas Jaeger <aj@suse.de> | |
3984 | ||
3985 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8 | |
3986 | relocation, small reformatting. | |
3987 | ||
3988 | 2001-05-29 Andreas Jaeger <aj@suse.de> | |
3989 | ||
3990 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64. | |
3991 | (elf64_x86_64_relocate_section): Likewise. | |
3992 | ||
3993 | 2001-05-30 Alan Modra <amodra@one.net.au> | |
3994 | ||
3995 | * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for | |
3996 | millicode. Don't allocate .got and .rela.got space here.. | |
3997 | (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here.. | |
3998 | (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and | |
3999 | .rela.plt here.. | |
4000 | (hppa_handle_PIC_calls): ..nor here.. | |
4001 | (allocate_plt_and_got): ..instead do it all here. New function. | |
4002 | (elf32_hppa_size_dynamic_sections): Allocate local .got space and | |
4003 | call allocate_plt_and_got. No need to zap .got if not dynamic. | |
4004 | (elf32_hppa_final_link): Call regular bfd_final_link instead of | |
4005 | gc_common_final_link. | |
4006 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. | |
4007 | (elf32_hppa_relocate_section): Use it here. | |
4008 | (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of | |
4009 | dynamic_sections_created. | |
4010 | (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym. | |
4011 | ||
4012 | 2001-05-28 Andreas Jaeger <aj@suse.de> | |
4013 | ||
4014 | * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the | |
4015 | generic version since we want a hashsize of 4. | |
4016 | (elf_backend_size_info): Likewise. | |
4017 | ||
4018 | 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
4019 | ||
4020 | * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of | |
4021 | a zeroing loop. | |
4022 | (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly. | |
4023 | (elf_link_input_bfd): Likewise. | |
4024 | (elf_reloc_link_order): Likewise. | |
4025 | (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64 | |
4026 | relocations correctly. | |
4027 | ||
4028 | 2001-05-28 Nicolas Pitre <nico@cam.org> | |
4029 | ||
4030 | * elf32-arm.h: fix PLT generation for big endian ARM | |
4031 | ||
4032 | 2001-05-28 Alan Modra <amodra@one.net.au> | |
4033 | ||
4034 | * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries | |
4035 | for symbols forced local that need plabels. | |
4036 | (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in | |
4037 | .plt.rela for local syms if non-shared. | |
4038 | (hppa_build_one_stub): Mask lsb of plt.offset. | |
4039 | (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set. | |
4040 | (clobber_millicode_symbols): Correct comment. | |
4041 | (elf32_hppa_relocate_section): Likewise. | |
4042 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
4043 | ||
4044 | 2001-05-28 Jeff Sturm <jsturm@one-point.com> | |
4045 | ||
4046 | * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64. | |
4047 | * bfd-in2.h: Regenerate. | |
4048 | * libbfd.h: Regenerate. | |
4049 | * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32 | |
4050 | and BFD_RELOC_SPARC_UA64 mapping | |
4051 | * elf64-sparc.c: Likewise. | |
4052 | ||
4053 | 2001-05-25 H.J. Lu <hjl@gnu.org> | |
4054 | ||
4055 | * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo. | |
4056 | (BFD32_BACKENDS_CFILES): Remove coff-pmac.c. | |
4057 | (coff-rs6000.lo): Remove the old dependency. | |
4058 | * Makefile.in: Rebuild. | |
4059 | ||
4060 | * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with | |
4061 | coff-rs6000.lo. | |
4062 | ||
4063 | 2001-05-25 H.J. Lu <hjl@gnu.org> | |
4064 | ||
4065 | * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p, | |
4066 | rs6000coff_core_file_matches_executable_p, | |
4067 | rs6000coff_core_file_failing_command and | |
4068 | rs6000coff_core_file_failing_signal only if AIX_CORE is | |
4069 | defined. | |
4070 | (pmac_xcoff_vec): Likewise. | |
4071 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
4072 | ||
4073 | 2001-05-25 Timothy Wall <twall@redhat.com> | |
4074 | ||
4075 | * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry | |
4076 | for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs. | |
4077 | ||
4078 | 2001-05-25 H.J. Lu <hjl@gnu.org> | |
4079 | ||
4080 | * bfd-in2.h: Regenerated. | |
4081 | * libcoff.h: Likewise. | |
4082 | ||
4083 | 2001-05-25 Alan Modra <amodra@one.net.au> | |
4084 | ||
4085 | * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow | |
4086 | undefined millicode syms in shared libs. | |
4087 | (hppa_build_one_stub): Turn BFD_ASSERTs into aborts. | |
4088 | (elf32_hppa_check_relocs): Likewise. | |
4089 | (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
4090 | (elf32_hppa_size_dynamic_sections): Likewise. | |
4091 | (elf32_hppa_relocate_section): Likewise. | |
4092 | (elf32_hppa_finish_dynamic_symbol): Likewise. | |
4093 | (elf32_hppa_finish_dynamic_sections): Likewise. | |
4094 | ||
4095 | 2001-05-24 Tom Rix <trix@redhat.com> | |
4096 | ||
4097 | * Makefile.am coff-pmac bfd now defined in coff-rs6000.c | |
4098 | xcoff-target.h not used to define rs6000 or ppc bfd. | |
4099 | * Makefile.in same | |
4100 | ||
4101 | * bfd-in.h : (struct lineno_cache_entry) promote element "offset" | |
4102 | to 64 bit. | |
4103 | ||
4104 | * coff-rs6000.c : Many changes for 64 bit support. Move common | |
4105 | 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec | |
4106 | and pmac_xcoff_vec | |
4107 | ||
4108 | * coff64-rs6000.c : Many changes for 64 bit support. 64 bit | |
4109 | linker now supported. Explictly define the rs6000coff64_vec. | |
4110 | ||
4111 | * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support | |
4112 | (coff_print_aux) same | |
4113 | (coff_write_object_contents) same | |
4114 | (coff_slurp_line_table) same | |
4115 | ||
4116 | * coffgen.c : (coff_fix_symbol_name) formatting | |
4117 | (coff_mangle_symbols) xcoff 64 bit support | |
4118 | (coff_write_symbol) same | |
4119 | (coff_write_alien_symbol) same | |
4120 | (coff_write_native_symbol) same | |
4121 | (coff_write_symbols) same | |
4122 | (coff_get_symbol_info) same | |
4123 | (bfd_coff_get_syment) same | |
4124 | (coff_print_symbol) same | |
4125 | ||
4126 | * config.bfd : add powerpc64-*-aix* target | |
4127 | ||
4128 | * libcoff-in.h : formatting | |
4129 | ||
4130 | * libcoff.h : move xcoff extern declarations to libxcoff.h | |
4131 | ||
4132 | * libxcoff.h : New file | |
4133 | ||
4134 | * xcofflink.c : Many changes for xcoff64 support. Move common | |
4135 | structures to include/coff/xcoff.h. Move specific structure to | |
f09ebc7d | 4136 | backends coff-rs6000.c and coff64-rs6000.c. Use new backend |
56882138 AM |
4137 | functions, defined in libxcoff.h, to isolate 32/64 dependencies. |
4138 | ||
4139 | (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for | |
4140 | aix4.2+ -binitfini. | |
4141 | ||
4142 | (xcoff_build_ldsyms) : handle special __rtinit symbol. | |
4143 | ||
4144 | 2001-05-23 Alexandre Oliva <aoliva@redhat.com> | |
4145 | ||
4146 | * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo | |
4147 | s/ENTIRES/ENTRIES/. | |
4148 | ||
4149 | 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
4150 | ||
4151 | * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations. | |
4152 | * libbfd.h: Regenerate. | |
4153 | * bfd-in2.h: Regenerate. | |
4154 | ||
4155 | * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support. | |
4156 | * archures.c (bfd_mach_mips12000): Define. | |
4157 | * cpu-mips.c (arch_info_struct): Add MIPS r12k support. | |
4158 | * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k | |
4159 | support. | |
4160 | (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef. | |
4161 | * bfd-in2.h: Regenerate. | |
4162 | * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol. | |
4163 | ||
4164 | 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp> | |
4165 | ||
4166 | * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry, | |
4167 | elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be, | |
4168 | elf_sh_pic_plt_entry): New PLT code, that does not use r2, since | |
4169 | that is used by GCC. | |
4170 | ||
4171 | 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com> | |
4172 | ||
4173 | * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number | |
4174 | of entries in a structured section. | |
4175 | * elf.c: Use new macro. | |
4176 | * elf32-i386.c: Use new macro. | |
4177 | * elf32-mips.c: Use new macro. | |
4178 | * elf64-alpha.c: Use new macro. | |
4179 | * elf64-sparc.c: Use new macro. | |
4180 | * elfcode.h: Use new macro. | |
4181 | * elflink.h: Use new macro. | |
4182 | ||
4183 | 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com> | |
4184 | ||
4185 | * bfdint.texi: Replace -oformat with --oformat. | |
4186 | ||
4187 | 2001-05-21 Andreas Jaeger <aj@suse.de> | |
4188 | ||
4189 | * dwarf2.c (decode_line_info): Fix error message. | |
4190 | (read_abbrevs): Fix test for offset as suggested by Alan Modra and | |
4191 | adjust error message. | |
4192 | ||
4193 | 2001-05-18 H.J. Lu <hjl@gnu.org> | |
4194 | ||
4195 | * elflink.h (elf_link_add_object_symbols): Revert the last | |
4196 | change. | |
4197 | ||
4198 | 2001-05-17 Alan Modra <amodra@one.net.au> | |
4199 | ||
4200 | * elf32-hppa.c (clobber_millicode_symbols): Temporarily set | |
4201 | ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change. | |
4202 | (hppa_build_one_stub): Add an assert to check plt.offset. | |
4203 | ||
4204 | 2001-05-17 H.J. Lu <hjl@gnu.org> | |
4205 | ||
4206 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the | |
4207 | version definition to basename of the output filename. | |
4208 | ||
4209 | 2001-05-17 H.J. Lu <hjl@gnu.org> | |
4210 | ||
4211 | * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to | |
4212 | basename of the bfd filename. | |
4213 | ||
4214 | 2001-05-16 Alan Modra <amodra@one.net.au> | |
4215 | ||
4216 | * section.c (asection): Add linker_has_input field. | |
4217 | (STD_SECTION): Adjust initialization to suit. | |
4218 | * ecoff.c (bfd_debug_section): Likewise. | |
4219 | * bfd-in2.h: Regenerate. | |
4220 | ||
4221 | 2001-05-15 Alexandre Oliva <aoliva@redhat.com> | |
4222 | ||
4223 | * elf-m10300.c (mn10300_elf_relax_section): Don't relax | |
4224 | negative 32-bit operands to 16 operands when the operand is | |
4225 | going to be zero-extended by the modified opcode. | |
4226 | ||
4227 | 2001-05-12 Peter Targett <peter.targett@arccores.com> | |
4228 | ||
4229 | * cpu-arc.c (arch_info_struct): Add entry 'base' representing old | |
4230 | name for 'arc5' core versions. | |
4231 | (bfd_arc_arch): Make bfd_mach_arc_6 default. | |
4232 | ||
4233 | * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default | |
4234 | architecture. | |
4235 | (arc_elf_final_write_processing): Make bfd_mach_arc_6 default. | |
4236 | ||
4237 | 2001-05-11 Jakub Jelinek <jakub@redhat.com> | |
4238 | ||
4239 | * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind | |
4240 | sections as well. | |
4241 | (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO | |
4242 | to .gnu.linkonce.t.FOO text section. | |
4243 | ||
4244 | 2001-05-11 Jakub Jelinek <jakub@redhat.com> | |
4245 | ||
4246 | * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix | |
4247 | fields, change sec into secinfo. | |
4248 | (struct sec_merge_info): Add chain, remove last fields. | |
4249 | (struct sec_merge_sec_info): Add next, sec, psecinfo fields. | |
4250 | (sec_merge_hash_lookup): If lookup could not use a string only | |
4251 | because it has bad alignment, mark the old string for deletion. | |
4252 | (sec_merge_add): Add secinfo argument. Don't compute entry's | |
4253 | position, instead record the section. | |
4254 | (sec_merge_emit): Update for the sec into secinfo change in | |
4255 | struct sec_merge_hash_entry. | |
4256 | (_bfd_merge_section): Only record the section for merging, defer | |
4257 | putting strings into the hash table. | |
4258 | (cmplengthentry, last4_eq, last_eq, record_section, merge_strings, | |
4259 | _bfd_merge_sections): New functions. | |
4260 | (_bfd_merged_section_offset): Update for the sec_merge_hash_entry | |
4261 | changes. | |
4262 | * libbfd-in.h (_bfd_merge_sections): Add prototype. | |
4263 | (_bfd_nolink_bfd_merge_sections): Define. | |
4264 | * libbfd.h: Likewise. | |
4265 | (bfd_generic_merge_sections): Add prototype. | |
4266 | * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections. | |
4267 | (struct bfd_target): Likewise. | |
4268 | * bfd.c (bfd_merge_sections): Define. | |
4269 | * bfd-in2.h: Rebuilt. | |
4270 | * elf.c (_bfd_elf_merge_sections): New function. | |
4271 | * elf-bfd.h (_bfd_elf_merge_sections): Add prototype. | |
4272 | * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define. | |
4273 | * reloc.c (bfd_generic_merge_sections): New function. | |
4274 | * vms.c (vms_bfd_merge_sections): New function. | |
4275 | * aout-adobe.c (aout_32_bfd_merge_sections): Define. | |
4276 | * aout-target.h (MY_bfd_merge_sections): Define. | |
4277 | * aout-tic30.c (MY_bfd_merge_sections): Define. | |
4278 | * binary.c (binary_bfd_merge_sections): Define. | |
4279 | * bout.c (b_out_bfd_merge_sections): Define. | |
4280 | * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define. | |
4281 | * coffcode.c (coff_bfd_merge_sections): Define. | |
4282 | * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define. | |
4283 | * i386msdos.c (msdos_bfd_merge_sections): Define. | |
4284 | * i386os9k.c (os9k_bfd_merge_sections): Define. | |
4285 | * ieee.c (ieee_bfd_merge_sections): Define. | |
4286 | * ihex.c (ihex_bfd_merge_sections): Define. | |
4287 | * nlm-target.h (nlm_bfd_merge_sections): Define. | |
4288 | * oasys.c (oasys_bfd_merge_sections): Define. | |
4289 | * ppcboot.c (ppcboot_bfd_merge_sections): Define. | |
4290 | * som.c (som_bfd_merge_sections): Define. | |
4291 | * srec.c (srec_bfd_merge_sections): Define. | |
4292 | * tekhex.c (tekhex_bfd_merge_sections): Define. | |
4293 | * versados.c (versados_bfd_merge_sections): Define. | |
4294 | * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define. | |
4295 | ||
4296 | 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com> | |
4297 | ||
4298 | * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr' | |
4299 | to be unsigned long, in order to match its use. | |
4300 | ||
4301 | 2001-05-10 H.J. Lu <hjl@gnu.org> | |
4302 | ||
4303 | * linker.c (_bfd_generic_link_add_one_symbol): Check loop on | |
4304 | indirect symbols. | |
4305 | ||
4306 | 2001-05-09 H.J. Lu <hjl@gnu.org> | |
4307 | ||
4308 | * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate | |
4309 | versymhdr->sh_size bytes for extversym instead of hdr->sh_size. | |
4310 | Remove the unused veriable `dynver'. | |
4311 | ||
4312 | 2001-05-08 Ian Lance Taylor <ian@zembu.com> | |
4313 | ||
4314 | * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is | |
4315 | NULL or is not COFF. | |
4316 | (coff_i386_rtype_to_howto): Don't dump core if output section | |
4317 | owner is not COFF. | |
4318 | ||
4319 | 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> | |
4320 | ||
4321 | * ecoff.c (bfd_debug_section): Fix initialization. | |
4322 | * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it | |
4323 | is always a positive integer. Cast away sign mismatch. | |
4324 | * elf32-mips.c: Fix misleading comment and typo. | |
4325 | (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use | |
4326 | correct data type. | |
4327 | * elflink.c: Fix typo. | |
4328 | (_bfd_elf_create_dynamic_sections): Remove superfluous initialization. | |
4329 | * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch. | |
4330 | ||
4331 | 2001-05-04 Richard Henderson <rth@redhat.com> | |
4332 | ||
4333 | * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true. | |
4334 | ||
4335 | 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com> | |
4336 | ||
4337 | * elf32-arm.h (elf32_arm_final_link_relocate): Set | |
4338 | EF_ARM_HASENTRY if the start address is set. | |
4339 | ||
4340 | 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com> | |
4341 | ||
4342 | * targets.c (_bfd_target_vector_entries): Compute value based on | |
4343 | the size of the _bfd_target_vector and not bfd_target_vector. | |
4344 | ||
4345 | 2001-05-03 H.J. Lu <hjl@gnu.org> | |
4346 | ||
4347 | * elfcode.h: Include "libiberty.h". | |
4348 | ||
4349 | * elflink.h (elf_link_add_object_symbols): Set | |
4350 | elf_dt_name (abfd) to basename of the bfd filename. | |
4351 | (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename | |
4352 | of the bfd filename. | |
4353 | ||
4354 | 2001-05-03 Andreas Jaeger <aj@suse.de> | |
4355 | ||
4356 | * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute. | |
4357 | (elf_generic_info_to_howto_rel): Likewise. | |
4358 | * coff-alpha.c (reloc_nil): Likewise. | |
4359 | (alpha_ecoff_bad_format_hook): Likewise. | |
4360 | (alpha_adjust_reloc_out): Likewise. | |
4361 | (alpha_bfd_reloc_type_lookup): Likewise. | |
4362 | (alpha_convert_external_reloc): Likewise. | |
4363 | * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise. | |
4364 | (elf64_alpha_reloc_bad): Likewise. | |
4365 | (elf64_alpha_reloc_gpdisp): Likewise. | |
4366 | (elf64_alpha_bfd_reloc_type_lookup): Likewise. | |
4367 | (elf64_alpha_info_to_howto): Likewise. | |
4368 | (elf64_alpha_add_symbol_hook): Likewise. | |
4369 | (elf64_alpha_create_got_section): Likewise. | |
4370 | (elf64_alpha_is_local_label_name): Likewise. | |
4371 | (elf64_alpha_merge_ind_symbols): Likewise. | |
4372 | * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise. | |
4373 | (mips_elf64_get_reloc_upper_bound): Likewise. | |
4374 | * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise. | |
4375 | (nlm_alpha_get_public_offset): Likewise. | |
4376 | ||
4377 | 2001-05-02 Johan Rydberg <jrydberg@opencores.org> | |
4378 | ||
4379 | * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain | |
4380 | about overflow in R_OPENRISC_LO_16_IN_INSN and | |
4381 | R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c | |
4382 | ||
4383 | 2001-04-30 H.J. Lu <hjl@gnu.org> | |
4384 | ||
4385 | * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1 | |
4386 | only for ELF_LINK_FORCED_LOCAL. | |
4387 | * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. | |
4388 | * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise. | |
4389 | * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise. | |
4390 | ||
4391 | * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL | |
4392 | if the symbol has hidden or internal visibility. | |
4393 | ||
4394 | 2001-04-30 Alan Modra <amodra@one.net.au> | |
4395 | ||
4396 | * elf32-hppa.c (final_link_relocate): Branch to .+8 for | |
4397 | calls to undefined weak symbols. | |
4398 | ||
4399 | 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de> | |
4400 | ||
4401 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for | |
4402 | R_X86_64_GOTPCREL, don't use assignments instead of comparisons. | |
4403 | ||
4404 | 2001-04-27 Andreas Jaeger <aj@suse.de> | |
4405 | ||
4406 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap | |
4407 | out handled entries. | |
4408 | (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries. | |
4409 | (elf64_x86_64_relocate_section): Fix GOTPCREL calculation. | |
4410 | (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and | |
4411 | GOT32. | |
4412 | ||
4413 | 2001-04-27 Sean McNeil <sean@mcneil.com> | |
4414 | ||
4415 | * config.bfd: Add arm-vxworks target. | |
4416 | * coff-arm (coff_arm_relocate_section): Add in symbol value to | |
4417 | addend (fro VXworks targets). | |
4418 | ||
4419 | 2001-04-26 H.J. Lu <hjl@gnu.org> | |
4420 | ||
4421 | * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is | |
4422 | valid. | |
4423 | ||
4424 | 2001-04-25 Frank Ch. Eigler <fche@redhat.com> | |
4425 | ||
4426 | * bfd-in.h (bfd_cache_close): Declare newly exported function. | |
4427 | * bfd-in2.h: Regenerated. | |
4428 | ||
4429 | 2001-04-24 Jakub Jelinek <jakub@redhat.com> | |
4430 | ||
4431 | * merge.c (struct sec_merge_hash_entry): Add alignment field. | |
4432 | (struct sec_merge_hash): Remove alignment_power. | |
4433 | (sec_merge_hash_newfunc): Clear alignment. | |
4434 | (sec_merge_hash_lookup): Pass alignment as argument. | |
4435 | Use hashp->root.next, not hashp->next to walk the hash chain. | |
4436 | If a string already in the hashtable does not have required | |
4437 | alignment, create a new hashtable entry. | |
4438 | (sec_merge_init): Remove alignment_power argument. | |
4439 | (sec_merge_add): Add alignment argument. | |
4440 | (sec_merge_emit): Alignment is now a per-entity thing, not per | |
4441 | section. | |
4442 | (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections | |
4443 | for proper alignment. | |
4444 | Pass alignment information to sec_merge_add. | |
4445 | ||
4446 | 2001-04-24 Christian Groessler <cpg@aladdin.de> | |
4447 | ||
4448 | * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR | |
4449 | and R_REL16 reloc types; accept odd values for R_REL16 type | |
4450 | ||
4451 | 2001-04-24 Johan Rydberg <jrydberg@opencores.org> | |
4452 | ||
4453 | * cpu-openrisc.c: New file. | |
4454 | * elf32-openrisc.c: Likewise. | |
4455 | ||
4456 | * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo. | |
4457 | (ALL_MACHINES_CFILES): Add cpu-openrisc.c. | |
4458 | (BFD32_BACKENDS): Add elf32-openrisc.lo. | |
4459 | (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c. | |
4460 | (cpu-openrisc.lo, elf32-openrisc.lo): New rules. | |
4461 | * Makefile.in: Regenerated. | |
4462 | * config.bfd: (openrisc-*-elf): New target. | |
4463 | * configure.in (bfd_elf32_openrisc_vec): New vector. | |
4464 | * configure: Regenerated. | |
4465 | * libbfd.h: Regenerated. | |
4466 | * bfd-in2.h: Regenerated. | |
4467 | * reloc.c: Add OpenRISC relocations. | |
4468 | * targets.c (bfd_elf32_openrisc_vec): Declare. | |
4469 | (bfd_target_vect): Add bfd_elf32_openrisc_vec. | |
4470 | * archures.c (enum bfd_architecture): Add bfd_arch_openrisc. | |
4471 | (bfd_openrisc_arch): Declare. | |
4472 | (bfd_archures_list): Add bfd_openrisc_arch. | |
4473 | * elf.c (prep_headers): Add bfd_arch_openrisc. | |
4474 | ||
4475 | 2001-04-23 Bo Thorsen <bo@suse.de> | |
4476 | ||
4477 | * elf64-x86-64.c: Add c++ vtable hack. | |
4478 | Small whitespace and comment changes. | |
4479 | ||
4480 | 2001-04-19 Andreas Jaeger <aj@suse.de> | |
4481 | ||
4482 | * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions. | |
4483 | (elf64_x86_64_plt_entry): Likewise. | |
4484 | (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation. | |
4485 | (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation. | |
4486 | ||
4487 | 2001-04-17 Hans-Peter Nilsson <hp@axis.com> | |
4488 | ||
4489 | * elf32-cris.c: Tweak comments related to dynamic linking. | |
4490 | (cris_elf_relocate_section): When not creating shared object, fill | |
4491 | in the .got table for any symbol not in the dynamic symbol table. | |
4492 | (elf_cris_finish_dynamic_symbol): When not creating shared object, | |
4493 | only emit a .got.rela reloc if the symbol is in the dynamic symbol | |
4494 | table. | |
4495 | (cris_elf_check_relocs): Use variable r_type in all places rather | |
4496 | than the original expression. Add default case in switch for | |
4497 | reloc types. | |
4498 | (elf_cris_size_dynamic_sections): Iterate over | |
4499 | elf_cris_discard_excess_program_dynamics when not creating shared | |
4500 | library. | |
4501 | (elf_cris_discard_excess_dso_dynamics): Renamed from | |
4502 | elf_cris_discard_copies. Correct typo, s/Rel/Rela/. | |
4503 | (elf_cris_discard_excess_program_dynamics): New. | |
4504 | ||
4505 | 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com> | |
4506 | ||
4507 | * coffcode.h (coff_write_object_contents): Use | |
4508 | bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out. | |
4509 | ||
4510 | 2001-04-14 H.J. Lu <hjl@gnu.org> | |
4511 | ||
4512 | * bfd-in2.h: Regenerate. | |
4513 | ||
4514 | 2001-04-14 Jakub Jelinek <jakub@redhat.com> | |
4515 | ||
4516 | * section.c (STD_SECTION): Add entsize. | |
4517 | ||
4518 | 2001-04-13 H.J. Lu <hjl@gnu.org> | |
4519 | ||
4520 | * section.c (SEC_MERGE): Define new flag for merging. | |
4521 | (SEC_STRINGS): Likewise. | |
4522 | (entsize): New field. | |
4523 | ||
4524 | 2001-04-13 Roger Sayle <roger@metaphorics.com> | |
4525 | ||
4526 | * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section | |
4527 | flag on pe-i386 targets. | |
4528 | ||
4529 | 2001-04-13 Jakub Jelinek <jakub@redhat.com> | |
4530 | ||
4531 | * libbfd-in.h (_bfd_merge_section): New. | |
4532 | (_bfd_write_merged_section): New. | |
4533 | (_bfd_merged_section_offset): New. | |
4534 | * libbfd.h: Rebuilt. | |
4535 | * linker.c (_bfd_generic_link_output_symbols): Handle | |
4536 | discard_sec_merge. | |
4537 | * aoutx.h (aout_link_write_symbols): Likewise. | |
4538 | * pdp11.c (aout_link_write_symbols): Likewise. | |
4539 | * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section. | |
4540 | (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE | |
4541 | sections. | |
4542 | (elf_link_sec_merge_syms): New. | |
4543 | (elf_link_input_bfd): Call _bfd_merged_section_offset | |
4544 | and _bfd_write_merged_section. | |
4545 | Handle discard_sec_merge. | |
4546 | * elf-bfd.h (struct elf_link_hash_table): Add merge_info | |
4547 | field. | |
4548 | (struct bfd_elf_section_data): Likewise. | |
4549 | * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and | |
4550 | SEC_STRINGS section flags and entsize from their ELF counterparts. | |
4551 | (_bfd_elf_link_hash_table_init): Initialize merge_info. | |
4552 | (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize | |
4553 | from their BFD counterparts. | |
4554 | * merge.c: New file. | |
4555 | * Makefile.am: Add strtab.lo. | |
4556 | * Makefile.in: Rebuilt. | |
4557 | ||
4558 | 2001-04-09 Hans-Peter Nilsson <hp@axis.com> | |
4559 | ||
4560 | * elflink.h (elf_fix_symbol_flags): For non-default visibilities, | |
4561 | only hide symbols marked STV_INTERNAL or STV_HIDDEN. | |
4562 | ||
4563 | 2001-04-05 Steven J. Hill <sjhill@cotw.com> | |
4564 | ||
4565 | * config.bfd (mips*el*-*-linux-gnu*): Use traditional little | |
4566 | endian MIPS ELF target. | |
4567 | * config.bfd (mips*-*-linux-gnu*): Use traditional big endian | |
4568 | MIPS ELF target. | |
4569 | ||
4570 | * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional | |
4571 | 64bit big endian MIPS ELF target. | |
4572 | (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little | |
4573 | endian MIPS ELF target. | |
4574 | * configure: Regenerated. | |
4575 | ||
4576 | * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and | |
4577 | little endian targets. | |
4578 | (mips_elf_sym_is_global): Handle traditional targets. | |
4579 | ||
4580 | * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional | |
4581 | 64bit big endian MIPS ELF target. | |
4582 | (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little | |
4583 | endian MIPS ELF target. | |
4584 | ||
4585 | * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec | |
4586 | and bfd_elf64_tradlittlemips_vec. | |
4587 | ||
4588 | 2001-04-05 David Mosberger <davidm@hpl.hp.com> | |
4589 | ||
4590 | * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an | |
4591 | ordinary "progbits" section. | |
4592 | ||
4593 | 2001-04-04 Alan Modra <alan@linuxcare.com.au> | |
4594 | ||
4595 | * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol | |
4596 | when -Bsymbolic causes a symbol to no longer need a .plt entry. | |
4597 | ||
4598 | 2001-04-03 David Mosberger <davidm@hpl.hp.com> | |
4599 | ||
4600 | * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted. | |
4601 | ||
4602 | 2001-03-30 H.J. Lu <hjl@gnu.org> | |
4603 | ||
4604 | * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ... | |
4605 | (PEI_DEFAULT_TARGET_SUBSYSTEM): This. | |
4606 | ||
4607 | 2001-03-26 H.J. Lu <hjl@gnu.org> | |
4608 | ||
4609 | * elf32-gen.c (elf32_generic_link_add_symbols): New. Check | |
4610 | if there are any relocations for generic ELF. | |
4611 | (bfd_elf32_bfd_link_add_symbols): Defined to | |
4612 | elf32_generic_link_add_symbols. | |
4613 | * elf64-gen.c (elf64_generic_link_add_symbols): New. Check | |
4614 | if there are any relocations for generic ELF. | |
4615 | (bfd_elf64_bfd_link_add_symbols): Defined to | |
4616 | elf64_generic_link_add_symbols. | |
4617 | ||
4618 | 2001-03-23 Nick Clifton <nickc@redhat.com> | |
4619 | ||
4620 | * Makefile.am (BUILD_CFILES): New variable: List of C source | |
4621 | files created in build directory. | |
4622 | (BUILD_HFILES): New variable: List of header files created in | |
4623 | build directory. | |
4624 | (POTFILES): Delete. | |
4625 | (po/POTFILES.in): Replace rule with empty entry. | |
4626 | (po/SRC-POTFILES.in): New rule: Create a list of source files | |
4627 | in the source directory. | |
4628 | (po/BLD-POTFILES.in): New rule: Create a list of source files | |
4629 | in the build directory. | |
4630 | (MOSTLYCLEAN): Do not delete source files created in build | |
4631 | directory. | |
4632 | * Makefile.in: Regenerate. | |
4633 | * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in | |
4634 | into po/Makefile. | |
4635 | * configure: Regenerate. | |
4636 | ||
4637 | * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES | |
4638 | and BLD_POTFILES. | |
4639 | Add .. to the search path when building bfd.pot. | |
4640 | Delete POTFILES when performing distclean. | |
4641 | Add comment describing why distclean is broken in maintainer mode. | |
4642 | * po/POTFILES.in: Delete. | |
4643 | * po/SRC-POTFILES.in: New file. | |
4644 | * po/BLD-POTFILES.in: New file. | |
4645 | * po/bfd.pot: Regenerate. | |
4646 | ||
4647 | 2001-03-22 Hans-Peter Nilsson <hp@axis.com> | |
4648 | ||
4649 | * elf32-cris.c: Shlib and PIC support. PCREL tweaks. | |
4650 | (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got, | |
4651 | elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc, | |
4652 | elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol, | |
4653 | elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol, | |
4654 | elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New | |
4655 | functions. | |
4656 | (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL, | |
4657 | R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false. | |
4658 | <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE, | |
4659 | R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT, | |
4660 | R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>: | |
4661 | New HOWTO members for new relocs. | |
4662 | (cris_reloc_map): Map new relocs. | |
4663 | (ELF_DYNAMIC_INTERPRETER): Define. | |
4664 | (PLT_ENTRY_SIZE): Define. | |
4665 | (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry, | |
4666 | elf_cris_pic_plt_entry): New, PLT templates. | |
4667 | (struct elf_cris_pcrel_relocs_copied, struct | |
4668 | elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New. | |
4669 | (elf_cris_link_hash_traverse, elf_cris_hash_table): Define. | |
4670 | (cris_final_link_relocate): Check that 16-bit GOT relocs have | |
4671 | positive values. Adjust PCREL relocs to be relative to location | |
4672 | after relocation. | |
4673 | (cris_elf_relocate_section): Handle relocations to dynamic | |
4674 | objects. Handle new relocations. Call error handler when seeing | |
4675 | non-PIC relocation for read-only sections while generating shared | |
4676 | object. | |
4677 | (cris_elf_check_relocs): Set reference counts for GOT and PLT | |
4678 | entries. | |
4679 | (bfd_elf32_bfd_link_hash_table_create, | |
4680 | elf_backend_adjust_dynamic_symbol, | |
4681 | elf_backend_size_dynamic_sections, | |
4682 | elf_backend_finish_dynamic_symbol, | |
4683 | elf_backend_finish_dynamic_sections, | |
4684 | elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link, | |
4685 | elf_backend_hide_symbol, elf_backend_want_got_plt, | |
4686 | elf_backend_plt_readonly, elf_backend_want_plt_sym, | |
4687 | elf_backend_got_header_size, elf_backend_plt_header_size): | |
4688 | Define. | |
4689 | ||
4690 | * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT, | |
4691 | BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE, | |
4692 | BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT, | |
4693 | BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT, | |
4694 | BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL, | |
4695 | BFD_RELOC_CRIS_32_PLT_PCREL): New relocs. | |
4696 | * bfd-in2.h, libbfd.h: Regenerate. | |
4697 | ||
4698 | 2001-03-21 Diego Novillo <dnovillo@redhat.com> | |
4699 | ||
4700 | (_bfd_mips_elf_relocate_section): Give a better error message when | |
4701 | a relocation is not recognized. | |
4702 | ||
4703 | 2001-03-21 Alan Modra <alan@linuxcare.com.au> | |
4704 | ||
4705 | * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section | |
4706 | non-NULL before attempting to dereference. | |
4707 | ||
4708 | 2001-03-20 H.J. Lu <hjl@gnu.org> | |
4709 | ||
4710 | * configure.in: Remove the redundent AC_ARG_PROGRAM. | |
4711 | * configure: Rebuild. | |
4712 | ||
4713 | 2001-03-20 Andreas Schwab <schwab@suse.de> | |
4714 | ||
4715 | * elf32-m68k.c (elf_m68k_relocate_section): Don't need the | |
4716 | relocation value when resolving a reference from a debugging | |
4717 | section. | |
4718 | ||
4719 | 2001-03-16 Scott Thomason <SThomaso@hii.com> | |
4720 | ||
4721 | * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors. | |
4722 | (xcoff64_swap_sym_out): Fix syntax errors. | |
4723 | ||
4724 | 2001-03-16 Richard Sandiford <rsandifo@redhat.com> | |
4725 | ||
4726 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning. | |
4727 | ||
4728 | 2001-03-15 Alan Modra <alan@linuxcare.com.au> | |
4729 | ||
4730 | * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call. | |
4731 | (hppa_link_hash_newfunc): Init it. | |
4732 | (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller | |
4733 | section appears to be non-PIC. | |
4734 | (final_link_relocate): Likewise. | |
4735 | (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any | |
4736 | possible candidate function, and set pic_call for those that will | |
4737 | only have a .plt entry for the PIC call stub. | |
4738 | (hppa_handle_PIC_calls): Set maybe_pic_call. | |
4739 | ||
4740 | 2001-03-12 DJ Delorie <dj@redhat.com> | |
4741 | ||
4742 | * elf32-sh.c (sh_elf_relocate_section): Only relocation | |
4743 | R_SH_DIR8WP* relocs if they're against external symbols, else | |
4744 | they're just for relaxing. Validate the reloc values. | |
4745 | ||
4746 | 2001-03-12 Stefan Geuken <mail@stefan-geuken.de> | |
4747 | ||
4748 | * binary.c (bfd_external_binary_architecture): Declare. | |
4749 | (binary_object_p): If bfd_external_binary_architecture is defined, | |
4750 | set the architecture to this string. | |
4751 | ||
4752 | 2001-03-11 Philip Blundell <philb@gnu.org> | |
4753 | ||
4754 | * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT | |
4755 | entries that could serve as a definition for a weak symbol. | |
4756 | ||
4757 | 2001-03-08 Nick Clifton <nickc@redhat.com> | |
4758 | ||
4759 | * Most files: Update copyright notices using Perl script created | |
4760 | by Kevin Buettner <kevinb@redhat.com>. | |
4761 | ||
4762 | 2001-03-07 Nick Clifton <nickc@redhat.com> | |
4763 | ||
4764 | * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise | |
4765 | prior patch on ! defined OLD_ARM_ABI. | |
4766 | ||
4767 | 2001-03-07 Andreas Jaeger <aj@suse.de> | |
4768 | ||
4769 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of | |
4770 | some relocation values. | |
4771 | ||
4772 | 2001-03-06 Nick Clifton <nickc@redhat.com> | |
4773 | ||
4774 | * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero | |
4775 | of offset in BLX(1) instruction. | |
4776 | * coff-arm.c (coff_arm_relocate_section): Clear bit zero of | |
4777 | offset in BLX(1) instruction. | |
4778 | Fix formatting. | |
4779 | ||
4780 | 2001-03-06 Nick Clifton <nickc@redhat.com> | |
4781 | ||
4782 | * coff-arm.c (coff_arm_reloc_type_lookup): Add | |
4783 | BFD_RELOC_THUMB_PCREL_BLX. | |
4784 | ||
4785 | 2001-03-06 Igor Shevlyakov <igor@windriver.com> | |
4786 | ||
4787 | * archures.c (bfd_default_scan): Add Coldfire CPUs. | |
4788 | * bfd-in2.h: Regenerate. | |
4789 | * cpu-m68k.c: Add Coldfire CPUs for arch table. | |
4790 | * ieee.c (ieee_write_processor): Set proper id for | |
4791 | Coldfire CPUs. | |
4792 | ||
4793 | 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com> | |
4794 | ||
4795 | * configure.in: Add s390 target. | |
4796 | * configure: Regenerate. | |
4797 | ||
4798 | 2001-02-28 Andreas Jaeger <aj@suse.de> | |
4799 | ||
4800 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation | |
4801 | to addend. | |
4802 | ||
4803 | 2001-02-28 Philip Blundell <pb@futuretv.com> | |
4804 | ||
4805 | * elf32-arm.h: Update mentions of renamed EF_xx constants. | |
4806 | (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2. | |
4807 | ||
4808 | 2001-02-27 H.J. Lu <hjl@gnu.org> | |
4809 | ||
4810 | * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if | |
4811 | abfd->tdata.aout_data == NULL. | |
4812 | ||
4813 | 2001-02-27 Alan Modra <alan@linuxcare.com.au> | |
4814 | ||
4815 | * elf32-hppa.c: Correct field selector in stub comments. | |
4816 | (clobber_millicode_symbols): Formatting fix. | |
4817 | ||
4818 | * configure.in: Bump version to 2.11.90. | |
4819 | * configure: Regenerate. | |
4820 | * Makefile.am (CFILES): Rename to SOURCE_CFILES. | |
4821 | (CFILES): $SOURCE_CFILES + generated C files. | |
4822 | (POTFILES): Include $HFILES not $SOURCE_HFILES. | |
4823 | Run "make dep-am" | |
4824 | * Makefile.in: Regenerate. | |
4825 | * doc/Makefile.in: This too. | |
4826 | ||
4827 | 2001-02-26 Timothy Wall <twall@cygnus.com> | |
4828 | ||
4829 | * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete | |
4830 | comments. | |
4831 | ||
4832 | 2001-02-26 Nick Clifton <nickc@redhat.com> | |
4833 | ||
4834 | * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy | |
4835 | up, replacing multiple if statements with a switch. | |
4836 | (handle_COMDAT): New function. | |
4837 | ||
4838 | 2001-02-26 H.J. Lu <hjl@gnu.org> | |
4839 | ||
4840 | * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue | |
4841 | a warning for section flags we do not handle instead of | |
4842 | aborting. | |
4843 | ||
4844 | 2001-02-26 Andreas Jaeger <aj@suse.de> | |
4845 | ||
4846 | * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries. | |
4847 | ||
4848 | 2001-02-22 Timothy Wall <twall@cygnus.com> | |
4849 | ||
4850 | * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey). | |
4851 | * configure.in: Add objects for elf64_ia64_aix vectors. | |
4852 | * configure: Regenerated. | |
4853 | * configure.host: Recognize ia64-*-aix*. | |
4854 | * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors | |
4855 | for AIX. AIX5 requires most relocations to be dynamic (*all* | |
4856 | binaries are somewhat similar to shared libraries). | |
4857 | * targets.c: Add elf64_ia64_aix vectors. | |
4858 | ||
4859 | 2001-02-21 David Mosberger <davidm@hpl.hp.com> | |
4860 | ||
4861 | * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for | |
4862 | C8 said "1" instead of "8". Clarify error string for IMM22: | |
4863 | "signed integer" instead of just "integer". | |
4864 | ||
4865 | 2001-02-20 Andreas Jaeger <aj@suse.de> | |
4866 | ||
4867 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make | |
4868 | PLT entries that could serve as a definition for a weak symbol. | |
4869 | ||
4870 | 2001-02-19 Jakub Jelinek <jakub@redhat.com> | |
4871 | ||
4872 | * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT | |
4873 | entries that could serve as a definition for a weak symbol. | |
4874 | * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise. | |
4875 | ||
4876 | 2001-02-18 David O'Brien <obrien@FreeBSD> | |
4877 | ||
4878 | * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat | |
4879 | FreeBSD/i386-CURRENT differently until I can figure out the needed | |
4880 | corefile changes. | |
4881 | * configure: Regenerate. | |
4882 | * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm, | |
4883 | FreeBSD/PowerPC, and FreeBSD/sparc64. | |
4884 | ||
4885 | 2001-02-18 lars brinkhoff <lars@nocrew.org> | |
4886 | ||
4887 | * Makefile.am: Add PDP-11 a.out target. | |
4888 | * config.bfd: Likewise. | |
4889 | * configure.in: Likewise. | |
4890 | * targets.c: Likewise. | |
4891 | * archures.c: Likewise. | |
4892 | * bfd-in2.h: Likewise. Add PDP-11 relocations. | |
4893 | * libbfd.h: Add PDP-11 relocations. | |
4894 | * reloc.c: Likewise. | |
4895 | * cpu-pdp11.c: New file. | |
4896 | * pdp11.c: New file. | |
4897 | ||
4898 | * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define. | |
4899 | (GET_SWORD) [ARCH_SIZE==16]: Likewise. | |
4900 | (GET_SWORD) [ARCH_SIZE==16]: Likewise. | |
4901 | (PUT_WORD) [ARCH_SIZE==16]: Likewise. | |
4902 | (GET_MAGIC): New macro. | |
4903 | (PUT_MAGIC): Likewise. | |
4904 | * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word. | |
4905 | ||
4906 | 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com> | |
4907 | ||
4908 | * irix-core.c (irix_core_core_file_p): Set the architecture (GDB | |
4909 | multiarch needs it). | |
4910 | ||
4911 | 2001-02-18 H.J. Lu <hjl@gnu.org> | |
4912 | ||
4913 | * elflink.h (elf_link_input_bfd): Ignore invalid section symbol | |
4914 | index. | |
4915 | ||
4916 | 2001-02-18 Kazu Hirata <kazu@hxi.com> | |
4917 | ||
4918 | * vms-misc.c: Fix formatting. | |
4919 | ||
4920 | 2001-02-16 Kazu Hirata <kazu@hxi.com> | |
4921 | ||
4922 | * vms.c: Fix formatting. | |
4923 | ||
4924 | 2001-02-14 H.J. Lu <hjl@gnu.org> | |
4925 | ||
4926 | * elf.c (elf_find_function): New function. | |
4927 | (_bfd_elf_find_nearest_line): Call elf_find_function () to find | |
4928 | the file name and function name. | |
4929 | ||
4930 | 2001-02-14 Nick Clifton <nickc@redhat.com> | |
4931 | ||
4932 | * ecoff.c (bfd_debug_section): Update to initialise new fields in | |
4933 | asection structure. | |
4934 | ||
4935 | * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c | |
4936 | (BFD64_BACKENDS): Add pepigen.c | |
4937 | Add rules to create peigen.c and pepigen.c from peXXigen.c. | |
4938 | ||
4939 | * Makefile.in: Regenerate. | |
4940 | * configure: Regenerate. | |
4941 | * po/POTFILES.in: Regenerate. | |
4942 | * po/bfd.pot: Regenerate. | |
4943 | ||
4944 | 2001-02-14 H.J. Lu <hjl@gnu.org> | |
4945 | ||
4946 | * libcoff-in.h (pe_tdata): Add members target_subsystem and | |
4947 | force_minimum_alignment. | |
4948 | ||
4949 | 2001-02-14 Bo Thorsen <bo@suse.de> | |
4950 | ||
4951 | * elf64-x86-64.c: Small formatting fixes and rearrangements of code. | |
4952 | (elf64_86_64_size_info): Struct added to fix a problem | |
4953 | with the hashtable string entries. | |
4954 | (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt. | |
4955 | (elf64_x86_64_size_dynamic_sections): A FIXME removed. | |
4956 | (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and | |
4957 | remove the FIXME for this. | |
4958 | (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt | |
4959 | section. Also removed the FIXME for it. | |
4960 | (x86_64_elf_howto_table): Use bfd_elf_generic_reloc. | |
4961 | (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker. | |
4962 | (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing. | |
4963 | ||
4964 | 2001-02-13 Richard Henderson <rth@redhat.com> | |
4965 | ||
4966 | * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required | |
4967 | and not user provided. | |
4968 | ||
4969 | 2001-02-13 Kazu Hirata <kazu@hxi.com> | |
4970 | ||
4971 | * vms.c (vms_print_symbol): Remove unreachable code. | |
4972 | ||
4973 | * rs6000-core.c: Fix formatting. | |
4974 | ||
4975 | 2001-02-13 David Mosberger <davidm@hpl.hp.com> | |
4976 | ||
4977 | * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define | |
4978 | as _bfd_XXi_only_swap_filehdr_out. | |
4979 | (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set | |
4980 | pe->force_minimum_alignment to TRUE. | |
4981 | (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to | |
4982 | PEI_TARGET_SUBSYSTEM. | |
4983 | (pe_print_private_bfd_data): Call | |
4984 | _bfd_XX_print_private_bfd_data_common() instead of | |
4985 | _bfd_pe_print_private_bfd_data_common(). | |
4986 | (pe_bfd_copy_private_bfd_data): Call | |
4987 | _bfd_XX_bfd_copy_private_bfd_data_common() instead of | |
4988 | _bfd_pe_bfd_copy_private_bfd_data_common(). | |
4989 | (coff_bfd_copy_private_section_data): Define as | |
4990 | _bfd_XX_bfd_copy_private_section_data instead of | |
4991 | _bfd_pe_bfd_copy_private_section_data. | |
4992 | (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead | |
4993 | of a _bfd_pe_get_symbol_info. | |
4994 | ||
4995 | * peigen.c: Delete. | |
4996 | ||
4997 | * peXXigen.c: Renamed from peigen.c. | |
4998 | (COFF_WITH_XX): Define this macro (will get expanded into | |
4999 | COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being | |
5000 | compiled as peigen.c or pepigen.c. | |
5001 | [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to | |
5002 | define the canonical PEP structures and definitions. | |
5003 | (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in | |
5004 | effect, enforce minimum file and section alignments. If | |
5005 | extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to | |
5006 | pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN, | |
5007 | so, by default, this is a no-op). | |
5008 | ||
5009 | * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep. | |
5010 | (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map | |
5011 | _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to | |
5012 | _bfd_pefoo if it's not defined. Use these macros to define | |
5013 | coff swap macros. | |
5014 | ||
5015 | * libcoff.h (pe_tdata): Add members target_subsystem and | |
5016 | force_minimum_alignment. | |
5017 | ||
5018 | * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to | |
5019 | COFF_WITH_pep. | |
5020 | (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM. | |
5021 | ||
5022 | * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of | |
5023 | peigen.lo. | |
5024 | ||
5025 | * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep. | |
5026 | (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and | |
5027 | PEPAOUTHDR. | |
5028 | ||
5029 | * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo. | |
5030 | (BFD64_BACKENDS_CFILES): Mention pepigen.c | |
5031 | (peigen.c): Add rule to generate from peXXigen.c. | |
5032 | (pepigen.c): Ditto. | |
5033 | (pepigen.lo): List dependencies for pepigen.lo. | |
5034 | ||
5035 | 2001-02-13 Alan Modra <alan@linuxcare.com.au> | |
5036 | ||
5037 | * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If | |
5038 | $global$ referenced but not defined, set its value here. | |
5039 | ||
5040 | 2001-02-09 Bo Thorsen <bo@suse.de> | |
5041 | ||
5042 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section | |
5043 | alignment to 3. | |
5044 | (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry | |
5045 | and relocation. | |
5046 | (elf64_x86_64_relocate_section): Fix formatting. | |
5047 | (elf64_x86_64_relocate_section): Fix addend for relocation of | |
5048 | R_X86_64_(8|16|32|PC8|PC16|PC32). | |
5049 | ||
5050 | 2001-02-12 Jan Hubicka <jh@suse.cz> | |
5051 | ||
5052 | * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL. | |
5053 | ||
5054 | 2001-02-11 H.J. Lu <hjl@gnu.org> | |
5055 | ||
5056 | * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB | |
5057 | alignment. | |
5058 | ||
5059 | 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl> | |
5060 | ||
5061 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch | |
5062 | from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32 | |
5063 | relocations against dynsym symbols. | |
5064 | ||
5065 | * elf32-mips.c (elf_mips_howto_table): Fix the comment on | |
5066 | the R_MIPS_26 relocation. | |
5067 | (mips_elf_calculate_relocation): Use (p + 4) instead of p for | |
5068 | the R_MIPS_26 relocation. | |
5069 | (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26 | |
5070 | relocation. | |
5071 | * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on | |
5072 | the R_MIPS_26 relocation. | |
5073 | (mips_elf64_howto_table_rela): Likewise. | |
5074 | ||
5075 | * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub | |
5076 | member to mark symbols that have non-CALL relocations against | |
5077 | them. | |
5078 | (mips_elf_link_hash_newfunc): Initialize no_fn_stub. | |
5079 | (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like | |
5080 | R_MIPS_GOT16. | |
5081 | (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a | |
5082 | non-CALL relocation against it is encountered. | |
5083 | (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well. | |
5084 | (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if | |
5085 | no_fn_stub is not set. | |
5086 | ||
5087 | * elf32-mips.c (mips_elf_output_extsym): Get the output section | |
5088 | information from the real symbol for indirect ones. | |
5089 | Check no_fn_stub to find out if a symbol has a function stub | |
5090 | indeed. | |
5091 | ||
5092 | 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG> | |
5093 | ||
5094 | * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory. | |
5095 | * Makefile.in: Regenerate. | |
5096 | ||
5097 | 2001-02-09 David Mosberger <davidm@hpl.hp.com> | |
5098 | ||
5099 | * elfxx-ia64.c (is_unwind_section_name): New function. Returns | |
5100 | true if section name is an unwind table section name. | |
5101 | (elfNN_ia64_additional_program_headers): Count each unwind section | |
5102 | separately. | |
5103 | (elfNN_ia64_modify_segment_map): Install one unwind program header | |
5104 | for each unwind separate section. Note: normally the linker | |
5105 | script merges the unwind sections that go into a single segment, | |
5106 | so this still generates at most one unwind program header per | |
5107 | segment. | |
5108 | ||
5109 | * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section | |
5110 | name for SHT_IA_64_UNWIND, not just .IA_64.unwind. | |
5111 | (elfNN_ia64_fake_sections): Mark sections with names that start | |
5112 | with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64 | |
5113 | unwind section. | |
5114 | ||
5115 | * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function. | |
5116 | Use it to make sh_info in unwind section point to the text section | |
5117 | it applies to. | |
5118 | ||
5119 | 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com> | |
5120 | ||
5121 | * Makefile.am: Add linux target for S/390. | |
5122 | * archures.c: Likewise. | |
5123 | * bfd-in2.h: Likewise. | |
5124 | * config.bfd: Likewise. | |
5125 | * configure.in: Likewise. | |
5126 | * elf.c: Likewise. | |
5127 | * libbfd.h: Likewise. | |
5128 | * targets.c: Likewise. | |
5129 | * cpu-s390.c: New file. | |
5130 | * elf32-s390.c: New file. | |
5131 | * elf64-s390.c: New file. | |
5132 | ||
5133 | 2001-02-09 Nick Clifton <nickc@redhat.com> | |
5134 | ||
5135 | * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of | |
5136 | ImageBase. This has already been done by coff_swap_hdr_in. | |
5137 | ||
5138 | 2001-02-09 Jakub Jelinek <jakub@redhat.com> | |
5139 | ||
5140 | * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function. | |
5141 | ||
5142 | 2001-02-09 Jakub Jelinek <jakub@redhat.com> | |
5143 | ||
5144 | * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count. | |
5145 | (sparc64_elf_relocate_section): Likewise. | |
5146 | ||
5147 | 2001-02-09 Mark Kettenis <kettenis@gnu.org> | |
5148 | ||
5149 | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32 | |
5150 | similar to R_SPARC_32. | |
5151 | * elf64-sparc.c (sparc64_elf_howto_table): Likewise. | |
5152 | ||
5153 | 2001-02-08 H.J. Lu <hjl@gnu.org> | |
5154 | ||
5155 | * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32 | |
5156 | relocation entries for weak definitions when building DSO with | |
5157 | -Bsymbolic. | |
5158 | ||
5159 | 2001-02-08 Richard Henderson <rth@redhat.com> | |
5160 | ||
5161 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness | |
5162 | before visibility. Locally defined protected symbols are not | |
5163 | dynamic. | |
5164 | ||
5165 | 2001-02-08 Geoffrey Keating <geoffk@redhat.com> | |
5166 | ||
5167 | * config.bfd: Enable coff64 for rs6000-*. Patch from | |
5168 | <hzoli@austin.ibm.com>. | |
5169 | ||
5170 | 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com> | |
5171 | ||
5172 | * coffgen.c (coff_find_nearest_line): If stabs info is successfully | |
5173 | found, do not attempt to find dwarf2 info before returning. | |
5174 | ||
5175 | 2001-02-07 Jakub Jelinek <jakub@redhat.com> | |
5176 | ||
5177 | * elflink.h (is_global_symbol_definition): Rename to | |
5178 | is_global_data_symbol_definition and have it reject function | |
5179 | symbols. | |
5180 | (elf_link_is_defined_archive_symbol): Use renamed function. | |
5181 | ||
5182 | 2001-02-07 Todd Vierling <tv@wasabisystems.com> | |
5183 | ||
5184 | * libbfd-in.h (bfd_target_vector): Change extern array to pointer. | |
5185 | * libbfd.h (bfd_target_vector): Likewise. | |
5186 | * targets.c (bfd_target_vector): Rename to _bfd_target_vector and | |
5187 | make static; create pointer reference named bfd_target_vector. | |
5188 | (_bfd_target_vector_entries): Calculate this based on the array | |
5189 | typed _bfd_target_vector. | |
5190 | ||
5191 | 2001-02-06 H.J. Lu <hjl@gnu.org> | |
5192 | ||
5193 | * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and | |
5194 | internal symbols are not dynamic. | |
5195 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise. | |
5196 | ||
5197 | 2001-02-06 Nick Clifton <nickc@redhat.com> | |
5198 | ||
5199 | * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so | |
5200 | that it will not be pulled into the list of files that make up | |
5201 | po/POTFILES.in. | |
5202 | * Makefile.in: Regenerate. | |
5203 | * po/bfd.pot: Regenerate. | |
5204 | ||
5205 | 2001-02-06 H.J. Lu <hjl@gnu.org> | |
5206 | ||
5207 | * peicode.h (coff_swap_filehdr_in): Remove the e_magic | |
5208 | checking. | |
5209 | (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and | |
5210 | external_PEI_IMAGE_hdr. | |
5211 | ||
5212 | 2001-02-06 Kazu Hirata <kazu@hxi.com> | |
5213 | ||
5214 | * elf-m10200.c: Fix formatting. | |
5215 | ||
5216 | 2001-02-04 Nick Clifton <nickc@redhat.com> | |
5217 | ||
5218 | * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC | |
5219 | rel, it will be handled later on. | |
5220 | ||
5221 | 2001-02-02 Fred Fish <fnf@ninemoons.com> | |
5222 | ||
5223 | * Makefile.in: Fix typo. | |
5224 | ||
5225 | 2001-02-01 Kazu Hirata <kazu@hxi.com> | |
5226 | ||
5227 | * elf-m10300.c: Fix formatting. | |
5228 | ||
5229 | 2001-01-30 Alan Modra <alan@linuxcare.com.au> | |
5230 | ||
5231 | * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function. | |
5232 | (elf_backend_get_symbol_type): Define. | |
5233 | (elf64_hppa_object_p): Set architecture and machine from elf | |
5234 | header flags. | |
5235 | ||
5236 | 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov> | |
5237 | ||
5238 | * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2 | |
5239 | before mdebug. | |
5240 | ||
5241 | 2001-01-26 Richard Henderson <rth@redhat.com> | |
5242 | ||
5243 | * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false | |
5244 | for non-default visibility. | |
5245 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but | |
5246 | delete ugly macro and replace with pretty function. | |
5247 | ||
5248 | 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com> | |
5249 | ||
5250 | * coff-go32.c: Update copyright. | |
5251 | * coff-stgo32.c: Likewise. | |
5252 | * coff-go32.c (COFF_LONG_FILENAMES): Define. | |
5253 | * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise. | |
5254 | * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry. | |
5255 | * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. | |
5256 | ||
5257 | 2001-01-25 Kazu Hirata <kazu@hxi.com> | |
5258 | ||
5259 | * bfd-in2.h: Rebuild. | |
5260 | * libbfd.h: Likewise. | |
5261 | ||
5262 | 2001-01-23 H.J. Lu <hjl@gnu.org> | |
5263 | ||
5264 | * bfd-in2.h: Rebuild. | |
5265 | ||
5266 | 2001-01-23 H.J. Lu <hjl@gnu.org> | |
5267 | ||
5268 | * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf) | |
5269 | is NULL or PRIV(vms_rec) is outside of the buffer. | |
5270 | ||
5271 | 2001-01-23 Kazu Hirata <kazu@hxi.com> | |
5272 | ||
5273 | * coff64-rs6000.c: Fix formatting. | |
5274 | * coff-arm.c: Likewise. | |
5275 | * coffgen.c: Likewise. | |
5276 | * cofflink.c: Likewise. | |
5277 | * coff-mcore.c: Likewise. | |
5278 | * coff-mips.c: Likewise. | |
5279 | * coff-pmac.c: Likewise. | |
5280 | * coff-ppc.c: Likewise. | |
5281 | * coff-rs6000.c: Likewise. | |
5282 | * elf32.c: Likewise. | |
5283 | * elf32-fr30.c: Likewise. | |
5284 | * elf32-i370.c: Likewise. | |
5285 | * elf32-i860.c: Likewise. | |
5286 | * elf32-m32r.c: Likewise. | |
5287 | * elf32-m68k.c: Likewise. | |
5288 | * elf32-mcore.c: Likewise. | |
5289 | * elf32-ppc.c: Likewise. | |
5290 | * elf32-sh.c: Likewise. | |
5291 | * elf32-v850.c: Likewise. | |
5292 | * elf64-alpha.c: Likewise. | |
5293 | * elf64-sparc.c: Likewise. | |
5294 | * elflink.c: Likewise. | |
5295 | * elflink.h: Likewise. | |
5296 | * elf-m10200.c: Likewise. | |
5297 | * elf-m10300.c: Likewise. | |
5298 | * elfxx-ia64.c: Likewise. | |
5299 | ||
5300 | * aoutx.h: Fix formatting. | |
5301 | * bfd.c: Likewise. | |
5302 | * bfd-in2.h: Likewise. | |
5303 | * bfd-in.h: Likewise. | |
5304 | * cpu-i386.c: Likewise. | |
5305 | * cpu-m68hc11.c: Likewise. | |
5306 | * dwarf2.c: Likewise. | |
5307 | * elf64-x86-64.c: Likewise. | |
5308 | * format.c: Likewise. | |
5309 | * freebsd.h: Likewise. | |
5310 | * hash.c: Likewise. | |
5311 | * hp300hpux.c: Likewise. | |
5312 | * hppabsd-core.c: Likewise. | |
5313 | * hpux-core.c: Likewise. | |
5314 | ||
5315 | 2001-01-22 Bo Thorsen <bo@suse.de> | |
5316 | ||
5317 | * elf64-x86-64.c: Added PIC support for X86-64. | |
5318 | (elf64_x86_64_link_hash_newfunc): Function added. | |
5319 | (elf64_x86_64_link_hash_table_create): Likewise. | |
5320 | (elf64_x86_64_check_relocs): Likewise. | |
5321 | (elf64_x86_64_gc_mark_hook): Likewise. | |
5322 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
5323 | (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
5324 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
5325 | (elf64_x86_64_discard_copies): Likewise. | |
5326 | (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
5327 | (elf64_x86_64_finish_dynamic_sections): Likewise. | |
5328 | (elf64_x86_64_relocate_section): Add relocation of PIC sections. | |
5329 | ||
5330 | 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl> | |
5331 | ||
5332 | * Makefile.am (install-data-local): Make use of $(DESTDIR). | |
5333 | * Makefile.in: Regenerate. | |
5334 | ||
5335 | 2001-01-21 Kazu Hirata <kazu@hxi.com> | |
5336 | ||
5337 | * coff-a29k.c: Fix formatting. | |
5338 | ||
5339 | 2001-01-19 H.J. Lu <hjl@gnu.org> | |
5340 | ||
5341 | * elf32-i386.c (elf_i386_check_relocs): Report files with bad | |
5342 | relocation section names. | |
5343 | (elf_i386_relocate_section): Report files with bad relocation | |
5344 | section names and return false. | |
5345 | ||
5346 | 2001-01-17 Bo Thorsen <bo@suse.de> | |
5347 | ||
5348 | * targets.c: Alphabetize list of xvecs. | |
5349 | ||
5350 | 2001-01-14 Alan Modra <alan@linuxcare.com.au> | |
5351 | ||
5352 | * config.bfd: Add linux target variant for elfxx-hppa. | |
5353 | * configure.in: Recognize bfd_elf32_hppa_linux_vec and | |
5354 | bfd_elf64_hppa_linux_vec. | |
5355 | * configure: Regenerate. | |
5356 | * elf64-hppa.c: Include elf64-target.h again to support linux | |
5357 | target variant. | |
5358 | (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux. | |
5359 | * elf32-hppa.c: Include elf32-target.h again to support linux | |
5360 | target variant. | |
5361 | (elf32_hppa_post_process_headers): New function. | |
5362 | (elf_backend_post_process_headers): Define. | |
5363 | * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and | |
5364 | bfd_elf32_hppa_linux_vec. | |
5365 | ||
5366 | * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base, | |
5367 | and data_segment_base fields. | |
5368 | (elf32_hppa_link_hash_table_create ): Init them. | |
5369 | (elf32_hppa_check_relocs): Update comments. | |
5370 | (hppa_record_segment_addr): New function. | |
5371 | (elf32_hppa_relocate_section): Call it. | |
5372 | (final_link_relocate): Handle R_PARISC_SEGREL32. | |
5373 | (elf32_hppa_final_link): New function. | |
5374 | (bfd_elf32_bfd_final_link): Define to call it. | |
5375 | (hppa_unwind_entry_compare): New function. | |
5376 | * cache.c (bfd_open_file): Create files in write+read mode. | |
5377 | ||
5378 | * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for | |
5379 | SEGREL32 and numerous other relocs. Change duplicate | |
5380 | R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED. | |
5381 | ||
5382 | * opncls.c (bfd_fdopenr): Add parens like the comment says around | |
5383 | O_ACCMODE. | |
5384 | ||
5385 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create | |
5386 | .plt entries for DT_INIT and DT_FINI. | |
5387 | (elf32_hppa_finish_dynamic_sections): Remove special handling of | |
5388 | DT_INIT and DT_FINI. | |
5389 | ||
5390 | * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit | |
5391 | offsets for stub .plt access if wide mode. Check offset in range. | |
5392 | ||
5393 | 2001-01-13 Nick Clifton <nickc@redhat.com> | |
5394 | ||
5395 | * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank | |
5396 | line. | |
5397 | ||
5398 | * coffcode.h (coff_canonicalize_reloc): Remove spurious blank | |
5399 | line. | |
5400 | ||
5401 | 2001-01-12 Alan Modra <alan@linuxcare.com.au> | |
5402 | ||
5403 | * configure.in ([bfd_elf64_x86_64_vec]): Set target64. | |
5404 | * configure: Regenerate. | |
5405 | ||
5406 | 2001-01-11 Peter Targett <peter.targett@arccores.com> | |
5407 | ||
5408 | * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5, | |
5409 | bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants. | |
5410 | * cpu-arc.c (arch_info_struct): Add entries for variants. | |
5411 | (bfd_arc_arch) Set default to bfd_mach_arc_5. | |
5412 | (arc_get_mach) Don't assume machine names prefixed arc- before | |
5413 | testing. | |
5414 | * elf32-arc.c (arc_elf_object_p): Set machine number based on new | |
5415 | selections. | |
5416 | (arc_elf_final_write_processing) Likewise. | |
5417 | (ELF_MACHINE_CODE) Use EM_ARC. | |
5418 | ||
5419 | 2001-01-10 Nick Clifton <nickc@redhat.com> | |
5420 | ||
5421 | * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "". | |
5422 | ||
5423 | 2001-01-07 Philip Blundell <philb@gnu.org> | |
5424 | ||
5425 | * README: Replace `bug-gnu-utils@gnu.org' with | |
5426 | `bug-binutils@gnu.org'. | |
5427 | ||
5428 | 2001-01-04 Kazu Hirata <kazu@hxi.com> | |
5429 | ||
5430 | * som.c: Fix formatting. | |
5431 | ||
5432 | 2001-01-03 Kazu Hirata <kazu@hxi.com> | |
5433 | ||
5434 | * ecoffswap.h: Fix formatting. | |
5435 | * elf-bfd.h: Likewise. | |
5436 | * elfarm-nabi.c: Likewise. | |
5437 | * elfarm-oabi.c: Likewise. | |
5438 | * elfcode.h: Likewise. | |
5439 | * elfcore.h: Likewise. | |
5440 | * elflink.c: Likewise. | |
5441 | * elflink.h: Likewise. | |
5442 | * elfxx-ia64.c: Likewise. | |
5443 | * elfxx-target.h: Likewise. | |
5444 | * libbfd.c: Likewise | |
5445 | * linker.c: Likewise. | |
5446 | * lynx-core.c: Likewise. | |
5447 | ||
5448 | 2001-01-02 Kazu Hirata <kazu@hxi.com> | |
5449 | ||
5450 | * pc532-mach.c: Fix formatting. | |
5451 | * pe-arm.c: Likewise. | |
5452 | * pe-i386.c: Likewise. | |
5453 | * pe-mips.c: Likewise. | |
5454 | * pe-ppc.c: Likewise. | |
5455 | * pe-sh.c: Likewise. | |
5456 | * pei-mips.c: Likewise. | |
5457 | * pei-sh.c: Likewise. | |
5458 | * peicode.h: Likewise. | |
5459 | * ppcboot.c: Likewise. | |
5460 | * ptrace-core.c: Likewise. | |
5461 | ||
5462 | 2001-01-01 Kazu Hirata <kazu@hxi.com> | |
5463 | ||
5464 | * reloc.c: Fix formatting. | |
5465 | * riscix.c: Likewise. | |
5466 | * rs6000-core.c: Likewise. | |
5467 | * xcoff-target.h: Likewise. | |
5468 | ||
5469 | 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com> | |
5470 | ||
5471 | * elfcode.h (elf_object_p): Also restore the bfd mach field on | |
5472 | error, by calling bfd_default_set_arch_mach with incoming | |
5473 | values. | |
5474 | ||
5475 | 2000-12-26 Kazu Hirata <kazu@hxi.com> | |
5476 | ||
5477 | * vaxnetbsd.c: Fix formatting. | |
5478 | * versados.c: Likewise. | |
5479 | * vms-gsd.c: Likewise. | |
5480 | * vms-hdr.c: Likewise. | |
5481 | * vms-misc.c: Likewise. | |
5482 | ||
5483 | 2000-12-25 Alexandre Oliva <aoliva@redhat.com> | |
5484 | ||
5485 | * archive.c (coff_write_armap): Don't write more than symbol_count | |
5486 | `archive_member_file_ptr's. | |
5487 | ||
5488 | 2000-12-25 Kazu Hirata <kazu@hxi.com> | |
5489 | ||
5490 | * vms-tir.c: Fix formatting. | |
5491 | ||
5492 | 2000-12-23 Kazu Hirata <kazu@hxi.com> | |
5493 | ||
5494 | * vms.c: Fix formatting. | |
5495 | * vms.h: Likewise. | |
5496 | ||
5497 | 2000-12-21 Santeri Paavolainen <santtu@ssh.com> | |
5498 | ||
5499 | * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined. | |
5500 | ||
5501 | * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM. | |
5502 | ||
5503 | * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *) | |
5504 | arithmetic. | |
5505 | ||
5506 | * elf32-fr30.c: Add casts to avoid (void *) arithmetic. | |
5507 | ||
5508 | * coffcode.h (styp_to_sec_flags): Add empty statement after label. | |
5509 | ||
5510 | 2000-12-21 Richard Sandiford <rsandifo@redhat.com> | |
5511 | ||
5512 | * libbfd.c (bfd_get_bits): Added | |
5513 | (bfd_put_bits): Likewise | |
5514 | * bfd-in.h: Declared the above. | |
5515 | * bfd-in2.h: Regenerated. | |
5516 | ||
5517 | 2000-12-20 Kazu Hirata <kazu@hxi.com> | |
5518 | ||
5519 | * targets.c: Fix formatting. | |
5520 | * tekhex.c: Likewise. | |
5521 | * trad-core.c: Likewise. | |
5522 | ||
5523 | 2000-12-19 Kazu Hirata <kazu@hxi.com> | |
5524 | ||
5525 | * sco5-core.c: Fix formatting. | |
5526 | * section.c: Likewise. | |
5527 | * sparclinux.c: Likewise. | |
5528 | * sparclynx.c: Likewise. | |
5529 | * sparcnetbsd.c: Likewise. | |
5530 | * srec.c: Likewise. | |
5531 | * stabs.c: Likewise. | |
5532 | * stab-syms.c: Likewise. | |
5533 | * sunos.c: Likewise. | |
5534 | * syms.c: Likewise. | |
5535 | * sysdep.h: Likewise. | |
5536 | ||
5537 | 2000-12-18 Nick Clifton <nickc@redhat.com> | |
5538 | ||
5539 | * coff-arm.c (EXTRA_S_FLAGS): Only define if not already | |
5540 | defined. | |
5541 | * epoc-pe-arm.c (EXTRA_S_FLAGS): Define. | |
5542 | * epoc-pei-arm.c (EXTRA_S_FLAGS): Define. | |
5543 | ||
5544 | 2000-12-18 Nick Clifton <nickc@redhat.com> | |
5545 | ||
5546 | * vms-misc.c (_bfd_vms_get_record): Add default case to | |
5547 | file_format switch. | |
5548 | ||
5549 | 2000-12-15 Miloslav Trmac <mitr@volny.cz> | |
5550 | ||
5551 | * elfcore.h (elf_core_file_p): Move to the start of the program | |
5552 | headers before attempting to read them. | |
5553 | ||
5554 | 2000-12-14 Kazu Hirata <kazu@hxi.com> | |
5555 | ||
5556 | * peigen.c: Fix formatting. | |
5557 | * som.c: Likewise. | |
5558 | * som.h: Likewise. | |
5559 | ||
5560 | 2000-12-13 Kazu Hirata <kazu@hxi.com> | |
5561 | ||
5562 | * peigen.c: Fix formatting. | |
5563 | ||
5564 | 2000-12-12 Jim Wilson <wilson@redhat.com> | |
5565 | ||
5566 | * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *. | |
5567 | ||
5568 | 2000-12-08 Mark Salter <msalter@redhat.com> | |
5569 | ||
5570 | * binary.c (binary_set_section_contents): Ignore sections | |
5571 | with zero size. | |
5572 | ||
5573 | 2000-12-12 Kazu Hirata <kazu@hxi.com> | |
5574 | ||
5575 | * m68klinux.c: Fix formatting. | |
5576 | * m68knetbsd.c: Likewise. | |
5577 | * mipsbsd.c: Likewise. | |
5578 | * netbsd-core.c: Likewise. | |
5579 | * netbsd.h: Likewise. | |
5580 | * newsos3.c: Likewise. | |
5581 | * nlm32-alpha.c: Likewise. | |
5582 | * nlm32-i386.c: Likewise. | |
5583 | * nlm32-ppc.c: Likewise. | |
5584 | * nlm32-sparc.c: Likewise. | |
5585 | * nlmcode.h: Likewise. | |
5586 | * nlmswap.h: Likewise. | |
5587 | * nlm-target.h: Likewise. | |
5588 | * ns32knetbsd.c: Likewise. | |
5589 | ||
5590 | 2000-12-10 Fred Fish <fnf@be.com> | |
5591 | ||
5592 | * elflink.h (elf_link_output_extsym): Don't complain about undefined | |
5593 | symbols in shared objects if allow_shlib_undefined is true. | |
5594 | ||
5595 | 2000-12-12 Nick Clifton <nickc@redhat.com> | |
5596 | ||
5597 | * cpu-sh.c: Fix formattng. | |
5598 | * elf.c: Fix formattng. | |
5599 | * elf32-mips.c: Fix formattng. | |
5600 | * elf32-sh.c: Fix formattng. | |
5601 | * elf64-alpha.c: Fix formattng. | |
5602 | ||
5603 | 2000-12-09 Nick Clifton <nickc@redhat.com> | |
5604 | ||
5605 | * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass | |
5606 | dwarf2_find_line_info as last parameter to invocation of | |
5607 | _bfd_dwarf2_find_nearest_line. | |
5608 | * elf32-arm.h (elf32_arm_find_nearest_line): Pass | |
5609 | dwarf2_find_line_info as last parameter to invocation of | |
5610 | _bfd_dwarf2_find_nearest_line. | |
5611 | ||
5612 | 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com> | |
5613 | ||
5614 | * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here... | |
5615 | (BFD_LIBS): ...to here. | |
5616 | (BFD32_BACKENDS_CFILES): Move dwarf2.c from here... | |
5617 | (BFD_LIBS_CFILES): ...to here. | |
5618 | * Makefile.in: Regenerate. | |
5619 | * configure.in: Remove dwarf.lo from the elf shell variable. | |
5620 | * configure: Regenerate. | |
5621 | * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info. | |
5622 | * libcoff.h: Regenerate. | |
5623 | * coffgen.c (coff_find_nearest_line): Call | |
5624 | _bfd_dwarf2_find_nearest_line. | |
5625 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update | |
5626 | accordingly. | |
5627 | (read_abbrevs): Likewise | |
5628 | (decode_line_info): Likewise. | |
5629 | (parse_comp_unit): Likewise. | |
5630 | (comp_unit_find_nearest_line): Likewise. | |
5631 | * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype. | |
5632 | * libbfd.h: Regenerate. | |
5633 | * elf.c (_bfd_elf_find_nearest_line): Update call. | |
5634 | * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR. | |
5635 | * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH. | |
5636 | * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros. | |
5637 | (sec_to_styp_flags): Use them. Handle DWARF2 sections. | |
5638 | (styp_to_sec_flags): Handle DWARF2 sections. | |
5639 | * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call | |
5640 | to _bfd_find_nearest_line. | |
5641 | * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to | |
5642 | call to _bfd_find_nearest_line. | |
5643 | ||
5644 | 2000-12-08 Kazu Hirata <kazu@hxi.com> | |
5645 | ||
5646 | * coffgen.c: Fix formatting. | |
5647 | * elf-m10300.c: Likewise. | |
5648 | * elf32-i386.c: Likewise. | |
5649 | * elf32-i960.c: Likewise. | |
5650 | * elf32-m68k.c: Likewise. | |
5651 | * elf32-mcore.c: Likewise. | |
5652 | * elf32-ppc.c: Likewise. | |
5653 | * elf32-sh.c: Likewise. | |
5654 | * elf32-sparc.c: Likewise. | |
5655 | * elf32-v850.c: Likewise. | |
5656 | * elf64-alpha.c: Likewise. | |
5657 | * elf64-hppa.c: Likewise. | |
5658 | * elf64-mips.c: Likewise. | |
5659 | * elf64-sparc.c: Likewise. | |
5660 | ||
5661 | 2000-12-07 Kazu Hirata <kazu@hxi.com> | |
5662 | ||
5663 | * elf32-ppc.c: Fix formatting. | |
5664 | * elf64-x86-64.c: Likewise. | |
5665 | ||
5666 | 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com> | |
5667 | ||
5668 | From Ralf Baechle <ralf@gnu.org> | |
5669 | ||
5670 | * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit | |
5671 | BFDs containing no sections or empty .text, .data or .bss sections | |
5672 | to be merged, regardless of their flags. | |
5673 | ||
5674 | 2000-12-06 Kazu Hirata <kazu@hxi.com> | |
5675 | ||
5676 | * elf32-m32r.c: Fix formatting. | |
5677 | * elf32-m68hc11.c: Likewise. | |
5678 | * elf32-m68hc12.c: Likewise. | |
5679 | * elf32-m68k.c: Likewise. | |
5680 | * elf32-mcore.c: Likewise. | |
5681 | * elf32-pj.c: Likewise. | |
5682 | * elf32-ppc.c: Likewise. | |
5683 | ||
5684 | 2000-12-05 Kazu Hirata <kazu@hxi.com> | |
5685 | ||
5686 | * elf32-fr30.c: Fix formatting. | |
5687 | * elf32-hppa.c: Likewise. | |
5688 | * elf32-i370.c: Likewise. | |
5689 | * elf32-i386.c: Likewise. | |
5690 | * elf32-i860.c: Likewise. | |
5691 | * elf32-i960.c: Likewise. | |
5692 | ||
5693 | 2000-12-03 Kazu Hirata <kazu@hxi.com> | |
5694 | ||
5695 | * elf32-arm.h: Fix formatting. | |
5696 | * elf32-avr.c: Likewise. | |
5697 | * elf32-cris.c: Likewise. | |
5698 | * elf32-d10v.c: Likewise. | |
5699 | * elf32-d30v.c: Likewise. | |
5700 | * elf-hppa.h: Likewise. | |
5701 | * elf-m10200.c: Likewise. | |
5702 | * elf-m10300.c: Likewise. | |
5703 | ||
5704 | 2000-12-01 Chris Demetriou <cgd@sibyte.com> | |
5705 | ||
5706 | * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and | |
5707 | bfd_mach_mips32_4k. Update FIXME comment. | |
5708 | * archures.c (bfd_mach_mips32): New constant. | |
5709 | (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to | |
5710 | the latter, renumber it. | |
5711 | * bfd-in2.h (bfd_mach_mips32): New constant. | |
5712 | (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to | |
5713 | the latter, renumber it. | |
5714 | * cpu-mips.c (I_mips32): New constant. | |
5715 | (I_mips4K, I_mips32_4k): Rename the former to the latter. | |
5716 | (arch_info_struct): Add bfd_mach_mips32 entry, replace | |
5717 | bfd_mach_mips4K entry with bfd_mach_mips32_4k entry. | |
5718 | * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case. | |
5719 | (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32 | |
5720 | with E_MIPS_MACH_MIPS32_4K. | |
5721 | (_bfd_mips_elf_final_write_processing): Replace | |
5722 | bfd_mach_mips4K with bfd_mach_mips32_4k case, add | |
5723 | bfd_mach_mips32 case. | |
5724 | (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing | |
5725 | comparison with support for MIPS32. | |
5726 | (_bfd_mips_elf_print_private_bfd_data): Print ISA name for | |
5727 | MIPS32. | |
5728 | ||
5729 | * aoutx.h (NAME(aout,machine_type)): Add cases for | |
5730 | bfd_mach_mips5 and bfd_mach_mips64. | |
5731 | * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants. | |
5732 | * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise. | |
5733 | * cpu_mips.c (I_mips5, I_mips64): New definitions. | |
5734 | (arch_info_struct): Add entries for bfd_mach_mips5 and | |
5735 | bfd_mach_mips64. | |
5736 | * elf32-mips.c (elf_mips_isa, elf_mips_mach, | |
5737 | _bfd_mips_elf_print_private_bfd_data): Add cases for | |
5738 | E_MIPS_ARCH_5 and E_MIPS_ARCH_64. | |
5739 | (_bfd_mips_elf_final_write_processing): Add cases for | |
5740 | bfd_mach_mips5 and bfd_mach_mips64. | |
5741 | ||
5742 | * aoutx.h (NAME(aout,machine_type)): Add a | |
5743 | bfd_mach_mips_sb1 case. | |
5744 | * archures.c (bfd_mach_mips_sb1): New constant. | |
5745 | * bfd-in2.h (bfd_mach_mips_sb1): New constant. | |
5746 | * cpu-mips.c (I_sb1): New constant. | |
5747 | (arch_info_struct): Add entry for bfd_mach_mips_sb1. | |
5748 | * elf32-mips.c (elf_mips_mach): Add case for | |
5749 | E_MIPS_MACH_SB1. | |
5750 | (_bfd_mips_elf_final_write_processing): Add case for | |
5751 | bfd_mach_mips_sb1. | |
5752 | ||
5753 | 2000-12-01 Joel Sherrill <joel@OARcorp.com> | |
5754 | ||
5755 | * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets. | |
5756 | (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets. | |
5757 | (sparc*-*-rtems*): Switched from a.out to ELF. | |
5758 | ||
5759 | 2000-11-30 Jan Hubicka <jh@suse.cz> | |
5760 | ||
5761 | * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo | |
5762 | BFD64_BACKENDS_CFILES): Add elf64-x86-64.c | |
5763 | (elf64-x86-64.lo): Add dependencies. | |
5764 | * archures.c (DESCRIPTION): Add bfd_mach_x86_64, | |
5765 | bfd_mach_x86_64_intel_syntax. | |
5766 | * elf.c (prep_headers): Use EM_x86_64 for 64bit output. | |
5767 | * config.bfd (x86_64): Add. | |
5768 | * configure.in: Add support for bfd_elf64_x86_64_vec. | |
5769 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add. | |
5770 | (bfd_i386_arch, i8086_ar): Link in. | |
5771 | * elf64-x86-64.c: New file. | |
5772 | * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*. | |
5773 | * targets.c (bfd_elf64_x86_64_vec): Add. | |
5774 | (bfd_target_vect): Add bfd_elf64_x86_64_vec. | |
5775 | ||
5776 | 2000-11-30 Kazu Hirata <kazu@hxi.com> | |
5777 | ||
5778 | * xcofflink.c: Fix formatting. | |
5779 | ||
5780 | 2000-11-28 Kazu Hirata <kazu@hxi.com> | |
5781 | ||
5782 | * aoutx.h: Fix formatting. | |
5783 | * bfd-in.h: Likewise. | |
5784 | * bfd-in2.h: Likewise. | |
5785 | * cache.c: Likewise. | |
5786 | * cisco-core.c: Likewise. | |
5787 | * coff64-rs6000.c: Likewise. | |
5788 | * coffcode.h: Likewise. | |
5789 | * coffswap.h: Likewise. | |
5790 | * corefile.c: Likewise. | |
5791 | * elf32-mips.c: Likewise. | |
5792 | ||
5793 | 2000-11-27 Kazu Hirata <kazu@hxi.com> | |
5794 | ||
5795 | * aout-adobe.c: Fix formatting. | |
5796 | * coff64-rs6000.c: Likewise. | |
5797 | * coffgen.c: Likewise. | |
5798 | * cofflink.c: Likewise. | |
5799 | ||
5800 | 2000-11-27 Philip Blundell <pb@futuretv.com> | |
5801 | ||
5802 | * libcoff-in.h (coff_tdata): Add `strings_written' flag. | |
5803 | (obj_coff_strings_written): New accessor macro for above. | |
5804 | * libcoff.h: Regenerate. | |
5805 | * cofflink.c (_bfd_coff_final_link): Say that we wrote the | |
5806 | strings. | |
5807 | * coffcode.h (coff_write_object_contents): No need to write out | |
5808 | the string table if it's already been done. | |
5809 | ||
5810 | 2000-11-22 Philip Blundell <pb@futuretv.com> | |
5811 | ||
5812 | * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to | |
5813 | weak undefined symbols. | |
5814 | ||
5815 | 2000-11-24 Nick Clifton <nickc@redhat.com> | |
5816 | ||
5817 | * archures.c (bfd_mach_arm_5TE): Define. | |
5818 | (bfd_mach_arm+XScale): Define. | |
5819 | * bfd-in2.h: Regenerate. | |
5820 | ||
5821 | * coff-arm.c (coff_arm_reloc_type_lookup): Accept | |
5822 | BFD_RELOC_ARM_PCREL_BLX. | |
5823 | ||
5824 | * coffcode.h (coff_set_flags): Set flags for 5t, 5te and | |
5825 | XScale machine numbers. | |
5826 | ||
5827 | * config.bfd (xscale-elf): Add target. | |
5828 | (xscale-coff): Add target. | |
5829 | ||
5830 | * cpu-arm.c: Add xscale machine name. | |
5831 | Add v5t, v5te and XScale machine numbers. | |
5832 | ||
5833 | 2000-11-23 Kazu Hirata <kazu@hxi.com> | |
5834 | ||
5835 | * aix386-core.c: Fix formatting. | |
5836 | ||
5837 | 2000-11-22 Jim Wilson <wilson@redhat.com> | |
5838 | ||
5839 | * coff-ia64.c (howto_table): Use EMPTY_HOWTO. | |
5840 | (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters. | |
5841 | * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise. | |
5842 | (ins_imms_scaled): Initialize sign_bit at function entry. | |
5843 | (elf64_ia64_operands): Add missing initializers. | |
5844 | * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup, | |
5845 | elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections, | |
5846 | elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name, | |
5847 | elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff, | |
5848 | elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused | |
5849 | parameters. | |
5850 | (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents, | |
5851 | and free_extsyms at function entry. | |
5852 | (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result. | |
5853 | (elfNN_ia64_create_dynamic_sections): Delete unused local h. | |
5854 | (get_got): Delete unused local srel. | |
5855 | (elfNN_ia64_check_relocs): Initialize dynrel_type when declared. | |
5856 | (elfNN_ia64_relocate_section): Delete unused local dynindx. | |
5857 | ||
5858 | 2000-11-21 Kazu Hirata <kazu@hxi.com> | |
5859 | ||
5860 | * coff-a29k.c: Fix formatting. | |
5861 | * coff-h8500.c: Likewise. | |
5862 | * coff-i960.c: Likewise. | |
5863 | * coff-ppc.c: Likewise. | |
5864 | * coff-rs6000.c: Likewise. | |
5865 | * coff-stgo32.c: Likewise. | |
5866 | * coff-tic54x.c: Likewise. | |
5867 | * coff-w65.c: Likewise. | |
5868 | * cpu-h8500.c: Likewise. | |
5869 | * cpu-hppa.c: Likewise. | |
5870 | * cpu-ns32k.c: Likewise. | |
5871 | * ecoff.c: Likewise. | |
5872 | * ecofflink.c: Likewise. | |
5873 | ||
5874 | 2000-11-21 Nick Clifton <nickc@redhat.com> | |
5875 | ||
5876 | * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and | |
5877 | remove possibility of infinite loop. | |
5878 | ||
5879 | 2000-11-20 Kazu Hirata <kazu@hxi.com> | |
5880 | ||
5881 | * aix386-core.c: Fix formatting. | |
5882 | * aout-adobe.c: Likewise. | |
5883 | * aout-arm.c: Likewise. | |
5884 | * aout-encap.c: Likewise. | |
5885 | * aout-ns32k.c: Likewise. | |
5886 | * aout-target.h: Likewise. | |
5887 | * aout-tic30.c: Likewise. | |
5888 | * aoutf1.h: Likewise. | |
5889 | * aoutx.h: Likewise. | |
5890 | * archive.c: Likewise. | |
5891 | * bfd-in.h: Likewise. | |
5892 | * bfd-in2.h: Likewise. | |
5893 | * bfd.c: Likewise. | |
5894 | * bout.c: Likewise. | |
5895 | ||
5896 | 2000-11-17 H.J. Lu <hjl@gnu.org> | |
5897 | ||
5898 | * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create | |
5899 | pltoff entries for DT_INIT and DT_FINI. | |
5900 | (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries. | |
5901 | (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI | |
5902 | entries. | |
5903 | ||
5904 | 2000-11-16 Richard Henderson <rth@redhat.com> | |
5905 | ||
5906 | * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs. | |
5907 | (allocate_dynrel_entries): Likewise. | |
5908 | (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly. | |
5909 | (set_pltoff_entry): Likewise. | |
5910 | (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB | |
5911 | (elfNN_ia64_reloc_type_lookup): Likewise. | |
5912 | (elfNN_ia64_install_value): Likewise. | |
5913 | (elfNN_ia64_relocate_section): Likewise. | |
5914 | * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove. | |
5915 | (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove. | |
5916 | ||
5917 | 2000-11-16 Kazu Hirata <kazu@hxi.com> | |
5918 | ||
5919 | * cpu-a29k.c: Fix formatting. | |
5920 | * cpu-alpha.c: Likewise. | |
5921 | * cpu-arm.c: Likewise. | |
5922 | * cpu-avr.c: Likewise. | |
5923 | * cpu-d10v.c: Likewise. | |
5924 | * cpu-h8500.c: Likewise. | |
5925 | * cpu-hppa.c: Likewise. | |
5926 | * cpu-i370.c: Likewise. | |
5927 | * cpu-i386.c: Likewise. | |
5928 | * cpu-i960.c: Likewise. | |
5929 | * cpu-ia64-opc.c: Likewise. | |
5930 | * cpu-ia64.c: Likewise. | |
5931 | * cpu-m32r.c: Likewise. | |
5932 | * cpu-m68hc11.c: Likewise. | |
5933 | * cpu-m68hc12.c: Likewise. | |
5934 | * cpu-m68k.c: Likewise. | |
5935 | * cpu-m88k.c: Likewise. | |
5936 | * cpu-mips.c: Likewise. | |
5937 | * cpu-ns32k.c: Likewise. | |
5938 | * cpu-pj.c: Likewise. | |
5939 | * cpu-powerpc.c: Likewise. | |
5940 | * cpu-sh.c: Likewise. | |
5941 | * cpu-sparc.c: Likewise. | |
5942 | * cpu-tic54x.c: Likewise. | |
5943 | * cpu-v850.c: Likewise. | |
5944 | * cpu-vax.c: Likewise. | |
5945 | * cpu-w65.c: Likewise. | |
5946 | * cpu-we32k.c: Likewise. | |
5947 | * cpu-z8k.c: Likewise. | |
5948 | * dwarf1.c: Likewise. | |
5949 | * dwarf2.c: Likewise. | |
5950 | ||
5951 | 2000-11-15 Kazu Hirata <kazu@hxi.com> | |
5952 | ||
5953 | * coff-arm.c: Fix formatting. | |
5954 | * coff-ppc.c: Likewise. | |
5955 | * coff-rs6000.c: Likewise. | |
5956 | * coff-sh.c: Likewise. | |
5957 | * coff-sparc.c: Likewise. | |
5958 | * coff-tic30.c: Likewise. | |
5959 | * coff-tic54x.c: Likewise. | |
5960 | * coff-tic80.c: Likewise. | |
5961 | * coff-w65.c: Likewise. | |
5962 | * coff-we32k.c: Likewise. | |
5963 | * coff-z8k.c: Likewise. | |
5964 | ||
5965 | 2000-11-15 Richard Henderson <rth@redhat.com> | |
5966 | ||
5967 | * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc | |
5968 | section with the same ALLOC|LOAD flags as the source section. | |
5969 | ||
5970 | 2000-11-14 Jakub Jelinek <jakub@redhat.com> | |
5971 | ||
5972 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used | |
5973 | by STO_ALPHA constants. | |
5974 | ||
5975 | 2000-11-14 Kazu Hirata <kazu@hxi.com> | |
5976 | ||
5977 | * coff-pmac.c: Fix formatting. | |
5978 | * coff-ppc.c: Likewise. | |
5979 | ||
5980 | 2000-11-13 H.J. Lu <hjl@gnu.org> | |
5981 | ||
5982 | * elflink.h (elf_link_add_object_symbols): Also add indirect | |
5983 | symbols for common symbols with the default version. | |
5984 | ||
5985 | 2000-11-09 Philip Blundell <pb@futuretv.com> | |
5986 | ||
5987 | * section.c (STD_SECTION): Set gc_mark flag. | |
5988 | ||
5989 | 2000-11-11 Kazu Hirata <kazu@hxi.com> | |
5990 | ||
5991 | * coff-i960.c: Likewise. | |
5992 | * coff-m68k.c: Likewise. | |
5993 | * coff-m88k.c: Likewise. | |
5994 | * coff-mcore.c: Likewise. | |
5995 | * coff-mips.c: Likewise. | |
5996 | ||
5997 | 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk> | |
5998 | ||
5999 | * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs. | |
6000 | ||
6001 | 2000-11-10 Kazu Hirata <kazu@hxi.com> | |
6002 | ||
6003 | * coff-h8300.c: Fix formatting. | |
6004 | * coff-h8500.c: Likewise. | |
6005 | * coff-i386.c: Likewise. | |
6006 | * coff-i860.c: Likewise. | |
6007 | * coff-i960.c: Likewise. | |
6008 | * coff-ia64.c: Likewise. | |
6009 | ||
6010 | 2000-11-09 Kazu Hirata <kazu@hxi.com> | |
6011 | ||
6012 | * archive.c: Fix formatting. | |
6013 | * archures.c: Likewise. | |
6014 | ||
6015 | 2000-11-07 Richard Henderson <rth@redhat.com> | |
6016 | ||
6017 | * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec. | |
6018 | Set it before bfd_elf64_bfd_final_link call. Use it after the call. | |
6019 | * section.c (bfd_set_section_contents): Call memcpy if | |
6020 | section->contents set and location not equal to contents plus offset. | |
6021 | ||
6022 | 2000-11-08 Kazu Hirata <kazu@hxi.com> | |
6023 | ||
6024 | * bfd-in.h: Fix formatting. | |
6025 | * bfd-in2.h: Likewise. | |
6026 | * bfd.c: Likewise. | |
6027 | * binary.c: Likewise. | |
6028 | * bout.c: Likewise. | |
6029 | * coff-a29k.c: Likewise. | |
6030 | * coff-alpha.c: Likewise. | |
6031 | * coff-apollo.c: Likewise. | |
6032 | * coff-aux.c: Likewise. | |
6033 | ||
6034 | 2000-11-07 Kazu Hirata <kazu@hxi.com> | |
6035 | ||
6036 | * aix386-core.c: Fix formatting. | |
6037 | * aoutf1.h: Likewise. | |
6038 | * aoutx.h: Likewise. | |
6039 | * archures.c: Likewise. | |
6040 | * armnetbsd.c: Likewise. | |
6041 | ||
6042 | 2000-11-07 Alan Modra <alan@linuxcare.com.au> | |
6043 | ||
6044 | * coff-h8300.c (special): Adjust reloc address. | |
6045 | ||
6046 | 2000-11-06 Steve Ellcey <sje@cup.hp.com> | |
6047 | ||
6048 | * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines | |
6049 | to differentiate elf32 and elf64 on ia64. | |
6050 | * bfd-in2.h: Regenerate. | |
6051 | * config.bfd: Add target for "ia64*-*-hpux*". | |
6052 | * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch. | |
6053 | * configure: Regenerate. | |
6054 | * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure. | |
6055 | * targets.c: Add bfd_target bfd_elf32_ia64_big_vec. | |
6056 | ||
6057 | * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects | |
6058 | from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo. | |
6059 | * Makefile.in: Regnerate. | |
6060 | * elf64-ia64.c: Deleted. | |
6061 | * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c. | |
6062 | ||
6063 | 2000-11-06 Kazu Hirata <kazu@hxi.com> | |
6064 | ||
6065 | * aout-adobe.c: Fix formatting. | |
6066 | * aout-arm.c: Likewise. | |
6067 | * aout-cris.c: Likewise. | |
6068 | * aout-encap.c: Likewise. | |
6069 | * aout-ns32k.c: Likewise. | |
6070 | * aout-target.h: Likewise. | |
6071 | * aout-tic30.c: Likewise. | |
6072 | ||
6073 | 2000-11-05 Philip Blundell <philb@gnu.org> | |
6074 | ||
6075 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit | |
6076 | BFDs containing no sections to be merged, regardless of their flags. | |
6077 | ||
6078 | 2000-11-04 Philip Blundell <philb@gnu.org> | |
6079 | ||
6080 | * elf32-arm.h (elf32_arm_relocate_section): Suppress error message | |
6081 | if a relocation for an undefined symbol also results in an | |
6082 | overflow. | |
6083 | ||
6084 | 2000-11-06 Christopher Faylor <cgf@cygnus.com> | |
6085 | ||
6086 | * config.bfd: Add support for Sun Chorus. | |
6087 | ||
6088 | 2000-11-05 David O'Brien <obrien@FreeBSD.org> | |
6089 | ||
6090 | * configure.in: Recognize alpha-*-freebsd*. | |
6091 | * configure: Regenerate. | |
6092 | ||
6093 | 2000-11-02 Luciano Gemme <ishitawa@yahoo.com> | |
6094 | ||
6095 | * srec.c (CHUNK): Rename to DEFAULT_CHUNK. | |
6096 | (Chunk): New global variable set by a parameter in objcopy.c. | |
6097 | (S3Forced): New global variable set by a parameter in | |
6098 | objcopy.c. | |
6099 | (srec_set_section_contents): If S3Forced is true, always generate | |
6100 | S3 records. | |
6101 | (srec_write_section): Use 'Chunk' to limit maximum length of S | |
6102 | records. | |
6103 | ||
6104 | 2000-11-02 Per Lundberg <plundis@chaosdev.org> | |
6105 | ||
6106 | * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos. | |
6107 | * Makefile.in: Regenerate. | |
6108 | * bfd-in2.h: Regenerate. | |
6109 | * po/bfd.pot: Regenerate. | |
6110 | ||
6111 | 2000-10-31 Philip Blundell <philb@gnu.org> | |
6112 | ||
6113 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle | |
6114 | EF_SOFT_FLOAT if it is defined. | |
6115 | ||
6116 | 2000-10-27 Philip Blundell <philb@gnu.org> | |
6117 | ||
6118 | * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse | |
6119 | attempts to mix PIC code with non-PIC, just mark the output as | |
6120 | being position dependent. | |
6121 | (elf32_arm_merge_private_bfd_data): Likewise. Print an error | |
6122 | message for EF_SOFT_FLOAT mismatches. Display diagnostics for | |
6123 | all mismatches, not just the first one. | |
6124 | ||
6125 | 2000-10-25 Chris Demetriou <cgd@sibyte.com> | |
6126 | ||
6127 | * ieee.c (ieee_archive_p): Plug one of many possible | |
6128 | memory leaks in error handling. | |
6129 | ||
6130 | 2000-10-20 Jakub Jelinek <jakub@redhat.com> | |
6131 | ||
6132 | * elf32-sparc.c (elf32_sparc_merge_private_bfd_data, | |
6133 | elf32_sparc_object_p, elf32_sparc_final_write_processing): | |
6134 | Support v8plusb. | |
6135 | * elf64-sparc.c (sparc64_elf_merge_private_bfd_data, | |
6136 | sparc64_elf_object_p): Support v9b. | |
6137 | * archures.c: Declare v8plusb and v9b machines. | |
6138 | * bfd-in2.h: Ditto. | |
6139 | * cpu-sparc.c: Ditto. | |
6140 | ||
6141 | 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com> | |
6142 | ||
6143 | * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location | |
6144 | of a GOT reloc. | |
6145 | ||
6146 | * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro. | |
6147 | (SYMBOL_CALLS_LOCAL): New macro. | |
6148 | (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL. | |
6149 | (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL. | |
6150 | (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL. | |
6151 | (ppc_elf_relocate_section): Use flag variable to determine | |
6152 | whether the relocation refers to a local symbol. | |
6153 | Test whether a PLTREL24 reloc will produce a reloc by looking | |
6154 | to see whether a PLT entry was made. | |
6155 | ||
6156 | 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com> | |
6157 | ||
6158 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT | |
6159 | entries that could serve as a definition for a weak symbol. | |
6160 | ||
6161 | 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com> | |
6162 | ||
6163 | From Ralf Baechle <ralf@gnu.org> | |
6164 | ||
6165 | * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument | |
6166 | local_p. Add symbol value only for non-R_MIPS_REL32 relocations | |
6167 | against local symbols. | |
6168 | (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01. | |
6169 | ||
6170 | 2000-10-12 Alan Modra <alan@linuxcare.com.au> | |
6171 | ||
6172 | * section.c (struct sec): Add kept_section. | |
6173 | (struct bfd_comdat_info): Remove sec, we can use above. | |
6174 | (STD_SECTION): Add initializer. | |
6175 | (bfd_make_section_anyway): Init here too. | |
6176 | ||
6177 | * bfd-in2.h: Regenerate. | |
6178 | ||
6179 | * elflink.h (elf_link_add_object_symbols): Remove unnecessary | |
6180 | zeroing of `flags'. | |
6181 | (elf_link_input_bfd): Set all asection->symbol->value's here, and | |
6182 | fudge values for discarded link-once section symbols. | |
6183 | ||
6184 | * elf64-hppa.c: Include alloca-conf.h | |
6185 | ||
6186 | 2000-10-11 Alan Modra <alan@linuxcare.com.au> | |
6187 | ||
6188 | * elf.c (swap_out_syms): Revert 2000-10-07 changes. | |
6189 | ||
6190 | * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg. | |
6191 | ||
6192 | 2000-10-10 Alan Modra <alan@linuxcare.com.au> | |
6193 | ||
6194 | * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc. | |
6195 | ||
6196 | 2000-10-10 Tom Rix <trix@redhat.com> | |
6197 | ||
6198 | * section.c (bfd_make_section_anyway): Release newsect ptr when | |
6199 | newsect->symbol fails to alloc. Use bfd_release instead of free. | |
6200 | ||
6201 | 2000-10-09 Richard Henderson <rth@cygnus.com | |
6202 | ||
6203 | * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New. | |
6204 | (elf64_ia64_unwind_entry_compare): New. | |
6205 | (elf64_ia64_final_link): Sort the .IA_64.unwind section. | |
6206 | ||
6207 | 2000-10-07 Alan Modra <alan@linuxcare.com.au> | |
6208 | ||
6209 | * elflink.h (size_dynamic_sections): Don't create various tags if | |
6210 | .dynstr is excluded from the link. Don't set first dynsym entry | |
6211 | if dynsymcount is zero. | |
6212 | (elf_bfd_final_link): Don't try to swap out dynamic syms if | |
6213 | .dynsym excluded from the link. Don't try to write any dynamic | |
6214 | sections excluded from the link. | |
6215 | ||
6216 | * elf.c (swap_out_syms): Handle global section symbols. | |
6217 | ||
6218 | 2000-10-05 DJ Delorie <dj@redhat.com> | |
6219 | ||
6220 | * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs | |
6221 | * coffcode.h (coff_set_alignment_hook): read extended reloc count | |
6222 | (coff_write_relocs): write extended reloc count | |
6223 | (coff_write_object_contents): account for extended relocs | |
6224 | ||
6225 | 2000-10-05 Jim Wilson <wilson@cygnus.com> | |
6226 | ||
6227 | * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags | |
6228 | field. | |
6229 | * elf.c (_bfd_elf_make_section_from_shdr): Call the | |
6230 | elf_backend_section_flags function. | |
6231 | * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion | |
6232 | code. | |
6233 | (elf64_ia64_section_flags): New function containing flag conversion | |
6234 | code. | |
6235 | (elf_backend_section_flags): Define to elf64_ia64_section_flags. | |
6236 | * elfxx-target.h (elf_backend_section_flags): Define. | |
6237 | (elfNN_bed): Initialize elf_backend_section_flags field. | |
6238 | ||
6239 | 2000-10-02 Alan Modra <alan@linuxcare.com.au> | |
6240 | ||
6241 | * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to | |
6242 | _bfd_elf32_gc_record_vtable. Correct a comment. | |
6243 | ||
6244 | 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com> | |
6245 | ||
6246 | From Ralf Baechle <ralf@gnu.org> | |
6247 | ||
6248 | * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld | |
6249 | produces binaries with got[1] = 0x80000001 to differenciate them | |
6250 | for the dynamic linker from the broken binaries produced by old | |
6251 | versions. | |
6252 | ||
6253 | 2000-09-30 Petr Sorfa <petrs@sco.com> | |
6254 | ||
6255 | * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t. | |
6256 | (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t. | |
6257 | * configure.in: Add check for pxstatus_t and lwpxstatus_t. | |
6258 | * configure: Regenerate. | |
6259 | ||
6260 | 2000-09-27 Hans-Peter Nilsson <hp@axis.com> | |
6261 | ||
6262 | Define two bfd_targets for absence and presence of leading | |
6263 | underscore on symbols. Make sure to only link same kind. | |
6264 | * elf32-cris.c (cris_elf_object_p, | |
6265 | cris_elf_final_write_processing, cris_elf_print_private_bfd_data, | |
6266 | cris_elf_merge_private_bfd_data): New. | |
6267 | (elf_backend_object_p, elf_backend_final_write_processing, | |
6268 | bfd_elf32_bfd_print_private_bfd_data, | |
6269 | bfd_elf32_bfd_merge_private_bfd_data): Define. | |
6270 | <Target vector definition>: Include elf32-target.h twice with | |
6271 | different macro settings: | |
6272 | (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as | |
6273 | bfd_elf32_us_cris_vec. | |
6274 | (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris". | |
6275 | (elf_symbol_leading_char): First as 0, then '_'. | |
6276 | (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h. | |
6277 | * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs. | |
6278 | * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector. | |
6279 | * configure: Regenerate. | |
6280 | * targets.c: Declare bfd_elf32_us_cris_vec. | |
6281 | * po/bfd.pot: Regenerate. | |
6282 | ||
6283 | 2000-09-29 Momchil Velikov <velco@fadata.bg> | |
6284 | ||
6285 | * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for | |
6286 | R_ARM_THM_PC22 relocations. | |
6287 | ||
6288 | 2000-09-29 NIIBE Yutaka <gniibe@chroot.org> | |
6289 | ||
6290 | * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath. | |
6291 | ||
6292 | 2000-09-29 Momchil Velikov <velco@fadata.bg> | |
6293 | ||
6294 | * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if | |
6295 | is has the SEC_HAS_CONTENTS flag set. | |
6296 |