Commit | Line | Data |
---|---|---|
20bccb34 NC |
1 | 2000-07-27 Michael Sokolov <msokolov@ivan.Harhan.ORG> |
2 | ||
3 | * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function. | |
4 | * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration. | |
5 | * bfd-in2.h: Regenerate. | |
6 | ||
7a3120d9 NC |
7 | 2000-07-21 Nick Clifton <nickc@cygnus.com> |
8 | ||
9 | * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of | |
10 | range symbol indices in relocs and issue an error message. | |
11 | ||
4d538889 L |
12 | 2000-07-20 H.J. Lu <hjl@gnu.org> |
13 | ||
14 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check | |
15 | info->new_dtags when setting DT_FLAGS_1. It will only be set | |
16 | by the new linker options. It shouldn't break anything. | |
17 | ||
b586af58 L |
18 | 2000-07-20 H.J. Lu <hjl@gnu.org> |
19 | ||
20 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1 | |
21 | only if info->new_dtags is true. | |
22 | ||
c25373b7 L |
23 | 2000-07-20 H.J. Lu <hjl@gnu.org> |
24 | ||
25 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set | |
26 | DT_RUNPATH and DT_FLAGS only if info->new_dtags is true. | |
27 | ||
06c15ad7 HPN |
28 | 2000-07-20 Hans-Peter Nilsson <hp@axis.com> |
29 | ||
30 | * Makefile.am (ALL_MACHINES): Add cpu-cris.lo. | |
31 | (ALL_MACHINES_CFILES): Add cpu-cris.c. | |
32 | (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo. | |
33 | (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c. | |
34 | (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules. | |
35 | * Makefile.in: Rebuild. | |
36 | * aclocal.m4: Rebuild. | |
37 | * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris. | |
38 | * archures.c (enum bfd_architecture): Add bfd_arch_cris. | |
39 | (bfd_cris_arch): Declare. | |
40 | (bfd_archures_list): Add bfd_cris_arch. | |
41 | * bfd-in2.h: Rebuild. | |
42 | * config.bfd: (cris-*-*): New target. | |
43 | * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors. | |
44 | * configure: Rebuild. | |
45 | * elf.c (prep_headers): Add bfd_arch_cris. | |
46 | * libbfd.h: Rebuild. | |
47 | * libaout.h (enum machine_type): Add M_CRIS. | |
48 | * reloc.c: Add CRIS relocations. | |
3bd336f7 | 49 | * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare. |
06c15ad7 HPN |
50 | (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec. |
51 | * cpu-cris.c, aout-cris.c, elf32-cris.c: New files. | |
52 | * po/POTFILES.in, po/bfd.pot: Regenerate. | |
53 | ||
d6cf2879 L |
54 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
55 | ||
56 | * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set | |
57 | DF_TEXTREL if DT_TEXTREL is set. | |
58 | * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. | |
59 | * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise. | |
60 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. | |
61 | * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise. | |
62 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. | |
63 | * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. | |
64 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. | |
65 | * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise. | |
66 | * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise. | |
67 | * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise. | |
68 | ||
c25373b7 | 69 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also |
d6cf2879 L |
70 | set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if |
71 | DT_RPATH is set. | |
72 | Set the DT_FLAGS and DT_FLAGS_1 entries if necessary. | |
73 | ||
74816898 L |
74 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
75 | ||
76 | * bfd-in.h (bfd_elf_set_dt_needed_soname): New. | |
77 | * bfd-in2.h: Rebuild. | |
78 | ||
79 | * elf-bfd.h (elf_obj_tdata): Add dt_soname. | |
80 | (elf_dt_soname): New. | |
81 | ||
82 | * elf.c (bfd_elf_set_dt_needed_soname): New. | |
83 | ||
84 | * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED | |
85 | entry if the shared object loaded by DT_NEEDED is used to | |
86 | resolve the reference in a regular object. | |
87 | ||
36a30e65 L |
88 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
89 | ||
90 | * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG, | |
91 | DT_DEPAUDIT and DT_AUDIT as strings. | |
92 | ||
1d713d9e NC |
93 | 2000-07-19 Nick Clifton <nickc@cygnus.com> |
94 | ||
95 | * format.c: Fix formatting. | |
96 | ||
d48188b9 L |
97 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
98 | ||
99 | * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM. | |
100 | ||
94558834 L |
101 | 2000-07-19 H.J. Lu <hjl@gnu.org> |
102 | ||
103 | * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW, | |
104 | DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ, | |
105 | DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ, | |
106 | DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1, | |
107 | DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT, | |
108 | DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT, | |
109 | DT_FLAGS_1, DT_USED and DT_CHECKSUM. | |
110 | ||
125c4a69 NC |
111 | Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com> |
112 | ||
113 | * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move | |
114 | renamed functions from here... | |
115 | (assign_section_numbers): Use renamed functions. | |
116 | (prep_headers): Use renamed functions. | |
117 | ||
118 | * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here. | |
119 | * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update. | |
120 | * bfd-in2.h: Regenerate. | |
121 | ||
31a9bdd9 UC |
122 | 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com> |
123 | ||
124 | * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add | |
125 | paranthesis in if statement. | |
126 | ||
f7cb7d68 UC |
127 | 2000-07-17 Koundinya K <kk@ddeorg.soft.net> |
128 | ||
129 | Enable the support for Traditional MIPS. | |
130 | * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand | |
131 | return ict_none appropriately for traditional mips targets. | |
132 | (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips. | |
133 | (STUB_MOVE): Conditionalize for traditonal mips. | |
134 | (STUB_LI16): Likewise. | |
135 | (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making | |
136 | room for RTPROC header. | |
137 | (_bfd_mips_elf_modify_segment_map): For a normal mips executable set | |
138 | the permission for the PT_DYNAMIC as read, write and execute. | |
139 | (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING | |
140 | for traditonal mips. | |
141 | (_bfd_mips_elf_create_dynamic_sections): Add the symbol | |
142 | _DYNAMIC_LINKING for traditonal mips. | |
143 | (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP | |
144 | in case of traditonal mips. | |
145 | (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT | |
146 | entry is required. For a function if PLT is not required then set the | |
147 | corresponding hash table entry to 0. | |
148 | (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for | |
149 | traditonal mips. | |
150 | (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a | |
151 | shared object set the value to 0. | |
152 | (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol | |
153 | _DYNAMIC_LINKING for traditonal mips. | |
154 | (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP | |
155 | for traditonal mips. | |
156 | ||
930d924d L |
157 | 2000-07-15 H.J. Lu <hjl@gnu.org> |
158 | ||
159 | * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL. | |
160 | ||
e67f03db DD |
161 | 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu> |
162 | ||
163 | * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing | |
164 | out a structure that is BFD_IN_MEMORY. | |
165 | ||
0ba2a60e AM |
166 | 2000-07-11 Alan Modra <alan@linuxcare.com.au> |
167 | ||
168 | * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of | |
169 | bfd pointer. Print section id instead of bfd pointer for local | |
170 | syms. Prefix addend with `+' for global syms as well as local. | |
171 | Correct calculation of name component lengths. | |
172 | (elf64_hppa_check_relocs): Update call to get_dyn_name. | |
173 | ||
174 | From David Huggins-Daines <dhd@linuxcare.com> | |
175 | * elf-hppa.h (elf_hppa_relocate_section): Update calls here too. | |
176 | * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings. | |
177 | (elf64_hppa_modify_segment_map): Likewise. | |
178 | ||
6d9019e4 AC |
179 | Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com> |
180 | ||
181 | * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA | |
182 | addresses to be "naturally" sign extended. Return -1 if unknown. | |
0ba2a60e | 183 | * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration. |
6d9019e4 AC |
184 | * bfd-in2.h: Regenerate. |
185 | ||
23e2c83b AC |
186 | Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com> |
187 | ||
188 | * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32 | |
189 | and ECOF_SIGNED_64 to list ways to extract an offset. | |
190 | (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in, | |
191 | ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out): | |
192 | Update. | |
193 | * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64. | |
194 | * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32. | |
195 | ||
448cafa4 AC |
196 | Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com> |
197 | ||
198 | * elfcode.h (elf_object_p): Use bfd_set_start_address and not | |
199 | bfd_get_start_address. | |
200 | (elf_swap_ehdr_in): Sign extend e_entry when applicable. | |
201 | (elf_swap_ehdr_out): Ditto. | |
202 | ||
83ea41ad NC |
203 | 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com> |
204 | ||
205 | * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for | |
206 | compatibility with older binutils. | |
207 | ||
3df7b4e2 AM |
208 | 2000-07-10 Alan Modra <alan@linuxcare.com.au> |
209 | ||
210 | * section.c (bfd_make_section_anyway): Start section_id at 0x10. | |
211 | (STD_SECTION): Avoid negative ids, instead use 0 to 3. | |
212 | ||
b7af50e3 AM |
213 | From Ryan Bradetich <rbradetich@uswest.net> |
214 | * dwarf1.c (parse_die): Cure signed/unsigned char warnings. | |
215 | (parse_line_table): Ditto. | |
216 | (_bfd_dwarf1_find_nearest_line): Ditto. | |
217 | * syms.c (cmpindexentry): Remove extra `*' from params. | |
218 | ||
adb76a3e UC |
219 | 2000-07-09 Koundinya K <kk@ddeorg.soft.net> |
220 | ||
221 | * elf32-mips.c (sort_dynamic_relocs): New Function. | |
222 | (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs | |
223 | via qsort to sort the dynamic relocations in increasing r_symndx | |
224 | value. | |
225 | ||
edd21aca AM |
226 | 2000-07-09 Alan Modra <alan@linuxcare.com.au> |
227 | ||
228 | * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add | |
229 | ATTRIBUTE_UNUSED to unused args. | |
230 | (get_opd): Likewise. | |
231 | (get_plt): Likewise. | |
232 | (get_dlt): Likewise. | |
233 | (get_stub): Likewise. | |
234 | (elf64_hppa_adjust_dynamic_symbol): Likewise. | |
235 | (elf64_hppa_link_output_symbol_hook): Likewise. | |
236 | (elf64_hppa_check_relocs): Delete unused var. | |
237 | (elf64_hppa_size_dynamic_sections): Likewise. | |
238 | (elf64_hppa_finalize_opd): Likewise. | |
239 | (elf64_hppa_finalize_dynreloc): Likewise. | |
240 | (elf64_hppa_modify_segment_map): Likewise. | |
241 | (elf64_hppa_finish_dynamic_sections): Likewise. | |
242 | ||
243 | * elf-hppa.h (elf_hppa_final_write_processing): Add | |
244 | ATTRIBUTE_UNUSED to unused args. | |
245 | (elf_hppa_final_link_relocate): Likewise. | |
246 | (elf_hppa_record_segment_addrs): Add paretheses. | |
247 | (elf_hppa_relocate_section): Constify dyn_name. | |
248 | ||
249 | From David Huggins-Daines <dhd@linuxcare.com> | |
250 | * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and | |
251 | rearrange case statement so that it gets preferred to 32-bit ones. | |
252 | ||
253 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use | |
254 | asection->id instead of address of asection structure. | |
255 | (elf32_hppa_size_stubs): Likewise. | |
256 | ||
257 | * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section | |
258 | for .init* and .fini*. | |
259 | ||
260 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers | |
261 | and addends used in stub names to 32 bits. | |
262 | (elf32_hppa_size_stubs): Likewise. | |
263 | ||
264 | * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend | |
265 | twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32, | |
266 | not bfd_put_64. Fix minor comment typo and formatting. | |
267 | ||
268 | Changes to create multiple linker stubs, positioned immediately | |
269 | before the section where they are required. | |
270 | * elf32-hppa.c: Don't include hppa_stubs.h. | |
271 | (elf32_hppa_stub_hash_entry): Add a pointer to the stub section. | |
272 | (elf32_hppa_stub_hash_table): Delete. | |
273 | (elf32_hppa_link_hash_entry): Delete. | |
274 | (elf32_hppa_link_hash_table): Use plain bfd_hash_table for | |
275 | stub_hash_table, and store the struct here rather than a pointer. | |
276 | Delete output_symbol_count. Add offset array. Change | |
277 | global_value to a bfd_vma. | |
278 | (elf32_hppa_stub_hash_lookup): Use table instead of table->root. | |
279 | (elf32_hppa_stub_hash_traverse): Delete. | |
280 | (elf32_hppa_name_of_stub): Delete. | |
281 | (elf32_hppa_link_hash_lookup): Delete. | |
282 | (elf32_hppa_link_hash_traverse): Delete. | |
283 | (elf32_hppa_stub_hash_table_init): Delete. | |
284 | (elf32_hppa_size_of_stub): Pass input section and offset rather | |
285 | than location and calculate location here. Don't pass name as all | |
286 | stubs are now the same size. | |
287 | (elf32_hppa_stub_hash_newfunc): Init new fields. | |
288 | (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table | |
289 | too. | |
290 | (elf32_hppa_bfd_final_link_relocate): Cast enums to int before | |
291 | comparing against ints. Rewrite stub handling code. | |
292 | (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned. | |
293 | Case enums to int before comparing against ints. Remove | |
294 | bfd_reloc_dangerous case. | |
295 | (elf32_hppa_build_one_stub): Rewrite. | |
296 | (elf32_hppa_size_one_stub): New function. | |
297 | (elf32_hppa_build_stubs): Rewrite. | |
298 | (elf32_hppa_size_stubs): Pass in linker call-back functions. | |
299 | Rewrite stub-handling specific code. | |
300 | ||
301 | * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype. | |
302 | ||
303 | * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo. | |
304 | ||
305 | * hppa_stubs.h: Delete. | |
306 | * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h | |
307 | (elf32-hppa.lo): Remove hppa_stubs.h from dependencies. | |
308 | * Makefile.in: Regenerate. | |
309 | ||
310 | * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and | |
311 | e_nlrsel. | |
312 | ||
313 | * libhppa.h (hppa_field_adjust): Correct e_nsel case. | |
314 | ||
315 | * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset | |
316 | and section name for bfd_reloc_notsupported error message. | |
317 | (elf32_hppa_bfd_final_link_relocate): Print reasons for returning | |
318 | bfd_reloc_notsupported. | |
319 | (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd. | |
320 | ||
321 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle | |
322 | undefined weak symbols for all relocs. | |
323 | (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch | |
324 | offsets are relative to one past the delay slot. | |
325 | (elf32_hppa_size_stubs): Account for reloc addend when calculating | |
326 | branch destination. Put addend into stub name too. | |
327 | (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and | |
328 | adjust by 8 when deciding whether a linker stub is needed. Put | |
329 | addend into stub name as for above. | |
330 | ||
331 | * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on | |
332 | various args and vars. | |
333 | (elf32_hppa_bfd_final_link_relocate): Here too. | |
334 | (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for | |
335 | inner block var to avoid shadowing. | |
336 | ||
337 | * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg | |
338 | unsigned. | |
339 | * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto. | |
340 | * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto. | |
341 | (elf_hppa_fake_sections): Rename local var to avoid shadowing. | |
342 | ||
343 | * libhppa.h: Change practically all unsigned ints to plain ints. | |
344 | Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for | |
345 | prototypes. | |
346 | ||
347 | From Ryan Bradetich <rbradetich@uswest.net> | |
348 | * libhppa.h (hppa_opcode_type): New enum to replace #define's. | |
349 | * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to | |
350 | suit above. | |
351 | From David Huggins-Daines <dhd@linuxcare.com> | |
352 | * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants | |
353 | to the new OP_* ones. | |
354 | ||
355 | * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on | |
356 | error exit. Bail out earlier on plabel relocs that we aren't | |
357 | interested in. Don't tell elf32_hppa_stub_hash_lookup to copy | |
358 | string, and then don't free our copy. | |
359 | (elf32_hppa_build_one_stub): Make insn unsigned int. | |
360 | ||
361 | * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only | |
362 | available with BL, not BE and BLE. | |
363 | ||
364 | * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example | |
365 | code for elf arg relocs. | |
366 | (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local | |
367 | argument with elf_link_hash_entry h. Handle undefined weak | |
368 | symbols. Move $global$ lookup from here... | |
369 | (elf32_hppa_relocate_section): ...to here. Return correct error | |
370 | message for non-handled relocs. | |
371 | (elf32_hppa_size_of_stub): Correctly test branch range. Previous | |
372 | wrong test was -0x3ffff to +0x40000. | |
373 | ||
374 | * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R, | |
375 | R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches; | |
376 | Handle them as such. | |
377 | (elf_hppa_relocate_insn): Fix a typo. | |
378 | ||
379 | * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete. | |
380 | (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a, | |
381 | assemble_17, assemble_21): Delete. | |
382 | Supply defines for all 64 possible opcodes. | |
383 | (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode | |
384 | formats. Handle COMICLR. | |
385 | (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11, | |
386 | -10, -16, 16, 22. | |
387 | ||
388 | * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite. | |
389 | (elf32_hppa_bfd_final_link_relocate): Major rewrite. | |
390 | (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls | |
391 | to suit. | |
392 | (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all | |
393 | the local syms - did this code get deleted accidentally? Ignore | |
394 | undefined and undefweak syms. | |
395 | ||
396 | * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost | |
397 | block. Use it instead of elf64_hppa_hash_table (info). | |
398 | (elf_hppa_final_link_relocate): Use hppa_info instead of | |
399 | elf64_hppa_hash_table (info). | |
400 | ||
401 | * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16, | |
402 | re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn. | |
403 | (hppa_rebuild_insn): Mask immediate bits here instead. | |
404 | * elf-hppa.h (elf_hppa_relocate_insn): Mask here too. | |
405 | ||
52b219b5 AM |
406 | 2000-07-08 Alan Modra <alan@linuxcare.com.au> |
407 | ||
408 | * section.c (struct sec): Add id field. Tidy comment formatting. | |
409 | (bfd_make_section_anyway): Set id. | |
410 | (STD_SECTION): Init id too. | |
411 | Change CONST to const throughout. | |
412 | * archures.c (bfd_arch_info): Tidy comment. | |
413 | (bfd_arch_list): Change a CONST to const. | |
414 | * libbfd-in.h: Tidy comments and replace CONST with const. | |
415 | * elf-bfd.h: Likewise. | |
416 | * libbfd.h: Regenerate. | |
417 | * bfd-in2.h: Regenerate. | |
418 | * libcoff.h: Regenerate. | |
419 | ||
8000a618 DD |
420 | 2000-07-07 DJ Delorie <dj@redhat.com> |
421 | ||
422 | * archive.c (_bfd_write_archive_contents): Add an informative | |
423 | comment. | |
424 | ||
c3b7c767 NC |
425 | 2000-07-06 Kazu Hirata <kazu@hxi.com> |
426 | ||
427 | * srec.c: Fix formatting. | |
428 | ||
302ab118 DD |
429 | 2000-06-05 DJ Delorie <dj@redhat.com> |
430 | ||
431 | * MAINTAINERS: new | |
432 | ||
ed1de528 AO |
433 | 2000-07-04 Alexandre Oliva <aoliva@redhat.com> |
434 | ||
435 | * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol | |
436 | value of PC-relative offsets. | |
437 | ||
70bcb145 JW |
438 | 2000-07-03 Jim Wilson <wilson@cygnus.com> |
439 | ||
440 | * elf64-alpha.c (alpha_elf_size_info): New. | |
441 | (elf_backend_size_info): Define to alpha_elf_size_info. | |
442 | * elfcode.h (elf_size_info): Change hash bucket size to 4. | |
443 | ||
b8ee63fa UC |
444 | 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com> |
445 | ||
446 | * elf32-mips.c: Include elf32-target.h again for the traditional | |
447 | MIPS targets. | |
448 | ||
00d2865b NC |
449 | 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl> |
450 | ||
451 | * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup): | |
452 | Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings. | |
453 | (avr_info_to_howto_rela): Likewise. | |
454 | (elf32_avr_gc_mark_hook): Likewise. | |
455 | (elf32_avr_gc_sweep_hook): Likewise. | |
456 | (elf32_avr_relocate_section): Likewise. | |
457 | ||
e4202681 NC |
458 | 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com> |
459 | ||
460 | * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into | |
461 | an external symbol for a non-shared, non-relocatable link. | |
462 | ||
463 | 2000-07-03 Nick Clifton <nickc@redhat.com> | |
464 | ||
99d6ac2f NC |
465 | * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol |
466 | is an external symbol. | |
e4202681 NC |
467 | (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak |
468 | external symbol. | |
469 | ||
289c596c NC |
470 | 2000-07-03 Kazu Hirata <kazu@hxi.com> |
471 | ||
472 | * reloc16.c: Fix formatting. | |
473 | ||
dd745cfa UC |
474 | 2000-07-01 Koundinya K <kk@ddeorg.soft.net> |
475 | ||
476 | * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4* | |
477 | to add a new target for traditional mips i.e | |
478 | bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec. | |
479 | * configure.in: Likewise. | |
480 | * configure: Rebuild. | |
481 | * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in | |
482 | bfd_target_vector. | |
483 | (bfd_elf32_tradlittlemips_vec): Likewise. | |
484 | * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test | |
485 | to see that elfNN_bed does not get redefined even if the target file | |
486 | is included twice for a chip. See elf32-mips.c. | |
487 | ||
0bdaf48b AM |
488 | 2000-07-01 Alan Modra <alan@linuxcare.com.au> |
489 | ||
490 | * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed | |
491 | (CLEANFILES): Add DEPA. | |
492 | * Makefile.in: Regenerate. | |
493 | ||
c75df619 DD |
494 | 2000-06-30 DJ Delorie <dj@cygnus.com> |
495 | ||
496 | * peicode.h (coff_swap_filehdr_in): can't use e_magic because we | |
497 | can't assume the PE header is at 0x80. | |
498 | ||
b4b415e5 DD |
499 | 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com> |
500 | ||
cda43a1d | 501 | * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH. |
b4b415e5 | 502 | |
addd3117 DD |
503 | 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com> |
504 | ||
505 | * go32stub.h: Update stub. | |
506 | ||
65aa24b6 NC |
507 | 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl> |
508 | ||
509 | * archures.c (bfd_mach_avr5): Define. | |
510 | * bfd-in2.h (bfd_mach_avr5): Define. | |
511 | * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to | |
512 | bfd_mach_avr5, add bfd_mach_avr4. Update comments. | |
513 | (compatible): Update comment. Add missing test. | |
514 | * elf32-avr.c (avr_final_link_relocate): Support 8K wrap | |
515 | for avr2 and avr4. Simplify 8K wrap code. | |
516 | (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5. | |
517 | (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5. | |
518 | ||
cc040812 NC |
519 | 2000-06-26 Kazu Hirata <kazu@hxi.com> |
520 | ||
521 | * coff-h8300.c: Fix formatting. | |
522 | * cpu-h8300.c: Likewise. | |
523 | ||
b1bcb49f AO |
524 | 2000-06-24 Alexandre Oliva <aoliva@redhat.com> |
525 | ||
526 | * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)' | |
527 | for local symbols whose names are unknown. | |
528 | ||
1581f8c9 AM |
529 | 2000-06-22 Alan Modra <alan@linuxcare.com.au> |
530 | ||
531 | * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we | |
532 | find one. | |
533 | * Makefile.in: Regenerate. | |
534 | * doc/Makefile.in: Regenerate. | |
535 | ||
bbeb2e03 L |
536 | 2000-06-20 H.J. Lu <hjl@gnu.org> |
537 | ||
538 | * Makefile.am: Rebuild dependency. | |
539 | * Makefile.in: Rebuild. | |
540 | ||
8a20f077 UC |
541 | 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl> |
542 | ||
543 | * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function. | |
544 | (elf_backend_copy_indirect_symbol): Map to the new function. | |
545 | ||
2ab47eed AM |
546 | 2000-06-20 Alan Modra <alan@linuxcare.com.au> |
547 | ||
548 | * archive.c (normalize): Correct pointer comparison when checking | |
549 | for backslashes. | |
550 | (bfd_bsd_truncate_arname): Likewise. | |
551 | (bfd_gnu_truncate_arname): Likewise. | |
552 | ||
b305ef96 UC |
553 | 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com> |
554 | ||
555 | * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual | |
556 | sections elf_{text,data}_{section,symbol}. | |
557 | * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove. | |
558 | (_bfd_mips_elf_hide_symbol): New function. | |
559 | (elf_backend_hide_symbol): Map to the new function. | |
560 | (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD | |
561 | definitions of mips_elf_{text,data}_{section,symbol}. | |
562 | (mips_elf_local_relocation_p): Try to find the direct symbol | |
563 | based on new check_forced argument. | |
564 | (mips_elf_calculate_relocation): Use new version of | |
565 | mips_elf_local_relocation_p. | |
566 | (mips_elf_relocate_section): Likewise. | |
567 | (_bfd_mips_elf_relocate_section): Likewise. | |
568 | (mips_elf_sort_hash_table): Only assert that have enough GOT | |
569 | space. | |
570 | (mips_elf_got16_entry): Match all 32 bits to the existing GOT | |
571 | entry if the relocation based on the new external argument. | |
572 | (mips_elf_create_dynamic_relocation): Assert that we have a | |
573 | section contents allocated where we can swap out the dynamic | |
574 | relocations. | |
575 | (mips_elf_calculate_relocation): Find the real hash-table entry | |
576 | correctly by using h->root.root.type. Only create a dynamic | |
577 | relocation entry if the symbol is defined in a shared library. | |
578 | Create an external GOT entry for the GOT16 relocation if the | |
579 | symbol was forced local. | |
580 | (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a | |
581 | dynamic index if the symbol was forced local. | |
582 | ||
583 | 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl> | |
584 | ||
585 | * elf32-mips.c: Fix typos in comments. | |
586 | ||
1605fc4f MK |
587 | 2000-06-19 Mark Kettenis <kettenis@gnu.org> |
588 | ||
589 | * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef | |
590 | CORE_VERSION_1. | |
591 | ||
60bcf0fa NC |
592 | 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr> |
593 | ||
594 | * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild. | |
595 | * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS, | |
596 | BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files. | |
597 | * configure.in (bfd_elf32_m68hc12_vec): Recognize. | |
598 | (bfd_elf32_m68hc11_vec): Likewise. | |
599 | * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11. | |
600 | Supports 68hc11 & 68hc12 at the same time. | |
601 | * targets.c (bfd_elf32_m68hc12_vec): Declare and put in | |
602 | bfd_target_vector. | |
603 | (bfd_elf32_m68hc11_vec): Likewise. | |
604 | * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11. | |
605 | * archures.c (bfd_m68hc12_arch): Define and register in global list | |
606 | (bfd_m68hc11_arch): Likewise. | |
607 | * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8, | |
608 | BFD_RELOC_M68HC11_3B): Define. | |
609 | * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support. | |
610 | * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support. | |
611 | ||
f41cbf03 UC |
612 | 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com> |
613 | ||
614 | * elf_bfd.h (struct elf_backend_data): Add info argument to | |
615 | elf_backend_hide_symbol. | |
616 | (_bfd_elf_link_hash_hide_symbol): Likewise. | |
617 | * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise. | |
618 | * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise. | |
619 | * elflink.h (elf_link_add_object_symbols): Likewise. | |
620 | (elf_link_assign_sym_version): Likewise. | |
621 | ||
689be717 L |
622 | 2000-06-18 H.J. Lu <hjl@gnu.org> |
623 | ||
624 | * coff-i386.c (coff_i386_reloc): Don't return in case of | |
625 | output_bfd == (bfd *) NULL if COFF_WITH_PE is defined. | |
626 | Compensate PE relocations when linking with non-PE object | |
627 | files to generate a non-PE executable. | |
628 | ||
9a8f3bb7 UC |
629 | 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com> |
630 | ||
631 | * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write | |
632 | GOT entries if we're doing a static link or -Bsymbolic link. | |
633 | ||
32f0787a UC |
634 | 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com> |
635 | ||
636 | * elflink.h (elf_link_adjust_relocs): Check for and call backend | |
637 | specifific swap_reloc_{in,out} and swap_reloca_{in,out} if | |
638 | available. | |
639 | (elf_link_output_relocs): Likewise. | |
640 | (elf_reloc_link_order): Likewise. | |
641 | ||
87f33987 ND |
642 | 2000-06-16 Nicholas Duffek <nsd@redhat.com> |
643 | ||
644 | * archures.c (enum bfd_architecture): #define constants for | |
645 | PowerPc and RS6000 machine numbers. | |
646 | * bfd-in2.h: Regenerate. | |
647 | * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch | |
648 | to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc | |
649 | and RS6000 machine numbers using #defined constants from | |
650 | archures.c. | |
651 | * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000 | |
652 | machine numbers using #defined constants from archures.c. Add | |
653 | entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify | |
654 | 64-bit words in 620 entry. | |
655 | * cpu-rs6000.c (arch_info_struct): Create with entries for RS1, | |
656 | RSC, and RS2. | |
657 | (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k). | |
658 | ||
a2fdf270 ND |
659 | 2000-06-16 Nicholas Duffek <nsd@cygnus.com> |
660 | ||
661 | * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64. | |
662 | * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field. | |
663 | * libcoff.h (struct xcoff_tdata): Define xcoff64 field. | |
664 | ||
9bd09e22 ND |
665 | 2000-06-16 Nicholas Duffek <nsd@redhat.com> |
666 | ||
667 | * bfd-in.h (bfd_family_coff): Define. | |
668 | * bfd-in2.h: Regenerate. | |
669 | * coffgen.c (coff_count_linenumbers, coff_symbol_from, | |
670 | coff_find_nearest_line): Check COFFness using bfd_family_coff() | |
671 | instead of bfd_target_coff_flavour. | |
672 | * cofflink.c (_bfd_coff_final_link): Likewise. | |
673 | * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to | |
674 | exclude XCOFF files. | |
675 | * reloc.c (bfd_perform_relocation, bfd_install_relocation): | |
676 | Likewise. | |
677 | * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour. | |
678 | * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour. | |
679 | * xcofflink.c (XCOFF_XVECP): Delete. | |
680 | (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol, | |
681 | bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc, | |
682 | bfd_xcoff_record_link_assignment, | |
683 | bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with | |
684 | check for bfd_target_xcoff_flavour. | |
685 | ||
59d9f049 ND |
686 | 2000-06-16 Nicholas Duffek <nsd@redhat.com> |
687 | ||
688 | * rs6000-core.c: Support 64-bit core files, support pre-4.3 core | |
689 | files on AIX 4.3. | |
690 | (read_hdr): New function. | |
691 | (rs6000coff_core_p): Store mstsave or __context64 struct instead | |
692 | of trying to extract individual registers. Set abfd->arch_info | |
693 | to match the architecture that created the core file. | |
694 | (rs6000coff_get_section_contents): Delete. | |
695 | * xcoff-target.h (rs6000coff_get_section_contents): Delete. | |
696 | ||
63e39178 L |
697 | 2000-06-14 H.J. Lu <hjl@gnu.org> |
698 | ||
699 | * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec) | |
700 | is NULL. | |
701 | ||
bcef29e6 L |
702 | 2000-06-13 H.J. Lu <hjl@gnu.org> |
703 | ||
704 | * configure: Regenerate. | |
705 | ||
26bfd1c0 JR |
706 | Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk> |
707 | ||
708 | * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of | |
709 | armpei_little_vec. | |
710 | ||
946efd95 DB |
711 | 2000-06-08 David O'Brien <obrien@FreeBSD.org> |
712 | ||
713 | * configure.in (VERSION): Update to show this is the CVS mainline. | |
714 | ||
1b452ec6 AM |
715 | 2000-06-07 Alan Modra <alan@linuxcare.com.au> |
716 | ||
717 | * elf32-d10v.c: Include elf/d10v.h | |
718 | (enum reloc_type): Delete. | |
719 | * elf32-d30v.c: Include elf/d30v.h | |
720 | (enum reloc_type): Delete. | |
721 | ||
722 | * Makefile.am: Run "make dep-am" to regenerate dependencies. | |
723 | * Makefile.in: Regenerate. | |
724 | ||
725 | * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs. | |
dc47f327 AM |
726 | (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and |
727 | move HOWTOs into elf_howto_table. | |
1b452ec6 | 728 | (R_386_standard, R_386_ext_offset): Define. |
dc47f327 | 729 | (R_386_ext, R_386_vt_offset, R_386_vt): Define. |
1b452ec6 | 730 | (elf_i386_reloc_type_lookup): Modify calculation of index into |
dc47f327 | 731 | elf_howto_table since we've removed the padding. |
1b452ec6 AM |
732 | (elf_i386_info_to_howto_rel): Likewise. |
733 | (elf_i386_relocate_section): Likewise. | |
734 | ||
e0ebfc61 MS |
735 | 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com> |
736 | ||
737 | * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t. | |
738 | ||
9d6eee78 L |
739 | 2000-06-05 H.J. Lu <hjl@gnu.org> |
740 | ||
741 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag | |
742 | an error when seeing an undefined symbol with hidden/internal | |
743 | attribute. It is handled in *_relocate_section (). | |
744 | ||
94b6c40a L |
745 | 2000-06-05 H.J. Lu <hjl@gnu.org> |
746 | ||
747 | * elflink.h (elf_fix_symbol_flags): Follow the link for the | |
748 | indirect symbol for the ELF_LINK_NON_ELF bit. | |
749 | (elf_link_output_extsym): Don't output the indirect symbol even | |
750 | if the ELF_LINK_NON_ELF bit is set. | |
751 | ||
0af288f3 C |
752 | 2000-06-01 J.T. Conklin <jtc@redback.com> |
753 | ||
754 | * config.bfd (i[3456]86-*-netbsdelf*): New target. | |
755 | (i[3456]86-*-netbsdaout*): New target. | |
756 | (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs. | |
757 | (i[3456]86-*-openbsd*): Likewise. | |
758 | ||
12df4d3c AC |
759 | Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com> |
760 | ||
761 | * trad-core.c: From hpux-core.c, include <dirent.h> or | |
762 | <sys/ndir.h> when possible. | |
763 | ||
c0ae4ccc NC |
764 | 2000-05-31 Nick Clifton <nickc@cygnus.com> |
765 | ||
766 | * opintl.h (_(String)): Explain why dgettext is used instead | |
767 | of gettext. | |
768 | ||
321fa097 UD |
769 | 2000-05-31 Ulrich Drepper <drepper@redhat.com> |
770 | ||
771 | * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version | |
772 | definitions. We must not assume they are sorted in the file | |
773 | according to their index numbers. | |
774 | ||
70d72e0e AM |
775 | 2000-05-31 Alan Modra <alan@linuxcare.com.au> |
776 | ||
777 | * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field | |
778 | selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and | |
779 | R_PARISC_DIR17F are for absolute branches; Handle them as such. | |
780 | ||
96f6d4c4 NC |
781 | 2000-05-30 Nick Clifton <nickc@cygnus.com> |
782 | ||
783 | * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB, | |
784 | 80960CA, 80960MC as valid machine names. | |
785 | ||
38048eb9 L |
786 | 2000-05-30 H.J. Lu <hjl@gnu.org> |
787 | ||
788 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the | |
789 | visibility bits if the symbol is undefined. Correctly handle | |
790 | weak undefined symbols with hidden and internal attributes. | |
791 | ||
792 | * elflink.h (elf_link_add_object_symbols): Always turn the | |
793 | symbol into local if it has the hidden or internal attribute. | |
794 | ||
8c763017 PB |
795 | 2000-05-29 Philip Blundell <philb@gnu.org> |
796 | ||
797 | * ppcboot.c: Add packed attribute if compiling with GCC. | |
798 | ||
1ae00f9d AM |
799 | 2000-05-29 Anatoly Vorobey <mellon@pobox.com> |
800 | ||
801 | * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal. | |
802 | ||
4a938328 MS |
803 | 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com> |
804 | ||
805 | * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus, | |
806 | elfcore_grok_psinfo): Add code to allow debugging a 32-bit | |
807 | corefile on a 64-bit (Sparc Solaris) host. Also clean up | |
808 | a few old comments. | |
809 | ||
5af11cab AM |
810 | 2000-05-26 Alan Modra <alan@linuxcare.com.au> |
811 | ||
2114f57b AM |
812 | * Makefile.am: Update dependencies with "make dep-am" |
813 | * Makefile.in: Regenerate. | |
814 | ||
5af11cab AM |
815 | * sysdep.h (gettext, dgettext, dcgettext, textdomain, |
816 | bindtextdomain): Replace defines with those from intl/libgettext.h | |
817 | to quieten gcc warnings. | |
818 | ||
819 | 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il> | |
820 | ||
821 | * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH. | |
822 | ||
823 | * archive.c (normalize, bfd_bsd_truncate_arname, | |
824 | bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support | |
825 | file names with backslashes. | |
826 | ||
827 | * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file | |
828 | before opening it. | |
829 | ||
830 | * sysdep.h: Include filenames.h. | |
831 | ||
b6cdd0fd AM |
832 | 2000-05-26 Alan Modra <alan@linuxcare.com.au> |
833 | ||
834 | * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777. | |
835 | ||
f7775d95 JJ |
836 | 2000-05-26 Jakub Jelinek <jakub@redhat.com> |
837 | ||
838 | * elf64-sparc.c (sparc64_elf_relax_section): New. | |
839 | (sparc64_elf_relocate_section): Optimize tail call into branch always | |
840 | if possible. | |
841 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
842 | (elf32_sparc_relax_section): New. | |
843 | ||
6c08d697 JJ |
844 | 2000-05-26 Jakub Jelinek <jakub@redhat.com> |
845 | ||
846 | * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters. | |
847 | Remove unusued variables. | |
848 | (sparc64_elf_relocate_section): Change r_symndx type to unsigned long. | |
849 | (sparc64_elf_merge_private_bfd_data): Fix shared library case from | |
850 | previous fix, so that shared libs really don't influence targets | |
851 | extension mask and memory model. | |
852 | ||
edb72b3b L |
853 | 2000-05-23 H.J. Lu <hjl@gnu.org> |
854 | ||
855 | * elf64-alpha.c (elf64_alpha_relocate_section): Check | |
856 | h->root.other not h->other. | |
ba09750c L |
857 | * elf32-mips.c (mips_elf_calculate_relocation): Likewise. |
858 | ||
859 | * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo. | |
edb72b3b | 860 | |
3a27a730 L |
861 | 2000-05-23 H.J. Lu <hjl@gnu.org> |
862 | ||
863 | * elf32-i386.c (elf_i386_relocate_section): Don't allow the | |
864 | undefined symbol with the non-default visibility attributes. | |
865 | * elf-hppa.h (elf_hppa_relocate_section): Likewise. | |
866 | * elf32-arm.h (elf32_arm_relocate_section): Likewise. | |
867 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
868 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
869 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
870 | * elf32-mips.c (mips_elf_calculate_relocation): Likewise. | |
871 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
872 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
873 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
874 | * elf64-ia64.c (elf64_ia64_relocate_section): Likewise. | |
875 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
876 | ||
748abff6 RH |
877 | 2000-05-22 Richard Henderson <rth@cygnus.com> |
878 | ||
879 | * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI, | |
880 | PCREL22, PCREL64I. Zero size of special relocs. | |
881 | (elf64_ia64_reloc_type_lookup): Likewise. | |
882 | (USE_BRL, oor_brl, oor_ip): New. | |
883 | (elf64_ia64_relax_section): New. | |
884 | (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I. | |
885 | (elf64_ia64_install_value): Likewise, plus PCREL21BI. | |
886 | (elf64_ia64_relocate_section): Likewise. | |
887 | (bfd_elf64_bfd_relax_section): New. | |
888 | * reloc.c (BFD_RELOC_IA64_PCREL21BI): New. | |
889 | (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New. | |
890 | * bfd-in2.h, libbfd.h: Regenerate. | |
891 | ||
fb67355a NC |
892 | 2000-05-22 Nick Clifton <nickc@cygnus.com> |
893 | ||
894 | * configure.in : Add peigen.lo to MIPS PE targets. | |
895 | * configure: Regenerate. | |
896 | ||
1fe494a5 NC |
897 | 2000-05-22 Momchil Velikov <velco@fadata.bg> |
898 | ||
899 | * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess | |
748abff6 | 900 | only if it is known for both input and output bfds. Separate |
1fe494a5 NC |
901 | error message strings as in some languages, it may be necessary |
902 | to change more than one place in the string to change between | |
903 | 'big' and 'little'. | |
904 | ||
905 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline | |
906 | endianess checks, call _bfd_generic_verify_endian_match() instead. | |
907 | ||
908 | * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise. | |
909 | ||
910 | * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise. | |
911 | ||
912 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify | |
913 | endianess before checking bfd flavours. | |
914 | ||
32c092c3 L |
915 | 2000-05-22 H.J. Lu <hjl@gnu.org> |
916 | ||
917 | * elflink.h (elf_link_output_extsym): Clear the visibility | |
918 | field for symbols not defined locally. | |
919 | ||
df6d9773 JL |
920 | 2000-05-18 Alan Modra <alan@linuxcare.com.au> |
921 | ||
922 | * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16, | |
923 | re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn. | |
924 | (hppa_rebuild_insn): Mask immediate bits here instead. | |
925 | * elf-hppa.h (elf_hppa_relocate_insn): Mask here too. | |
926 | ||
7ad34365 NC |
927 | 2000-05-18 Momchil Velikov <velco@fadata.bg> |
928 | ||
929 | * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting | |
930 | relocs for an executable, ensure that they are virtual addresses. | |
931 | ||
d1dab720 JL |
932 | Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com) |
933 | ||
934 | * config.bfd (hppa*64*-*-hpux11*): New target triplet. | |
935 | ||
a712da20 NC |
936 | 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com> |
937 | Rick Gorton <gorton@scrugs.lkg.dec.com> | |
938 | ||
939 | * elflink.h: Add emitrelocations support: when enabled, relocation | |
940 | information and relocation sections are put into final output | |
941 | executables. If the emitrelocations flag is set, do the following: | |
942 | (elf_bfd_final_link): Emit relocation sections. | |
943 | (elf_link_input_bfd): Compute relocation section contents. | |
944 | (elf_gc_sections): Don't clean relocation sections. | |
945 | ||
10febd84 CM |
946 | 2000-05-16 Catherine Moore <clm@cygnux.com> |
947 | ||
948 | * som.c (som_decode_symclass): Recognize weak symbols. | |
949 | ||
db8503c4 AM |
950 | 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com> |
951 | ||
952 | * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that | |
953 | read idata section only from dataoff. | |
954 | (pe_print_edata): Correctly check for valid eat_member. | |
955 | ||
851cde10 JR |
956 | Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk> |
957 | ||
958 | * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8. | |
959 | ||
1bde2d57 PB |
960 | 2000-05-14 Philip Blundell <philb@gnu.org> |
961 | ||
962 | * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets. | |
963 | ||
a76b448c AM |
964 | 2000-05-12 Alan Modra <alan@linuxcare.com.au> |
965 | ||
9ee25201 AM |
966 | * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec |
967 | ||
a76b448c AM |
968 | * peigen.c (pe_print_idata): Look for .idata section and print |
969 | info even if data directory has zero entries. Read idata section | |
970 | starting from dataoff, and adjust all data offsets to suit. Cast | |
971 | all bfd_vma vars to unsigned long before passing to fprintf. | |
972 | * peigen.c (pe_print_edata): Similarly, look for .edata section | |
973 | and print info even if data directory has zero entries. Cast | |
974 | all bfd_vma vars to unsigned long before passing to fprintf. | |
975 | ||
976 | From Szabolcs Szakacsits <szaka@F-Secure.com> | |
977 | * peigen.c (pe_print_idata): Use bfd_section_size rather than data | |
978 | directory size which may be bogus. | |
979 | * peigen.c (pe_print_edata): Similarly. | |
980 | ||
72730e0c AM |
981 | 2000-05-09 Alan Modra <alan@linuxcare.com.au> |
982 | ||
983 | * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela | |
984 | section is empty. | |
985 | (copy_private_bfd_data): Allow for space possibly taken up by elf | |
986 | headers when calculating segment physical address from lma. | |
987 | ||
8181c403 AM |
988 | 2000-05-08 Alan Modra <alan@linuxcare.com.au> |
989 | ||
bfde9f99 AM |
990 | * versados.c (versados_scan): Init stringlen and pass_2_done. |
991 | ||
b35efbcd AM |
992 | * trad-core.c (trad_unix_core_file_p): Return |
993 | bfd_error_wrong_format rather than bfd_error_file_truncated. | |
994 | ||
8181c403 AM |
995 | * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to |
996 | add_data_entry. DataDirectory virtual address is relative. | |
997 | (pe_print_idata): Account for relative DataDirectory virtual | |
998 | addresses. Don't trash datasize inside POWERPC_LE_PE code. | |
999 | (pe_print_edata): Similarly. | |
1000 | ||
1001 | From Szabolcs Szakacsits <szaka@F-Secure.com> | |
1002 | * peigen.c (dir_names): Add Delay Import Directory. | |
1003 | (pe_print_idata): Always search for bfd section containing | |
1004 | idata address rather than looking up section name. Print this | |
1005 | section name rather than .idata. | |
1006 | (pe_print_edata): Similarly. Also print some fields as %08lx. | |
1007 | (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as | |
1008 | Win32Version. | |
1009 | ||
2c38bc20 CP |
1010 | Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com> |
1011 | ||
1012 | * xcoff.h: Rename to xcoff-target.h | |
1013 | * Makefile.am: Change all instances of xcoff.h to xcoff-target.h | |
1014 | * coff-rs6000.c: Ditto. | |
1015 | * coff64-rs6000.c: Ditto. | |
1016 | * coff-pmac.c: Ditto. | |
1017 | * Makefile.in: Regenerate. | |
1018 | ||
c6664dfb CP |
1019 | Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com> |
1020 | ||
1021 | * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): | |
1022 | Change U802TOC64MAGIC to U803XTOCMAGIC. | |
1023 | ||
3425c182 MS |
1024 | 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com> |
1025 | ||
1026 | * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1. | |
1027 | * bfd-in.h: Prototype bfd_elf_get_arch_size. | |
1028 | * bfd-in2.h: Prototype bfd_elf_get_arch_size. | |
1029 | ||
7c30ac37 AM |
1030 | 2000-05-04 Alan Modra <alan@linuxcare.com.au> |
1031 | ||
1032 | * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma. | |
1033 |