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