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