Commit | Line | Data |
---|---|---|
19852a2a KH |
1 | 2002-12-20 Kazu Hirata <kazu@cs.umass.edu> |
2 | ||
3 | * coff-h8300.c: Fix comment typos. | |
4 | * coffcode.h: Likewise. | |
5 | * cpu-cris.c: Likewise. | |
6 | * elf32-vax.c: Likewise. | |
7 | * genlink.h: Likewise. | |
8 | * linker.c: Likewise. | |
9 | * som.c: Likewise. | |
10 | * tekhex.c: Likewise. | |
11 | * vms-misc.c: Likewise. | |
12 | ||
5fd63999 DD |
13 | 2002-12-20 DJ Delorie <dj@redhat.com> |
14 | ||
15 | * reloc.c: Add BFD_RELOC_XSTORMY16_12. | |
16 | * libbfd.h: Regenerate. | |
17 | * bfd-in2.h: Regenerate. | |
18 | * elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_12. | |
19 | (xstormy16_reloc_map): Add R_XSTORMY16_12. | |
20 | ||
4ee79850 KH |
21 | 2002-12-19 Kazu Hirata <kazu@cs.umass.edu> |
22 | ||
23 | * doc/bfdint.texi: Fix typos. | |
24 | ||
66e25bab AM |
25 | 2002-12-20 Paul Eggert <eggert@twinsun.com> |
26 | ||
27 | Port to POSIX 1003.1-2001. | |
28 | * acinclude.m4 (AM_INSTALL_LIBBFD): Do not rely on "test -o". | |
29 | * configure.in (build-warnings): Likewise. | |
30 | (Horrible hacks to build DLLs on Windows): Do not rely on "tail -1". | |
31 | * aclocal.m4: Regenerate. | |
32 | * config.in: Regenerate. | |
33 | * configure: Regenerate. | |
34 | ||
7dc77aaa AM |
35 | 2002-12-19 Alan Modra <amodra@bigpond.net.au> |
36 | ||
0171ee92 AM |
37 | * coff-h8300.c: Include libiberty.h. |
38 | (h8300_reloc16_extra_cases): Check the hash table creator before | |
39 | referencing h8300 specific fields. Stash the hash table pointer | |
40 | in a local var. Comment typo fixes. | |
41 | (h8300_bfd_link_add_symbols): Likewise. | |
42 | ||
7dc77aaa AM |
43 | * bfd/reloc.c (struct reloc_howto_struct): Revise src_mask and |
44 | dst_mask comments. | |
45 | * bfd-in2.h: Regenerate. | |
46 | ||
47388f4c AM |
47 | 2002-12-18 Alan Modra <amodra@bigpond.net.au> |
48 | ||
49 | * elf32-ppc.c (ppc_elf_relocate_section): Reorganize dynamic reloc | |
50 | code a little. Comment on dynamic relocs against section symbols. | |
51 | ||
1b3e3744 AM |
52 | 2002-12-17 Roger Sayle <roger@eyesopen.com> |
53 | ||
54 | * configure.host (ia64-*-hpux*): Support 64 bit targets using | |
55 | the HP compiler's "long long". | |
56 | ||
46f2b541 DD |
57 | 2002-12-16 Andrew MacLeod <amacleod@redhat.com> |
58 | ||
59 | * elf32-xstormy16.c (xstormy16_elf_howto): Add R_XSTORMY16_LO16 | |
60 | and R_XSTORMY16_HI16) howto entries. | |
61 | (xstormy16_reloc_map): Map R_XSTORMY16_{LO,HI}16 to BFD_RELOC_{LO,HI}16. | |
1b3e3744 | 62 | (xstormy16_info_to_howto_rela): Use R_XSTORMY16_GNU_VTINHERIT to |
46f2b541 DD |
63 | determine the start of the second reloc table. |
64 | ||
af738ea7 NC |
65 | 2002-12-16 Nathan Tallent <eraxxon@alumni.rice.edu> |
66 | ||
67 | * ecofflink.c: Fix the reading of the debugging information | |
68 | of Tru64/Alpha binaries that are produced by recent Compaq | |
69 | compilers. | |
70 | (mk_fdrtab): Fix error in creating the FDR (file descriptor) | |
71 | table. | |
72 | (lookup_line): Because of the strange information sometimes | |
73 | generated by Compaq's recent compilers, change how the FDR | |
74 | table is searched so that PDRs (procedure descriptors) are | |
75 | correctly found. Note that this change is really more of a hack; | |
76 | however, I have included extensive documentation as to why | |
77 | this is the best solution short of an extensive rewrite or | |
78 | another hack. | |
79 | (fdrtab_lookup): Add comments to explain the algorithm. | |
80 | ||
5354b572 AO |
81 | 2002-12-12 Alexandre Oliva <aoliva@redhat.com> |
82 | ||
83 | * elf-m10300.c (elf32_mn10300_link_hash_newfunc): Reorder | |
84 | initializers to match struct declaration. | |
85 | ||
ab3acfbe AM |
86 | 2002-12-12 Alan Modra <amodra@bigpond.net.au> |
87 | ||
88 | * dwarf2.c (comp_unit_contains_address): Comment typo fix. | |
89 | * elf.c (get_program_header_size): Likewise. | |
90 | * elf32-m32r.c (m32r_elf_lo16_reloc): Likewise. | |
91 | (m32r_elf_generic_reloc): Likewise. | |
92 | * elf32-ppc.c (ppc_elf_howto_init): Likewise. | |
93 | * elflink.h (elf_bfd_discard_info): Likewise. | |
94 | ||
6348e046 AM |
95 | 2002-12-12 Alan Modra <amodra@bigpond.net.au> |
96 | ||
97 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Add output_offset | |
98 | to DT_JMPREL. Use srelplt input section size for DT_PLTRELSZ and | |
99 | DT_RELSZ adjustment, not output section. Avoid writing tags when | |
100 | unchanged. Don't assume linker script is sane, adjust DT_REL too. | |
101 | * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Just use raw | |
102 | size of srelplt for DT_PLTRELSZ. Use srelplt input section size for | |
103 | DT_RELASZ adjustment, not output section. Avoid writing tags when | |
104 | unchanged. Adjust DT_RELA. | |
105 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Tweaks for better | |
106 | formatting. Avoid writing tags when unchanged. Adjust DT_RELA. | |
107 | ||
2e7a68a8 AO |
108 | 2002-12-12 Alexandre Oliva <aoliva@redhat.com> |
109 | ||
110 | * elfxx-mips.c (mips_elf_calculate_relocation): Don't divide | |
111 | addend by 4. | |
112 | ||
b15e6682 AO |
113 | 2002-12-12 Alexandre Oliva <aoliva@redhat.com> |
114 | ||
115 | * elfxx-mips.c (struct mips_got_entry): New. | |
116 | (struct mips_got_info): Added got_entries field. | |
117 | (mips_elf_got_entry_hash, mips_elf_got_entry_eq): New functions. | |
118 | (mips_elf_local_got_index, mips_elf_got_page, | |
119 | mips_elf_got16_entry): Re-implement in terms of new... | |
120 | (mips_elf_create_local_got_entry): Rewrite to use got_entries. | |
121 | Change return type. | |
122 | (mips_elf_highest): Warning clean-up. | |
123 | (mips_elf_create_got_section): Initialize got_entries. | |
124 | (_bfd_mips_elf_check_relocs): Use got_entries to estimate | |
125 | local got size. | |
126 | (_bfd_mips_elf_size_dynamic_sections): Do not account for | |
127 | GOT_PAGE entries, since we now reuse GOT16 entries. | |
128 | ||
e6af3a53 NC |
129 | 2002-12-10 Jason Thorpe <thorpej@wasabisystems.com> |
130 | ||
131 | * aoutx.h (set_section_contents): Allow an otherwise unrepresentable | |
132 | read-only section that lies after .text and before .data to be | |
133 | written into the output file and included in a_text. | |
134 | (translate_to_native_sym_flags): If an otherwise unrepresentable | |
135 | section was merged with .text, convert its symbols to N_TEXT | |
136 | symbols. | |
137 | * libaout.h (aout_section_merge_with_text_p): New macro. | |
138 | ||
cf3d882d AM |
139 | 2002-12-08 Alan Modra <amodra@bigpond.net.au> |
140 | ||
141 | * bfd-in.h: Comment typo fix. Formatting. | |
142 | * bfd-in2.h: Regenerate. | |
143 | * coff64-rs6000.c (xcoff64_openr_next_archived_file): Warning fix. | |
144 | * elf32-m68hc12.c (m68hc12_elf_set_mach_from_flags): Prototype. | |
145 | * elf64-mmix.c (mmix_dump_bpo_gregs): Warning fix. | |
146 | ||
2f9bd3f6 RH |
147 | 2002-12-05 Richard Henderson <rth@redhat.com> |
148 | ||
149 | * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21BI. | |
150 | Only send PCREL21B though the plt. Fix installed reloc type. | |
151 | (elfNN_ia64_relocate_section): Give error for dynamic reloc | |
152 | against PCREL22 or PCREL64I; clean up error messages for | |
153 | branch relocs. | |
154 | ||
d0112f73 KB |
155 | 2002-12-04 Kevin Buettner <kevinb@redhat.com> |
156 | ||
157 | * elf64-mips.c (elf64_mips_grok_prstatus, elf64_mips_grok_psinfo): | |
158 | New functions. | |
159 | (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define. | |
160 | ||
c10d9d8f JW |
161 | 2002-12-04 David Mosberger <davidm@hpl.hp.com> |
162 | ||
163 | * cpu-ia64-opc.c: Add operand constant "ar.csd". | |
164 | ||
d48770d4 L |
165 | 2002-12-04 H.J. Lu <hjl@gnu.org> |
166 | ||
167 | * elfxx-ia64.c (get_local_sym_hash): Use section ID instead of | |
168 | BFD address when constructing local name. | |
169 | ||
b6152c34 AS |
170 | 2002-12-04 Andreas Schwab <schwab@suse.de> |
171 | ||
172 | * elf32-m68k.c (struct elf_m68k_link_hash_table): Add sym_sec | |
173 | member. | |
174 | (elf_m68k_link_hash_table_create): Initialize it. | |
175 | (elf_m68k_check_relocs): Handle symbols that are forced to be | |
176 | local due to visibility changes. | |
177 | (elf_m68k_adjust_dynamic_symbol): Likewise. | |
178 | (elf_m68k_size_dynamic_sections): Likewise. | |
179 | (elf_m68k_discard_copies): Likewise. | |
180 | (elf_m68k_relocate_section): Likewise. | |
181 | ||
73374ef1 AM |
182 | 2002-12-04 Alan Modra <amodra@bigpond.net.au> |
183 | ||
184 | * elf64-ppc.c (ppc64_elf_edit_opd): Correct typo. | |
185 | ||
c5c1944d AM |
186 | 2002-12-04 Alan Modra <amodra@bigpond.net.au> |
187 | ||
188 | * srec.c (srec_write_symbols): Restore '$' prefix to address | |
189 | accidentally removed in 2002-04-04 change. | |
190 | (srec_get_symtab): Use 0 instead of `(long) FALSE'. | |
191 | ||
e1a9cb8e NC |
192 | 2002-12-03 Nick Clifton <nickc@redhat.com> |
193 | ||
194 | * elf32-ppc.c (apuinfo_list_init): New function. | |
73374ef1 AM |
195 | (apuinfo_list_add): New function: Add a value to the list. |
196 | (apuinfo_list_length): New function: Return the number of | |
197 | values on the list. | |
198 | (apuinfo_list_element): New function: Return a value on the | |
199 | list. | |
200 | (apuinfo_list_finish): New function: Free the resources used | |
201 | by the list. | |
202 | (ppc_elf_begin_write_processing): New function. Scan the | |
203 | input bfds for apuinfo sections. | |
204 | (ppc_elf_write_section): New function: Delay the creation of | |
205 | the contents of an apuinfo section in an output bfd. | |
206 | (ppc_elf_final_write_processing): New function. Create the | |
207 | contents of an apuinfo section in an output bfd. | |
208 | (elf_backend_begin_write_processing): Define. | |
209 | (elf_backend_final_write_processing): Define. | |
210 | (elf_backend_write_section): Define. | |
e1a9cb8e | 211 | |
a823923b RH |
212 | 2002-12-03 Richard Henderson <rth@redhat.com> |
213 | ||
214 | * cpu-ia64-opc.c (elf64_ia64_operands): Add ldxmov entry. | |
215 | ||
30491647 SC |
216 | 2002-12-01 Stephane Carrez <stcarrez@nerim.fr> |
217 | ||
218 | Fix PR savannah/1417: | |
219 | * elf32-m68hc11.c (m68hc11_elf_relax_delete_bytes): Don't adjust | |
220 | branch if it goes to the start of the deleted region. | |
221 | ||
bc7c6a90 SC |
222 | 2002-12-01 Stephane Carrez <stcarrez@nerim.fr> |
223 | ||
224 | * bfd-in2.h (bfd_mach_m6812): Rebuild. | |
225 | * archures.c (bfd_mach_m6812_default, bfd_mach_m6812, | |
226 | bfd_mach_m6812s): Declare. | |
227 | ||
228 | * elf32-m68hc12.c (m68hc12_elf_set_mach_from_flags): New function. | |
229 | (_bfd_m68hc12_elf_set_private_flags): Call it. | |
230 | (_bfd_m68hc12_elf_print_private_bfd_data): Report processor version. | |
231 | (_bfd_m68hc12_elf_merge_private_bfd_data): Merge the flags and | |
232 | report microcontroller incompatibilities (HC12 vs HCS12). | |
233 | (elf_backend_object_p): Update. | |
234 | ||
b34976b6 AM |
235 | 2002-11-30 Alan Modra <amodra@bigpond.net.au> |
236 | ||
237 | * bfd-in.h (TRUE_FALSE_ALREADY_DEFINED, BFD_TRUE_FALSE): Delete. | |
238 | (enum bfd_boolean, boolean): Delete. | |
239 | (bfd_boolean): Typedef to an int. | |
240 | (FALSE, TRUE): Define. | |
241 | * aix386-core.c, aix5ppc-core.c, aout-adobe.c, aout-arm.c, aout-cris.c, | |
242 | aout-encap.c, aout-ns32k.c, aout-target.h, aout-tic30.c, aoutf1.h, | |
243 | aoutx.h, archive.c, archive64.c, archures.c, bfd-in.h, bfd.c, bfdwin.c, | |
244 | binary.c, bout.c, cache.c, cisco-core.c, coff-a29k.c, coff-alpha.c, | |
245 | coff-apollo.c, coff-arm.c, coff-aux.c, coff-h8300.c, coff-h8500.c, | |
246 | coff-i386.c, coff-i860.c, coff-i960.c, coff-ia64.c, coff-m68k.c, | |
247 | coff-m88k.c, coff-mcore.c, coff-mips.c, coff-or32.c, coff-ppc.c, | |
248 | coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c, coff-tic30.c, | |
249 | coff-tic4x.c, coff-tic54x.c, coff-tic80.c, coff-w65.c, coff-we32k.c, | |
250 | coff-z8k.c, coff64-rs6000.c, coffcode.h, coffgen.c, cofflink.c, | |
251 | corefile.c, cpu-a29k.c, cpu-alpha.c, cpu-arc.c, cpu-arm.c, cpu-avr.c, | |
252 | cpu-cris.c, cpu-d10v.c, cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, | |
253 | cpu-h8300.c, cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, | |
254 | cpu-i860.c, cpu-i960.c, cpu-ia64.c, cpu-ip2k.c, cpu-m10200.c, | |
255 | cpu-m10300.c, cpu-m32r.c, cpu-m68hc11.c, cpu-m68hc12.c, cpu-m68k.c, | |
256 | cpu-m88k.c, cpu-mcore.c, cpu-mips.c, cpu-mmix.c, cpu-ns32k.c, | |
257 | cpu-openrisc.c, cpu-or32.c, cpu-pdp11.c, cpu-pj.c, cpu-powerpc.c, | |
258 | cpu-rs6000.c, cpu-s390.c, cpu-sh.c, cpu-sparc.c, cpu-tic30.c, | |
259 | cpu-tic4x.c, cpu-tic54x.c, cpu-tic80.c, cpu-v850.c, cpu-vax.c, | |
260 | cpu-w65.c, cpu-we32k.c, cpu-xstormy16.c, cpu-z8k.c, dwarf1.c, | |
261 | dwarf2.c, ecoff.c, ecofflink.c, efi-app-ia32.c, efi-app-ia64.c, | |
262 | elf-bfd.h, elf-eh-frame.c, elf-hppa.h, elf-m10200.c, elf-m10300.c, | |
263 | elf-strtab.c, elf.c, elf32-arc.c, elf32-arm.h, elf32-avr.c, | |
264 | elf32-cris.c, elf32-d10v.c, elf32-d30v.c, elf32-dlx.c, elf32-fr30.c, | |
265 | elf32-frv.c, elf32-gen.c, elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, | |
266 | elf32-i370.c, elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c, | |
267 | elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c, elf32-m68k.c, | |
268 | elf32-mcore.c, elf32-mips.c, elf32-openrisc.c, elf32-or32.c, | |
269 | elf32-pj.c, elf32-ppc.c, elf32-s390.c, elf32-sh.c, elf32-sh64-com.c, | |
270 | elf32-sh64.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c, | |
271 | elf32-xstormy16.c, elf64-alpha.c, elf64-gen.c, elf64-hppa.c, | |
272 | elf64-mips.c, elf64-mmix.c, elf64-ppc.c, elf64-ppc.h, elf64-s390.c, | |
273 | elf64-sh64.c, elf64-sparc.c, elf64-x86-64.c, elfarm-nabi.c, | |
274 | elfarm-oabi.c, elfcode.h, elfcore.h, elflink.c, elflink.h, | |
275 | elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c, elfxx-mips.h, | |
276 | elfxx-target.h, format.c, freebsd.h, genlink.h, hash.c, hp300hpux.c, | |
277 | hppabsd-core.c, hpux-core.c, i386aout.c, i386linux.c, i386lynx.c, | |
278 | i386mach3.c, i386msdos.c, i386os9k.c, ieee.c, ihex.c, irix-core.c, | |
279 | libaout.h, libbfd-in.h, libbfd.c, libcoff-in.h, libecoff.h, libieee.h, | |
280 | libnlm.h, liboasys.h, libpei.h, libxcoff.h, linker.c, lynx-core.c, | |
281 | m68klinux.c, m68klynx.c, mach-o.c, mach-o.h, merge.c, mipsbsd.c, | |
282 | mmo.c, netbsd-core.c, netbsd.h, nlm.c, nlm32-alpha.c, nlm32-i386.c, | |
283 | nlm32-ppc.c, nlm32-sparc.c, nlmcode.h, oasys.c, opncls.c, osf-core.c, | |
284 | pc532-mach.c, pdp11.c, pe-arm.c, pe-i386.c, pe-mcore.c, pe-mips.c, | |
285 | pe-sh.c, peXXigen.c, pef.c, pei-arm.c, pei-i386.c, pei-mcore.c, | |
286 | pei-mips.c, pei-sh.c, peicode.h, ppcboot.c, ptrace-core.c, reloc.c, | |
287 | reloc16.c, riscix.c, rs6000-core.c, sco5-core.c, section.c, simple.c, | |
288 | som.c, som.h, sparclinux.c, sparclynx.c, srec.c, stabs.c, sunos.c, | |
73374ef1 | 289 | syms.c, targets.c, tekhex.c, ticoff.h, trad-core.c, versados.c, |
b34976b6 AM |
290 | vms-gsd.c, vms-hdr.c, vms-misc.c, vms-tir.c, vms.c, vms.h, |
291 | xcoff-target.h, xcofflink.c, xsym.c, xsym.h: Replace boolean with | |
292 | bfd_boolean, true with TRUE, false with FALSE. Simplify comparisons | |
293 | of bfd_boolean vars with TRUE/FALSE. Formatting. | |
294 | * bfd-in2.h, libbfd.h, libcoff.h: Regenerate | |
295 | ||
947216bf AM |
296 | 2002-11-28 Alan Modra <amodra@bigpond.net.au> |
297 | ||
298 | * elf-bfd.h: Replace occurrences of Elf32_Internal_* and | |
299 | Elf64_Internal_* with Elf_Internal_*. Replace Elf_Internal_Rel | |
300 | with Elf_Internal_Rela. | |
301 | * elf-hppa.h, elf-m10200.c, elf-m10300.c, elf32-arc.c, elf32-arm.h, | |
302 | elf32-avr.c, elf32-cris.c, elf32-d10v.c, elf32-d30v.c, elf32-dlx.c, | |
303 | elf32-fr30.c, elf32-frv.c, elf32-gen.c, elf32-h8300.c, elf32-hppa.c, | |
304 | elf32-i370.c, elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c, | |
305 | elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c, elf32-m68k.c, | |
306 | elf32-mcore.c, elf32-mips.c, elf32-openrisc.c, elf32-or32.c, | |
307 | elf32-ppc.c, elf32-s390.c, elf32-sh.c, elf32-v850.c, elf32-vax.c, | |
308 | elf32-xstormy16.c, elf64-alpha.c, elf64-gen.c, elf64-hppa.c, | |
309 | elf64-mips.c, elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, | |
310 | elf64-sparc.c, elf64-x86-64.c, elfarm-nabi.c, elfarm-oabi.c, | |
311 | elfcode.h, elflink.h, elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c: Ditto. | |
312 | * elf-hppa.h (elf_hppa_internal_shdr): Delete. Use Elf_Internal_Shdr | |
313 | throughout instead. | |
314 | * elf.c (_bfd_elf_no_info_to_howto_rel): Delete. | |
315 | * elfcode.h (elf_swap_reloca_in): Pass source operand as a bfd_byte *. | |
316 | Remove INLINE keyword. | |
317 | (elf_swap_reloc_in): Likewise. Also clear r_addend. | |
318 | (elf_swap_reloc_out, elf_swap_reloca_out): Pass destination operand | |
319 | as a bfd_byte *. | |
320 | (elf_write_relocs): Consolidate REL and RELA code. | |
321 | (elf_slurp_reloc_table_from_section): Simplify REL code. | |
322 | (NAME(_bfd_elf,size_info)): Populate reloc swap entries. | |
323 | * elf-bfd.h (MAX_INT_RELS_PER_EXT_REL): Define. | |
324 | * elflink.h (elf_link_read_relocs_from_section): Consolidate REL and | |
325 | RELA code. | |
326 | (elf_link_adjust_relocs): Likewise. Don't malloc space for temp | |
327 | reloc array, use a fixed size of MAX_INT_RELS_PER_EXT_REL. | |
328 | (elf_link_output_relocs): Likewise. | |
329 | (elf_reloc_link_order): Likewise. | |
330 | (elf_finish_pointer_linker_section): Likewise. | |
331 | (struct elf_link_sort_rela): Remove union. | |
332 | (elf_link_sort_cmp1): Update to suit. | |
333 | (elf_link_sort_cmp2): Here too. | |
334 | (elf_link_sort_relocs): Consolidate REL and RELA code. Fix memory | |
335 | over-allocation for int_rels_per_ext_rel != 1 case. | |
336 | * elf32-arm.h: Update all bfd_elf32_swap_reloc_out calls. | |
337 | * elf32-i386.c: Likewise. | |
338 | * elf32-cris.c: Likewise for bfd_elf32_swap_reloca_out. | |
339 | * elf32-hppa.c, elf32-i370.c, elf32-m68k.c, elf32-ppc.c, elf32-s390.c, | |
340 | elf32-sh.c, elf32-vax.c, elfxx-mips.c: Likewise. | |
341 | * elf64-alpha.c: Likewise for bfd_elf64_swap_reloca_out. | |
342 | * elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, | |
343 | elf64-sparc.c, elf64-x86-64.c: Likewise. | |
344 | * elfxx-ia64.c: Likewise for bfd_elfNN_swap_reloca_out. | |
345 | * elfxx-mips.c (sort_dynamic_relocs): Likewise for | |
346 | bfd_elf32_swap_reloc_in. | |
347 | ||
348 | * elf32-arm.h: Update elf32_arm_info_to_howto calls. | |
349 | * elf32-mips.c: Likewise for mips_info_to_howto_rel. | |
350 | (mips_elf64_swap_reloc_in): Zero r_addend. | |
351 | (mips_elf64_be_swap_reloc_in): Likewise. | |
352 | (mips_elf64_slurp_one_reloc_table): Simplify. | |
353 | ||
354 | * elf64-alpha.c (alpha_elf_size_info): Populate reloc swap entries. | |
355 | * elf64-hppa.c (hppa64_elf_size_info): Likewise. | |
356 | * elf64-sparc.c (sparc64_elf_size_info): Likewise. | |
357 | ||
1448fa32 KK |
358 | 2002-11-28 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
359 | ||
360 | * elf32-sh.c (sh_elf_relocate_section): Don't complain about | |
73374ef1 | 361 | unresolved debugging relocs in dynamic applications. |
1448fa32 KK |
362 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. |
363 | ||
73722af0 AM |
364 | 2002-11-26 Alan Modra <amodra@bigpond.net.au> |
365 | ||
366 | * elf-eh-frame.c (ENSURE_NO_RELOCS): Disregard R_*_NONE relocs. | |
367 | (_bfd_elf_discard_section_eh_frame): Don't discard duplicate CIEs | |
368 | on a relocatable link. Comment typos. | |
369 | * elf.c (_bfd_elf_link_hash_newfunc): Assign elements of structure | |
370 | in the order they are declared. Clear elf_hash_value too. | |
371 | (_bfd_elf_link_hash_table_init): Likewise assign in order. Clear | |
372 | eh_info and tls_segment. | |
373 | * elflink.h (elf_link_input_bfd <emit_relocs>): Keep reloc offsets | |
374 | sorted when discarding relocs by turning them into R_*_NONE. | |
375 | ||
376 | * libbfd.c (warn_deprecated): Comment spelling. | |
377 | * po/SRC-POTFILES.in: Regenerate. | |
378 | ||
7c25b72c RH |
379 | 2002-11-21 Richard Henderson <rth@redhat.com> |
380 | ||
381 | * elflink.h (elf_link_add_object_symbols): Don't overwrite the | |
382 | arch's st_other bits when merging visibilities. | |
383 | (elf_link_output_extsym): Tidy clearing of visibility field. | |
384 | ||
dc12c51f AM |
385 | 2002-11-21 Alan Modra <amodra@bigpond.net.au> |
386 | ||
387 | * coff-mcore.c (SWAP_IN_RELOC_OFFSET): Define. | |
388 | (SWAP_OUT_RELOC_OFFSET): Define. | |
389 | ||
963f13ec AO |
390 | 2002-11-20 Alexandre Oliva <aoliva@redhat.com> |
391 | ||
392 | * elf.c (_bfd_elf_link_hash_table_init): Make sure | |
393 | can_refcount is properly extended to the type of | |
394 | init_refcount. | |
395 | ||
ee6423ed AO |
396 | 2002-11-19 Alexandre Oliva <aoliva@redhat.com> |
397 | ||
4ffba85c AO |
398 | * elfxx-mips.c (MIPS_RELOC_RELA_P): New macro. |
399 | (_bfd_mips_elf_relocate_section): Use it. | |
400 | ||
ee6423ed AO |
401 | * elfxx-mips.c (MNAME): New macro. |
402 | (_bfd_mips_elf_check_relocs): Use it. | |
403 | (_bfd_mips_elf_discard_info): Likewise. | |
404 | (_bfd_mips_elf_final_link): Likewise. | |
405 | ||
cdcf6e38 AM |
406 | 2002-11-19 Alan Modra <amodra@bigpond.net.au> |
407 | ||
408 | * elf64-ppc.c (ppc64_elf_edit_opd): When deleting relocs, adjust | |
409 | rel_hdr.sh_size too. | |
410 | ||
93509525 KD |
411 | 2002-11-18 Klee Dienes <kdienes@apple.com> |
412 | ||
413 | * Makefile.am (BFD32_LIBS): Add bfdwin.lo, bfdio.lo. | |
414 | (BFD32_LIBS_CFILES): Add bfdwin.c, bfdio.c. | |
415 | (BFD_H_FILES): Add bfdwin.c, bfdio.c. | |
416 | (LIBBFD_H_FILES): Add bfdwin.c, bfdio.c. | |
417 | Add dependencies for bfdwin.c, bfdio.c. | |
418 | * bfd.c: Remove bfd_get_mtime, bfd_get_size. | |
419 | * libbfd.c: Remove real_read, bfd_bread, _bfd_window_internal, | |
420 | bfd_init_window, bfd_free_window, bfd_get_file_window, bfd_bwrite, | |
421 | bfd_tell, bfd_flush, bfd_stat, bfd_seek. | |
422 | * bfdio.c: New file. Contains real_read, bfd_bread, bfd_write, | |
423 | bfd_tell, bfd_flush, bfd_stat, bfd_seek, bfd_ge_mtime, | |
424 | bfd_get_size (moved from libbfd.c and bfd.c). | |
425 | * bfdwin.c New file. Contains _bfd_window_internal, | |
426 | bfd_init_window, bfd_free_window, bfd_get_file_window (moved from | |
427 | libbfd.c and bfd.c). | |
428 | * po/SRC-POTFILES.in: Regenerate. | |
429 | * po/bfd.pot: Regenerate. | |
430 | * libbfd.h: Regenerate. | |
431 | * bfd-in2.h: Regenerate. | |
432 | * aclocal.m4: Regenerate. | |
433 | * Makefile.in: Regenerate. | |
434 | * configure: Regenerate. | |
435 | ||
3ae41454 AM |
436 | 2002-11-18 Klee Dienes <kdienes@apple.com> |
437 | ||
438 | * bfd.c (bfd_preserve_save): Don't zero BFD_IN_MEMORY. | |
439 | ||
e514ac71 NC |
440 | 2002-11-15 Kazu Hirata <kazu@cs.umass.edu> |
441 | ||
442 | * coff-h8300.c (h8300_reloc16_estimate): Do not optimize away | |
443 | jsr after a short jump. | |
444 | * elf32-h8300.c (elf32_h8_relax_section): Likewise. | |
445 | ||
eddc4f81 KD |
446 | 2002-11-15 Klee Dienes <kdienes@apple.com> |
447 | ||
448 | * pef.c (bfd_pef_convert_architecture): Move declaration of | |
449 | ARCH_POWERPC and ARCH_M68K to the start of the function. | |
450 | ||
51908eee SS |
451 | 2002-11-14 Svein E. Seldal <Svein.Seldal@solidas.com> |
452 | ||
453 | * coff-tic4x.c (tic4x_howto_table): Formatting fixup | |
454 | ||
3416d2e7 HPN |
455 | 2002-11-14 Hans-Peter Nilsson <hp@bitrange.com> |
456 | ||
457 | * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): | |
458 | For bpo_gregs_section->contents, allocate _raw_size, not | |
459 | _cooked_size. | |
460 | ||
b1c58715 AM |
461 | 2002-11-13 Klee Dienes <kdienes@apple.com> |
462 | ||
463 | * config.bfd: Add entries for powerpc-*-darwin and cousins. | |
464 | ||
077ca68b L |
465 | 2002-11-13 H.J. Lu <hjl@gnu.org> |
466 | ||
467 | * elfcode.h (elf_object_p): Don't restore abfd->arch_info. | |
468 | ||
e84d6fca AM |
469 | 2002-11-13 Klee Dienes <kdienes@apple.com> |
470 | Alan Modra <amodra@bigpond.net.au> | |
471 | ||
472 | * bfd.c (struct bfd_preserve): New. | |
473 | (bfd_preserve_save): New function. | |
474 | (bfd_preserve_restore): Ditto. | |
475 | (bfd_preserve_finish): Ditto. | |
476 | * bfd-in2.h: Regenerate. | |
477 | * mach-o.c: Formatting. | |
478 | (bfd_mach_o_scan_read_symtab_symbol): Make "value" unsigned. | |
479 | (bfd_mach_o_object_p): Use bfd_preserve_save/restore/finish. | |
480 | (bfd_mach_o_core_p): Ditto. | |
481 | (bfd_mach_o_scan): Pass in mdata. | |
482 | * mach-o.h (bfd_mach_o_scan): Update prototype. | |
483 | * pef.c: Formatting. | |
484 | (bfd_pef_object_p): Use bfd_preserve_save/restore/finish. | |
485 | (bfd_pef_xlib_object_p): Ditto. | |
486 | (bfd_pef_scan): Pass in mdata. Move version check to bfd_pef_object_p. | |
487 | * pef.h (bfd_pef_scan): Update prototype. | |
488 | * xsym.c: Formatting, K&R fixes. | |
489 | (bfd_sym_object_p): Use bfd_preserve_save/restore/finish. | |
490 | (bfd_sym_scan): New function split out from bfd_sym_object_p. | |
491 | * xsym.h (bfd_sym_scan): Declare. | |
492 | * elfcode.h (elf_object_p): Use bfd_preserve_save/restore/finish. | |
a7f84125 | 493 | * elfcore.h (elf_core_file_p): Likewise. |
e84d6fca AM |
494 | * targets.c (_bfd_target_vector): Revert 2002-11-08 change. |
495 | ||
cd24c222 NC |
496 | 2002-11-12 Nick Clifton <nickc@redhat.com> |
497 | ||
498 | * po/da.po: Updated Danish translation. | |
499 | ||
99eb2ac8 AM |
500 | 2002-11-12 Alan Modra <amodra@bigpond.net.au> |
501 | ||
d6fe2dc1 AM |
502 | * elflink.h (elf_link_add_object_symbols): Optimize stabs for |
503 | relocatable link too. | |
504 | (elf_link_input_bfd): When emitting relocs, adjust offsets for | |
505 | eh_frame and stab sections. Zap deleted relocs. | |
506 | (elf_reloc_symbol_deleted_p): Return true for zero r_symndx. | |
507 | (elf_bfd_discard_info): Run for relocatable link too. | |
508 | * elf64-ppc.c (ppc64_elf_edit_opd): Rename from edit_opd. Make global. | |
509 | Handle ld -r case. | |
510 | (ppc64_elf_size_dynamic_sections): Don't call edit_opd from here. | |
511 | * elf64-ppc.h (ppc64_elf_edit_opd): Declare. | |
512 | ||
126495ed AM |
513 | * elf-bfd.h (struct cie_header): Move from elf_eh-frame.c. |
514 | (struct cie, struct eh_cie_fde, struct eh_frame_sec_info): Likewise. | |
515 | (struct eh_frame_array_ent, struct eh_frame_hdr_info): Likewise. | |
516 | (enum elf_link_info_type): Remove ELF_INFO_TYPE_EH_FRAME_HDR. | |
517 | (struct eh_frame_hdr_info): Add "hdr_sec", remove "split". | |
518 | (struct elf_link_hash_table): Add eh_info. | |
519 | (struct elf_obj_tdata): Change eh_frame_hdr to an asection *. | |
520 | (_bfd_elf_discard_section_eh_frame): Update prototype. | |
521 | (_bfd_elf_discard_section_eh_frame_hdr): Likewise. | |
522 | (_bfd_elf_write_section_eh_frame): Likewise. | |
523 | (_bfd_elf_write_section_eh_frame_hdr): Likewise. | |
524 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Remove "ehdrsec" | |
525 | param. Get "hdr_info" from link hash table. | |
526 | (_bfd_elf_discard_section_eh_frame_hdr): Remove "sec" param. Get | |
527 | header section from link hash table. Save header section to elf_tdata. | |
528 | (_bfd_elf_maybe_strip_eh_frame_hdr): Remove local "sec". Use | |
529 | header section from link hash table. Don't alloc hdr_info. Clear | |
530 | hdr_sec instead of setting "strip". | |
531 | (_bfd_elf_eh_frame_section_offset): Formatting. | |
532 | (_bfd_elf_write_section_eh_frame): Remove "ehdrsec", add "info" param. | |
533 | Get header section from link hash table. | |
534 | (_bfd_elf_write_section_eh_frame_hdr): Remove "sec", add "info" param. | |
535 | Get header section from link hash table. | |
536 | * elf.c (map_sections_to_segments): Use cached eh_frame_hdr. | |
537 | (get_program_header_size): Likewise. | |
538 | (_bfd_elf_section_offset): Formatting. | |
539 | * elflink.h (elf_link_create_dynamic_sections): Stash eh frame header | |
540 | section pointer in link hash table. | |
541 | (elf_bfd_final_link): Adjust _bfd_elf_write_section_eh_frame_hdr | |
542 | and _bfd_elf_write_section_eh_frame calls. Update comment about | |
543 | eh_frame entries. | |
544 | (elf_bfd_discard_info): Adjust _bfd_elf_discard_section_eh_frame and | |
545 | _bfd_elf_discard_section_eh_frame_hdr calls. Remove "ehdr". | |
546 | ||
547 | * po/SRC-POTFILES.in: Regenerate. | |
548 | ||
99eb2ac8 AM |
549 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't zero |
550 | relocs for discarded FDEs. Remove dead code. | |
551 | (_bfd_elf_write_section_eh_frame_hdr): Remove dead code. | |
552 | * elflink.h (elf_bfd_discard_info): Don't save edited relocs. | |
553 | Tidy conditions under which stabs are edited. Formatting. | |
554 | * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows | |
555 | from discarded relocs. | |
556 | * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Add reloc output | |
557 | section adjustments after testing magic values. | |
558 | ||
7c319a27 AM |
559 | 2002-11-12 Thomas Moestl <tmm@FreeBSD.org> |
560 | ||
561 | * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Correct | |
562 | references to large plt symbols. | |
563 | ||
a95a4550 AM |
564 | 2002-11-12 Klee Dienes <kdienes@apple.com> |
565 | ||
566 | * mach-o.c (bfd_mach_o_scan_read_thread): Don't re-use 'i' when | |
567 | looking for an unused section name. | |
568 | ||
bc7eab72 KH |
569 | 2002-11-11 Kazu Hirata <kazu@cs.umass.edu> |
570 | ||
571 | * coff-h8300.c: Fix formatting. | |
572 | * elf32-h8300.c: Likewise. | |
573 | * reloc16.c: Likewise. | |
574 | ||
52585bb8 AM |
575 | 2002-11-09 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com> |
576 | ||
577 | * elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output | |
578 | section when dynamic section unused; _bfd_strip_section_from_output | |
579 | instead. | |
580 | ||
9f632188 AM |
581 | 2002-11-08 Alan Modra <amodra@bigpond.net.au> |
582 | ||
207b304b AM |
583 | * targets.c (_bfd_target_vector): Disable pef_vec, pef_xlib_vec |
584 | and sym_vec. | |
3b029f65 | 585 | |
9f632188 AM |
586 | * dwarf2.c: Revert last change. |
587 | ||
ec4530b5 NC |
588 | 2002-11-07 Michal Ludvig <mludvig@suse.cz> |
589 | ||
590 | * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info, | |
591 | _bfd_dwarf2_find_nearest_line): Use | |
592 | bfd_simple_get_relocated_section_contents() instead of | |
593 | bfd_get_section_contents(). | |
594 | * reloc.c (bfd_perform_relocation): Add sanity check. | |
595 | * simple.c (simple_get_relocated_section_contents): If the section | |
596 | does not have any relocs associated with it, just return the | |
597 | unadjusted contents. | |
598 | ||
205cfeb0 HPN |
599 | 2002-11-07 Hans-Peter Nilsson <hp@axis.com> |
600 | ||
601 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOT, | |
602 | case R_CRIS_32_GOT>: Correct test for filling in constant .got | |
603 | contents, enabling for a non-DSO, for symbols defined in the | |
604 | program with --export-dynamic. | |
605 | ||
87e226ce AM |
606 | 2002-11-07 Alan Modra <amodra@bigpond.net.au> |
607 | ||
608 | * elf64-ppc.c: Comment typo fixes. | |
609 | (ppc64_elf_merge_private_bfd_data): Allow BFD_ENDIAN_UNKNOWN input. | |
610 | ||
235c4794 NC |
611 | 2002-11-07 Nick Clifton <nickc@redhat.com> |
612 | ||
613 | * po/da.po: Updated Danish translation. | |
614 | ||
49179469 AO |
615 | 2002-11-06 Alexandre Oliva <aoliva@redhat.com> |
616 | ||
617 | * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Generate | |
618 | exactly three internal relocs per external reloc. Set reloc_count | |
619 | to the external reloc count. | |
620 | ||
246178f2 NC |
621 | 2002-11-06 Klee Dienes <kdienes@apple.com> |
622 | ||
3ae41454 | 623 | * coff-stgo32.c (stub_bytes): Mark as const. |
246178f2 NC |
624 | Fix comment formatting. |
625 | ||
3af9a47b NC |
626 | 2002-11-06 Klee Dienes <kdienes@apple.com> |
627 | ||
3ae41454 | 628 | * Makefile.am (BFD32_BACKENDS): Add mach-o.lo, pef.lo, and |
3af9a47b NC |
629 | xsym.lo. |
630 | (BFD32_BACKENDS_CFILES): Add mach-o.c, pef.c, and xsym.c. | |
631 | (SOURCE_HFILES): Add mach-o.h, pef.h, pef-traceback.h, xsym.h | |
632 | * archures.c (enum bfd_architecture): Add bfd_arch_m98k. | |
633 | * bfd.c (struct bfd): Add private data for mach-o, pef, and sym. | |
634 | * targets.c (enum bfd_flavour): Add flavours for mach-o, pef, and | |
635 | sym. | |
3ae41454 | 636 | (_bfd_target_vector): Add target vectors for mach-o, pef, and sym. |
3af9a47b NC |
637 | * Makefile.in: Regenerate. |
638 | * doc/Makefile.in: Regenerate. | |
3ae41454 | 639 | * bfd-in2.h: Regenerate. |
3af9a47b NC |
640 | * xsym.c: New file. Contains support for the Apple/Metrowerks |
641 | xSYM debugging format. | |
642 | * xsym.h: New file. | |
643 | * pef.c: New file. Contains support for the Apple Code Fragment | |
644 | Manager Preferred Executable Format | |
645 | * pef.h: New file. | |
646 | * pef-traceback.h: New file. Contains support for parsing PowerPC | |
647 | traceback tables as used by PEF executables (and perhaps other | |
648 | systems as well). | |
3ae41454 | 649 | * mach-o.c: New file. Contains support for the Mach-O object file |
3af9a47b NC |
650 | format. |
651 | * mach-o.h: New file. | |
652 | * mach-o-target.c: New file. Declares the mach-o targets | |
653 | themselves. Included three times by mach-o.c; each time with a | |
654 | different set of macros set. | |
3ae41454 | 655 | |
b6821651 | 656 | 2002-11-06 Graeme Peterson <gp@qnx.com> |
911b232a AM |
657 | |
658 | * Makefile.am: Remove entries for elf32-qnx.[ch]. | |
659 | * Makefile.in: Regenerate. | |
660 | * config.bfd: Change arm-nto to use bfd_elf32_{big|little}arm_vec, | |
661 | ppc-nto to use bfd_elf32_powerpc{le}_vec, sh-nto to use | |
662 | bfd_elf32_sh{l}_vec, and i386-nto to use bfd_elf32_i386_vec. | |
663 | * configure.in: Remove support for bfd_elf32_sh{l}qnx_vec, | |
664 | bfd_elf32_powerpc{le}qnx_vec, bfd_elf32_{big|little}armqnx_vec, | |
665 | and bfd_elf32_i386qnx_vec, and removed elf32-qnx.lo from other targets. | |
666 | bfd_elf32_sh{l}_vec, and i386-nto to use bfd_elf32_i386_vec. | |
667 | * configure: Regenerate. | |
668 | * elf32-qnx.c: Remove. | |
669 | * elf32-qnx.h: Remove. | |
670 | * elf.c: Remove calls to QNX specific set_nonloadable_filepos, | |
671 | is_contained_by_filepos, and copy_private_bfd_data_p. | |
ad12c1c5 AM |
672 | * elf-bfd.h (struct elf_backend_data): Remove set_nonloadable_filepos, |
673 | is_contained_by_filepos, and copy_private_bfd_data_p. | |
911b232a AM |
674 | * elf32-i386.c: Remove QNX extended bfd support. |
675 | * elf32-ppc.c: Remove QNX extended bfd support. | |
676 | * elf32-sh.c: Remove QNX extended bfd support. | |
677 | * elfarm-nabi.c: Remove QNX extended bfd support. | |
678 | * targets.c: Remove qnx vectors. | |
679 | * elfxx-target.h (elf_backend_set_nonloadable_filepos): Remove | |
680 | (elf_backend_is_contained_by_filepos): Remove. | |
681 | (elf_backend_copy_private_bfd_data_p): Remove. | |
682 | * po/SRC-POTFILES.in: Regenerate. | |
683 | ||
b6821651 AM |
684 | 2002-11-06 David O'Brien <obrien@FreeBSD.org> |
685 | Alan Modra <amodra@bigpond.net.au> | |
686 | ||
687 | * elf64-sparc.c (sparc64_elf_relocate_section): Adjust addend of | |
688 | dynamic relocs against section symbols for the output section vma. | |
689 | ||
690 | 2002-11-05 Alan Modra <amodra@bigpond.net.au> | |
691 | ||
692 | * elf32-arm.h (t2a1_push_insn, t2a2_ldr_insn, t2a3_mov_insn, | |
693 | t2a4_bx_insn, t2a5_pop_insn, t2a6_bx_insn): Remove. | |
694 | ||
08f74004 AM |
695 | 2002-11-05 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
696 | Alan Modra <amodra@bigpond.net.au> | |
697 | ||
698 | * config.bfd (sh-*-linux*): Use bfd_elf*_sh64*lin_vec as sh64 | |
699 | vectors in target_selvecs. | |
700 | (shle-*-netbsdelf*): Use bfd_elf*_sh64*nbsd_vec as sh64 vectors | |
701 | in target_selvecs. | |
702 | (sh-*-netbsdelf*): Likewise. | |
703 | * configure.in (assocvecs): New variable. Handle assocvecs like | |
704 | selvecs. | |
705 | * configure: Regenerate. | |
706 | * format.c (bfd_check_format_matches): Store bfd_target pointers | |
707 | in matching_vector instead of target names. Select first target | |
708 | from bfd_associated_vector that matches a list of ambiguous targets. | |
709 | * targets.c (_bfd_associated_vector): New array. | |
710 | (bfd_associated_vector): New variable. | |
711 | (_bfd_target_vector): Add bfd_elf*_sh64*lin_vec. | |
712 | * libbfd-in.h (bfd_associated_vector): Declare. | |
713 | * libbfd.h: Regenerate. | |
714 | ||
89117aab AM |
715 | 2002-11-05 Elias Athanasopoulos <eathan@otenet.gr> |
716 | ||
717 | * vms-gsd.c (_bfd_vms_write_gsd): Check that symbol->udata.p is | |
718 | non-NULL before dereferencing. | |
719 | ||
5e9aae3e KK |
720 | 2002-11-04 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
721 | ||
722 | * vms.c (vms_object_p): Restore the start address when returning | |
723 | NULL. | |
724 | ||
c97e73dd AM |
725 | 2002-11-04 Alan Modra <amodra@bigpond.net.au> |
726 | Hans-Peter Nilsson <hp@axis.com> | |
727 | ||
728 | * elflink.h (struct elf_final_link_info): Add shndxbuf_size. | |
729 | (elf_bfd_final_link): Don't bother zeroing symtab_hdr fields. | |
730 | Set up a larger symshndxbuf, and write it out. Free it on | |
731 | exit rather than freeing symbuf twice. Correct section index | |
732 | on output section symbol loop. | |
733 | (elf_link_output_sym): Accumulate symbol extension section | |
734 | indices, reallocating symshndxbuf rather than writing it out. | |
735 | (elf_link_flush_output_syms): Don't flush symshndxbuf. | |
736 | * elf.c (assign_section_numbers): Init i_shdrp to all zero. | |
737 | Use bfd_zalloc to clear i_shdrp[0] too. | |
738 | ||
3463048e SC |
739 | 2002-11-03 Stephen Clarke <stephen.clarke@earthling.net> |
740 | ||
741 | * elf32-sh64-com.c (sh64_address_in_cranges): Use | |
742 | _raw_size of cranges section if _cooked_size not yet set. | |
743 | ||
63a23799 HPN |
744 | 2002-11-03 Hans-Peter Nilsson <hp@axis.com> |
745 | ||
746 | * elf32-v850.c (v850_elf_relax_delete_bytes): Correct parameters | |
747 | for bfd_elf32_swap_symbol_out. | |
748 | ||
e68cc12e DB |
749 | 2002-10-31 David O'Brien <obrien@FreeBSD.org> |
750 | ||
751 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't mix | |
752 | signed and unsigned in comparison. | |
753 | ||
db4b6d01 DJ |
754 | 2002-10-30 Daniel Jacobowitz <drow@mvista.com> |
755 | ||
756 | * coffcode.h: Remove extraneous '\'. | |
757 | ||
840f0243 L |
758 | 2002-10-28 H.J. Lu <hjl@gnu.org> |
759 | ||
760 | * Makefile.am (targets.lo): Depend on Makefile instead of | |
761 | config.status. | |
762 | (archures.lo): Likewise. | |
763 | * Makefile.in: Regenerated. | |
764 | ||
05a7e2db JT |
765 | 2002-10-25 Jason Thorpe <thorpej@wasabisystems.com> |
766 | ||
767 | * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Add | |
768 | bfd_elf64_bigmips_vec and bfd_elf64_littlemips_vec to | |
769 | targ_selvecs. | |
770 | ||
a0087177 JW |
771 | 2002-10-25 Jim Wilson <wilson@redhat.com> |
772 | ||
773 | * elf64-sh64.c (sh_elf64_relocate_section): Call | |
774 | _bfd_elf_rela_local_sym. Handle relocs against STT_SECTION symbol | |
775 | of SHF_MERGE section. | |
776 | ||
8718ac9c HPN |
777 | 2002-10-25 Hans-Peter Nilsson <hp@axis.com> |
778 | ||
779 | * simple.c: Correct placement of ATTRIBUTE_UNUSED. | |
780 | ||
d45913a0 DA |
781 | 2002-10-24 John David Anglin <dave@hiauly1.hia.nrc.ca> |
782 | ||
783 | * aoutx.h (NAME(aout,swap_ext_reloc_in)): Cast bytes->r_index to | |
784 | unsigned int. Cast RELOC_BASE10, RELOC_BASE13 and RELOC_BASE22 to | |
785 | unsigned int. | |
786 | (NAME(aout,final_link)): Cast enum used in assignment. | |
787 | (aout_link_write_symbols): Cast enums in comparisons, int values to | |
788 | boolean, enums in assignments to int. | |
789 | (aout_link_input_section_std): Cast rel->r_index to unsigned int. | |
790 | (aout_link_input_section_ext): Likewise. Cast enums used in comparisons | |
791 | with unsigned ints. | |
792 | (aout_link_reloc_link_order): Cast enum to int in assignment. | |
793 | * archive.c (_bfd_generic_read_ar_hdr_mag): Cast result of memchr | |
794 | calls to char *. | |
795 | * bfd-in.h (bfd_set_section_vma): Cast enum true to unsigned int in | |
796 | assignment. | |
797 | * bfd-in2.h (bfd_set_section_vma): Likewise. | |
798 | * bfd.c (bfd_record_phdr): Cast enums in assignments. | |
799 | * binary.c (bfd_alloc): Cast enum to long. | |
800 | * coffgen.c (_bfd_coff_is_local_label_name): Cast return to boolean. | |
801 | * dwarf2.c (read_abbrevs): Add casts to enum types. | |
802 | (read_attribute_value): Likewise. | |
803 | (arange_add): Cast result of bfd_zalloc call. | |
804 | (comp_unit_contains_address): Return true and false. | |
805 | (comp_unit_find_nearest_line): Cast return to boolean. | |
806 | * format.c (bfd_check_format_matches, bfd_set_format): Likewise. | |
807 | * gen-aout.c: define macro '_' if not defined. | |
808 | * libbfd.c (bfd_realloc): Cast malloc and realloc to PTR. | |
809 | (bfd_bwrite): Cast bfd_realloc to bfd_byte *. | |
810 | (bfd_write_bigendian_4byte_int): Cast return to boolean. | |
811 | (bfd_seek): Cast bfd_realloc to bfd_byte *. | |
812 | (bfd_generic_is_local_label_name): Cast return to boolean. | |
813 | * libcoff.h (_bfd_coff_adjust_symndx): Remove extraneous '\'. | |
814 | * linker.c (_bfd_link_hash_newfunc): Cast bfd_hash_allocate result to | |
815 | struct bfd_hash_entry *. | |
816 | (_bfd_generic_link_hash_newfunc): likewise. | |
817 | (_bfd_generic_final_link): Cast enum to unsigned int. | |
818 | * merge.c (sec_merge_emit): Cast return to boolean. | |
819 | (merge_strings): Add casts to const unsigned char *. | |
820 | * reloc.c (bfd_get_reloc_code_name): Cast enums in comparison to int. | |
821 | (bfd_generic_get_relocated_section_content): Cast enum to unsigned int. | |
822 | * section.c (bfd_section_hash_newfunc): Cast bfd_hash_allocate result to | |
823 | struct bfd_hash_entry *. | |
824 | (bfd_set_section_content): Add cast to PTR in comparison. | |
825 | * simple.c (simple_dummy_warning, simple_dummy_undefined_symbol, | |
826 | simple_dummy_reloc_overflow, simple_dummy_reloc_dangerous, | |
827 | simple_dummy_unattached_reloc, | |
828 | bfd_simple_get_relocated_section_contents): Add K&R declarations and | |
829 | function definitions. | |
830 | * srec.c (S3Forced): Initialize to false. | |
831 | (srec_get_symtab): Cast return value from bfd_alloc to asymbol *. | |
832 | * stabs.c (_bfd_link_section_stabs): Cast enum to int in comparisons. | |
833 | (_bfd_discard_section_stabs): Likewise. Also cast return to boolean. | |
834 | * syms.c (bfd_is_undefined_symclass): Cast return to boolean. | |
835 | (_bfd_stab_section_find_nearest_line): Cast enum to bfd_byte in | |
836 | comparisons. | |
837 | ||
475c2a7e JJ |
838 | 2002-10-23 Jakub Jelinek <jakub@redhat.com> |
839 | ||
840 | * elf64-alpha.c (elf64_alpha_check_relocs): Only put maybe_dynamic | |
841 | relocs into shared lib non-allocated reloc sections. | |
842 | ||
e82ce529 AM |
843 | 2002-10-23 Nathan Tallent <eraxxon@alumni.rice.edu> |
844 | ||
845 | * dwarf2.c (add_line_info): Ensure that the line_info_table is | |
846 | sorted even when given an out-of-order line sequence. | |
847 | (lookup_address_in_line_info_table): When an exact VMA match is | |
848 | not found, return line information with the closest VMA. | |
849 | ||
f2482cb2 NC |
850 | 2002-10-23 Ross Alexander <ross.alexander@uk.neceur.com> |
851 | ||
852 | * elf64-hppa.c: Force DT_FLAGS to always be set. Required by | |
853 | HPUX 11.00 patch PHSS_26559. | |
854 | ||
c1fd6598 AO |
855 | 2002-10-22 Alexandre Oliva <aoliva@redhat.com> |
856 | ||
857 | * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Don't move | |
858 | the options section into a separate section unless IRIX 6 | |
859 | compatibility is enabled. | |
860 | ||
033fd5f9 AO |
861 | 2002-10-22 Alexandre Oliva <aoliva@redhat.com> |
862 | ||
863 | * elflink.h (struct elf_link_sort_rela): Turn rel and rela | |
864 | into arrays. | |
865 | (elf_link_sort_cmp1, elf_link_sort_cmp2): Adjust. | |
866 | (elf_link_sort_relocs): Likewise. Take int_rels_per_ext_rel | |
867 | into account. | |
868 | * elfxx-mips.c (mips_elf_create_dynamic_relocation): Compose | |
869 | R_MIPS_REL32 with R_MIPS64 if ABI_64_P. | |
870 | ||
ef485c01 AM |
871 | 2002-10-21 Graeme Peterson <gp@qnx.com> |
872 | ||
873 | * targets.c (_bfd_target_vector): Add missing qnx vectors. | |
874 | ||
b50afec9 AM |
875 | 2002-10-21 Alan Modra <amodra@bigpond.net.au> |
876 | ||
877 | * targets.c (bfd_target_list): Don't return the default target twice. | |
878 | ||
5fe39cae AM |
879 | 2002-10-21 Elias Athanasopoulos <eathan@otenet.gr> |
880 | ||
881 | * archive.c (_bfd_archive_bsd_update_armap_timestamp): Replace | |
882 | perror with bfd_perror. | |
883 | ||
5d603aa9 L |
884 | 2002-10-19 H.J. Lu <hjl@gnu.org> |
885 | ||
886 | * elflink.h (elf_link_add_object_symbols): Correctly handle | |
887 | DT_RPATH and DT_RUNPATH. | |
888 | ||
e377ab71 MK |
889 | 2002-10-19 Mark Kettenis <kettenis@gnu.org> |
890 | ||
891 | * elf.c (elfcore_grok_note): Fix recognition on NT_PRXFPREG notes. | |
892 | ||
0d09fec6 DC |
893 | 2002-10-17 Denis Chertykov <denisc@overta.ru> |
894 | ||
895 | * elf32-ip2k.c (ELF_MACHINE_ALT1): Define alternate machine code | |
896 | for ip2k port. | |
897 | ||
acf8aed4 AM |
898 | 2002-10-17 Alan Modra <amodra@bigpond.net.au> |
899 | ||
900 | * elfxx-target.h (USE_REL): Don't define as 1. | |
901 | * elf32-arm.h (USE_REL): Provide a default define of 0. | |
902 | Use #if rather than #ifdef when testing USE_REL. | |
903 | * elf32-m32r.c: Likewise. | |
904 | ||
905 | * elf32-arc.c (USE_REL): Define as 1. | |
906 | * elf32-d10v.c (USE_REL): Likewise. | |
907 | * elf32-m32r.c (USE_REL): Likewise. | |
908 | * elf32-m68hc11.c (USE_REL): Likewise. | |
909 | * elf32-m68hc12.c (USE_REL): Likewise. | |
910 | * elf32-or32.c (USE_REL): Likewise. | |
911 | * elfarm-nabi.c (USE_REL): Likewise. | |
912 | ||
f52d1d64 JJ |
913 | 2002-10-16 Jakub Jelinek <jakub@redhat.com> |
914 | ||
915 | * config.bfd (s390-*-linux*): Add targ64_selvecs. | |
916 | (s390x-*-linux*): Add targ_selvecs. | |
917 | ||
2bc3c89a AM |
918 | 2002-10-16 Alan Modra <amodra@bigpond.net.au> |
919 | ||
920 | * Makefile.am (BFD32_BACKENDS): Remove elfarmqnx-nabi.lo, | |
5fe39cae | 921 | elf32-i386-fbsd.lo, elf32-i386qnx.lo, elf32-ppcqnx.lo, |
2bc3c89a AM |
922 | elf32-sh-lin.lo, elf32-sh64-lin.lo, elf32-sh-nbsd.lo, |
923 | elf32-sh64-nbsd.lo, elf32-shqnx.lo. Add elf32-qnx.lo. | |
924 | (BFD32_BACKENDS_CFILES): Likewise for corresponding C files. | |
925 | (BFD64_BACKENDS): Remove elf64-sh64-lin.lo, elf64-sh64-nbsd.lo. | |
926 | (BFD64_BACKENDS_CFILES): Likewise for corresponding C files. | |
927 | (SOURCE_HFILES): Add elf32-qnx.h. | |
928 | (BUILD_HFILES): Add bfdver.h. | |
929 | Run "make dep-am". | |
930 | * Makefile.in: Regenerate. | |
931 | * configure.in Update bfd vector dependencies. | |
932 | * configure: Regenerate. | |
933 | * elf32-i386-fbsd.c: Delete. Move code to elf32-i386.c. | |
934 | * elf32-i386qnx.c: Likewise. | |
935 | * elf32-ppcqnx.c: Delete. Move code to elf32-ppc.c. | |
936 | * elf32-sh-nbsd.c: Delete. Move code to elf32-sh.c. | |
937 | * elf32-sh-lin.c: Likewise. | |
938 | * elf32-shqnx.c: Likewise. | |
939 | * elf32-sh64-lin.c: Delete. Move code to elf32-sh64.c. | |
940 | * elf32-sh64-nbsd.c: Likewise. | |
941 | * elf64-sh64-lin.c: Delete. Move code to elf64-sh64.c. | |
942 | * elf64-sh64-nbsd.c: Likewise. | |
943 | * elfarmqnx-nabi.c: Delete. Move code to elfarm-nabi.c. | |
944 | * elf32-arm.h (ELF_MAXPAGESIZE): Always define. | |
945 | * elf32-i386.c: Remove ELF_ARCH and ELF32_I386_C_INCLUDED tests. | |
946 | * elf32-ppc.c: Remove ELF32_PPC_C_INCLUDED tests. | |
947 | * elf32-qnx.h (elf_backend_set_nonloadable_filepos): Always define. | |
948 | (elf_backend_is_contained_by_filepos): Likewise. | |
949 | (elf_backend_copy_private_bfd_data_p): Likewise. | |
950 | Globalize and move functions to.. | |
951 | * elf32-qnx.c: ..here. New file. | |
952 | * elf32-sh.c: Remove ELF_ARCH and ELF32_SH_C_INCLUDED tests. Don't | |
953 | emit target vectors when INCLUDE_SHMEDIA. | |
954 | * elf32-sh64.c: Remove ELF_ARCH test. Move TARGET_* etc. defines to | |
955 | end of file. | |
956 | * elf64-sh64.c: Remove ELF_ARCH test. | |
957 | * elfarm-nabi.c: Remove ELFARM_NABI_C_INCLUDED test. | |
958 | * po/BLD-POTFILES.in: Regenerate. | |
959 | * po/SRC-POTFILES.in: Regenerate. | |
960 | ||
90c9df85 AM |
961 | 2002-10-16 Alan Modra <amodra@bigpond.net.au> |
962 | ||
366f2964 AM |
963 | * elflink.h (elf_link_add_object_symbols): Error out on dynamic objects |
964 | loaded with --just-symbols. | |
965 | ||
90c9df85 AM |
966 | * elf32-i386qnx.c (TARGET_LITTLE_NAME): Define. |
967 | * elf32-ppcqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define. | |
968 | * elf32-shqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define. | |
969 | * elfarmqnx-nabi.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define. | |
970 | ||
2238051f RH |
971 | 2002-10-15 Richard Henderson <rth@redhat.com> |
972 | ||
973 | * Makefile.am (BFD64_BACKENDS): Remove elf64-alpha-fbsd. | |
974 | (BFD64_BACKENDS_CFILES): Likewise. | |
975 | * configure.in (bfd_elf64_alpha_freebsd_vec): Use elf64-alpha. | |
976 | * elf64-alpha-fbsd.c: Remove file, move code ... | |
977 | * elf64-alpha.c: ... here. | |
978 | * Makefile.in, configure: Rebuild. | |
979 | ||
64e04ecd RH |
980 | 2002-10-14 Richard Henderson <rth@redhat.com> |
981 | ||
982 | * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: Increment | |
983 | VALUE, not ADDEND. | |
984 | ||
396a6083 SC |
985 | 2002-10-14 Stephen Clarke <stephen.clarke@superh.com> |
986 | ||
987 | * elf32-sh.c (elf_sh_link_hash_entry): Replace | |
988 | datalabel_got_offset with union of datalabel_got | |
989 | offset and refcount. | |
990 | (sh_elf_link_hash_newfunc): Initialize datalabel_got.refcount. | |
991 | (allocate_dynrelocs): Delete unnecessary code for | |
992 | STT_DATALABEL type. Create entry in got for | |
993 | datalabel version of symbol if datalabel_got.refcount > 0. | |
994 | (sh_elf_relocate_section): Use datalabel_got union. | |
995 | (sh_elf_gc_sweep_hook): Pull common code to initialize | |
996 | h and eh out of switch statement. Declare seen_stt_datalabel. | |
997 | Initialize it. Decrement datalabel_got.refcount for | |
998 | got relocs when seen_stt_datalabel is true. | |
999 | Decrement local_got_refcounts entry for datalabel got relocs | |
1000 | of local symbols. | |
1001 | (sh_elf_copy_indirect_symbol): Copy datalabel_got field over. | |
1002 | (sh_elf_check_relocs): Declare seen_stt_datalabel. | |
1003 | Initialize it. When seen_stt_datalabel is true, increment | |
1004 | datalabel_got refcount rather than got.refcount. | |
1005 | (sh_elf_finish_dynamic_symbol): Create relocs to | |
1006 | initialize got entry for datalabel version of symbol. | |
1007 | ||
6a0735ef AM |
1008 | 2002-10-14 Alan Modra <amodra@bigpond.net.au> |
1009 | ||
1010 | * Makefile.am: Run "make dep-am". | |
1011 | (BFD_H_FILES): Remove version.h. | |
1012 | * bfd-in.h (BFD_VERSION, BFD_VERSION_DATE, BFD_VERSION_STRING): Move.. | |
1013 | * version.h: ..to here. | |
1014 | * configure.in (bfd_version_date): Remove. | |
1015 | (AC_OUTPUT): Make bfdver.h from version.h. | |
1016 | * bfd.c: #include "bfdver.h". | |
1017 | * vms-hdr.c: Likewise. | |
1018 | * Makefile.in: Regenerate. | |
1019 | * bfd-in2.h: Regenerate. | |
1020 | * configure: Regenerate. | |
1021 | * po/SRC-POTFILES.in: Regenerate. | |
1022 | ||
686e4055 AM |
1023 | 2002-10-14 Alan Modra <amodra@bigpond.net.au> |
1024 | ||
1025 | * archures.c (bfd_mach_i386_i386, bfd_mach_i386_i8086, | |
1026 | bfd_mach_i386_i386_intel_syntax, bfd_mach_x86_64, | |
1027 | bfd_mach_x86_64_intel_syntax bfd_mach_ppc, bfd_mach_ppc64, | |
1028 | bfd_mach_rs6k, bfd_mach_d10v, bfd_mach_sh, bfd_mach_v850, | |
1029 | bfd_mach_arc_5, bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8, | |
1030 | bfd_mach_m32r, bfd_mach_frv, bfd_mach_frvsimple, | |
1031 | bfd_mach_ia64_elf64, bfd_mach_ia64_elf32, | |
1032 | bfd_mach_ip2022, bfd_mach_ip2022ext, | |
1033 | bfd_mach_s390_31, bfd_mach_s390_64, bfd_mach_xstormy16): Renumber. | |
1034 | * bfd-in2.h: Regenerate. | |
1035 | ||
019dca2b KK |
1036 | 2002-10-14 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
1037 | ||
1038 | * config.bfd (sh*eb-*-linux*, sh*-*-linux*): Add the alternative | |
1039 | endian vector to targ_selvecs. | |
1040 | ||
bce03d3d AO |
1041 | 2002-10-13 Alexandre Oliva <aoliva@redhat.com> |
1042 | ||
1043 | * elfxx-mips.c (mips_elf_calculate_relocation): Take | |
1044 | save_addend argument. Don't apply the 32-bit mask to a | |
1045 | GPREL32 value if it's to be used in another relocation. Don't | |
1046 | use forced-check computation of local_p to decide whether to | |
1047 | add gp0 to GPREL16 value. Don't use only the lowest 16 bits | |
1048 | of the addend of a non-in-place GPREL16 relocation. | |
1049 | (_bfd_mips_elf_relocate_section): Pass use_saved_addend_p to | |
1050 | mips_elf_calculate_relocation(). | |
1051 | ||
9b691193 SC |
1052 | 2002-10-12 Stephane Carrez <stcarrez@nerim.fr> |
1053 | ||
1054 | * elf32-m68hc11.c (m68hc11_elf_relax_section): Don't treat relocs | |
1055 | with symbols in other sections if we relaxed something; the sections | |
1056 | output offsets must be re-computed before. | |
1057 | ||
1f4c5b47 SC |
1058 | 2002-10-12 Stephane Carrez <stcarrez@nerim.fr> |
1059 | ||
1060 | * elf32-m68hc11.c (m68hc11_elf_relax_section): Update symbols | |
1061 | handling to use Elf_Internal_Sym. | |
1062 | (m68hc11_elf_relax_delete_bytes): Likewise. | |
1063 | ||
5dc97655 KK |
1064 | 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
1065 | ||
1066 | * elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject, | |
1067 | sh_elf_object_p, dtpoff_base): New functions. | |
1068 | (sh_elf_howto_table): Add TLS relocs. | |
1069 | (sh_reloc_map): Likewise. | |
1070 | (sh_elf_info_to_howto): Support TLS relocs. | |
1071 | (elf_sh_link_hash_entry): Add tls_type and tls_tpoff32. | |
1072 | (sh_elf_hash_entry, sh_elf_tdata, sh_elf_local_got_tls_type): | |
1073 | New macros. | |
1074 | (sh_elf_obj_tdata): New. | |
1075 | (elf_sh_link_hash_table): Add tls_ldm_got. | |
1076 | (sh_elf_link_hash_table_create): Clear refcount of tls_ldm_got. | |
1077 | (allocate_dynrelocs): Support TLS relocs. | |
1078 | (sh_elf_size_dynamic_sections): Likewise. | |
1079 | (sh_elf_relocate_section): Support TLS relocs. Don't try to find | |
1080 | .rela.got section when found already. Return false after printing | |
1081 | error about unresolvable relocation. | |
1082 | (sh_elf_gc_sweep_hook): Support TLS relocs. | |
1083 | (sh_elf_check_relocs): Likewise. | |
1084 | (sh_elf_finish_dynamic_symbol): Likewise. | |
1085 | (bfd_elf32_mkobject, elf_backend_object_p): Define for TLS case. | |
1086 | * reloc.c: Add SH TLS relocs. | |
1087 | * bfd-in2.h, libbfd.h: Regenerate. | |
1088 | ||
6a0735ef AM |
1089 | 2002-10-11 Daniel Jacobowitz <drow@mvista.com> |
1090 | ||
1091 | * Makefile.in: Regenerated. | |
1092 | ||
af39267e DJ |
1093 | 2002-10-11 Daniel Jacobowitz <drow@mvista.com> |
1094 | ||
1095 | * Makefile.am: Run dep-am. | |
6a0735ef | 1096 | (BFD_H_DEP): Add simple.c and linker.c. |
af39267e DJ |
1097 | (BFD32_LIBS): Add simple.lo. |
1098 | (BFD32_LIBS_CFILES): Add simple.c. | |
1099 | * Makefile.in: Regenerated. | |
1100 | * bfd-in2.h: Regenerated. | |
1101 | * simple.c: New file. | |
1102 | ||
0be617ce AM |
1103 | 2002-10-11 Alan Modra <amodra@bigpond.net.au> |
1104 | ||
14a793b2 AM |
1105 | * coff-arm.c (record_arm_to_thumb_glue): Avoid type-punned pointers. |
1106 | (record_thumb_to_arm_glue): Likewise. | |
1107 | * ecoff.c (ecoff_link_add_externals): Likewise. | |
1108 | * elf32-arm.h (record_arm_to_thumb_glue): Likewise. | |
1109 | (record_thumb_to_arm_glue): Likewise. | |
1110 | * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise. | |
1111 | * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise. | |
1112 | * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise. | |
1113 | * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise. | |
1114 | * elf64-ppc.c (func_desc_adjust): Likewise. | |
1115 | * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise. | |
1116 | (sh64_elf64_create_dynamic_sections): Likewise. | |
1117 | * elflink.c (_bfd_elf_create_got_section): Likewise. | |
1118 | (_bfd_elf_create_dynamic_sections): Likewise. | |
1119 | (_bfd_elf_create_linker_section): Likewise. | |
1120 | * elflink.h (elf_add_default_symbol): Likewise. | |
1121 | (elf_link_create_dynamic_sections): Likewise. | |
1122 | (NAME(bfd_elf,size_dynamic_sections)): Likewise. | |
1123 | * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Likewise. | |
1124 | * elfxx-mips.c (mips_elf_create_got_section): Likewise. | |
1125 | (_bfd_mips_elf_add_symbol_hook): Likewise. | |
1126 | (_bfd_mips_elf_create_dynamic_sections): Likewise. | |
1127 | * linker.c (generic_link_add_symbol_list): Likewise. | |
1128 | * xcofflink.c (xcoff_link_add_symbols): Likewise. | |
1129 | ||
1130 | * elfxx-ia64.c (oor_brl, oor_ip): Conditionally define. | |
1131 | ||
0be617ce | 1132 | * elf64-ppc.c (edit_opd): Only zero opd syms when function is |
7f6a7663 | 1133 | completely removed. Correct local sym adjustment. |
0be617ce | 1134 | |
0a4ef3f4 SC |
1135 | 2002-10-10 Stephen Clarke <stephen.clarke@superh.com> |
1136 | ||
1137 | * elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le): | |
1138 | Correct mistake in calculation of address of .got. | |
1139 | * elf64-sh64.c (elf_sh64_pic_plt_entry_be, | |
1140 | elf_sh64_pic_plt_entry_le): Likewise. | |
1141 | ||
efacd36e SC |
1142 | 2002-10-09 Richard Shann <richard.shann@superh.com> |
1143 | Stephen Clarke <stephen.clarke@superh.com> | |
1144 | ||
1145 | * Makefile.am: Add entries for elf32-sh64-lin.c and | |
1146 | elf64-sh64-lin.c. Regenerate. | |
1147 | * Makefile.in: Regenerate. | |
1148 | * config.bfd: Change sh64eb-*-linux* and sh64-*-linux* | |
1149 | to use sh64 vectors rather than sh vectors. | |
1150 | * configure.in: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec, | |
1151 | bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec. | |
1152 | * configure: Regenerate. | |
1153 | * elf32-sh64-lin.c: New file. | |
1154 | * elf64-sh64-lin.c: New file. | |
1155 | * targets.c: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec, | |
5fe39cae AM |
1156 | bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec. |
1157 | ||
299bf759 L |
1158 | 2002-10-08 H.J. Lu <hjl@gnu.org> |
1159 | ||
1160 | * elf32-i386.c (elf_i386_relocate_section): Re-arrange the | |
1161 | IE->LE transition for R_386_TLS_IE. | |
1162 | ||
51020317 AM |
1163 | 2002-10-08 Alan Modra <amodra@bigpond.net.au> |
1164 | ||
1165 | * elf64-ppc.c (edit_opd): Correct test for discarded sections. | |
1166 | ||
a8fcf378 NC |
1167 | 2002-10-07 Mark Elbrecht <snowball3@softhome.net> |
1168 | ||
51020317 AM |
1169 | * cofflink.c (mark_relocs): Don't mark relocations in excluded |
1170 | sections. | |
a8fcf378 | 1171 | |
a16d5acb AM |
1172 | 2002-10-07 Alan Modra <amodra@bigpond.net.au> |
1173 | ||
a6b511bd AM |
1174 | * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent |
1175 | code. | |
1176 | ||
a16d5acb AM |
1177 | * elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx. |
1178 | ||
7c4a37eb AM |
1179 | 2002-10-06 Alan Modra <amodra@bigpond.net.au> |
1180 | ||
1181 | * opncls.c: Formatting. | |
1182 | (_bfd_new_bfd): Use a smaller section hash table. | |
1183 | ||
7c4ca42d AO |
1184 | 2002-10-05 Alexandre Oliva <aoliva@redhat.com> |
1185 | ||
1186 | * elfxx-mips.c (mips_elf_create_dynamic_relocation): Set the type | |
1187 | of the other two relocations packed with a REL32 to NONE. | |
1188 | ||
4989d792 SC |
1189 | 2002-10-02 Stephen Clarke <stephen.clarke@superh.com> |
1190 | ||
1191 | * elf32-sh.c (elf_sh_link_hash_entry): Add gotplt_refcount. | |
1192 | (sh_elf_link_hash_newfunc): Initialize it. | |
1193 | (allocate_dynrelocs): Transfer gotplt refs from plt.refcount | |
1194 | to got.refcount for symbols that are forced local or when | |
1195 | we have direct got refs. | |
1196 | (sh_elf_gc_sweep_hook): Adjust gotplt_refcount. Use it | |
1197 | to correctly adjust got.refcount and plt.refcount. | |
1198 | (sh_elf_copy_indirect_symbol): Copy gotplt_refcount across. | |
1199 | (sh_elf_check_relocs): Increment gotplt_refcount. | |
51020317 | 1200 | |
7c445aa3 JJ |
1201 | 2002-10-01 Jakub Jelinek <jakub@redhat.com> |
1202 | ||
1203 | * elf32-i386.c (elf_i386_relocate_section): Fix | |
1204 | movl foo@indntpoff, %eax IE->LE transition. | |
1205 | ||
abcf1d52 JJ |
1206 | 2002-10-01 Jakub Jelinek <jakub@redhat.com> |
1207 | ||
1208 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Change TLSGD | |
1209 | sequence and its transitions. | |
1210 | ||
a45bb67d JJ |
1211 | 2002-10-01 Jakub Jelinek <jakub@redhat.com> |
1212 | ||
1213 | * elf32-i386.c (elf_i386_relocate_section): Resolve R_386_TLS_LDO_32 | |
1214 | to st_value + addend in non-code sections. | |
1215 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Resolve | |
1216 | R_X86_64_DTPOFF32 to st_value + addend in non-code sections. | |
1217 | ||
00707a0e | 1218 | 2002-09-30 Gavin Romig-Koch <gavin@redhat.com> |
51020317 AM |
1219 | Ken Raeburn <raeburn@cygnus.com> |
1220 | Aldy Hernandez <aldyh@redhat.com> | |
1221 | Eric Christopher <echristo@redhat.com> | |
1222 | Richard Sandiford <rsandifo@redhat.com> | |
00707a0e RS |
1223 | |
1224 | * archures.c (bfd_mach_mips4120, bfd_mach_mips5400): New. | |
1225 | (bfd_mach_mips5500): New. | |
1226 | * cpu-mips.c (I_mips4120, I_mips5400, I_mips5500): New. | |
1227 | (arch_info_struct): Add corresponding entries here. | |
1228 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_4120, | |
1229 | E_MIPS_MACH_5400 and E_MIPS_MACH_5500. | |
1230 | (_bfd_mips_elf_final_write_processing): Handle bfd_mach_mips4120, | |
1231 | bfd_mach_mips5400 and bfd_mach_mips5500. | |
1232 | (_bfd_mips_elf_mach_extends_p): New function. | |
1233 | (_bfd_mips_elf_merge_private_bfd_data): Use it to help merge | |
1234 | the EF_MIPS_MACH flags. | |
1235 | * bfd-in2.h: Regenerate. | |
1236 | ||
624f0b25 JT |
1237 | 2002-09-28 Jason Thorpe <thorpej@wasabisystems.com> |
1238 | ||
1239 | * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip | |
1240 | .got sections. | |
1241 | ||
b89fe0ee AM |
1242 | 2002-09-28 Alan Modra <amodra@bigpond.net.au> |
1243 | ||
1244 | * elf.c (map_sections_to_segments): Correct test for start of | |
1245 | writable section in the same page as end of read-only section. | |
1246 | ||
b29635ba JT |
1247 | 2002-09-27 Matt Thomas <matt@3am-software.com> |
1248 | ||
1249 | * elf32-vax.c (elf_vax_check_relocs): Remove unused | |
1250 | local_got_refcounts usage. Remove allocation of got slot. | |
1251 | (elf_vax_gc_sweep_hook): Remove unused local_got_refcounts usage. | |
1252 | Remove de-allocation of got slot. | |
1253 | (elf_vax_size_dynamic_section): Fix some indentation. Add hash | |
1254 | traversal for elf_vax_instantiate_got_entries. Allow empty .got | |
1255 | sections to be GC'ed. | |
1256 | (elf_vax_instantiate_got_entries): New function. | |
1257 | (elf_vax_relocate_section): Simplify R_VAX_GOT32 handling. Remove | |
1258 | tests that are now handled by elf_vax_instantiate_got_entries. | |
1259 | Assert GOT entry falls within .got section size. Remove redundant | |
1260 | comparisions. Fix comments. | |
1261 | ||
bffbf940 JJ |
1262 | 2002-09-27 Jakub Jelinek <jakub@redhat.com> |
1263 | ||
1264 | * reloc.c: Add x86-64 TLS relocs. | |
1265 | * bfd-in2.h, libbfd.h: Rebuilt. | |
1266 | * elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit | |
1267 | relocs. Add TLS relocs. | |
1268 | (x86_64_reloc_map): Add TLS relocs. | |
1269 | (elf64_x86_64_info_to_howto): Adjust for added TLS relocs. | |
1270 | (struct elf64_x86_64_link_hash_entry): Add tls_type field. | |
1271 | (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define. | |
1272 | (elf64_x86_64_hash_entry): Define. | |
1273 | (struct elf64_x86_64_obj_tdata): New. | |
1274 | (elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define. | |
1275 | (struct elf64_x86_64_link_hash_table): Add tls_ld_got. | |
1276 | (link_hash_newfunc): Initialize tls_type. | |
1277 | (elf64_x86_64_link_hash_table_create): Initialize tls_ld_got. | |
1278 | (elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary. | |
1279 | (elf64_x86_64_mkobject): New. | |
1280 | (elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata. | |
1281 | (elf64_x86_64_tls_transition): New. | |
1282 | (elf64_x86_64_check_relocs): Add r_type variable and use it. | |
1283 | Handle TLS relocs. | |
1284 | (elf64_x86_64_gc_sweep_hook): Handle TLS relocs. | |
1285 | (allocate_dynrelocs): Allocate GOT space for TLS relocs. | |
1286 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
1287 | (dtpoff_base, tpoff): New. | |
1288 | (elf64_x86_64_relocate_section): Handle TLS relocs. | |
1289 | (elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT | |
1290 | entries. | |
1291 | (bfd_elf64_mkobject): Define. | |
1292 | ||
1293 | * elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set | |
1294 | DF_STATIC_TLS if shared. | |
1295 | ||
14366460 TS |
1296 | 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
1297 | ||
1298 | * elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneeded | |
1299 | empty relocation sections. | |
1300 | ||
9f951329 AM |
1301 | 2002-09-26 Alan Modra <amodra@bigpond.net.au> |
1302 | ||
1303 | * elf64-ppc.c (ppc_build_one_stub): Don't build glink stubs here. | |
1304 | (ppc64_elf_build_stubs): Build them here instead. | |
1305 | ||
6b3ac709 JJ |
1306 | 2002-09-24 Jakub Jelinek <jakub@redhat.com> |
1307 | ||
1308 | * elf32-sparc.c (elf32_sparc_relocate_section): Put R_SPARC_RELATIVE | |
1309 | addend into r_addend, not *r_offset. | |
1310 | (elf32_sparc_finish_dynamic_symbol): Likewise. | |
1311 | * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Clear xword at | |
1312 | R_SPARC_RELATIVE's r_offset. | |
1313 | ||
e2f6d277 NC |
1314 | 2002-09-23 Nathan Tallent <eraxxon@alumni.rice.edu> |
1315 | ||
1316 | * dwarf2.c (decode_line_info): Update to correctly decode | |
1317 | the (non-standard DWARF2) out-of-order address sequences | |
1318 | generated by the Intel C++ 6.0 compiler for ia64-Linux. | |
1319 | ||
f3961b2b DD |
1320 | 2002-09-23 Mark Elbrecht <snowball3@softhome.net> |
1321 | ||
1322 | * config.bfd: For DJGPP targets, match with any cpu and any machine. | |
1323 | ||
ad34bc37 AM |
1324 | 2002-09-23 Alan Modra <amodra@bigpond.net.au> |
1325 | ||
1326 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Zero relocs | |
1327 | for discarded FDEs. Remove redundant assignment. | |
1328 | * elflink.h (elf_bfd_discard_info): Save edited relocs. | |
1329 | ||
82988bff L |
1330 | 2002-09-22 H.J. Lu <hjl@gnu.org> |
1331 | ||
1332 | * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Don't merge | |
1333 | the relocation count between different .reloc sections. | |
1334 | ||
5ad8645c AM |
1335 | 2002-09-21 Alan Modra <amodra@bigpond.net.au> |
1336 | ||
5f819128 AM |
1337 | * elf32-ppc.c (ppc_elf_relocate_section): Allow ".sbss.*" and |
1338 | ".sdata.*" for R_PPC_SDAREL16, ".sbss2*" and ".sdata2*" for | |
1339 | R_PPC_EMB_SDA2REL. Similarly for R_PPC_EMB_SDA21 and | |
1340 | R_PPC_EMB_RELSDA. | |
1341 | ||
5ad8645c AM |
1342 | * elfcode.h (elf_slurp_reloc_table_from_section): Make "symcount" |
1343 | unsigned. Move "symcount" assignment out of loop. | |
1344 | * Makefile.am: Run "make dep-am". | |
1345 | * Makefile.in: Regenerate. | |
1346 | * configure: Regenerate. | |
1347 | * po/SRC-POTFILES.in: Regnerate. | |
1348 | ||
75936555 NC |
1349 | 2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu> |
1350 | ||
1351 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): If address length is | |
1352 | zero, set it to 8 for (non-standard) 64-bit DWARF2 formats | |
1353 | (e.g. IRIX64). | |
1354 | ||
2243deae L |
1355 | 2002-09-19 Jakub Jelinek <jakub@redhat.com> |
1356 | ||
1357 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Clear .got word | |
1358 | even if generating R_PPC_RELATIVE reloc. | |
1359 | (ppc_elf_relocate_section): Make sure relocation is performed | |
1360 | if skip == -2. Clear memory at r_offset when creating dynamic | |
1361 | relocation. | |
1362 | ||
37e55690 JJ |
1363 | 2002-09-19 Jakub Jelinek <jakub@redhat.com> |
1364 | ||
1365 | * reloc.c (BFD_RELOC_386_TLS_TPOFF, BFD_RELOC_386_TLS_IE, | |
1366 | BFD_RELOC_386_TLS_GOTIE): Add. | |
1367 | * bfd-in2.h, libbfd.h: Rebuilt. | |
1368 | * elf32-i386.c (elf_howto_table): Add R_386_TLS_TPOFF, R_386_TLS_IE | |
1369 | and R_386_TLS_GOTIE. | |
1370 | (elf_i386_reloc_type_lookup): Handle it. | |
1371 | (struct elf_i386_link_hash_entry): Change tls_type type to unsigned | |
1372 | char instead of enum, change GOT_* into defines. | |
1373 | (GOT_TLS_IE_POS, GOT_TLS_IE_NEG, GOT_TLS_IE_BOTH): Define. | |
1374 | (elf_i386_tls_transition): Handle R_386_TLS_IE and R_386_TLS_GOTIE. | |
1375 | (elf_i386_check_relocs): Likewise. Avoid crash if local symbol is | |
1376 | accessed both as normal and TLS symbol. Move R_386_TLS_LDM and | |
1377 | R_386_PLT32 cases so that R_386_TLS_IE can fall through. | |
1378 | Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs. | |
1379 | (elf_i386_gc_sweep_hook): Handle R_386_TLS_IE and R_386_TLS_GOTIE. | |
1380 | Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs. | |
1381 | (allocate_dynrelocs): Allocate 2 .got and 2 .rel.got entries if | |
1382 | tls_type is GOT_TLS_IE_BOTH. | |
1383 | (elf_i386_size_dynamic_sections): Likewise. | |
1384 | (elf_i386_relocate_section): Handle R_386_TLS_IE and R_386_TLS_GOTIE. | |
1385 | Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs. | |
1386 | (elf_i386_finish_dynamic_symbol): Use tls_type & GOT_TLS_IE to catch | |
1387 | all 4 GOT_TLS_* TLS types. | |
1388 | ||
8e67855b NC |
1389 | 2002-09-19 Nick Clifton <nickc@redhat.com> |
1390 | ||
1391 | * elflink.h (elf_fix_symbol_flags): When examining weak symbols, | |
1392 | follow indirect links. | |
1393 | ||
1c59ba3f NC |
1394 | 2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu> |
1395 | ||
1396 | * ecoffswap.h (ecoff_swap_pdr_in) <isym, iline>: Update to | |
1397 | correctly sign-extend 32-bit ECOFF null values (0xffffffff, -1) | |
1398 | on 64 bit machines. | |
1399 | (ecoff_swap_sym_in) <iss>: Likewise. | |
0e327d91 NC |
1400 | * ecoff.c (_bfd_ecoff_slurp_symbolic_info): Fix error reading |
1401 | ECOFF information: 'ioptMax' refers to the actual *size* | |
1402 | of the optimization symtab, not the number of entries. | |
1c59ba3f | 1403 | |
9d7404b7 NC |
1404 | 2002-09-19 Daniel Jacobowitz <drow@mvista.com> |
1405 | ||
1406 | * elf32-arm.h (elf32_arm_adjust_dynamic_symbol): Update | |
1407 | ELF_LINK_HASH_NEEDS_PLT logic. | |
1408 | ||
05a487dc DJ |
1409 | 2002-09-18 Daniel Jacobowitz <drow@mvista.com> |
1410 | ||
1411 | * elfcode.h (elf_slurp_reloc_table_from_section): Check | |
1412 | correct relocation count. | |
1413 | ||
1f70368c DJ |
1414 | 2002-09-17 Daniel Jacobowitz <drow@mvista.com> |
1415 | ||
1416 | * bfd-in.h (bfd_get_dynamic_symcount): Define. | |
1417 | * bfd.c (struct _bfd): Add dynsymcount. | |
1418 | * bfd-in2.h: Regenerated. | |
1419 | * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Set | |
1420 | abfd->dynsymcount. | |
1421 | * elfcode.h (elf_slurp_reloc_table_from_section): Check | |
1422 | for overflow. | |
1423 | ||
51020317 | 1424 | 2002-09-17 Stan Cox <scox@redhat.com> |
a902ee94 SC |
1425 | |
1426 | * elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3. | |
1427 | (mips_elf64_final_gp): Don't make up gp value. | |
1428 | * elfn32-mips.c (mips_elf_final_gp): Likewise. | |
1429 | * elfxx-mips.c (_bfd_mips_elf_final_link): Always create | |
1430 | .MIPS.options/.options section. | |
1431 | ||
290062cc DB |
1432 | 2002-09-17 David O'Brien <obrien@FreeBSD.org> |
1433 | ||
1434 | * elf32-i386-fbsd.c: Always label using the EI_OSABI method. | |
1435 | It is benign for FreeBSD < 4.1. Minor reformatting. | |
1436 | * elf64-alpha-fbsd.c: Likewise. | |
1437 | ||
c5c1f40c JJ |
1438 | 2002-09-17 Jakub Jelinek <jakub@redhat.com> |
1439 | ||
ca1eb0ba JJ |
1440 | * elf32-i386.c (elf_i386_relocate_section) [R_386_TLS_TPOFF32]: Negate |
1441 | addend. | |
c5c1f40c | 1442 | |
562ace6b AM |
1443 | 2002-09-17 Alan Modra <amodra@bigpond.net.au> |
1444 | ||
1445 | * elf64-alpha.c (alpha_elf_size_info): Make static. | |
1446 | ||
5af6ead6 AM |
1447 | 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com> |
1448 | ||
1449 | * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED. | |
1450 | * cpu-tic4x.c: Ditto. | |
1451 | ||
cb9512fc TS |
1452 | 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
1453 | ||
1454 | * elf64-mips.c (define elf_backend_ignore_discarded_relocs): Remove | |
1455 | duplicate define. | |
1456 | ||
4ada7262 DB |
1457 | 2002-09-16 Bruno Haible <bruno@clisp.org> |
1458 | ||
1459 | * elf32-i386.c: Don't defined ELF_ARCH etc. if this file is included | |
1460 | by a target variant implementation. | |
1461 | * elf64-alpha.c: Likewise. | |
1462 | * elf32-i386-fbsd.c: New file. | |
1463 | * elf64-alpha-fbsd.c: New file. | |
1464 | * targets.c: Support bfd_elf32_i386_freebsd_vec and | |
1465 | bfd_elf64_alpha_freebsd_vec. | |
1466 | * configure.in: Accept the vectors bfd_elf32_i386_freebsd_vec, | |
1467 | bfd_elf64_alpha_freebsd_vec. | |
1468 | * Makefile.am (BFD32_BACKENDS): Add elf32-i386-fbsd.lo. | |
1469 | (BFD32_BACKENDS_CFILES): Add elf32-i386-fbsd.c. | |
1470 | (BFD64_BACKENDS): Add elf64-alpha-fbsd.lo. | |
1471 | (BFD64_BACKENDS_CFILES): Add elf64-alpha-fbsd.c. | |
1472 | (elf32-i386-fbsd.lo, elf64-alpha-fbsd.lo): Add dependencies. | |
1473 | * config.bfd: For FreeBSD targets, set targ_defvec to a FreeBSD | |
1474 | specific targets. Define OLD_FREEBSD_ABI_LABEL if appropriate. | |
1475 | ||
6a30718d JJ |
1476 | 2002-09-12 Jakub Jelinek <jakub@redhat.com> |
1477 | ||
1478 | * elf32-i386.c (dtpoff_base, tpoff): Don't crash if tls_segment is | |
1479 | NULL. | |
1480 | (elf_i386_relocate_section): Return false after printing error about | |
1481 | unresolvable relocation. | |
1482 | ||
6cf9e9fe NC |
1483 | 2002-09-12 Nick Clifton <nickc@redhat.com> |
1484 | ||
1485 | * elf32-arm.h (elf32_arm_final_link_relocate): Fix handling of | |
1486 | R_ARM_THM_PC11. | |
1487 | ||
10f469bf DJ |
1488 | 2002-09-11 Jeffrey Law <law@redhat.com> |
1489 | ||
1490 | * elf32-h8300.c (elf32_h8_relax_section): Fix typo. | |
1491 | ||
dc43ada5 NC |
1492 | 2002-09-11 Andrew Haley <aph@cambridge.redhat.com> |
1493 | ||
1494 | * elf.c (_bfd_elf_find_nearest_line): Check functionname_ptr and | |
1495 | line_ptr before deciding we've found a symbol. | |
1496 | ||
e09f4395 NC |
1497 | 2002-09-11 Nick Clifton <nickc@redhat.com> |
1498 | ||
1499 | * po/da.po: New Danish translation file. | |
1500 | * configure.in (LINGUAS): Add 'da'. | |
1501 | * configure: Regenerate. | |
1502 | ||
b3018b5f NC |
1503 | 2002-09-10 Michael Snyder <msnyder@redhat.com> |
1504 | ||
1505 | * irix-core.c (do_sections, do_sections64): New functions. | |
51020317 | 1506 | (irix_core_core_file_p): Call new functions do_sections, |
b3018b5f NC |
1507 | do_sections64, depending on corefile (32-bit or 64-bit). |
1508 | ||
2f21f25e RH |
1509 | 2002-09-09 Richard Henderson <rth@redhat.com> |
1510 | ||
1511 | * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21M | |
1512 | and PCREL21F like PCREL21B. | |
1513 | ||
28b94e7c KB |
1514 | 2002-09-04 Kevin Buettner <kevinb@redhat.com> |
1515 | ||
51020317 AM |
1516 | * config.bfd (mips*-*-irix6*): Add new ABI vectors. Make n32 default |
1517 | vector. | |
28b94e7c | 1518 | |
5cec6941 NC |
1519 | 2002-09-02 Nick Clifton <nickc@redhat.com> |
1520 | ||
1521 | * elf32-v850.c (v850_elf_final_link_relocate): Use helpful | |
1522 | names instead of cryptically overloaded bfd_reloc error | |
1523 | codes. | |
1524 | (v850_elf_relocate_section): Likewise. | |
1525 | (v850_elf_relax_section): Replace caching of external symbols | |
1526 | with caching of internal symbols obtained from calling | |
1527 | bfd_elf_get_elf_syms(). | |
51020317 | 1528 | Fixup problems with freeing cached allocated memory blocks. |
5cec6941 | 1529 | |
3b77b1d5 AM |
1530 | 2002-09-02 Alan Modra <amodra@bigpond.net.au> |
1531 | ||
638524b5 AM |
1532 | * cpu-pj.c (scan_mach, compatible, arch_info_struct): Remove. |
1533 | (bfd_pj_arch): Use bfd_default_scan. | |
1534 | * cpu-v850.c (scan): Remove. | |
1535 | (N): Use bfd_default_scan. | |
1536 | * cpu-z8k.c (scan_mach): Remove. | |
1537 | (arch_info_struct, bfd_z8k_arch): Reorganize so that the default is | |
1538 | first. Use bfd_default_scan. | |
1539 | ||
250d94fd AM |
1540 | * ecoff.c (_bfd_ecoff_set_arch_mach_hook): Don't use hard-coded |
1541 | bfd_mach constants. | |
1542 | (ecoff_get_magic): Likewise. | |
1543 | * elf32-v850.c (v850_elf_object_p): Likewise. | |
1544 | (v850_elf_final_write_processing): Likewise. | |
1545 | * mipsbsd.c (MY(set_arch_mach)): Likewise. | |
1546 | (MY(write_object_contents)): Likewise. | |
1547 | * coff64-rs6000.c (xcoff64_write_object_contents): Likewise. | |
1548 | * coffcode.h (coff_write_object_contents): Likewise. | |
1549 | (coff_set_arch_mach_hook): Add comment describing machine == 0. | |
1550 | Remove unnecessary "machine" assignments. | |
1551 | (coff_write_relocs): Test for the absolute section sym by testing | |
1552 | section and flags. | |
1553 | ||
3b77b1d5 AM |
1554 | * aoutx.h (NAME(aout,machine_type)): Recognize bfd_mach_i386_i386 |
1555 | and bfd_mach_i386_i386_intel_syntax. | |
250d94fd | 1556 | * pdp11.c (NAME(aout,machine_type)): Likewise. |
3b77b1d5 | 1557 | |
e5b45b83 DA |
1558 | 2002-08-30 John David Anglin <dave@hiauly1.hia.nrc.ca> |
1559 | ||
1560 | * bfd-in.h (align_power): Cast constants to bfd_vma type. | |
1561 | * bfd-in2.h (align_power): Likewise. | |
1562 | ||
37f45cf8 AM |
1563 | 2002-08-30 Alan Modra <amodra@bigpond.net.au> |
1564 | ||
1565 | * Makefile.am: Run "make dep-am". | |
1566 | * Makefile.in: Regenerate. | |
1567 | ||
1568 | * cpu-avr.c (compatible): Don't use hard-coded mach constants. | |
1569 | * cpu-powerpc.c (powerpc_compatible): Likewise. | |
1570 | * cpu-rs6000.c (rs6000_compatible): Likewise. | |
1571 | ||
86aba9db NC |
1572 | 2002-08-28 Catherine Moore <clm@redhat.com> |
1573 | ||
1574 | * elf32-v850.c (v850_elf_reloc_map): Add new relocs. | |
1575 | (v850-elf-reloc): Don't resolve pc relative relocs. | |
1576 | (v850_elf_ignore_reloc): New routine. | |
1577 | (v850_elf_final_link_relocate): Handle new relocs. | |
1578 | (v850_elf_relax_delete_bytes ): New routine. | |
1579 | (v850_elf_relax_section): New routine. | |
1580 | (bfd_elf32_bfd_relax_section): Define. | |
1581 | (HOWTO): New entries for new relocs. | |
1582 | * reloc.c (BFD_RELOC_V850_LONGCALL): New reloc. | |
1583 | (BFD_RELOC_V850_LONGJUMP): New reloc. | |
1584 | (BFD_RELOC_V850_ALIGN): New reloc. | |
1585 | * archures.c: Remove redundant v850ea architecture. | |
1586 | * cpu-v850.c: Remove redundant v850ea support. | |
1587 | * libbfd.h: Regenerate. | |
1588 | * bfd-in2.h: Regenerated. | |
1589 | ||
026df7c5 NC |
1590 | 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com> |
1591 | ||
1592 | * config.bfd: Add tic4x-*-*coff* and c4x-*-*coff* target. | |
1593 | * configure.in: Add tic4x_coff vector files. | |
1594 | * configure: Regenerate. | |
1595 | * Makefile.am: Add tic4x target. | |
1596 | * Makefile.in: Regenerate. | |
1597 | ||
1598 | 2002-08-27 Michael Hayes <m.hayes@elec.canterbury.ac.nz> | |
1599 | ||
1600 | * archures.c: Add the BFD arch type tic4x. | |
1601 | * bfd-in.h: Add BFD_IN_MEMORY flag. | |
1602 | * coff-tic4x.c: New file. | |
1603 | * coffswap.h (coff_swap_sym_out): Add preadjuster. | |
1604 | * cpu-tic4x.c: New file. | |
1605 | * targets.c: Added tic4x- in list of xvecs. | |
1606 | * ticoff.h: New file. | |
1607 | * bfd-in2.h: Regenerate. | |
1608 | ||
88f7bcd5 NC |
1609 | 2002-08-27 Adam Nemet <anemet@lnxw.com> |
1610 | ||
1611 | * elf32-arm.h (elf32_arm_finish_dynamic_sections): Set the last | |
1612 | bit of DT_INIT and DT_FINI for Thumb functions. | |
1613 | ||
c8e48751 AM |
1614 | 2002-08-26 Alan Modra <amodra@bigpond.net.au> |
1615 | ||
1616 | * coffcode.h (coff_set_arch_mach_hook): Handle W65MAGIC. | |
1617 | ||
2846975a AM |
1618 | 2002-08-26 Alan Modra <amodra@bigpond.net.au> |
1619 | ||
1620 | * aoutx.h (NAME(aout,reloc_type_lookup)): Handle BFD_RELOC_8. | |
1621 | ||
067653c5 AM |
1622 | 2002-08-24 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
1623 | ||
1624 | * elf32-sh.c (sh_elf_copy_indirect_symbol): New. | |
1625 | (create_got_section, allocate_dynrelocs, readonly_dynrelocs): | |
1626 | Likewise. | |
1627 | (struct elf_sh_pcrel_relocs_copied): Removed. | |
1628 | (struct elf_sh_dyn_relocs): New. | |
1629 | (struct elf_sh_link_hash_entry): Replace pcrel_relocs_copied | |
1630 | field with dyn_relocs. | |
1631 | (struct elf_sh_link_hash_table): Add short-cuts to get dynamic | |
1632 | sections and sym_sec. | |
1633 | (sh_elf_link_hash_newfunc): Clear dyn_relocs. | |
1634 | (sh_elf_link_hash_table_create): Clear shorts-cuts and sym_sec. | |
1635 | (sh_elf_create_dynamic_sections): Use create_got_section instead | |
1636 | of _bfd_elf_create_got_section. | |
1637 | (sh_elf_check_relocs): Likewise. | |
1638 | (sh_elf_create_dynamic_sections): Use short-cuts to the dynamic | |
1639 | sections. | |
1640 | (sh_elf_adjust_dynamic_symbol, sh_elf_size_dynamic_sections, | |
1641 | sh_elf_relocate_section, sh_elf_check_relocs, | |
1642 | sh_elf_finish_dynamic_symbol, sh_elf_finish_dynamic_sections): | |
1643 | Likewise. | |
1644 | (sh_elf_adjust_dynamic_symbol): Handle nocopyreloc. Keep the | |
1645 | dynamic relocations and avoiding the copy relocation when we | |
1646 | didn't find any dynamic relocations in the section which has | |
1647 | contents or is read-only. | |
1648 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. | |
1649 | (sh_elf_size_dynamic_sections): Don't reset the size of | |
1650 | .rela.got section even if dynamic_sections_created flag is off. | |
1651 | Don't use sh_elf_discard_copies. Scan all input bfd and use | |
1652 | allocate_dynrelocs. Call readonly_dynrelocs to determine | |
1653 | whether we need DT_TEXTREL. | |
1654 | (sh_elf_adjust_dynamic_symbol): Use plt.refcount to determine | |
1655 | whether the symbol was never referred to. | |
1656 | (sh_elf_relocate_section): Use WILL_CALL_FINISH_DYNAMIC_SYMBOL. | |
1657 | (sh_elf_gc_sweep_hook): Fill with the real sweep function. | |
1658 | (sh_elf_check_relocs): Call create_got_section if the short-cut | |
1659 | to .got is null. Increment reference counters only instead of | |
1660 | allocating space on dynamic sections here. Don't conditionalize | |
1661 | uninitialized got.offset value when marking the symbol as a | |
1662 | global offset table entry. Keep relocations for symbols satisfied | |
1663 | by a dynamic library to avoid copy relocations for the symbol. | |
1664 | Set dynobj field of an elf hash table if needed. | |
1665 | (sh_elf_finish_dynamic_sections): Handle null section pointer | |
1666 | correctly. | |
1667 | (elf_backend_copy_indirect_symbol): Defined. | |
1668 | (elf_backend_can_refcount): Defined. | |
1669 | ||
7e326afc NC |
1670 | 2002-08-23 Nick Clifton <nickc@redhat.com> |
1671 | ||
1672 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Undo | |
1673 | previous change. Add comment explaining why. | |
1674 | ||
c8614e8e AM |
1675 | 2002-08-23 Stephen Clarke <stephen.clarke@superh.com> |
1676 | ||
1677 | * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le): Copy | |
1678 | contents of .got.plt[2] to tr0, not address of .got.plt. | |
1679 | (sh_elf_finish_dynamic_symbol): Do not apply GOT_BIAS when | |
1680 | patching absolute plt entry. For shmedia plt entry, set bottom bit | |
1681 | of branch to plt0 as this is a branch to an shmedia instruction. | |
1682 | * elf64-sh64.c (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le): | |
1683 | Copy contents of .got.plt[2] to tr0, not address of .got.plt. | |
1684 | (elf_sh64_plt_entry_be, elf_sh64_plt_entry_le): Use ptrel to | |
1685 | branch to plt0. | |
1686 | (sh64_elf64_finish_dynamic_symbol): Do not apply GOT_BIAS when | |
1687 | patching absolute plt entry. For shmedia plt entry, branch to | |
1688 | plt0 is now ptrel, so use relative offset. Set bottom bit of | |
1689 | branch target as it is a branch to an shmedia instruction. | |
1690 | ||
3b587c71 AM |
1691 | 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>, |
1692 | Richard Shann <richard.shann@superh.com> | |
1693 | ||
1694 | * elf32-sh.c (sh_elf_finish_dynamic_sections): Set LSB of DT_INIT | |
1695 | value if .init is an SHmedia function. Similarly for DT_FINI. | |
1696 | * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise. | |
51020317 | 1697 | |
957dcaa8 AM |
1698 | 2002-08-23 Stephen Clarke <stephen.clarke@superh.com> |
1699 | ||
3b587c71 | 1700 | * elf32-sh.c (sh_elf_size_dynamic_sections): Zero initialize |
957dcaa8 | 1701 | dynamic section. |
3b587c71 | 1702 | * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise. |
957dcaa8 | 1703 | |
a4263c47 NC |
1704 | 2002-08-22 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
1705 | ||
1706 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use a simple | |
51020317 | 1707 | byte read when reading the return address register column. |
a4263c47 | 1708 | |
db4ed121 NC |
1709 | 2002-08-22 Nick Clifton <nickc@redhat.com> |
1710 | ||
1711 | * config.bfd: Add powepc64-*-*bsd* target. | |
1712 | ||
ed71e111 NC |
1713 | 2002-08-22 Graeme Peterson <gp@qnx.com> |
1714 | ||
1715 | * Makefile.am: Add entries for elf32-shqnx.c | |
1716 | * Makefile.in: Regenerate. | |
1717 | * config.bfd: Add support sh-*-nto* target. | |
1718 | * configure.in: Add support for bfd_elf32_sh{l}qnx_vec. | |
1719 | * configure: Regenerate. | |
1720 | * elf32-qnx.h: Changed typo "elf_i386qnx_*" to "elf_qnx_*" . | |
1721 | * elf32-sh.c: Do not include elf32-target.h if | |
1722 | ELF32_SH_C_INCLUDED is defined. | |
1723 | * elf32-shqnx.c: New file: Support for QNX. | |
1724 | * targets.c: Add bfd_elf32_sh{l}qnx_vec. | |
1725 | ||
0ab72ee2 NC |
1726 | 2002-08-22 Nick Clifton <nickc@redhat.com> |
1727 | ||
75c83283 NC |
1728 | * po/tr.po: Updated Turkish translation. |
1729 | ||
0ab72ee2 NC |
1730 | * syms.c (_bfd_generic_read_minisymbols): Set bfd_error if the |
1731 | symbols are not read. | |
1732 | ||
56780f18 AM |
1733 | 2002-08-22 Alan Modra <amodra@bigpond.net.au> |
1734 | ||
1735 | * elf32-m68hc11.c: Formatting fixes. | |
1736 | (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test. | |
1737 | * elf32-m68hc12.c: Formatting fixes. | |
1738 | (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test. | |
1739 | ||
b48fa14c AM |
1740 | 2002-08-22 Alan Modra <amodra@bigpond.net.au> |
1741 | ||
a7c71b0c AM |
1742 | * coff-rs6000.c (rs6000coff_vec <object_flags>): Add SEC_CODE and |
1743 | SEC_DATA. | |
1744 | (pmac_xcoff_vec): Likewise. | |
1745 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
1746 | (aix5coff64_vec): Likewise. | |
1747 | ||
56780f18 AM |
1748 | 2002-08-22 Alan Modra <amodra@bigpond.net.au> |
1749 | ||
b48fa14c AM |
1750 | * elf-bfd.h (struct elf_backend_data): Add struct elf_backend_data |
1751 | param to elf_backend_copy_indirect_symbol. | |
1752 | (_bfd_elf_link_hash_copy_indirect): Likewise. | |
1753 | * elflink.h (elf_add_default_symbol, elf_fix_symbol_flags): Adjust | |
1754 | calls to copy_indirect_symbol. | |
1755 | * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise. | |
1756 | * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. | |
1757 | * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise. | |
1758 | * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. | |
1759 | * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise. | |
1760 | * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise. | |
1761 | * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise. | |
1762 | * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise. | |
1763 | * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Likewise. | |
1764 | * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Properly | |
1765 | test refcounts for "used" values. | |
1766 | ||
8c2ab17d AM |
1767 | 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca> |
1768 | ||
1769 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Add PARAMS to | |
1770 | argument declaration. | |
1771 | ||
d62b1198 | 1772 | 2002-08-19 Elena Zannoni <ezannoni@redhat.com> |
51020317 AM |
1773 | |
1774 | * archures.c (bfd_mach_ppc_e500): Added. | |
1775 | * bfd-in2.h: Rebuilt. | |
d62b1198 EZ |
1776 | * cpu-powerpc.c (bfd_powerpc_archs): Added e500. |
1777 | ||
9f88ba09 AM |
1778 | 2002-08-19 Alan Modra <amodra@bigpond.net.au> |
1779 | ||
1780 | * elf32-m68hc12.c (elf_backend_can_gc_sections): False. | |
1781 | ||
df622259 AC |
1782 | 2002-08-17 Andrew Cagney <ac131313@redhat.com> |
1783 | ||
1784 | * elf.c (bfd_elf_get_elf_syms): Change type of `esym' to | |
51020317 | 1785 | `bfd_byte'. |
df622259 | 1786 | |
44c410de SC |
1787 | 2002-08-17 Stan Cox <scox@redhat.com> |
1788 | ||
1789 | * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Use the | |
1790 | IRIX 6 segment layout for NEWABI. | |
1791 | ||
4972a8e9 SC |
1792 | 2002-08-16 Stephen Clarke <stephen.clarke@superh.com> |
1793 | ||
1794 | * bfd/elf32-sh.c (sh_elf_gc_mark_hook): For sh64, skip indirect | |
1795 | symbols when looking for section referred to by a relocation. | |
1796 | * bfd/elf64-sh.c (sh_elf64_gc_mark_hook): Likewise. | |
51020317 | 1797 | |
c5cd6d62 AM |
1798 | 2002-08-15 Alan Modra <amodra@bigpond.net.au> |
1799 | ||
1800 | * elf32-i370.c: Move reloc enum to include/elf/i370.h. | |
1801 | ||
0741c7be HPN |
1802 | 2002-08-15 Hans-Peter Nilsson <hp@axis.com> |
1803 | ||
1804 | * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Add | |
1805 | missing check for whether the symbol is referenced by DSO before | |
1806 | unexporting it as an unneeded dynamic symbol. | |
1807 | ||
e8d5d179 L |
1808 | 2002-08-14 H.J. Lu <hjl@gnu.org> |
1809 | ||
1810 | * libbfd.h: Regenerate. | |
1811 | ||
e9229007 L |
1812 | 2002-08-14 H.J. Lu <hjl@gnu.org> |
1813 | ||
1814 | * config.bfd: Always add 64bit vectors to 32bit Linux/mips. | |
1815 | ||
1fd03b5a SC |
1816 | 2002-08-14 Stephane Carrez <stcarrez@nerim.fr> |
1817 | ||
1818 | * elf32-m68hc11.c (m68hc11_relax_group): New to relax group of | |
1819 | instructions. | |
1820 | (m68hc11_direct_relax): New to define table of relaxable instructions. | |
1821 | (find_relaxable_insn): New, find a relaxable insn. | |
1822 | (compare_reloc): New to compare two relocs. | |
1823 | (m68hc11_elf_relax_section): New, relax text sections. | |
1824 | (m68hc11_elf_relax_delete_bytes): New, delete bytes and adjust branchs. | |
1825 | (elf32_m68hc11_check_relocs): New function for GC support. | |
1826 | (elf32_m68hc11_relocate_section): New function for GC support. | |
1827 | (bfd_elf32_bfd_relax_section): Define to support linker relaxation. | |
1828 | (elf_backend_check_relocs): Likewise. | |
1829 | (elf_backend_relocate_section): Likewise. | |
1830 | ||
c828c771 L |
1831 | 2002-08-13 H.J. Lu <hjl@gnu.org> |
1832 | ||
1833 | * elflink.h (NAME(bfd_elf,size_dynamic_sections): Don't count | |
1834 | definitions in shared objects when checking symbol with | |
1835 | undefined version. | |
1836 | ||
9b701e44 SC |
1837 | 2002-08-13 Stephane Carrez <stcarrez@nerim.fr> |
1838 | ||
1839 | * elf32-m68hc11.c (elf32_m68hc11_gc_mark_hook): New for section GC. | |
1840 | (elf32_m68hc11_gc_sweep_hook): Likewise. | |
1841 | (elf_backend_gc_mark_hook): Define for GC section support. | |
1842 | (elf_backend_gc_sweep_hook): Likewise. | |
1843 | (elf_backend_can_gc_sections): Likewise. | |
1844 | ||
1845 | * elf32-m68hc12.c: Likewise. | |
1846 | ||
96405e3c SC |
1847 | 2002-08-13 Stephane Carrez <stcarrez@nerim.fr> |
1848 | ||
1849 | * elf32-m68hc11.c (_bfd_m68hc11_elf_print_private_bfd_data): New. | |
1850 | (_bfd_m68hc11_elf_merge_private_bfd_data): New function. | |
1851 | (_bfd_m68hc11_elf_set_private_flags): New function. | |
1852 | Use them to set/check/print ELF flags specific to 68HC11. | |
1853 | ||
1854 | * elf32-m68hc12.c (_bfd_m68hc12_elf_print_private_bfd_data): New. | |
1855 | (_bfd_m68hc12_elf_merge_private_bfd_data): New function. | |
1856 | (_bfd_m68hc12_elf_set_private_flags): New function. | |
1857 | Use them to set/check/print ELF flags specific to 68HC12. | |
1858 | ||
dae78fb0 SC |
1859 | 2002-08-13 Stephane Carrez <stcarrez@nerim.fr> |
1860 | ||
1861 | * elf32-m68hc11.c (elf_m68hc11_howto_table): Add the new relocs; | |
1862 | fix masks for PC-rel relocs. | |
1863 | (m68hc11_elf_ignore_reloc): New function. | |
1864 | ||
1865 | * elf32-m68hc12.c (m68hc12_elf_special_reloc): New to handle specific | |
1866 | 68HC12 banked addressing relocs. | |
1867 | (m68hc12_phys_addr): New to compute physical address of banked memory. | |
1868 | (m68hc12_phys_page): Likewise for page. | |
1869 | (m68hc12_addr_is_banked): New to see if address is in banked area. | |
1870 | (elf_m68hc12_howto_table): Add new relocs and rename to xx12. | |
1871 | ||
3dbfec86 SC |
1872 | 2002-08-13 Stephane Carrez <stcarrez@nerim.fr> |
1873 | ||
1874 | * reloc.c (BFD_RELOC_M68HC11_RL_JUMP, BFD_RELOC_M68HC11_RL_GROUP, | |
1875 | BFD_RELOC_M68HC11_LO16, BFD_RELOC_M68HC11_PAGE, | |
1876 | BFD_RELOC_M68HC11_24): New relocs for 68HC11/68HC12. | |
1877 | * bfd-in2.h: Regenerate. | |
1878 | ||
871da94f L |
1879 | 2002-08-12 H.J. Lu <hjl@gnu.org> |
1880 | ||
1881 | * elflink.h (elf_add_default_symbol): Preserve section across | |
1882 | elf_merge_symbol. | |
1883 | ||
59bc061d NC |
1884 | 2002-08-09 Graeme Peterson <gp@qnx.com> |
1885 | ||
51020317 | 1886 | * Makefile.am: Add entries for elf32-ppcqnx.c, and add |
59bc061d NC |
1887 | elf32-qnx.h dependency to elfarmqnx-nabi.c and elf32-i386qnx.c. |
1888 | * Makefile.in: Regenerate. | |
1889 | * config.bfd: Add support for powerpc{le}-*-nto targets. | |
1890 | * configure.in: Add support for bfd_elf32_powerpc{le}qnx_vec. | |
1891 | * configure: Regenerate. | |
1892 | * elf32-i386qnx.c: Moved backend functions into a QNX specific | |
1893 | common file "elf32-qnx.h", and now include that file. | |
1894 | * elf32-qnx.h: New file: QNX specific common elf backend. | |
1895 | * elf32-ppc.c: Do not include elf32-target.h if | |
1896 | ELF32_PPC_C_INCLUDED is defined. | |
1897 | * elf32-ppcqnx.c: New file: Support for QNX. | |
1898 | * elfarmqnx-nabi.c: Include elf32-qnx.h for qnx elf backend. | |
1899 | * targets.c: Add bfd_elf32_powerpc{le}qnx_vec. | |
1900 | ||
2b692c59 NC |
1901 | 2002-08-09 Nick Clifton <nickc@redhat.com> |
1902 | ||
1903 | * po/sv.po: Updated Swedish translation. | |
1904 | ||
d0c7ff07 TS |
1905 | 2002-08-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
1906 | ||
1907 | * elfxx-mips.c (mips_elf_global_got_index): Avoid segfault if | |
1908 | g->global_gotsym is NULL. | |
1909 | ||
d8bbe778 L |
1910 | 2002-08-08 H.J. Lu <hjl@gnu.org> |
1911 | ||
c5cd6d62 | 1912 | * elflink.h (elf_add_default_symbol): Don't warn if a definition |
d8bbe778 L |
1913 | overrides an indirect versioned symbol. |
1914 | ||
c366c25e JJ |
1915 | 2002-08-08 Jakub Jelinek <jakub@redhat.com> |
1916 | ||
1917 | * elf32-i386.c (elf_i386_relocate_section): Fill in proper addend | |
1918 | for R_386_TLS_TPOFF32 relocs against symndx 0. | |
1919 | ||
31941635 L |
1920 | 2002-08-07 H.J. Lu <hjl@gnu.org> |
1921 | ||
1922 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Check symbol | |
1923 | with undefined version if needed. | |
1924 | (elf_link_assign_sym_version): Match a default symbol with a | |
1925 | version without definition. No need to hide the default | |
1926 | definition separately. | |
1927 | ||
0f3bd64f AM |
1928 | 2002-08-08 Alan Modra <amodra@bigpond.net.au> |
1929 | ||
7330fb86 AM |
1930 | * elflink.h (elf_link_output_extsym): Don't output symbols from |
1931 | SEC_EXCLUDE sections. | |
1932 | ||
0f3bd64f AM |
1933 | * aoutx.h (aout_link_write_symbols): Correct handling of warning syms. |
1934 | ||
a4aa0fb7 AM |
1935 | 2002-08-07 Alan Modra <amodra@bigpond.net.au> |
1936 | ||
1937 | * elf64-ppc.c (edit_opd): Arrange to drop symbols for discarded .opd | |
1938 | entries. | |
1939 | ||
34ea4a36 TS |
1940 | 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
1941 | ||
1942 | * elfxx-mips.c (mips_elf_create_dynamic_relocation): Cast signedness | |
1943 | mismatch. | |
1944 | ||
141ff970 TS |
1945 | 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
1946 | ||
1947 | * elfxx-mips.c (ABI_64_P): Remove superfluous check. | |
1948 | ||
28458e7e TS |
1949 | 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
1950 | ||
1951 | * elf32-mips.c (mips_reloc_map): Fix typo. | |
1952 | ||
0121a3da AM |
1953 | 2002-08-06 Alan Modra <amodra@bigpond.net.au> |
1954 | ||
1955 | * xcofflink.c (xcoff_write_global_symbol): Set n_scnum for abs_section. | |
1956 | ||
d006db6c AM |
1957 | 2002-08-06 Alan Modra <amodra@bigpond.net.au> |
1958 | ||
1959 | * elf64-ppc.c (ppc64_elf_howto_raw): Zero all src_mask entries. | |
1960 | ||
8ea80f08 AM |
1961 | 2002-08-06 Alan Modra <amodra@bigpond.net.au> |
1962 | ||
2a52da53 AM |
1963 | * libxcoff.h: Use PARAMS on function declarations. |
1964 | * coff-rs6000.c (xcoff_generate_rtinit): Simplify size calc. | |
1965 | * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise. | |
1966 | ||
8ea80f08 AM |
1967 | * coff-rs6000.c: (xcoff_rtype2howto): Don't place reloc address in |
1968 | addend. | |
1969 | * coff64-rs6000.c: (xcoff64_rtype2howto): Likewise. | |
1970 | ||
cf9ab45b AM |
1971 | 2002-08-06 Alan Modra <amodra@bigpond.net.au> |
1972 | ||
1973 | * coff-rs6000.c: Formatting fixes. | |
1974 | (xcoff_calculate_relocation): Use PARAMS in declaration. | |
1975 | (xcoff_complain_overflow): Likewise. | |
1976 | (xcoff_ppc_relocate_section): Use old-style function pointer call. | |
1977 | (bfd_xcoff_backend_data): Remove useless comments. | |
1978 | (rs6000coff_vec): Likewise. | |
1979 | (bfd_pmac_xcoff_backend_data): Likewise. | |
1980 | (pmac_xcoff_vec): Likewise. | |
8ea80f08 | 1981 | |
cf9ab45b AM |
1982 | * coff64-rs6000.c: Formatting fixes. |
1983 | (xcoff64_calculate_relocation): Use PARAMS in declaration. | |
1984 | (xcoff64_ppc_relocate_section): Use old-style function pointer call. | |
1985 | (bfd_xcoff_backend_data): Remove useless comments. | |
1986 | (rs6000coff64_vec): Likewise. | |
1987 | (bfd_xcoff_aix5_backend_data): Likewise. | |
1988 | (aix5coff64_vec): Likewise. | |
1989 | ||
48bfecdd AM |
1990 | 2002-08-06 Alan Modra <amodra@bigpond.net.au> |
1991 | ||
a78eab4e AM |
1992 | * coff-rs6000.c (xcoff_howto_table): Revert some of last change to |
1993 | mask entries. Use complain_overflow_dont for R_REF. | |
1994 | (xcoff_reloc_type_ba): Revert last change. | |
1995 | (xcoff_reloc_type_br): Likewise. | |
1996 | (xcoff_reloc_type_crel): Likewise. | |
1997 | (xcoff_ppc_relocate_section): Likewise. | |
1998 | * coff64-rs6000.c (xcoff64_reloc_type_br): Likewise. | |
1999 | (xcoff64_ppc_relocate_section): Likewise. | |
2000 | (xcoff64_howto_table): Revert some of last change to mask entries. | |
2001 | Use complain_overflow_dont for R_REF. | |
2002 | ||
48bfecdd AM |
2003 | * coff-rs6000.c (xcoff_howto_table): Fix src_mask entries. Make all |
2004 | relocs with bitsize == 16 have size = 1. | |
2005 | (xcoff_reloc_type_ba): Correct src_mask and dst_mask adjustment. | |
2006 | (xcoff_reloc_type_br): Likewise. | |
2007 | (xcoff_reloc_type_crel): Likewise. | |
2008 | (xcoff_ppc_relocate_section): Set up src_mask and dst_mask correctly. | |
2009 | * coff64-rs6000.c (xcoff64_reloc_type_br): Correct src_mask and | |
2010 | dst_mask adjustment. | |
2011 | (xcoff64_ppc_relocate_section): Set up src_mask and dst_mask correctly. | |
2012 | (xcoff64_howto_table): Fix src_mask entries. Make all relocs with | |
2013 | bitsize == 16 have size = 1. | |
2014 | ||
fd13ed0c DC |
2015 | 2002-08-01 Denis Chertykov <denisc@overta.ru> |
2016 | ||
2017 | * elf32-ip2k.c: Processor manufacturer changed to Ubicom. | |
2018 | (struct misc): New field isymbuf. All free_* fields removed. | |
2019 | (symbol_value): Pass in internal syms. No need to swap syms in. | |
2020 | (ip2k_elf_relax_section): Use bfd_elf_get_elf_syms. Properly free | |
2021 | possibly cached info. | |
2022 | (tidyup_after_error): Removed. | |
2023 | (ip2k_elf_relax_section_pass1): Don't use removed fields of struct | |
2024 | misc. Use new field. | |
2025 | (adjust_all_relocations): Use internal syms. No need to swap syms | |
2026 | in and out. | |
2027 | (add_page_insn): Don't use removed fields of struct misc. | |
2028 | ||
24a1ba0f NC |
2029 | 2002-08-01 Nick Clifton <nickc@redhat.com> |
2030 | ||
2031 | * elf32-arm.h: Revert previous delta. | |
2032 | ||
a6903459 NC |
2033 | 2002-08-01 Nick Clifton <nickc@redhat.com> |
2034 | ||
2035 | * configure.in (AM_INIT_AUTOMAKE): Bump version number. | |
2036 | * configure: Regenerate. | |
2037 | ||
39a2a3eb L |
2038 | 2002-07-31 H.J. Lu <hjl@gnu.org> |
2039 | ||
2040 | * config.bfd: Add x86-64 vector to Linux/i386 if 64bit BFD is | |
2041 | selected. | |
2042 | ||
a0dfa6a8 L |
2043 | 2002-07-31 H.J. Lu <hjl@gnu.org> |
2044 | ||
2045 | * config.bfd: Add n32 vectors to 32bit Linux/mips if 64bit BFD | |
2046 | is selected. | |
2047 | ||
cd67d266 JJ |
2048 | 2002-07-31 Jakub Jelinek <jakub@redhat.com> |
2049 | ||
2050 | * elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type | |
2051 | if _bfd_elf_link_hash_copy_indirect will swap got.refcount. | |
2052 | ||
4eb6b71c NC |
2053 | 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au> |
2054 | ||
2055 | * cpu-ns32k.c (_bfd_ns32k_put_immdeiate, _bfd_ns32k_get_immediate): | |
2056 | There is no 8 byte relocation type for this architecture. | |
2057 | (do_ns32k_reloc): Use bfd_vma instead of native types. | |
2058 | (bfd_ns32k_put_immediate, _bfd_ns32k_relocate_contents) put_data | |
2059 | returns void. | |
2060 | (_bfd_ns32k_put_displacement): Don't check for overflow. We can | |
2061 | rely on generic code to do that. | |
2062 | * aout-ns32k.c (howto_table): Add appropriate overflow detection | |
2063 | to all table entries. | |
2064 | (_bfd_ns32k_relocate_contents): put_data returns void. | |
2065 | * ns32k.h: (_bfd_ns32k_put_displacement, _bfd_ns32k_put_immediate) | |
2066 | (_bfd_do_ns32k_reloc_contents): Fix prototypes. put data functions | |
2067 | return void. | |
2068 | ||
f7c33884 NC |
2069 | 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au> |
2070 | ||
2071 | * aoutx.h (aout_link_check_ar_symbols): Whether to include an | |
2072 | archive object is target dependant. | |
2073 | ||
8f64befb NC |
2074 | 2002-07-31 Adam Nemet <anemet@lnxw.com> |
2075 | ||
2076 | * elf32-arm.h (ARM_PLT_ENTRY_SIZE): Rename PLT_ENTRY_SIZE. | |
2077 | (THUMB_PLT_ENTRY_SIZE): New macro. | |
2078 | (PLT_ENTRY_SIZE): Return the appropriate *_PLT_ENTRY_SIZE. | |
2079 | (elf32_arm_plt0_entry): Rename PLT_ENTRY_SIZE to | |
2080 | ARM_PLT_ENTRY_SIZE. | |
2081 | (elf32_arm_plt_entry): Likewise. | |
2082 | (elf_backend_plt_header_size): Likewise. | |
2083 | (elf32_thumb_plt0_entry): New global. | |
2084 | (elf32_arm_finish_dynamic_sections): Use it. Put Thumb entries | |
2085 | into .plt.thumb. | |
2086 | (elf32_thumb_plt_entry): New global. | |
2087 | (elf32_arm_finish_dynamic_symbol): Use it. Use .thumb.plt for | |
2088 | Thumb entries. Set the bottom bit of the corresponding GOT entry | |
2089 | for a Thumb PLT entry. | |
2090 | (struct elf32_arm_plt_entry_info): New structure. | |
2091 | (struct elf32_arm_link_hash_entry, plt_info): New member of this | |
2092 | type. | |
2093 | (elf32_arm_link_hash_newfunc): Initialize new member. | |
2094 | (elf32_arm_final_link_relocate, R_ARM_THM_PC22 case): Handle | |
2095 | relocations against the PLT. | |
2096 | (elf32_arm_check_relocs, case R_ARM_PLT32 case): Set | |
2097 | first_rel_type if this is the first time we encounter the symbol. | |
2098 | (elf32_arm_check_relocs, case R_ARM_THM_PC22 case): New case. | |
2099 | Determine if relocation needs a PLT entry. Set first_rel_type if | |
2100 | this is the first time we encounter the symbol | |
2101 | (elf32_arm_adjust_dynamic_symbol): Create PLT entries for Thumb | |
2102 | functions as well. | |
2103 | (elf32_arm_size_dynamic_sections): Handle .plt.thumb like .plt. | |
2104 | (elf32_arm_create_dynamic_sections): New function. Create the | |
2105 | .plt.thumb section. | |
2106 | (elf_backend_create_dynamic_sections): Call it. | |
2107 | ||
47badb7b NC |
2108 | 2002-07-31 Nick Clifton <nickc@redhat.com> |
2109 | ||
2110 | * bfd.c (bfd_alt_mach_code): Rename parameter 'index' to | |
2111 | 'alternative' in order to avoid shadowing global symbol of the | |
2112 | same name. | |
2113 | * bfd-in2.h: Regenerate. | |
2114 | * libbfd.h: Regenerate. | |
2115 | * libcoff.h: Regenerate. | |
2116 | ||
8a397dad TS |
2117 | 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
2118 | ||
2119 | * Makefile.am: Add n32 ABI support. | |
2120 | * Makefile.in: Regenerate. | |
2121 | * config.bfd: Add n32 vectors to mips64*-*-linux* targets. Treat 64 | |
2122 | bit vectors for mips*-*-linux targets as optional. | |
2123 | * configure.in: Add n32 ABI vectors. | |
2124 | * configure: Regenerate. | |
2125 | * elf32-mips.c (mips_elf32_object_p): Reject n32 ABI files. | |
2126 | * elfn32-mips.c: New file, n32 ABI support. | |
2127 | * targets.c: Add n32 ABI vectors. | |
2128 | ||
7e392df6 | 2129 | 2002-07-30 Graeme Peterson <gp@qnx.com> |
83e1617e | 2130 | |
7e392df6 NC |
2131 | * elfarmqnx-nabi.c: New file: Support for QNX. |
2132 | * config.bfd: Add support for arm-*-nto target. | |
2133 | * configure.in: Add support for bfd_elf32_{big|little}armqnx_vec. | |
2134 | * configure: Regenerate. | |
2135 | * Makefile.am: Add entries for elfarmqnx-nabi.c. | |
2136 | * Makefile.in: Regenerate. | |
2137 | * elf32-arm.h (ELF_MAXPAGESIZE): Do not define if already defined. | |
2138 | Do not define global function if ELFARM_NABI_C_INCLUDED is defined. | |
2139 | * elfarm-nabi.c: Do not include elf32-arm.h if | |
2140 | ELFARM_NABI_C_INCLUDED is defined. | |
2141 | * targets.c: Add bfd_elf32_{big|little}armqnx_vec. | |
7330fb86 | 2142 | |
7e392df6 | 2143 | 2002-07-30 Nick Clifton <nickc@redhat.com> |
7330fb86 | 2144 | |
83e1617e NC |
2145 | * po/sv.po: Updated Swedish translation. |
2146 | ||
704afa60 JJ |
2147 | 2002-07-30 Jakub Jelinek <jakub@redhat.com> |
2148 | ||
2149 | * elf.c (elf_fake_sections): Fix up .tbss sh_size and sh_type. | |
2150 | ||
487e54f2 AM |
2151 | 2002-07-30 Alan Modra <amodra@bigpond.net.au> |
2152 | ||
2153 | * aoutx.h (some_aout_object_p): Clean up tdata properly on error. | |
2154 | * archive.c (bfd_generic_archive_p): Likewise. | |
2155 | * coff-rs6000.c (_bfd_xcoff_archive_p): Likewise. | |
2156 | (_bfd_xcoff_archive_p): Use bfd_scan_vma in place of strtol. | |
2157 | * coff64-rs6000.c (xcoff64_slurp_armap): Likewise. | |
2158 | (xcoff64_archive_p): Likewise. | |
2159 | (xcoff64_openr_next_archived_file): Likewise. | |
2160 | (xcoff64_archive_p): Clean up tdata properly on error. | |
2161 | * coffgen.c (coff_real_object_p): Likewise. | |
2162 | (coff_object_p): Release filehdr and opthdr. | |
2163 | * ecoff.c (_bfd_ecoff_archive_p): Clean up tdata properly on error. | |
2164 | * ieee.c (ieee_archive_p): Likewise. | |
2165 | * ihex.c (ihex_object_p): Likewise. | |
2166 | (ihex_mkobject): Always allocate tdata. | |
2167 | * peicode.h (pe_ILF_object_p): Release bfd_alloc'd buffer on error. | |
2168 | * srec.c (srec_mkobject): Always allocate tdata. | |
2169 | (srec_object_p): Clean up tdata properly on error. | |
2170 | (symbolsrec_object_p): Likewise. | |
2171 | * versados.c (versados_object_p): Likewise. | |
2172 | * vms-misc.c (_bfd_vms_get_record): Use bfd_malloc instead of malloc, | |
2173 | and bfd_realloc instead of realloc. | |
2174 | (add_new_contents): Use bfd_alloc instead of bfd_malloc for sections. | |
2175 | * vms.c (vms_initialize): Always allocate tdata. Use bfd_alloc in | |
2176 | place of bfd_malloc, simplifying error freeing. Free hash table too. | |
2177 | (vms_object_p): Clean up tdata on error. | |
2178 | (vms_mkobject): Don't complain on stderr if vms_initialize fails. | |
2179 | (vms_close_and_cleanup): Adjust for bfd_alloc use. | |
2180 | ||
9d46020e AM |
2181 | 2002-07-30 Alan Modra <amodra@bigpond.net.au> |
2182 | ||
2183 | * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set e_flags. | |
2184 | ||
fb39dac1 RS |
2185 | 2002-07-26 Chris Demetriou <cgd@broadcom.com> |
2186 | ||
2187 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Merge ASE | |
2188 | flags into resulting BFD. | |
2189 | ||
7a624474 AM |
2190 | 2002-07-26 Alan Modra <amodra@bigpond.net.au> |
2191 | ||
2192 | From John Reiser <jreiser@BitWagon.com> | |
2193 | * elf32-i386.c (elf_i386_link_hash_table_create): Clear | |
2194 | tls_ldm_got.refcount. | |
2195 | ||
a4382ec6 TS |
2196 | 2002-07-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
2197 | ||
2198 | * elf64-mips.c: Update TODO comment. | |
2199 | (mips_elf64_higher_reloc,mips_elf64_highest_reloc, | |
2200 | mips_elf64_gprel16_reloca): Remove prototypes. | |
2201 | (mips16_jump_reloc,mips16_gprel_reloc): Add functions. | |
2202 | (UNUSED_RELOC): Replace by EMPTY_RELOC. | |
2203 | (mips_elf64_howto_table_rel): Use special R_MIPS_HI16 handling. Remove | |
2204 | wrong comments. Remove disfunctional support of R_MIPS_HIGHER and | |
2205 | R_MIPS_HIGHEST. | |
2206 | (mips_elf64_howto_table_rela): Fix handling of R_MIPS_GPREL16 and | |
2207 | R_MIPS_GOT16. Remove wrong comments. | |
2208 | (elf_mips16_jump_howto,elf_mips16_gprel_howto, | |
2209 | elf_mips_gnu_vtinherit_howto,elf_mips_gnu_vtentry_howto): New, code | |
2210 | from elf32-mips.c. | |
2211 | (mips_elf64_hi16_reloc): Fix formatting. | |
2212 | (mips_elf64_higher_reloc,mips_elf64_highest_reloc): Remove. | |
2213 | (mips_elf64_got16_reloc): Fix formatting. Remove superfluous code. | |
2214 | Better comment. Fall back to R_MIPS_GOT_DISP instead of abort(). | |
2215 | (mips_elf64_gprel16_reloc): Make static. Add check for | |
2216 | partial_inplace. | |
2217 | (mips_elf64_gprel16_reloca): Remove. | |
2218 | (mips_elf64_literal_reloc): New function. | |
2219 | (mips_elf64_gprel32_reloc): Fix formatting. | |
2220 | (mips_elf64_shift6_reloc): Fix comment. Make static. | |
2221 | (mips16_jump_reloc,mips16_gprel_reloc): New functions, code from | |
2222 | elf32-mips.c. | |
2223 | (elf_reloc_map,mips_reloc_map): New mapping table, similiar as in | |
2224 | elf32-mips.c | |
2225 | (bfd_elf64_bfd_reloc_type_lookup): Use the mapping table. Enable GNU | |
2226 | specific relocations. | |
2227 | (mips_elf64_rtype_to_howto): Enable GNU specific relocations. | |
2228 | (mips_elf64_object_p): Invert logic to check for SGI-ish ABI. | |
2229 | (ELF_MAXPAGESIZE): Add comment. | |
2230 | ||
219576a4 NC |
2231 | 2002-07-25 Nick Clifton <nickc@redhat.com> |
2232 | ||
2233 | * po/sv.po: Updated Swedish translation. | |
2234 | * po/es.po: Updated Spanish translation. | |
2235 | * po/fr.po: Updated French translation. | |
2236 | ||
8c58d23b AM |
2237 | 2002-07-25 Alan Modra <amodra@bigpond.net.au> |
2238 | ||
2239 | * elf-bfd.h (_bfd_elf32_link_record_local_dynamic_symbol): Define | |
2240 | as elf_link_record_local_dynamic_symbol. | |
2241 | (_bfd_elf64_link_record_local_dynamic_symbol): Likewise. | |
2242 | (elf_link_record_local_dynamic_symbol): Declare. Now returns int. | |
2243 | * elflink.h (elf_link_record_local_dynamic_symbol): Move to.. | |
2244 | * elflink.c: .. here. Use bfd_elf_get_elf_syms. Check whether an | |
2245 | attempt is made to record a symbol in a discarded section, and | |
2246 | return `2' in that case. | |
2247 | ||
ff3063f5 NC |
2248 | 2002-07-24 Nick Clifton <nickc@redhat.com> |
2249 | ||
2250 | * po/sv.po: Updated Swedish translation. | |
2251 | * po/es.po: Updated Spanish translation. | |
2252 | ||
f0fe0e16 AM |
2253 | 2002-07-23 Alan Modra <amodra@bigpond.net.au> |
2254 | ||
c1fb5f8a AM |
2255 | * po/SRC-POTFILES.in: Regenerate. |
2256 | ||
f0fe0e16 AM |
2257 | * elf-hppa.h (elf_hppa_relocate_section): If relocatable, return |
2258 | immediately. Remove code handling relocatable linking. | |
2259 | * elf32-avr.c (elf32_avr_relocate_section): Likewise. | |
2260 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
2261 | * elf32-fr30.c (elf32_frv_relocate_section): Likewise. | |
de2d743e | 2262 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. |
f0fe0e16 AM |
2263 | * elf32-h8300.c (elf32_h8_relocate_section): Likewise. |
2264 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
2265 | * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise. | |
2266 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
2267 | * elf32-v850.c (v850_elf_relocate_section): Likewise. | |
2268 | * elf32-vax.c (elf_vax_relocate_section): Likewise. | |
2269 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
2270 | * elf32-avr.c (elf_backend_rela_normal): Define. | |
2271 | * elf32-cris.c: Likewise. | |
2272 | * elf32-fr30.c: Likewise. | |
de2d743e | 2273 | * elf32-frv.c: Likewise. |
f0fe0e16 AM |
2274 | * elf32-h8300.c: Likewise. |
2275 | * elf32-hppa.c: Likewise. | |
2276 | * elf32-ip2k.c: Likewise. | |
2277 | * elf32-sparc.c: Likewise. | |
2278 | * elf32-v850.c: Likewise. | |
2279 | * elf32-vax.c: Likewise. | |
2280 | * elf64-hppa.c: Likewise. | |
2281 | * elf64-sparc.c: Likewise. | |
2282 | * elf32-fr30.c (elf32_frv_relocate_section): Edit comment. | |
de2d743e | 2283 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. |
f0fe0e16 AM |
2284 | * elf32-i860.c (elf32_i860_relocate_section): Likewise. |
2285 | * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise. | |
2286 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
2287 | * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. | |
2288 | * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. | |
2289 | * elf-m10200.c (USE_RELA): Don't define. | |
2290 | * elf-m10300.c: Likewise. | |
de2d743e | 2291 | * elfarm-oabi.c: Likewise. |
f0fe0e16 AM |
2292 | * elf32-i370.c: Likewise. |
2293 | * elf32-ip2k.c: Likewise. | |
2294 | * elf32-m68k.c: Likewise. | |
2295 | * elf32-mcore.c: Likewise. | |
2296 | * elf32-ppc.c: Likewise. | |
2297 | * elf32-s390.c: Likewise. | |
2298 | * elf32-vax.c: Likewise. | |
2299 | * elf64-ppc.c: Likewise. | |
2300 | * elf64-s390.c: Likewise. | |
2301 | * elf64-x86-64.c: Likewise. | |
2302 | * elfxx-ia64.c: Likewise. | |
2303 | * elf32-avr.c (USE_REL): Don't undef. | |
2304 | * elf32-ip2k.c: Likewise. | |
2305 | ||
5e8d7549 NC |
2306 | 2002-07-23 Nick Clifton <nickc@redhat.com> |
2307 | ||
2308 | * elf-bfd.h (struct elf_backend_data): Add new bitfield | |
2309 | 'want_p_paddr_set_to_zero'. | |
2310 | * elfxx-target.h: Set default value for want_p_paddr_set_to_zero | |
2311 | to false; | |
2312 | * elfxx-ia64.c: Set want_p_paddr_set_zero for HPUX target. | |
2313 | * elf.c (copy_private_bfd_data): Test want_p_paddr_set_zero. | |
2314 | ||
9e12c7db NC |
2315 | 2002-07-23 Gabor Keresztfalvi <keresztg@mail.com> |
2316 | ||
2317 | * nlmcode.h (nlm_swap_auxiliary_headers_out): Swapped the order of | |
2318 | the MeSsAgEs and CoPyRiGhT tags to make >=NW4.x NLM loaders to | |
2319 | show the Copyright string. | |
2320 | Minor formatting tidy ups. | |
2321 | ||
0461a601 NC |
2322 | 2002-07-23 Nick Clifton <nickc@redhat.com> |
2323 | ||
ff3063f5 NC |
2324 | * po/fr.po: Updated French translation. |
2325 | * po/sv.po: Updated Swedish translation. | |
0461a601 | 2326 | |
fad2542d AM |
2327 | 2002-07-23 Alan Modra <amodra@bigpond.net.au> |
2328 | ||
2329 | * elflink.h (elf_link_input_bfd): Don't change internal symbols | |
2330 | when outputting relocs. | |
2331 | ||
c0647bfc JT |
2332 | 2002-07-20 Jason Thorpe <thorpej@wasabisystems.com> |
2333 | ||
2334 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert | |
2335 | DT_PLTGOT into the dynamic section if there is a PLT. | |
2336 | ||
d01414a5 TS |
2337 | 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
2338 | ||
2339 | * elfxx-mips.c (_bfd_mips_elf_discard_info): New function, code from | |
2340 | elf32-mips.c. | |
2341 | (_bfd_mips_elf_write_section): Likewise. | |
2342 | * elfxx-mips.h (_bfd_mips_elf_discard_info): New prototype. | |
2343 | (_bfd_mips_elf_write_section): Likewise. | |
2344 | * elf32-mips.c (elf32_mips_discard_info): Move to elfxx-mips.c. | |
2345 | (elf32_mips_write_section): Likewise. | |
2346 | * elf64-mips.c (_bfd_mips_elf_ignore_discarded_relocs): Use it. | |
2347 | (_bfd_mips_elf_write_section): Likewise. | |
2348 | ||
40c97fc6 AM |
2349 | 2002-07-19 Alan Modra <amodra@bigpond.net.au> |
2350 | ||
2351 | * elfxx-ia64.c: (elfNN_ia64_modify_segment_map): Properly scan | |
2352 | PT_IA_64_UNWIND segments for a given section. | |
2353 | ||
58378160 L |
2354 | 2002-07-17 H.J. Lu <hjl@gnu.org> |
2355 | ||
2356 | * Makefile.am: Fix a typo. | |
2357 | * Makefile.in: Regenerate. | |
2358 | ||
cf88bb9f NC |
2359 | 2002-07-15 Denis Chertykov <denisc@overta.ru> |
2360 | Frank Ch. Eigler <fche@redhat.com> | |
2361 | Ben Elliston <bje@redhat.com> | |
2362 | Alan Lehotsky <alehotsky@cygnus.com> | |
2363 | John Healy <jhealy@redhat.com> | |
2364 | Graham Stott <grahams@redhat.com> | |
2365 | Jeff Johnston <jjohnstn@redhat.com> | |
2366 | ||
2367 | * Makefile.am: Add support for ip2k. | |
2368 | * Makefile.in: Regenerate. | |
2369 | * doc/Makefile.in: Regenerate. | |
2370 | * archures.c: Add support for ip2k. | |
2371 | * config.bfd: Add support for ip2k. | |
2372 | * configure.in: Add support for ip2k. | |
2373 | * configure: Regenerate. | |
2374 | * reloc.c: Add support for ip2k. | |
2375 | * targets.c: Add support for ip2k. | |
2376 | * bfd-in2.h: Regenerate. | |
2377 | * libbfd.h: Regenerate. | |
2378 | * cpu-ip2k.c: New file. | |
2379 | * elf32-ip2k.c: New file. | |
2380 | ||
0dafd5f6 RE |
2381 | 2002-07-17 Ian Rickards <irickard@arm.com> |
2382 | ||
40c97fc6 | 2383 | * dwarf2.c (concat_filename): If we can't establish the directory |
0dafd5f6 RE |
2384 | just return the filename. |
2385 | ||
36b08f12 AM |
2386 | 2002-07-16 Moritz Jodeit <moritz@jodeit.org> |
2387 | ||
2388 | * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args. | |
2389 | ||
58821868 AM |
2390 | 2002-07-16 Alan Modra <amodra@bigpond.net.au> |
2391 | ||
2392 | * elflink.h: Formatting fixes, tidy prototypes. | |
2393 | (elf_link_assign_sym_version): Move common code out of loop. | |
2394 | ||
c89583f8 AM |
2395 | 2002-07-16 Alan Modra <amodra@bigpond.net.au> |
2396 | ||
2397 | * elflink.h (elf_link_input_bfd): Don't call reloc_emitter when | |
2398 | reloc section size is zero. Correct reloc output location. | |
2399 | ||
ba94744e AM |
2400 | 2002-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca> |
2401 | ||
2402 | * elf-hppa.h (elf_hppa_reloc_final_type): Use R_PARISC_PCREL16F as | |
2403 | the final type for the e_fsel selector when generating PA2.0W code. | |
2404 | (elf_hppa_relocate_insn): Provide support for PA2.0W 16-bit format 1 | |
2405 | relocations. | |
2406 | ||
96a94295 L |
2407 | 2002-07-14 H.J. Lu <hjl@gnu.org> |
2408 | ||
2409 | * elflink.h (elf_link_assign_sym_version): Hide the default | |
2410 | definition if there is a hidden versioned definition. | |
2411 | ||
6849c52f HPN |
2412 | 2002-07-12 Hans-Peter Nilsson <hp@axis.com> |
2413 | ||
2414 | * elf32-cris.c (cris_elf_relocate_section): Drop nonsensical | |
2415 | dynamic reference test in assertion when initializing GOT with | |
2416 | static contents. Just assert that there are either no dynamic | |
2417 | sections, the symbol is defined in the regular objects or that the | |
2418 | symbol is undef weak. Tweak comment. | |
2419 | (elf_cris_finish_dynamic_symbol): Emit .got reloc for a program | |
2420 | only if the symbol isn't defined in the program and isn't undef | |
2421 | weak. | |
2422 | (elf_cris_adjust_dynamic_symbol): Simplify condition for getting | |
2423 | rid of PLT entry: only do it if the symbol isn't defined in a DSO. | |
2424 | When doing so, clear ELF_LINK_HASH_NEEDS_PLT. Tweak comments. | |
2425 | (elf_cris_discard_excess_program_dynamics): Don't consider | |
2426 | ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs. | |
2427 | ||
239e1f3a AM |
2428 | 2002-07-11 Alan Modra <amodra@bigpond.net.au> |
2429 | ||
2430 | * elf32-i386.c (elf_i386_relocate_section): Don't complain about | |
2431 | unresolved debugging relocs in dynamic applications. | |
2432 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
2433 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
2434 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
2435 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
2436 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
2437 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
2438 | ||
2f6d9989 AM |
2439 | 2002-07-10 Alan Modra <amodra@bigpond.net.au> |
2440 | ||
f5e87a1d AM |
2441 | * elf64-ppc.c (ONES): Define. |
2442 | (ppc64_elf_howto_table): Use ONES here to avoid warnings. Fill in | |
2443 | missing src_mask fields. Tweak R_PPC64_NONE, R_PPC64_COPY. Fill | |
2444 | in missing dst_mask fields on R_PPC64_PLT32, R_PPC64_PLTREL32. | |
2445 | ||
2f6d9989 AM |
2446 | * elf64-ppc.c (ppc64_elf_get_symbol_info): Delete. |
2447 | (ppc64_elf_set_private_flags): Delete. | |
2448 | (ppc64_elf_section_from_shdr): Delete. | |
2449 | (ppc64_elf_merge_private_bfd_data): Remove flag checking/merging code. | |
2450 | (ppc64_elf_fake_sections): Delete. | |
2451 | (bfd_elf64_bfd_set_private_flags): Don't define. | |
2452 | (bfd_elf64_get_symbol_info): Likewise. | |
2453 | (elf_backend_section_from_shdr): Likewise. | |
2454 | (elf_backend_fake_sections): Likewise. | |
2455 | ||
0594c12d AM |
2456 | 2002-07-10 Marco Walther <Marco.Walther@sun.com> |
2457 | ||
2458 | * elf.c: (assign_section_numbers) Set sh_entsize for .stab only | |
2459 | when not already set. | |
2460 | * elf64-sparc.c: (sparc64_elf_fake_sections): New function. | |
2461 | (elf_backend_fake_sections): Define. | |
2462 | ||
699cb9b8 AM |
2463 | 2002-07-10 Alan Modra <amodra@bigpond.net.au> |
2464 | ||
2465 | * merge.c (_bfd_merge_section): Remove redundant output_section check. | |
2466 | Formatting. | |
2467 | (_bfd_merge_sections): Don't set SEC_EXCLUDE on unused sections. | |
2468 | ||
0a4787a0 HPN |
2469 | 2002-07-09 Hans-Peter Nilsson <hp@axis.com> |
2470 | ||
2471 | * elf32-cris.c (cris_elf_relocate_section): Move sanity-check for | |
2472 | NULL sym_hashes to just before use. | |
2473 | <case R_CRIS_32_GOTREL>: In test for local symbol, accept also | |
2474 | symbol with non-default visibility. | |
2475 | <case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto. | |
2476 | <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>: | |
2477 | Ditto. | |
2478 | (cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for | |
2479 | symbol with non-default visibility. | |
2480 | (cris_elf_check_relocs): At tests for local symbol before | |
2481 | increasing h->plt.refcount, also check for non-default | |
2482 | visibility. Ditto when checking for local symbol to eliminate | |
2483 | pc-relative runtime relocs. | |
2484 | ||
aecc8f8a AM |
2485 | 2002-07-08 Alan Modra <amodra@bigpond.net.au> |
2486 | ||
2487 | * elf.c: Formatting. | |
2488 | (IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks. | |
2489 | (INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP. | |
2490 | (copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP | |
2491 | segments. | |
2492 | ||
e9168c1e MM |
2493 | 2002-07-07 Mark Mitchell <mark@codesourcery.com> |
2494 | Alan Modra <amodra@bigpond.net.au> | |
2495 | ||
2496 | * cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into | |
2497 | account the impact of relocation count overflow when computing | |
2498 | section offsets. | |
2499 | * coffcode.h (coff_write_relocs): Use obj_pe when deciding whether | |
2500 | or not to apply the PE COFF reloc overflow handling. Fix a | |
2501 | fencepost error in deciding whether or not to use that technique. | |
2502 | ||
6cdc0ccc AM |
2503 | 2002-07-07 Alan Modra <amodra@bigpond.net.au> |
2504 | ||
2505 | * elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx, | |
2506 | change type of locsyms. | |
2507 | (bfd_elf_get_elf_syms): Declare. | |
2508 | * elf.c (bfd_elf_get_elf_syms): New function. | |
2509 | (group_signature): Use bfd_elf_get_elf_syms. | |
2510 | (bfd_section_from_r_symndx): Likewise. | |
2511 | * elfcode.h (elf_slurp_symbol_table): Likewise. | |
2512 | * elflink.h (elf_link_is_defined_archive_symbol): Likewise. | |
2513 | (elf_link_add_object_symbols): Likewise. Reorganise to increase | |
2514 | locality of various data structures. Properly free internal relocs. | |
2515 | (elf_bfd_final_link): Properly free internal relocs. | |
2516 | (elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms. | |
2517 | (elf_link_input_bfd): Likewise. | |
2518 | (elf_gc_mark): Likewise. Properly free internal relocs. | |
2519 | (elf_gc_sweep): Properly free internal relocs. | |
2520 | (elf_reloc_symbol_deleted_p): No need to swap syms in. | |
2521 | (elf_bfd_discard_info): Use bfd_elf_get_elf_syms. Properly free | |
2522 | internal relocs. | |
2523 | * elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms. | |
2524 | Properly free possibly cached info. | |
2525 | (mn10200_elf_relax_delete_bytes): Remove symbol swapping code. | |
2526 | (mn10200_elf_symbol_address_p): Pass in internal syms. Remove | |
2527 | symbol swapping code. | |
2528 | (mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms. | |
2529 | Properly free possibly cached info. | |
2530 | * elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c. | |
2531 | (mn10300_elf_relax_delete_bytes): Likewise. | |
2532 | (mn10300_elf_symbol_address_p): Likewise. | |
2533 | (mn10300_elf_get_relocated_section_contents): Likewise. | |
2534 | * elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c. | |
2535 | (elf32_h8_relax_delete_bytes): Likewise. | |
2536 | (elf32_h8_symbol_address_p): Likewise. | |
2537 | (elf32_h8_get_relocated_section_contents): Likewise. | |
2538 | * elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c. | |
2539 | (m32r_elf_relax_delete_bytes): Likewise. | |
2540 | (m32r_elf_get_relocated_section_contents): Likewise. | |
2541 | * elf32-sh.c (sh_elf_reloc_loop): Free section contents using | |
2542 | elf_section_data to determine whether cached. | |
2543 | (sh_elf_relax_section): As above for elf-m10200.c. | |
2544 | (sh_elf_relax_delete_bytes): Likewise. | |
2545 | (sh_elf_get_relocated_section_contents): Likewise. | |
2546 | * elf32-xstormy16.c (xstormy16_elf_relax_section): As above. | |
2547 | * elf64-alpha.c (elf64_alpha_relax_section): As above. Also delay | |
2548 | reading of local syms. | |
2549 | * elf64-mmix.c (mmix_elf_relax_section): Likewise. | |
2550 | * elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above. | |
2551 | * elfxx-ia64.c (elfNN_ia64_relax_section): As above. | |
2552 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal | |
2553 | relocs. | |
2554 | * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly | |
2555 | free internal relocs and section contents. Don't read symbols. | |
2556 | * elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms. | |
2557 | (elf32_hppa_size_stubs): Don't free local syms. | |
2558 | * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay | |
2559 | reading of local syms. Use bfd_elf_get_elf_syms. Properly free | |
2560 | possibly cached info. | |
2561 | * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise. | |
2562 | * elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms. | |
2563 | * elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and | |
2564 | all_local_syms. | |
2565 | (get_local_syms): Delete function. | |
2566 | (edit_opd): Use bfd_elf_get_elf_syms. Free on error exit. Cache | |
2567 | on exit. | |
2568 | (ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms. Free/cache on exit. | |
2569 | ||
b3212001 JW |
2570 | 2002-07-05 Jim Wilson <wilson@redhat.com> |
2571 | ||
2572 | * syms.c (decode_section_type): New. | |
2573 | (bfd_decode_symclass): Call decode_section_type. | |
2574 | ||
894bb1ee JJ |
2575 | 2002-07-04 Jakub Jelinek <jakub@redhat.com> |
2576 | ||
2577 | * merge.c (_bfd_merged_section_offset): Avoid accessing byte before | |
2578 | section content start. | |
2579 | Reported by Michael Schumacher <mike@hightec-rt.com>. | |
2580 | ||
bc0ba537 AM |
2581 | 2002-07-04 Alan Modra <amodra@bigpond.net.au> |
2582 | ||
2583 | * section.c (_bfd_strip_section_from_output): Remove unnecessary | |
2584 | link order code. Don't actually remove the output section here; | |
2585 | Just set a flag for the linker to do so. | |
2586 | * elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed | |
2587 | sections when setting up output section dynsyms. | |
2588 | ||
797fc050 AM |
2589 | 2002-07-04 Alan Modra <amodra@bigpond.net.au> |
2590 | ||
2591 | * elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux | |
2592 | fudge. | |
2593 | * elf.c (bfd_section_from_shdr): Work around broken hpux shared | |
2594 | libs here instead. | |
2595 | ||
99881371 MS |
2596 | 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com> |
2597 | ||
2598 | * elf64-s390.c (create_got_section): Set .got section alignment to | |
2599 | 8 bytes. | |
2600 | (elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes. | |
2601 | ||
47d9a591 AM |
2602 | 2002-07-02 Alan Modra <amodra@bigpond.net.au> |
2603 | ||
2604 | * elf.c (_bfd_elf_reloc_type_class): Fix comment grammar. | |
2605 | ||
179d3252 JT |
2606 | 2002-07-01 Matt Thomas <matt@3am-software.com> |
2607 | ||
2608 | * elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_* | |
2609 | to EF_VAX_*. | |
2610 | ||
4a14403c TS |
2611 | 2002-07-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
2612 | ||
2613 | * elfxx-mips.c (ABI_64_P): Fix comment. | |
2614 | (MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the | |
2615 | new section names for N64 ABI. | |
2616 | (mips_elf_output_extsym): No special _gp_disp handling for NewABI. | |
2617 | (mips_elf_calculate_relocation): Code formatting. | |
2618 | (mips_elf_create_dynamic_relocation): Likewise. | |
2619 | (_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too. | |
2620 | (_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI. | |
2621 | (_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64 | |
2622 | in any NewABI. | |
2623 | (_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling | |
2624 | for NewABI. | |
2625 | (_bfd_mips_elf_modify_segment_map): Handle any N64 ABI. | |
2626 | (_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled | |
2627 | here, too. | |
2628 | ||
607c0e09 AS |
2629 | 2002-07-01 Andreas Schwab <schwab@suse.de> |
2630 | ||
2631 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert | |
2632 | R_X86_64_64 to R_X86_64_RELATIVE. | |
2633 | ||
ba26fd96 AM |
2634 | 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca> |
2635 | ||
2636 | * vaxbsd.c: New BFD backend for VAX BSD and Ultrix. | |
2637 | * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend. | |
2638 | Run "make dep-am". | |
2639 | * config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of | |
2640 | host_aout_vec. | |
2641 | * configure.in (vaxbsd_vec): Add. | |
2642 | * targets.c (vaxbsd_vec): Add. | |
2643 | * Makefile.in: Rebuild. | |
2644 | * configure: Rebuild. | |
2645 | * po/SRC-POTFILES.in: Rebuild. | |
2646 | ||
1e2f5b6e AM |
2647 | 2002-07-01 Alan Modra <amodra@bigpond.net.au> |
2648 | ||
2649 | * elflink.h (elf_gc_mark): Pass in the section whose relocs we are | |
2650 | examining to gc_mark_hook, rather than the bfd. | |
2651 | (elf_gc_sections): Adjust. | |
2652 | * elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise. | |
2653 | * elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise. | |
2654 | * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise. | |
2655 | * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise. | |
2656 | * elf32-cris.c (cris_elf_gc_mark_hook): Likewise. | |
2657 | * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise. | |
2658 | * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise. | |
2659 | * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise. | |
2660 | * elf32-i386.c (elf_i386_gc_mark_hook): Likewise. | |
2661 | * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise. | |
2662 | * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise. | |
2663 | * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise. | |
2664 | * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise. | |
2665 | * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise. | |
2666 | * elf32-s390.c (elf_s390_gc_mark_hook): Likewise. | |
2667 | * elf32-sh.c (sh_elf_gc_mark_hook): Likewise. | |
2668 | * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise. | |
2669 | * elf32-v850.c (v850_elf_gc_mark_hook): Likewise. | |
2670 | * elf32-vax.c (elf_vax_gc_mark_hook): Likewise. | |
2671 | * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise. | |
2672 | * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise. | |
2673 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise. | |
2674 | * elf64-s390.c (elf_s390_gc_mark_hook): Likewise. | |
2675 | * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise. | |
2676 | * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise. | |
2677 | * elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise. | |
2678 | * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise. | |
2679 | * elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove | |
2680 | redundant local sym tests. | |
2681 | * elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry. | |
2682 | (link_hash_newfunc): Init is_entry. | |
2683 | (ppc64_elf_copy_indirect_symbol): Copy is_entry. | |
2684 | (ppc64_elf_link_hash_table_create): Init all_local_syms. | |
2685 | (create_linkage_sections): Use bfd_make_section_anyway rather than | |
2686 | bfd_make_section. | |
2687 | (ppc64_elf_mark_entry_syms): New function. | |
2688 | (ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set | |
2689 | up opd entry to function section map. | |
2690 | (ppc64_elf_gc_mark_hook): Special case opd section relocs, and | |
2691 | relocs that reference the opd section. | |
2692 | (edit_opd): New function. | |
2693 | (ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd. | |
2694 | (ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here. | |
2695 | (get_local_syms): Do so here. Exit if we already have local syms. | |
2696 | Remove bogus comment imported from elf32-hppa.c. Don't attempt to | |
2697 | read local syms on non-ELF input. | |
2698 | (ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather | |
2699 | than duplicating it's function here. Adjust free of internal | |
2700 | relocs to suit. | |
2701 | (ppc64_elf_relocate_section): Adjust local syms in opd section. | |
2702 | * elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare. | |
2703 | * elf32-hppa.c (elf32_hppa_size_stubs): Call | |
2704 | _bfd_elf32_link_read_relocs rather than duplicating it's function | |
2705 | here. Adjust free of internal relocs to suit. | |
2706 | ||
1b71fb54 AJ |
2707 | 2002-07-01 Andreas Jaeger <aj@suse.de> |
2708 | ||
2709 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations | |
2710 | are not allowed in shared libs code, enforce -fPIC. | |
2711 | ||
8d28f606 HPN |
2712 | 2002-06-29 Hans-Peter Nilsson <hp@bitrange.com> |
2713 | ||
2714 | * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and | |
2715 | trailing zero-sequences when there's previous left-over data. | |
2716 | ||
5ac81c74 JL |
2717 | 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca> |
2718 | ||
2719 | * elf64-hppa.c (elf64_hppa_reloc_type_class): New function. | |
2720 | (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec | |
2721 | and opd_rel_sec in order for starting rela section. Check _raw_size. | |
2722 | (elf_backend_reloc_type_class): Define. | |
2723 | ||
91a4d569 AM |
2724 | 2002-06-27 Kevin Buettner <kevinb@redhat.com> |
2725 | ||
2726 | * dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit | |
2727 | DWARF2 formats. | |
2728 | ||
feee612b AM |
2729 | 2002-06-27 Alan Modra <amodra@bigpond.net.au> |
2730 | ||
2731 | * cpu-powerpc.c: Comment on ordering of arch_info. | |
2732 | * elf32-ppc.c (ppc_elf_object_p): New function. | |
2733 | (elf_backend_object_p): Define. | |
2734 | * elf64-ppc.c (ppc64_elf_object_p): New function. | |
2735 | (elf_backend_object_p): Define. | |
2736 | ||
a4e6cefc JT |
2737 | 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com> |
2738 | ||
2739 | * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo. | |
2740 | * configure: Regenerate. | |
2741 | ||
dae2dd0d NC |
2742 | 2002-06-25 Jason Eckhardt <jle@rice.edu> |
2743 | ||
2744 | * dwarf2.c (decode_line_info): Check unit->addr_size | |
2745 | to read in the proper number of prologue bytes. | |
2746 | ||
680f9d5c NC |
2747 | 2002-06-25 Nick Clifton <nickc@cambridge.redhat.com> |
2748 | ||
2749 | * config.bfd (powerpc-*-aix5*): Only create a selvecs for | |
2750 | aix5coff64_vec if 64-bit bfd support has been enabled. | |
91a4d569 AM |
2751 | (powerpc64-*-aix5*): Only define if 64-bit bfd support has |
2752 | been enabled. | |
dae2dd0d | 2753 | |
680f9d5c NC |
2754 | * targets.c (_bfd_target_vector[]): Only include |
2755 | aix5coff64_vec if 64-bit bfd support has been enabled. | |
2756 | ||
d4c88bbb AM |
2757 | 2002-06-25 Alan Modra <amodra@bigpond.net.au> |
2758 | ||
2759 | * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy. | |
2760 | * elf32-hppa.c (hppa_add_stub): Likewise. | |
2761 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise. | |
2762 | * elflink.h (elf_add_default_symbol): Fix comment typo. | |
2763 | (elf_add_default_symbol): Replace strcpy and strncpy with memcpy. | |
2764 | (elf_link_add_object_symbols): Likewise. | |
2765 | (elf_link_assign_sym_version): Likewise. | |
2766 | * hash.c (bfd_hash_lookup): Likewise. | |
2767 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. | |
2768 | * section.c (bfd_get_unique_section_name): Likewise. | |
2769 | * syms.c (_bfd_stab_section_find_nearest_line): Likewise. | |
2770 | * elf.c (_bfd_elf_make_section_from_phdr): Likewise. | |
2771 | (assign_section_numbers): Likewise. | |
2772 | (_bfd_elfcore_make_pseudosection): Likewise. | |
2773 | (elfcore_grok_lwpstatus): Likewise. | |
2774 | (elfcore_grok_win32pstatus): Likewise. | |
2775 | (elfcore_write_note): Constify input params. Use PTR instead of | |
2776 | void *. Include terminating NUL in namesz. Correct padding. | |
2777 | Support NULL "name" param. Use memcpy instead of strcpy. | |
2778 | (elfcore_write_prpsinfo): Constify input params. | |
2779 | (elfcore_write_prstatus): Likewise. Use PTR instead of void *. | |
2780 | (elfcore_write_lwpstatus): Likewise. | |
2781 | (elfcore_write_pstatus): Likewise. | |
2782 | (elfcore_write_prfpreg): Likewise. | |
2783 | (elfcore_write_prxfpreg): Likewise. | |
2784 | * elf-bfd.h (elfcore_write_note): Update declaration. | |
2785 | (elfcore_write_prpsinfo): Likewise. | |
2786 | (elfcore_write_prstatus): Likewise. | |
2787 | (elfcore_write_pstatus): Likewise. | |
2788 | (elfcore_write_prfpreg): Likewise. | |
2789 | (elfcore_write_prxfpreg): Likewise. | |
2790 | (elfcore_write_lwpstatus): Likewise. | |
2791 | ||
b0ac09d2 NC |
2792 | 2002-06-25 Jason Eckhardt <jle@rice.edu> |
2793 | ||
2794 | * ecoff.c (ecoff_set_symbol_info): Set BSF_FUNCTION for | |
2795 | symbols of type stProc and stStaticProc. | |
2796 | ||
2797 | 2002-06-25 Nick Clifton <nickc@redhat.com> | |
2798 | ||
2799 | * ecoff.c: VArious formatting fixes. | |
2800 | ||
021d6096 AM |
2801 | 2002-06-25 Alan Modra <amodra@bigpond.net.au> |
2802 | ||
2803 | * coff-rs6000.c (xcoff_generate_rtinit): Fix typo. | |
2804 | ||
82e51918 AM |
2805 | 2002-06-25 Alan Modra <amodra@bigpond.net.au> |
2806 | ||
2807 | * aout-adobe.c: Don't compare against "true" or "false. | |
2808 | * aout-target.h: Likewise. | |
2809 | * aoutx.h: Likewise. | |
2810 | * archive.c: Likewise. | |
2811 | * bout.c: Likewise. | |
2812 | * cache.c: Likewise. | |
2813 | * coff-a29k.c: Likewise. | |
2814 | * coff-alpha.c: Likewise. | |
2815 | * coff-i386.c: Likewise. | |
2816 | * coff-mips.c: Likewise. | |
2817 | * coff-or32.c: Likewise. | |
2818 | * coff64-rs6000.c: Likewise. | |
2819 | * coffcode.h: Likewise. | |
2820 | * coffgen.c: Likewise. | |
2821 | * cpu-ns32k.c: Likewise. | |
2822 | * ecoff.c: Likewise. | |
2823 | * ecofflink.c: Likewise. | |
2824 | * elf.c: Likewise. | |
2825 | * elf32-arm.h: Likewise. | |
2826 | * elf32-cris.c: Likewise. | |
2827 | * elf32-d30v.c: Likewise. | |
2828 | * elf32-i386.c: Likewise. | |
2829 | * elf32-mcore.c: Likewise. | |
2830 | * elf32-ppc.c: Likewise. | |
2831 | * elf32-sh.c: Likewise. | |
2832 | * elf32-sh64.c: Likewise. | |
2833 | * elf32-v850.c: Likewise. | |
2834 | * elf64-alpha.c: Likewise. | |
2835 | * elf64-sh64.c: Likewise. | |
2836 | * elfcode.h: Likewise. | |
2837 | * elfcore.h: Likewise. | |
2838 | * elflink.h: Likewise. | |
2839 | * elfxx-mips.c: Likewise. | |
2840 | * i386os9k.c: Likewise. | |
2841 | * ieee.c: Likewise. | |
2842 | * libbfd.c: Likewise. | |
2843 | * linker.c: Likewise. | |
2844 | * mmo.c: Likewise. | |
2845 | * nlm32-alpha.c: Likewise. | |
2846 | * nlm32-i386.c: Likewise. | |
2847 | * nlm32-ppc.c: Likewise. | |
2848 | * nlm32-sparc.c: Likewise. | |
2849 | * nlmcode.h: Likewise. | |
2850 | * oasys.c: Likewise. | |
2851 | * pdp11.c: Likewise. | |
2852 | * peicode.h: Likewise. | |
2853 | * reloc.c: Likewise. | |
2854 | * som.c: Likewise. | |
2855 | * srec.c: Likewise. | |
2856 | * tekhex.c: Likewise. | |
2857 | * vms.c: Likewise. | |
2858 | * xcofflink.c: Likewise. | |
2859 | * elf64-sparc.c: Edit comment to not use "== false". | |
2860 | ||
2861 | * aoutf1.h: Don't use "? true : false". | |
2862 | * ecoff.c: Likewise. | |
2863 | * format.c: Likewise. | |
2864 | * ieee.c: Likewise. | |
2865 | * linker.c: Likewise. | |
2866 | * mmo.c: Likewise. | |
2867 | * oasys.c: Likewise. | |
2868 | ||
48fc70a2 AM |
2869 | 2002-06-23 H.J. Lu <hjl@gnu.org> |
2870 | ||
2871 | * elflink.h (elf_link_add_archive_symbols): For the default | |
2872 | version, check references with only one `@' first. | |
2873 | ||
47b7c2db AM |
2874 | 2002-06-23 John David Anglin <dave@hiauly1.hia.nrc.ca> |
2875 | ||
2876 | * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New | |
2877 | function. | |
2878 | (allocate_global_data_dlt): Don't add millicode symbols to dynamic | |
2879 | symbol table. | |
2880 | (allocate_global_data_opd, allocate_dynrel_entries): Likewise. | |
2881 | (elf64_hppa_size_dynamic_sections): Revise to use | |
2882 | elf64_hppa_mark_milli_and_exported_functions. | |
2883 | (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode | |
2884 | symbols out of dynamic symbol table. | |
2885 | ||
f5d44ba0 AM |
2886 | 2002-06-23 Alan Modra <amodra@bigpond.net.au> |
2887 | ||
bb3fff1e AM |
2888 | * Makefile.in: Regenerate. |
2889 | * libbfd.h: Regenerate. | |
2890 | * bfd-in2.h: Regenerate. | |
2891 | * configure: Regenerate. | |
2892 | * po/SRC-POTFILES.in: Regenerate. | |
2893 | ||
f5d44ba0 AM |
2894 | * elflink.h: Comment typo fixes. |
2895 | ||
2896 | 2002-06-23 H.J. Lu <hjl@gnu.org> | |
2897 | ||
2898 | * elf-bfd.h (elf_link_loaded_list): New structure. | |
2899 | (elf_link_hash_table): Add "loaded". | |
2900 | * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded". | |
2901 | * elflink.h (elf_link_check_versioned_symbol): New function. | |
2902 | (elf_link_output_extsym): Call elf_link_check_versioned_symbol. | |
2903 | ||
cc36acdf NC |
2904 | 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com> |
2905 | ||
2906 | * elflink.h (size_dynamic_sections): If the target does not | |
f5d44ba0 | 2907 | support an ELF style hash table, return true, indicating that |
cc36acdf NC |
2908 | nothing needed to be done, rather than false, indicating that the |
2909 | section's size could not be computed. | |
2910 | ||
4e5ba5b7 DB |
2911 | 2002-06-18 Dave Brolley <brolley@redhat.com> |
2912 | ||
2913 | From Catherine Moore, Michael Meissner, Dave Brolley: | |
2914 | * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c | |
2915 | * targets.c: Support bfd_elf32_frv_vec. | |
2916 | * reloc.c: Add FRV relocs. | |
2917 | * configure.in: Add support for bfd-elf32-frv-vec. | |
2918 | * config.bfd (targ_cpu): Add support for frv-*-elf. | |
2919 | * archures.c: Add frv arch and machines. | |
2920 | * Makefile.am (ALL_MACHINES): Add cpu-frv.lo. | |
2921 | (ALL_MACHINES_CFILES): Add cpu-frv.c. | |
2922 | (BFD32_BACKENDS): Add elf32-frv.lo. | |
2923 | (BFD32_BACKENDS_CFILES): Add elf32-frv.c | |
2924 | (cpu-frv.lo): New target. | |
2925 | (elf32-frv.lo): New target. | |
2926 | * cpu-frv.c: New file. | |
2927 | * elf32-frv.c: New file. | |
2928 | ||
7ece0d85 JJ |
2929 | 2002-06-18 Jakub Jelinek <jakub@redhat.com> |
2930 | ||
2931 | * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies | |
2932 | e_shnum == 0. | |
2933 | Only read the first section header if e_shoff is non-zero. | |
2934 | Don't consider e_shstrndx if there are no sections. | |
2935 | ||
57fb03ac TR |
2936 | 2002-06-17 Tom Rix <trix@redhat.com> |
2937 | ||
2938 | * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R, | |
f5d44ba0 | 2939 | R_D10V_10_PCREL_L and R_D10V_18_PCREL to use |
57fb03ac TR |
2940 | complain_overflow_bitfield. |
2941 | ||
341ca622 AM |
2942 | 2002-06-17 Alan Modra <amodra@bigpond.net.au> |
2943 | ||
767e34d1 AM |
2944 | * opncls.c (bfd_openr): Remove redundant bfd_set_error. |
2945 | (bfd_fdopenr): Likewise. | |
2946 | (bfd_openstreamr): Likewise. | |
2947 | (bfd_openw): Likewise. | |
2948 | ||
341ca622 AM |
2949 | * targets.c: Sort target vecs. |
2950 | (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec, | |
2951 | bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec, | |
2952 | bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec, | |
2953 | bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec. | |
2954 | * configure.in: Sort target vecs. Add m88kmach3_vec. | |
2955 | * configure: Regenerate. | |
2956 | ||
dfbbae4c HPN |
2957 | 2002-06-16 Hans-Peter Nilsson <hp@bitrange.com> |
2958 | ||
2959 | * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member | |
2960 | bpo_reloc_no to break sort order ties, not address of items. | |
2961 | ||
d663e1cd JL |
2962 | 2002-06-16 John David Anglin <dave@hiauly1.hia.nrc.ca> |
2963 | ||
2964 | * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment. | |
2965 | Skip excluded sections in determing __gp value. | |
2966 | (elf_hppa_final_link_relocate): Use the symbol's address in | |
2967 | R_PARISC_FPTR64 relocations that don't need an opd entry. | |
2968 | * elf64-hppa.c (allocate_dynrel_entries): Simplify code. | |
2969 | (elf64_hppa_finalize_dynreloc): Likewise. | |
2970 | (elf64_hppa_size_dynamic_sections): Move comments and fix typo. | |
2971 | (elf64_hppa_finish_dynamic_symbol): Break up assert. | |
2972 | ||
a8295218 NC |
2973 | 2002-06-14 Sergey Grigoriev <serge@leopold.Physik.Uni-Augsburg.DE> |
2974 | ||
2975 | * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte | |
2976 | alignment for .bss, .data and .text sections so that sse and sse2 | |
2977 | code will work. | |
2978 | * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. | |
2979 | ||
2980 | 2002-06013 J"orn Rennecke <joern.rennecke@superh.com> | |
5d9b5481 JR |
2981 | |
2982 | config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*, | |
2983 | sh[1234]*-elf*. | |
2984 | ||
3db4b612 JL |
2985 | 2002-06-12 John David Anglin <dave@hiauly1.hia.nrc.ca> |
2986 | ||
2cb69dd3 JL |
2987 | * elflink.h (elf_bfd_final_link): Improve error handling for missing |
2988 | dynamic sections. | |
2989 | ||
3db4b612 JL |
2990 | * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry |
2991 | for a symbol that has no output section. | |
2992 | (allocate_dynrel_entries): Correct comment. | |
2993 | (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry | |
2994 | unless we want one. | |
2995 | (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL. | |
2996 | (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols | |
2997 | with no section. Remove unnecessary parentheses. | |
2998 | ||
f3813499 TR |
2999 | 2002-06-11 Tom Rix <trix@redhat.com> |
3000 | ||
3001 | * coffcode.h (coff_compute_section_file_positions): Add data | |
3002 | section to AIX loader alignment check. | |
3003 | ||
f5d44ba0 | 3004 | * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section |
f3813499 TR |
3005 | alignment to 4 bytes. |
3006 | (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment | |
3007 | power accessor macro. | |
3008 | (do_shared_object_padding): Remove invalid assertion. | |
3009 | ||
0ebaf185 RS |
3010 | 2002-06-10 Richard Sandiford <rsandifo@redhat.com> |
3011 | ||
3012 | * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE | |
3013 | for removed output sections. | |
3014 | ||
ebe3e2d1 NC |
3015 | 2002-06-10 Geoffrey Keating <geoffk@redhat.com> |
3016 | ||
3017 | * merge.c (merge_strings): Use htab_create_alloc with calloc, not | |
3018 | htab_alloc. | |
3019 | * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise. | |
3020 | ||
0b14c2aa L |
3021 | 2002-06-08 H.J. Lu <hjl@gnu.org> |
3022 | ||
3023 | * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to | |
3024 | work around a long long bug in gcc 2.96 on mips. | |
3025 | ||
3c2bfad6 JT |
3026 | 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com> |
3027 | ||
3028 | * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo. | |
3029 | (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c. | |
3030 | Regenerate dependency lists. | |
3031 | * Makefile.in: Regenerate. | |
3032 | * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add | |
3033 | vax1knetbsd_vec to targ_selvecs. | |
3034 | * configure.in: Add vax1knetbsd_vec. | |
3035 | * configure: Regenerate. | |
3036 | * targets.c (_bfd_target_vector): Add vax1knetbsd_vec. | |
3037 | * vax1knetbsd.c: New file. | |
3038 | * vaxnetbsd.c: Update copyright years. | |
3039 | (TARGET_PAGE_SIZE): Set to 0x1000. | |
3040 | (DEFAULT_MID): Set to M_VAX4K_NETBSD. | |
3041 | ||
91149be3 JT |
3042 | 2002-06-08 Matt Thomas <matt@3am-software.com> |
3043 | ||
3044 | * libaout.h (enum machine_type): Add M_VAX4K_NETBSD. | |
3045 | ||
21e15248 AM |
3046 | 2002-06-08 Alan Modra <amodra@bigpond.net.au> |
3047 | ||
3048 | * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static. | |
3049 | ||
986b7daa AM |
3050 | 2002-06-08 Alan Modra <amodra@bigpond.net.au> |
3051 | ||
e90b95f6 AM |
3052 | * Makefile.am: Run "make dep-am". |
3053 | * Makefile.in: Regenerate. | |
3054 | ||
3f9c735e AM |
3055 | * armnetbsd.c: Replace CONST with const. |
3056 | * corefile.c: Likewise. | |
3057 | * elf32-dlx.c: Likewise. | |
3058 | * elf64-mips.c: Likewise. | |
3059 | * mmo.c: Likewise. | |
3060 | * ns32knetbsd.c: Likewise. | |
3061 | ||
986b7daa AM |
3062 | * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash |
3063 | table is elf64-sparc. | |
3064 | ||
5a659663 TS |
3065 | 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
3066 | ||
3067 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code. | |
3068 | Fix RELA addends to get not shifted in the result. Don't do special | |
3069 | handling of R_MIPS_64 for NewABI. | |
3070 | ||
9bab7074 AM |
3071 | 2002-06-07 Alan Modra <amodra@bigpond.net.au> |
3072 | ||
3073 | * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc. | |
3074 | (NAME(aout,slurp_reloc_table)): Likewise. | |
3075 | * coff-mips.c (mips_relax_section): Use bfd_zalloc. | |
3076 | * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc. | |
3077 | (xcoff_write_archive_contents_big): Likewise. | |
3078 | (xcoff_generate_rtinit): Likewise. | |
3079 | (xcoff_generate_rtinit): Likewise, and check error return. | |
3080 | * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise. | |
3081 | * coffgen.c (coff_section_symbol): Use bfd_zalloc. | |
3082 | (coff_get_normalized_symtab): Likewise. | |
3083 | (coff_make_empty_symbol): Likewise. | |
3084 | (bfd_coff_set_symbol_class): Likewise. | |
3085 | * cofflink.c (coff_link_add_symbols): Likewise. | |
3086 | * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise. | |
3087 | * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc. | |
3088 | (bfd_ecoff_write_accumulated_debug): Likewise. | |
3089 | * elf64-alpha.c (get_got_entry): Use bfd_zalloc. | |
3090 | * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise. | |
3091 | * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc. | |
3092 | * ieee.c (do_with_relocs): Use bfd_zalloc. | |
3093 | * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise. | |
3094 | * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc. | |
3095 | (NAME(aout,slurp_reloc_table)): Likewise. | |
3096 | (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd. | |
3097 | * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc. | |
3098 | * som.c (som_build_and_write_symbol_table): Likewise. | |
3099 | (som_slurp_string_table): Likewise. | |
3100 | (som_slurp_symbol_table): Likewise. | |
3101 | (som_bfd_ar_write_symbol_stuff): Likewise. | |
3102 | * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc. | |
3103 | * sunos.c (bfd_sunos_size_dynamic_sections): Likewise. | |
3104 | * tekhex.c (find_chunk): Likewise. Get rid of unused "sname". | |
3105 | * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc. | |
3106 | * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc. | |
3107 | ||
1126897b AM |
3108 | 2002-06-07 Alan Modra <amodra@bigpond.net.au> |
3109 | ||
3110 | * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with | |
3111 | "group" union. | |
3112 | (elf_group_name): Update. | |
3113 | (elf_group_id): Define. | |
3114 | (bfd_elf_set_group_contents): Declare. | |
3115 | * elf.c (elf_fake_sections): Qualify use of elf_group_name. | |
3116 | (set_group_contents): Rename to bfd_elf_set_group_contents. Remove | |
3117 | ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use | |
3118 | that sym for the signature. | |
3119 | (_bfd_elf_compute_section_file_positions): Don't call | |
3120 | set_group_contents for "ld -r" case. | |
3121 | (swap_out_syms): Use bfd_zalloc. | |
3122 | * elflink.h (elf_link_add_archive_symbols): Likewise. | |
3123 | (NAME(bfd_elf,size_dynamic_sections)): Likewise. | |
3124 | (elf_bfd_final_link): Call bfd_elf_set_group_contents. | |
3125 | ||
3fad3c7c AM |
3126 | 2002-06-07 Alan Modra <amodra@bigpond.net.au> |
3127 | ||
3128 | * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved | |
3129 | relocs in opd for non-shared too. | |
3130 | ||
10f469bf | 3131 | 2002-06-06 Jeffrey Law <law@redhat.com> |
76f99c63 JL |
3132 | |
3133 | * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting | |
3134 | relocations. | |
3135 | ||
7217313c NC |
3136 | 2002-06-06 Nick Clifton <nickc@cambridge.redhat.com> |
3137 | ||
3138 | * merge.c: Include libiberty.h. | |
3139 | * elf-strtab.c: Include libiberty.h. | |
3140 | ||
6cb22815 AM |
3141 | 2002-06-06 Elias Athanasopoulos <eathan@otenet.gr> |
3142 | ||
3143 | * peXXigen.c (pe_print_idata): Remove unused variable. | |
3144 | ||
1ed89aa9 NC |
3145 | 2002-06-06 David Heine <dlheine@tensilica.com> |
3146 | ||
3147 | * elf.c (assign_file_positions_for_segments): Remove unallocated | |
3148 | sections from the section to segment mapping for PT_LOAD segments. | |
3149 | Update comment about empty loadable segments. | |
3150 | ||
644c4c80 RS |
3151 | 2002-06-06 Richard Sandiford <rsandifo@redhat.com> |
3152 | ||
3153 | * stabs.c (_bfd_link_section_stabs): Check that the symbol offset | |
3154 | is within the .stabstr section. | |
3155 | ||
f8ecb12b AM |
3156 | 2002-06-06 Alan Modra <amodra@bigpond.net.au> |
3157 | ||
3158 | * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args | |
3159 | are "const PTR", not "const PTR *". | |
3160 | (bfd_elf32_swap_symbol_in): Likewise. | |
3161 | (bfd_elf64_swap_symbol_in): Likewise. | |
3162 | * elfcode.h (elf_swap_symbol_in): Change input args to const PTR. | |
3163 | (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in. | |
3164 | * elflink.h (elf_link_is_defined_archive_symbol): Likewise. | |
3165 | (elf_link_add_object_symbols): Likewise. | |
3166 | (elf_link_record_local_dynamic_symbol): Likewise. | |
3167 | (elf_link_input_bfd): Likewise. | |
3168 | (elf_gc_mark): Likewise. | |
3169 | (elf_reloc_symbol_deleted_p): Likewise. | |
3170 | * elf-m10200.c (mn10200_elf_relax_section): Likewise. | |
3171 | (mn10200_elf_relax_delete_bytes): Likewise. | |
3172 | (mn10200_elf_symbol_address_p): Likewise. | |
3173 | (mn10200_elf_get_relocated_section_contents): Likewise. | |
3174 | * elf-m10300.c (mn10300_elf_relax_section): Likewise. | |
3175 | (mn10300_elf_relax_section): Likewise. | |
3176 | (mn10300_elf_relax_delete_bytes): Likewise. | |
3177 | (mn10300_elf_symbol_address_p): Likewise. | |
3178 | (mn10300_elf_get_relocated_section_contents): Likewise. | |
3179 | * elf32-h8300.c (elf32_h8_relax_section): Likewise. | |
3180 | (elf32_h8_relax_delete_bytes): Likewise. | |
3181 | (elf32_h8_symbol_address_p): Likewise. | |
3182 | (elf32_h8_get_relocated_section_contents): Likewise. | |
3183 | * elf32-hppa.c (get_local_syms): Likewise. | |
3184 | * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise. | |
3185 | * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise. | |
3186 | * elf32-sh.c (sh_elf_relax_section): Likewise. | |
3187 | (sh_elf_relax_delete_bytes): Likewise. | |
3188 | (sh_elf_get_relocated_section_contents): Likewise. | |
3189 | * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise. | |
3190 | * elf64-alpha.c (elf64_alpha_relax_section): Likewise. | |
3191 | * elf64-hppa.c (elf64_hppa_check_relocs): Likewise. | |
3192 | * elf64-mmix.c (mmix_elf_relax_section): Likewise. | |
3193 | * elf64-ppc.c (get_local_syms): Likewise. | |
3194 | * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise. | |
3195 | * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. | |
3196 | ||
1ed89aa9 | 3197 | 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com> |
7a33bc10 JR |
3198 | |
3199 | * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations. | |
3200 | ||
73ff0d56 AM |
3201 | 2002-06-05 Alan Modra <amodra@bigpond.net.au> |
3202 | ||
9dce4196 AM |
3203 | * elf.c (group_signature): Swap in the whole symbol, and handle |
3204 | extracting section symbol names. | |
3205 | (setup_group): Add comment. | |
3206 | (set_group_contents): When called from objcopy or ld, arrange for | |
3207 | section contents to be written. Write group member output section | |
3208 | indices to allow objcopy to reorganize sections. | |
3209 | (_bfd_elf_copy_private_section_data): Copy group info. | |
3210 | ||
73ff0d56 AM |
3211 | * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field. |
3212 | (bfd_elf32_swap_symbol_in): Update prototype. | |
3213 | (bfd_elf64_swap_symbol_in): Likewise. | |
3214 | * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *. | |
3215 | (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in. | |
3216 | * elflink.h (elf_link_is_defined_archive_symbol): Likewise. | |
3217 | (elf_link_add_object_symbols): Likewise. | |
3218 | (elf_link_record_local_dynamic_symbol): Likewise. | |
3219 | (elf_link_input_bfd): Likewise. | |
3220 | (elf_gc_mark): Likewise. | |
3221 | (elf_reloc_symbol_deleted_p): Likewise. | |
3222 | * elf-m10200.c (mn10200_elf_relax_section): Likewise. | |
3223 | (mn10200_elf_relax_delete_bytes): Likewise. | |
3224 | (mn10200_elf_symbol_address_p): Likewise. | |
3225 | (mn10200_elf_get_relocated_section_contents): Likewise. | |
3226 | * elf-m10300.c (mn10300_elf_relax_section): Likewise. | |
3227 | (mn10300_elf_relax_section): Likewise. | |
3228 | (mn10300_elf_relax_delete_bytes): Likewise. | |
3229 | (mn10300_elf_symbol_address_p): Likewise. | |
3230 | (mn10300_elf_get_relocated_section_contents): Likewise. | |
3231 | * elf32-h8300.c (elf32_h8_relax_section): Likewise. | |
3232 | (elf32_h8_relax_delete_bytes): Likewise. | |
3233 | (elf32_h8_symbol_address_p): Likewise. | |
3234 | (elf32_h8_get_relocated_section_contents): Likewise. | |
3235 | * elf32-hppa.c (get_local_syms): Likewise. | |
3236 | * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise. | |
3237 | * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise. | |
3238 | * elf32-sh.c (sh_elf_relax_section): Likewise. | |
3239 | (sh_elf_relax_delete_bytes): Likewise. | |
3240 | (sh_elf_get_relocated_section_contents): Likewise. | |
3241 | * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise. | |
3242 | * elf64-alpha.c (elf64_alpha_relax_section): Likewise. | |
3243 | * elf64-hppa.c (elf64_hppa_check_relocs): Likewise. | |
3244 | * elf64-mmix.c (mmix_elf_relax_section): Likewise. | |
3245 | * elf64-ppc.c (get_local_syms): Likewise. | |
3246 | * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise. | |
3247 | * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. | |
3248 | * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser. | |
3249 | * elf64-alpha.c (alpha_elf_size_info): Likewise. | |
3250 | * elf64-hppa.c (hppa64_elf_size_info): Likewise. | |
3251 | * elf64-mips.c (mips_elf64_size_info): Likewise. | |
3252 | * elf64-s390.c (s390_elf64_size_info): Likewise. | |
3253 | * elf64-sparc.c (sparc64_elf_size_info): Likewise. | |
3254 | ||
53bfd6b4 MR |
3255 | 2002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl> |
3256 | ||
3257 | * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to... | |
3258 | elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here. | |
3259 | elf64-mips.c (elf_backend_ignore_discarded_relocs): Use | |
3260 | _bfd_mips_elf_ignore_discarded_relocs. | |
3261 | elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare. | |
3262 | ||
d4df96e6 L |
3263 | 2002-06-05 H.J. Lu <hjl@gnu.org> |
3264 | ||
3265 | * elfxx-mips.c (mips_elf_calculate_relocation): Call | |
3266 | _bfd_elf_rel_local_sym for STT_SECTION relocations against | |
3267 | the SEC_MERGE section. | |
3268 | ||
e61463e1 AM |
3269 | 2002-06-05 Alan Modra <amodra@bigpond.net.au> |
3270 | ||
3cac74d0 AM |
3271 | * coff-alpha.c: Update copyright date. |
3272 | * coff-mips.c: Likewise. | |
3273 | * xcoff-target.h: Likewise. | |
3274 | ||
e61463e1 AM |
3275 | * bfd-in.h: Remove "taken from the source" comment. |
3276 | * libbfd-in.h: Likewise. | |
3277 | * libcoff-in.h: Likewise. | |
3278 | * bfd-in2.h: Regenerate. | |
3279 | * libbfd.h: Regenerate. | |
3280 | * libcoff.h: Regenerate. | |
3281 | ||
3282 | * elf.c (bfd_elf_discard_group): Return true. | |
3283 | * elf-bfd.h (bfd_elf_discard_group): Declare. | |
3284 | * bfd-in.h (bfd_elf_discard_group): Don't declare here. | |
3285 | * section.c (bfd_discard_group): Rename to bfd_generic_discard_group. | |
3286 | * bfd.c (bfd_discard_group): Define. | |
3287 | * targets.c (struct bfd_target): Add _bfd_discard_group. | |
3288 | (BFD_JUMP_TABLE_LINK): Here too. | |
3289 | * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define. | |
3290 | * aout-adobe.c (aout_32_bfd_discard_group): Define. | |
3291 | * aout-target.h (MY_bfd_discard_group): Define. | |
3292 | * aout-tic30.c (MY_bfd_discard_group): Define. | |
3293 | * binary.c (binary_bfd_discard_group): Define. | |
3294 | * bout.c (b_out_bfd_discard_group): Define. | |
3295 | * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define. | |
3296 | * coffcode.h (coff_bfd_discard_group): Define. | |
3297 | * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define. | |
3298 | * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define. | |
3299 | * i386msdos.c (msdos_bfd_discard_group): Define. | |
3300 | * i386os9k.c (os9k_bfd_discard_group): Define. | |
3301 | * ieee.c (ieee_bfd_discard_group): Define. | |
3302 | * ihex.c (ihex_bfd_discard_group): Define. | |
3303 | * mmo.c (mmo_bfd_discard_group): Define. | |
3304 | * nlm-target.h (nlm_bfd_discard_group): Define. | |
3305 | * oasys.c (oasys_bfd_discard_group): Define. | |
3306 | * ppcboot.c (ppcboot_bfd_discard_group): Define. | |
3307 | * som.c (som_bfd_discard_group): Define. | |
3308 | * srec.c (srec_bfd_discard_group): Define. | |
3309 | * tekhex.c (tekhex_bfd_discard_group): Define. | |
3310 | * versados.c (versados_bfd_discard_group): Define. | |
3311 | * vms.c (vms_bfd_discard_group): Define. | |
3312 | * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define. | |
3313 | * coff64-rs6000.c (rs6000coff64_vec): Update initialiser. | |
3314 | (aix5coff64_vec): Likewise. | |
3315 | * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise. | |
3316 | ||
9cba27b2 JT |
3317 | 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com> |
3318 | ||
3319 | * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo. | |
3320 | (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c. | |
3321 | (elf32-sh64-com.lo): New dependency list. | |
3322 | * Makefile.in: Regenerate. | |
3323 | * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec) | |
3324 | (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add | |
3325 | elf32-sh64-com.lo. | |
3326 | * configure: Regenerate. | |
3327 | * elf32-sh64.c (sh64_address_in_cranges) | |
3328 | (sh64_get_contents_type, sh64_address_is_shmedia): Move to... | |
3329 | (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb): | |
3330 | (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to... | |
3331 | * elf32-sh64-com.c: ...here. New file. | |
3332 | ||
8d2c33be AM |
3333 | 2002-06-04 Alan Modra <amodra@bigpond.net.au> |
3334 | ||
3335 | * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove | |
3336 | ATTRIBUTE_UNUSED on used params. | |
3337 | * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks | |
3338 | before calling bfd_section_from_elf_index on local syms. | |
3339 | * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise. | |
3340 | ||
5b0e55b6 JT |
3341 | 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com> |
3342 | ||
3343 | * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo. | |
3344 | (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c. | |
3345 | (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo. | |
3346 | (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c. | |
3347 | (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules. | |
3348 | * Makefile.in: Regenerate. | |
3349 | * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*) | |
3350 | (sh64-*-netbsd*): New targets. | |
3351 | * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec, | |
3352 | bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec. | |
3353 | * configure: Regenerate. | |
3354 | * elf32-sh64-nbsd.c: New file. | |
3355 | * elf64-sh64-nbsd.c: New file. | |
3356 | * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec, | |
3357 | bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and | |
3358 | bfd_elf64_sh64lnbsd_vec. | |
3359 | ||
b885599b AM |
3360 | 2002-06-04 Alan Modra <amodra@bigpond.net.au> |
3361 | ||
3362 | * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups. | |
3363 | (bfd_section_from_shdr): Likewise. Set section name of group | |
3364 | sections from signature. | |
3365 | (group_signature): Split out from setup_group. Ensure symbol table | |
3366 | is available. | |
3367 | (bfd_elf_discard_group): New function. | |
3368 | (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on | |
3369 | .gnu.linkonce* sections if they are members of a group. | |
3370 | (set_group_contents): Set GRP_COMDAT flag. | |
3371 | * section.c (bfd_discard_group): New function. | |
3372 | * bfd-in.h (bfd_elf_discard_group): Declare. | |
3373 | * bfd-in2.h: Regenerate. | |
3374 | * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field. | |
3375 | (elf_linkonce_p): Define. | |
3376 | ||
90937f86 AM |
3377 | 2002-06-04 Alan Modra <amodra@bigpond.net.au> |
3378 | ||
3379 | * elf.c (bfd_section_from_shdr): Make "name" const. | |
3380 | * elf-bfd.h (elf_backend_section_from_shdr): Likewise. | |
3381 | * elf32-i370.c (i370_elf_section_from_shdr): Likewise. | |
3382 | * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise. | |
3383 | * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise. | |
3384 | * elf32-v850.c (v850_elf_section_from_shdr): Likewise. | |
3385 | * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise. | |
3386 | * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise. | |
3387 | * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise. | |
3388 | * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise. | |
3389 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise. | |
3390 | * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise. | |
3391 | ||
cf6fb9ce MR |
3392 | 2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl> |
3393 | ||
3394 | * elfxx-mips.c (ABI_64_P): Use backend's data to determine the | |
3395 | ABI. | |
3396 | ||
cedb70c5 KH |
3397 | 2002-06-02 Kazu Hirata <kazu@cs.umass.edu> |
3398 | ||
3399 | * elf32-arc.c: Fix formatting. | |
3400 | * elf32-arm.h: Likewise. | |
3401 | * elf32-cris.c: Likewise. | |
3402 | * elf32-dlx.c: Likewise. | |
3403 | * elf32-hppa.c: Likewise. | |
3404 | * elf32-i386.c: Likewise. | |
3405 | * elf32-i386qnx.c: Likewise. | |
3406 | * elf32-or32.c: Likewise. | |
3407 | * elf32-s390.c: Likewise. | |
3408 | * elf32-sh64.c: Likewise. | |
3409 | * elf32-vax.c: Likewise. | |
3410 | * elf32-xstormy16.c: Likewise. | |
3411 | * elf64-alpha.c: Likewise. | |
3412 | * elf64-mmix.c: Likewise. | |
3413 | * elf64-ppc.c: Likewise. | |
3414 | * elf64-s390.c: Likewise. | |
3415 | * elf64-sh64.c: Likewise. | |
3416 | * elf64-x86-64.c: Likewise. | |
3417 | ||
048d873d RH |
3418 | 2002-06-02 Richard Henderson <rth@redhat.com> |
3419 | ||
3420 | * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference | |
3421 | null when there are no got entries for a symbol. | |
3422 | (elf64_alpha_relax_find_tls_segment): Rearrange to avoid | |
3423 | uninitialized variable warning. | |
3424 | ||
4a67a098 RH |
3425 | 2002-06-01 Richard Henderson <rth@redhat.com> |
3426 | ||
3427 | * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for | |
3428 | undefined symbols here. | |
3429 | (elf64_alpha_relax_section): Do it here. Also test for not | |
3430 | defined in the current module. | |
3431 | (elf64_alpha_relocate_section_r): Split out of ... | |
3432 | (elf64_alpha_relocate_section): ... here. Don't dereference | |
3433 | NULL when looking up local got entries. | |
3434 | ||
f44f99a5 RH |
3435 | 2002-06-01 Richard Henderson <rth@redhat.com> |
3436 | ||
3437 | * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined | |
3438 | symbols from JSR relaxation. | |
3439 | (elf64_alpha_size_plt_section_1): New. | |
3440 | (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ... | |
3441 | (elf64_alpha_size_rela_got_1): ... here. | |
3442 | (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ... | |
3443 | (elf64_alpha_size_rela_got_section): ... here. | |
3444 | (elf64_alpha_size_plt_section): New. | |
3445 | (elf64_alpha_relax_section): Call them. | |
3446 | (elf64_alpha_size_got_sections): Remove output_bfd arg. | |
3447 | (elf64_alpha_finish_dynamic_symbol): Check gotent use_count. | |
3448 | ||
9e756d64 RH |
3449 | 2002-06-01 Richard Henderson <rth@redhat.com> |
3450 | ||
3451 | * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New. | |
3452 | (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs | |
3453 | in shared libraries. Fix DTPRELHI and TPRELHI value. | |
3454 | (INSN_ADDQ, INSN_RDUNIQ): New. | |
3455 | (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent. | |
3456 | (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend | |
3457 | argument. Reject dynamic symbols. Use LITUSE symbolic constants. | |
3458 | (elf64_alpha_relax_got_load): Rename from relax_without_lituse. | |
3459 | Handle GOTDTPREL and GOTTPREL relocations. | |
3460 | (elf64_alpha_relax_gprelhilo): New. | |
3461 | (elf64_alpha_relax_tls_get_addr): New. | |
3462 | (elf64_alpha_relax_find_tls_segment): New. | |
3463 | (elf64_alpha_relax_section): Handle TLS relocations. | |
3464 | (ALPHA_ELF_LINK_HASH_TLS_IE): New. | |
3465 | (elf64_alpha_check_relocs): Set it. | |
3466 | ||
c853d7f6 RH |
3467 | 2002-06-01 Richard Henderson <rth@redhat.com> |
3468 | ||
b646261c RH |
3469 | * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp. |
3470 | ||
c853d7f6 RH |
3471 | * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic |
3472 | check; don't suppress dynamic relocs for non-allocated sections. | |
3473 | ||
d7e41a96 RH |
3474 | * elf64-alpha.c: Remove dead code. |
3475 | ||
5f333394 AM |
3476 | 2002-05-31 Alan Modra <amodra@bigpond.net.au> |
3477 | ||
08e0ee05 AM |
3478 | * bfd-in2.h: Regenerate. |
3479 | * libbfd.h: Regenerate. | |
3480 | * po/SRC-POTFILES.in: Regenerate. | |
3481 | ||
5f333394 AM |
3482 | * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate |
3483 | space for bss .plt. | |
3484 | ||
caf47ea6 AM |
3485 | 2002-05-31 Graeme Peterson <gp@qnx.com> |
3486 | ||
3487 | * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo. | |
3488 | (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c. | |
3489 | Run "make dep-am". | |
3490 | * Makefile.in: Regenerate. | |
3491 | * config.bfd: Add i[3456]86-*-nto-qnx* support. | |
3492 | * configure.in: Add bfd_elf32_i386qnx_vec support. | |
3493 | * configure: Regenerate. | |
3494 | * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos, | |
3495 | is_contained_by_filepos, and copy_private_bfd_data_p. | |
3496 | * elf.c (assign_file_positions_for_segments): Call backend | |
3497 | set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler. | |
3498 | (IS_CONTAINED_BY_FILEPOS): Define. | |
3499 | (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS. | |
3500 | (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix. | |
3501 | Fix non-K&R call to _bfd_error_handler. | |
3502 | (_bfd_elf_copy_private_section_data): Use backend | |
3503 | copy_private_bfd_data_p. | |
3504 | * elf32-i386.c: Don't include elfxx-target.h when | |
3505 | ELF32_I386_C_INCLUDED is defined. | |
3506 | * elf32-i386qnx.c: New QNX elf backend file. | |
3507 | * elfxx-target.h: Add elf_backend_set_nonloadable_filepos, | |
3508 | elf_backend_is_contained_by_filepos, and | |
3509 | elf_backend_do_copy_private_bfd_data. | |
3510 | * targets.c: Add bfd_target bfd_elf32_i386qnx_vec. | |
3511 | ||
5bc56484 AM |
3512 | 2002-05-31 Alan Modra <amodra@bigpond.net.au> |
3513 | ||
3514 | * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define. | |
3515 | Move other similar defines to start of file. | |
3516 | ||
1b164155 TR |
3517 | 2002-05-30 Tom Rix <trix@redhat.com> |
3518 | ||
3519 | * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA. | |
3520 | * coff64-rs6000.c (xcoff64_rtype2howto): Same. | |
3521 | ||
3765b1be RH |
3522 | 2002-05-30 Richard Henderson <rth@redhat.com> |
3523 | ||
3524 | * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD, | |
3525 | ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New. | |
3526 | (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove. | |
3527 | (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove. | |
3528 | (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated. | |
3529 | (struct alpha_elf_obj_tdata): Rename total_got_entries and | |
3530 | n_local_got_entries to total_got_size and local_got_size. | |
3531 | (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs. | |
3532 | (alpha_got_entry_size): New. | |
3533 | (elf64_alpha_relax_with_lituse): Use it. | |
3534 | (elf64_alpha_relax_without_lituse): Likewise. | |
3535 | (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES. | |
3536 | (get_got_entry): New. | |
3537 | (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize. | |
3538 | (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask. | |
3539 | (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type. | |
3540 | (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise. | |
3541 | (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size. | |
3542 | (elf64_alpha_calc_got_offsets): Likewise. | |
3543 | (alpha_dynamic_entries_for_reloc): New. | |
3544 | (elf64_alpha_calc_dynrel_sizes): Use it. | |
3545 | (elf64_alpha_size_dynamic_sections): Likewise. | |
3546 | (elf64_alpha_relocate_section): Handle TLS relocations. | |
3547 | * reloc.c: Add Alpha TLS relocations. | |
3548 | * bfd-in2.h, libbfd.h: Rebuild. | |
3549 | ||
5e226794 NC |
3550 | 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de> |
3551 | ||
3552 | * peXXigen.c (pe_print_idata): Remove double printed | |
3553 | import table lines; add Bound-To comment. | |
3554 | ||
90ace9e9 JT |
3555 | 2002-05-29 Matt Thomas <matt@3am-software.com> |
3556 | ||
3557 | * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo. | |
3558 | (BFD32_BACKENDS_CFILES): Add elf32-vax.c. | |
3559 | (elf32-vax.lo): New rule. | |
3560 | * Makefile.in: Regenerate. | |
3561 | * configure.in (bfd_elf32_vax_vec) | |
3562 | (vaxnetbsd_vec): New vectors. | |
3563 | * configure: Regenerate. | |
3564 | * config.bfd (vax-*-netbsdelf*) | |
3565 | (vax-*-netbsdaout*) | |
3566 | (vax-*-netbsd*): New targets. | |
3567 | * elf32-vax.c: New file. | |
3568 | * reloc.c: Add VAX relocations. | |
3569 | * bfd-in2.h: Regenerate. | |
3570 | * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec. | |
3571 | ||
4a253e81 JT |
3572 | 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com> |
3573 | ||
3574 | * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec | |
3575 | and bfd_elf32_bigarm_vec to targ_selvecs. | |
3576 | ||
6e7c73dd CF |
3577 | 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de> |
3578 | ||
3579 | * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables | |
3580 | with auto-imported symbols. | |
3581 | ||
8afb0e02 NC |
3582 | 2002-05-29 Adam Nemet <anemet@lnxw.com> |
3583 | ||
3584 | * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue | |
3585 | sections only record bfd. | |
9bab7074 | 3586 | (bfd_elf32_arm_add_glue_sections_to_bfd): New function. |
8afb0e02 | 3587 | * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it. |
9bab7074 | 3588 | * bfd-in2.h: Regenerate. |
8afb0e02 | 3589 | |
a95653f5 NC |
3590 | 2002-05-28 Nick Clifton <nickc@cambridge.redhat.com> |
3591 | ||
3592 | * syms.c (_bfd_stab_section_find_nearest_line): Move | |
3593 | declaration and initialisation of saw_line and saw_func out of | |
3594 | for loop. | |
3595 | ||
7cdc5bba AM |
3596 | 2002-05-29 Alan Modra <amodra@bigpond.net.au> |
3597 | ||
3598 | * elf64-ppc.c (ppc64_elf_get_symbol_info): New function. | |
3599 | (bfd_elf64_get_symbol_info): Define. | |
3600 | * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef. | |
3601 | ||
4c7aad1c AM |
3602 | 2002-05-29 Andrey Volkov <avolkov@transas.com> |
3603 | ||
3604 | * cpu-h8300.c: Make default h8300 machine first in machine list. | |
3605 | ||
d172d4ba NC |
3606 | 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net> |
3607 | ||
3608 | * config.bfd: Added DLX configuraton. | |
3609 | * Makefile.am: Added DLX configuraton. | |
3610 | * configure.in: Added DLX configuraton. | |
3611 | * archures.c: Add DLX architecure. | |
3612 | * reloc.c: Add DLX relocs. | |
3613 | * targets.c: Added DLX target vector. | |
3614 | * configure: Regenerate. | |
3615 | * Makefile.in: Regenreate. | |
3616 | * bfd-in2.h: Regenreate. | |
3617 | * elf32-dlx.c: New file: Support DLX target. | |
3618 | * cpu-dlx.c: New file: Support DLX target. | |
3619 | ||
d1329ca3 AM |
3620 | 2002-05-25 Alan Modra <amodra@bigpond.net.au> |
3621 | ||
428d0de3 AM |
3622 | * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting. |
3623 | ||
d1329ca3 AM |
3624 | * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change. |
3625 | (ppc64_elf_check_relocs): Don't set up function descriptor symbol | |
3626 | strings to point inside function code sym string. | |
3627 | (func_desc_adjust): Likewise. | |
3628 | (ppc64_elf_hide_symbol): Rewrite code to look up function code sym. | |
3629 | ||
3bab7989 ML |
3630 | 2002-05-24 Michal Ludvig <mludvig@suse.cz> |
3631 | ||
3632 | * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added. | |
3633 | (elf64_x86_64_grok_psinfo): Added. | |
3634 | ||
436e8db0 NC |
3635 | 2002-05-24 TAMURA Kent <kent@netbsd.org> |
3636 | ||
3637 | * config.bfd: Add a target for i386-netbsdpe. | |
3638 | ||
ea1e4b0d AM |
3639 | 2002-05-24 Alan Modra <amodra@bigpond.net.au> |
3640 | ||
3641 | * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func | |
3642 | and is_func_descriptor. | |
3643 | (func_desc_adjust): Hide function code sym in shared libs unless | |
3644 | there is a matching exported function descriptor sym. | |
3645 | ||
13ae64f3 JJ |
3646 | 2002-05-23 Jakub Jelinek <jakub@redhat.com> |
3647 | ||
3648 | * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL | |
3649 | for symbols from SHF_TLS section. | |
3650 | (_bfd_elf_print_private_bfd_data): Add PT_TLS. | |
3651 | (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections. | |
3652 | (map_sections_to_segments): Build PT_TLS segment if necessary. | |
3653 | (assign_file_positions_for_segments): Likewise. | |
3654 | (get_program_header_size): Account for PT_TLS segment. | |
3655 | (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from | |
3656 | SEC_THREAD_LOCAL sections to STT_TLS. | |
3657 | * reloc.c: Add 386 and IA-64 TLS relocs. | |
3658 | * section.c (SEC_THREAD_LOCAL): Define. | |
3659 | (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS): | |
3660 | Remove. | |
3661 | * elflink.h (elf_link_add_object_symbols): Support .tcommon. | |
3662 | (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS | |
3663 | unconditionally. | |
3664 | (struct elf_final_link_info): Add first_tls_sec. | |
3665 | (elf_bfd_final_link): Set first_tls_sec. | |
3666 | Compute elf_hash_table (info)->tls_segment. | |
3667 | (elf_link_output_extsym): Handle STT_TLS symbols. | |
3668 | (elf_link_input_bfd): Likewise. | |
3669 | * syms.c (BSF_THREAD_LOCAL): Define. | |
3670 | * bfd-in2.h: Rebuilt. | |
3671 | * libbfd.h: Rebuilt. | |
3672 | * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff, | |
3673 | elf_i386_mkobject, elf_i386_object_p): New functions. | |
3674 | (elf_howto_table): Add TLS relocs. | |
3675 | (elf_i386_reloc_type_lookup): Support TLS relocs. | |
3676 | (elf_i386_info_to_howto_rel): Likewise. | |
3677 | (struct elf_i386_link_hash_entry): Add tls_type. | |
3678 | (struct elf_i386_obj_tdata): New. | |
3679 | (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type): | |
3680 | New macros. | |
3681 | (struct elf_i386_link_hash_table): Add tls_ldm_got. | |
3682 | (link_hash_newfunc): Clear tls_type. | |
3683 | (elf_i386_check_relocs): Support TLS relocs. | |
3684 | (elf_i386_gc_sweep_hook): Likewise. | |
3685 | (allocate_dynrelocs): Likewise. | |
3686 | (elf_i386_size_dynamic_sections): Likewise. | |
3687 | (elf_i386_relocate_section): Likewise. | |
3688 | (elf_i386_finish_dynamic_symbol): Likewise. | |
3689 | (bfd_elf32_mkobject, elf_backend_object_p): Define. | |
3690 | * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset, | |
3691 | dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done, | |
3692 | want_tprel, want_dtpmod, want_dtprel. | |
3693 | (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions. | |
3694 | (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to | |
3695 | R_IA64_LTOFF_TPREL22. | |
3696 | (elf_code_to_howto_index): Add TLS relocs. | |
3697 | (elfNN_ia64_check_relocs): Support TLS relocs. | |
3698 | (allocate_global_data_got): Account for TLS .got data. | |
3699 | (allocate_dynrel_entries): Account for TLS dynamic relocations. | |
3700 | (elfNN_ia64_install_value): Supprt TLS relocs. | |
3701 | (set_got_entry): Support TLS relocs. | |
3702 | (elfNN_ia64_relocate_section): Likewise. | |
3703 | ||
c62e1cc3 NC |
3704 | 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com> |
3705 | ||
3706 | * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb | |
3707 | BLX reloc round the relocation up rather than down. | |
3708 | * coff-arm.c (coff_arm_relocate_section): Likewise. | |
3709 | ||
c5a43a5d L |
3710 | 2002-05-21 H.J. Lu (hjl@gnu.org) |
3711 | ||
3712 | * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple | |
3713 | definition. | |
3714 | ||
afbe61cf AM |
3715 | 2002-05-22 Alan Modra <amodra@bigpond.net.au> |
3716 | ||
3717 | * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt. | |
3718 | (ppc64_elf_relocate_section): Handle unresolved relocs in opd. | |
3719 | ||
9c07fe7c AM |
3720 | 2002-05-22 Alan Modra <amodra@bigpond.net.au> |
3721 | ||
3722 | * elf64-ppc.c (ppc64_elf_relocate_section): Return false for | |
3723 | unresolved relocs. | |
3724 | (ppc64_elf_size_dynamic_sections): Check for splt NULL. | |
3725 | ||
21611032 TS |
3726 | 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
3727 | ||
c5cd6d62 | 3728 | * bfd.c (bfd_get_arch_size): Remove bfd_set_error call for |
21611032 TS |
3729 | non-ELF targets. |
3730 | ||
41241523 TS |
3731 | 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
3732 | ||
3733 | * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return | |
3734 | an error value. | |
3735 | * elflink.h (elf_link_output_relocs): Likewise. Improve error message. | |
3736 | return with false on error. | |
3737 | (elf_link_input_bfd): Check reloc_emitter return value. | |
3738 | ||
658f2588 JT |
3739 | 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com> |
3740 | ||
3741 | * config.bfd (armeb-*-netbsdelf*): New target. | |
3742 | ||
c862ae31 AM |
3743 | 2002-05-20 Alan Modra <amodra@bigpond.net.au> |
3744 | ||
3745 | * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms | |
3746 | at the plt call stub. | |
3747 | ||
6dd14845 TS |
3748 | 2002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
3749 | ||
3750 | * cpu-mips.c (mips_compatible): Don't try to check machine | |
3751 | compatibility. | |
3752 | ||
a58d9c34 TR |
3753 | 2002-05-18 Tom Rix <trix@redhat.com> |
3754 | ||
3755 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent. | |
3756 | ||
ef60b7ff AM |
3757 | 2002-05-17 Alan Modra <amodra@bigpond.net.au> |
3758 | ||
3759 | * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting. | |
3760 | (ppc64_elf_relocate_section): Don't warn about reloc overflow when | |
3761 | we've already warned about an undefined symbol. Report more | |
3762 | detail on reloc errors. | |
3763 | ||
a703a6ea AM |
3764 | 2002-05-17 Alan Modra <amodra@bigpond.net.au> |
3765 | ||
3766 | * acinclude.m4 (AM_INSTALL_LIBBFD): New. | |
3767 | * configure.in: Invoke AM_INSTALL_LIBBFD. | |
3768 | * Makefile.am (install-data-local): Revert 2002-05-13. Move to.. | |
3769 | (install_libbfd): .. New target. | |
3770 | (uninstall_libbfd): Likewise. | |
3771 | (install-bfdlibLTLIBRARIES): Likewise. | |
3772 | (uninstall-bfdlibLTLIBRARIES): Likewise. | |
3773 | (bfdlibdir): New. | |
3774 | (bfdincludedir): New. | |
3775 | (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES. | |
3776 | * aclocal.m4: Regenerate. | |
3777 | * configure: Regenerate. | |
3778 | * Makefile.in: Regenerate. | |
3779 | ||
2c13d98b NC |
3780 | 2002-05-17 Stuart Balfour <sbalfour@cisco.com> |
3781 | ||
3782 | * hash.c (bfd_hash_lookup): Remove computation of len from inside | |
3783 | hash loop. | |
3784 | ||
629936c5 NC |
3785 | 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com> |
3786 | ||
3787 | * config.bfd: Add targets for sh64-linux (little endian and | |
3788 | big endian). | |
3789 | ||
e4cf60a8 NC |
3790 | 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be> |
3791 | ||
3792 | * peXXigen.c (pe_print_idata): Do not assume that the first thunk | |
3793 | is located in the same section as the import table. Instead | |
3794 | check, and if necessary load the section containing the thunk. | |
3795 | ||
d1e66cd4 NC |
3796 | 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com> |
3797 | ||
3798 | * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with | |
ea1e4b0d AM |
3799 | bfd_bread. |
3800 | (xcoff64_core_file_matches_executable_p): Replace bfd_read | |
3801 | with bfd_bread. | |
d1e66cd4 | 3802 | |
2d653fc7 AM |
3803 | 2002-05-15 Alan Modra <amodra@bigpond.net.au> |
3804 | ||
3805 | * aix5ppc-core.c: Warning fixes. | |
3806 | * aout-adobe.c (aout_32_bfd_link_just_syms): Define. | |
3807 | * aout-target.h (MY_bfd_link_just_syms): Define. | |
3808 | * aout-tic30.c (MY_bfd_link_just_syms): Define. | |
3809 | * bfd.c (bfd_link_just_syms): Define. | |
3810 | * binary.c (binary_bfd_link_just_syms): Define. | |
3811 | * bout.c (b_out_bfd_link_just_syms): Define. | |
3812 | * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer. | |
3813 | * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise. | |
3814 | * coffcode.h (coff_bfd_link_just_syms): Define. | |
3815 | * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS. | |
3816 | (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS. | |
3817 | (_bfd_elf_link_just_syms): Declare. | |
3818 | * elf.c (_bfd_elf_link_just_syms): New function. | |
3819 | * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that | |
3820 | sections haven't already been discarded by the linker. | |
3821 | * elflink.h (elf_link_add_object_symbols): Likewise for stab | |
3822 | sections and SEC_MERGE sections. | |
3823 | (elf_bfd_discard_info): Similarly here. | |
3824 | * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define. | |
3825 | * i386msdos.c (msdos_bfd_link_just_syms): Define. | |
3826 | * i386os9k.c (os9k_bfd_link_just_syms): Define. | |
3827 | * ieee.c (ieee_bfd_link_just_syms): Define. | |
3828 | * ihex.c (ihex_bfd_link_just_syms): Define. | |
3829 | * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define. | |
3830 | (_bfd_generic_link_just_syms): Declare. | |
3831 | * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define. | |
3832 | * linker.c (_bfd_generic_link_just_syms): New function. | |
3833 | * mmo.c (mmo_bfd_link_just_syms): Define. | |
3834 | * nlm-target.h (nlm_bfd_link_just_syms): Define. | |
3835 | * oasys.c (oasys_bfd_link_just_syms): Define. | |
3836 | * ppcboot.c (ppcboot_bfd_link_just_syms): Define. | |
3837 | * som.c (som_bfd_link_just_syms): Define. | |
3838 | * srec.c (srec_bfd_link_just_syms): Define. | |
3839 | * targets.c (struct bfd_target): Add _bfd_link_just_syms. | |
3840 | (BFD_JUMP_TABLE_LINK): And here. | |
3841 | * tekhex.c (tekhex_bfd_link_just_syms): Define. | |
3842 | * versados.c (versados_bfd_link_just_syms): Define. | |
3843 | * vms.c (vms_bfd_link_just_syms): Define. | |
3844 | * libbfd.h: Regenerate. | |
3845 | * bfd-in2.h: Regenerate. | |
3846 | ||
cb7394f2 TS |
3847 | 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
3848 | ||
3849 | * elf32-mips.c: Remove superfluous definitions copied from | |
3850 | elfxx-mips.c. | |
3851 | (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the | |
3852 | SGIish vectors to check the special case. | |
3853 | (mips_elf_hi16_reloc): Fix comment. | |
3854 | (mips_elf_got16_reloc): Likewise. | |
3855 | (_bfd_mips_elf32_gprel16_reloc): Likewise. | |
3856 | (elf_reloc_map): Code cleanup. | |
3857 | (mips_reloc_map): Add comment. | |
3858 | (bfd_elf23_bfd_reloc_type_lookup): Code cleanup. | |
3859 | (mips_elf32_rtype_to_howto): Likewise. | |
3860 | (mips_elf32_discard_info): Likewise. | |
3861 | (elf32_mips_irix_compat): Invert logic: Only SGIish vectors | |
3862 | lead to IRIX compatibility now. | |
3863 | ||
8dc1a139 TS |
3864 | 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
3865 | ||
3866 | * elfxx-mips.c: Call it IRIX, not Irix in comments. | |
3867 | ||
2051e1b5 JT |
3868 | 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com> |
3869 | ||
3870 | * config.bfd (shle-*-netbsdelf*): Add target which includes | |
3871 | sh64 support. | |
3872 | ||
83954261 AM |
3873 | 2002-05-13 David Edelsohn <edelsohn@gnu.org> |
3874 | ||
3875 | * configure.in: Revert 2002-04-07. Instead, auto-configure | |
3876 | HAVE_ST_C_IMPL. | |
3877 | * configure: Regenerate. | |
3878 | * config.in: Regenerate. | |
3879 | * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL | |
3880 | or AIX_5_CORE. | |
3881 | ||
a9bf1154 NC |
3882 | 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br> |
3883 | ||
3884 | * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd | |
3885 | corefiles as well.2 | |
3886 | * configure: Regenerate. | |
3887 | ||
3129eb7a AM |
3888 | 2002-05-13 Alan Modra <amodra@bigpond.net.au> |
3889 | ||
3890 | * Makefile.am (install-data-local): Install headers to | |
3891 | $(exec_prefix)/include. | |
3892 | * Makefile.in: Regenerate. | |
3893 | ||
a9a32010 DJ |
3894 | 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de> |
3895 | Daniel Jacobowitz <drow@mvista.com> | |
3896 | ||
3897 | * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't | |
3898 | map BFD_RELOC_RVA. | |
3899 | ||
3900 | 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br> | |
690cc98b NC |
3901 | |
3902 | * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*, | |
3903 | hppa*-*-openbsd*): New targets. | |
3904 | * configure.in (alpha*-*-openbsd*): Set COREFILE. | |
3905 | * configure: Regenerate. | |
3906 | ||
f1f0d9ab TR |
3907 | 2002-05-10 Tom Rix <trix@redhat.com> |
3908 | ||
ea1e4b0d | 3909 | * coff64-rs6000.c (xcoff64_reloc_type_br): New function for |
f1f0d9ab TR |
3910 | xcoff64_ppc_relocate_section. |
3911 | * coff-rs6000.c : Extern common xcoff_reloc_type functions. | |
3912 | * libxcoff.h: Common xcoff_reloc_type function declaration. | |
3913 | ||
c432ba1a AM |
3914 | 2002-05-10 Alan Modra <amodra@bigpond.net.au> |
3915 | ||
16a10388 | 3916 | * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks |
90937f86 | 3917 | added in 2002-05-09 commit. |
16a10388 | 3918 | |
c432ba1a AM |
3919 | * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04, |
3920 | don't look for stubs on all undefined syms. | |
3921 | ||
4a335f3d AM |
3922 | 2002-05-09 Alan Modra <amodra@bigpond.net.au> |
3923 | ||
8fc39d5d AM |
3924 | * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete. |
3925 | (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or | |
3926 | pcrel_offset. | |
3927 | ||
4a335f3d AM |
3928 | * elf32-i386.c (elf_howto_table): Comments. |
3929 | (elf_i386_relocate_section): Handle more relocs for relocatable | |
3930 | linking and against SEC_MERGE sections. | |
3931 | ||
41fcb14e AM |
3932 | 2002-05-08 Alan Modra <amodra@bigpond.net.au> |
3933 | ||
3934 | * elf32-ppc.c (ppc_elf_create_got): New function. | |
3935 | (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before | |
ea1e4b0d | 3936 | _bfd_elf_create_dynamic_sections. Correct .plt flags. |
41fcb14e AM |
3937 | (ppc_elf_check_relocs): Use ppc_elf_create_got in place of |
3938 | _bfd_elf_create_got_section. | |
3939 | ||
b491616a AM |
3940 | 2002-05-07 Alan Modra <amodra@bigpond.net.au> |
3941 | ||
3942 | * elf-bfd.h (struct elf_backend_data): Add rela_normal. | |
3943 | * elfxx-target.h (elf_backend_rela_normal): Define. | |
3944 | (elfNN_bed): Init rela_normal. | |
3945 | * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment | |
3946 | for section symbols here if rela_normal. Simplify abs section test. | |
3947 | * elf-m10200.c (mn10200_elf_relocate_section): If relocatable, | |
3948 | return immediately. Remove code handling relocatable linking. | |
3949 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
3950 | * elf32-fr30.c (fr30_elf_relocate_section): Likewise. | |
3951 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
3952 | * elf32-i860.c (elf32_i860_relocate_section): Likewise. | |
3953 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
3954 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
3955 | * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. | |
3956 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
3957 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
3958 | * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. | |
3959 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
3960 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
3961 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
3962 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
3963 | * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL. | |
3964 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
3965 | * elf-m10200.c (elf_backend_rela_normal): Define. | |
3966 | * elf-m10300.c (elf_backend_rela_normal): Define. | |
3967 | * elf32-fr30.c (elf_backend_rela_normal): Define. | |
3968 | * elf32-i370.c (elf_backend_rela_normal): Define. | |
3969 | * elf32-i860.c (elf_backend_rela_normal): Define. | |
3970 | * elf32-m68k.c (elf_backend_rela_normal): Define. | |
3971 | * elf32-mcore.c (elf_backend_rela_normal): Define. | |
3972 | * elf32-openrisc.c (elf_backend_rela_normal): Define. | |
3973 | * elf32-ppc.c (elf_backend_rela_normal): Define. | |
3974 | * elf32-s390.c (elf_backend_rela_normal): Define. | |
3975 | * elf32-xstormy16.c (elf_backend_rela_normal): Define. | |
3976 | * elf64-ppc.c (elf_backend_rela_normal): Define. | |
3977 | * elf64-s390.c (elf_backend_rela_normal): Define. | |
3978 | * elf64-x86-64.c (elf_backend_rela_normal): Define. | |
3979 | * elfxx-ia64.c (elf_backend_rela_normal): Define. | |
3980 | * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL. | |
3981 | * elf32-m32r.c (elf_backend_rela_normal): Likewise. | |
3982 | ||
df212a7e NC |
3983 | 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com> |
3984 | ||
3985 | * elf32-arm.h (elf32_arm_final_link_relocate): Convert | |
3986 | 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets. | |
3987 | ||
3decf53c AM |
3988 | 2002-05-06 Alan Modra <amodra@bigpond.net.au> |
3989 | ||
3990 | * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset | |
3991 | when not relocatable. Fix reloc_emitter call for K&R. | |
3992 | ||
f46c2da6 AM |
3993 | 2002-05-04 Alan Modra <amodra@bigpond.net.au> |
3994 | ||
3995 | * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code | |
3996 | reloading local sym addend mistakenly removed in 2002-05-01 change. | |
3997 | ||
3998 | * dwarf2.c (struct line_head): Make prologue_length a bfd_vma. | |
3999 | (read_abbrevs): Change "offset" param to bfd_vma. | |
4000 | (parse_comp_unit): Change "version" and addr_size to unsigned ints. | |
4001 | Change "abbrev_offset" to bfd_vma. | |
4002 | (read_indirect_string): Use correct conversion chars in error | |
4003 | message format string, cast bfd_vma's to unsigned long. | |
4004 | (read_abbrevs): Likewise. | |
4005 | (read_attribute_value): Likewise. | |
4006 | (decode_line_info): Likewise. | |
4007 | (scan_unit_for_functions): Likewise. | |
4008 | (parse_comp_unit): Likewise. | |
4009 | ||
59862849 TR |
4010 | 2002-05-04 Tom Rix <trix@redhat.com> |
4011 | ||
4012 | * coffswap.h (coff_swap_reloc_in): Remove XCOFF support. | |
4013 | (coff_swap_reloc_out): Same. | |
4014 | * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h. | |
4015 | (xcoff_swap_reloc_out): Same. | |
4016 | (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special | |
4017 | case some 16 bit relocs. Add reloc value to output. | |
4018 | (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit | |
ea1e4b0d | 4019 | R_RBR. Improve names. |
59862849 TR |
4020 | (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS. |
4021 | (bfd_xcoff_backend_data): Update with new reloc swap names. | |
4022 | (bfd_pmac_xcoff_backend_data) : Same. | |
4023 | * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h. | |
4024 | (xcoff64_swap_reloc_out): Same. | |
ea1e4b0d | 4025 | (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit |
59862849 | 4026 | R_POS. Add reloc value to output. |
ea1e4b0d AM |
4027 | (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16 |
4028 | bit R_RBR. Improve names, masks. | |
59862849 TR |
4029 | (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS. |
4030 | (bfd_xcoff_backend_data): Update with new reloc swap names. | |
4031 | (bfd_xcoff_aix5_backend_data) : Same. | |
4032 | ||
b4655ea9 AM |
4033 | 2002-05-04 Alan Modra <amodra@bigpond.net.au> |
4034 | ||
4035 | * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add | |
4036 | bfd_count top_index, input_list, all_local_syms. | |
4037 | (elf32_hppa_setup_section_lists): New function, split from | |
4038 | elf32_hppa_size_stubs. | |
4039 | (elf32_hppa_next_input_section): Likewise. | |
4040 | (group_sections): Likewise. | |
4041 | (get_local_syms): Likewise. | |
4042 | (elf32_hppa_size_stubs): Adjust for split out functions. Look for | |
4043 | stubs on undefined syms too. | |
4044 | (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*. | |
8fc39d5d | 4045 | Only access htab elf fields when we have an elf hash table. |
b4655ea9 AM |
4046 | * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare. |
4047 | (elf32_hppa_next_input_section): Declare. | |
4048 | ||
301e3139 AM |
4049 | 2002-05-04 Bob Byrnes <byrnes@curl.com> |
4050 | ||
4051 | * opncls.c (_bfd_new_bfd_contained_in): Check return value of | |
4052 | _bfd_new_bfd. | |
4053 | ||
7c5fcef7 L |
4054 | 2002-05-03 H.J. Lu (hjl@gnu.org) |
4055 | ||
4056 | * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local. | |
4057 | (mips_elf_link_hash_newfunc): Initialize forced_local to false. | |
4058 | (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol | |
4059 | to hide a global symbol. | |
4060 | (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set | |
ea1e4b0d | 4061 | forced_local to true. |
7c5fcef7 | 4062 | |
84de6048 RH |
4063 | 2002-05-02 Richard Henderson <rth@redhat.com> |
4064 | ||
4065 | * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs | |
4066 | vs SHN_UNDEF to zero. | |
4067 | ||
805fc799 AM |
4068 | 2002-05-02 Alan Modra <amodra@bigpond.net.au> |
4069 | ||
c061c2d8 AM |
4070 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a |
4071 | 16 bit reloc. | |
4072 | <R_PPC64_SECTOFF_DS>: Likewise. | |
4073 | (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to | |
4074 | SECTOFF reloc. | |
4075 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct. | |
4076 | (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to | |
4077 | SECTOFF reloc. | |
4078 | ||
805fc799 AM |
4079 | * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete. |
4080 | (ppc64_elf_ha_reloc): New function. | |
4081 | (ppc64_elf_brtaken_reloc): New function. | |
4082 | (ppc64_elf_sectoff_reloc): New function. | |
4083 | (ppc64_elf_sectoff_ha_reloc): New function. | |
4084 | (ppc64_elf_toc_reloc): New function. | |
4085 | (ppc64_elf_toc_ha_reloc): New function. | |
4086 | (ppc64_elf_toc64_reloc): New function. | |
4087 | (ppc64_elf_unhandled_reloc): New function. | |
4088 | (ppc64_elf_howto_raw): Use the above. | |
4089 | <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset. | |
4090 | <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask. | |
4091 | <R_PPC64_SECTOFF_DS>: Likewise. | |
4092 | (IS_ABSOLUTE_RELOC): Update. | |
4093 | (struct ppc_link_hash_table): Add have_undefweak. | |
4094 | (ppc64_elf_link_hash_table_create): Init. | |
4095 | (func_desc_adjust): Set have_undefweak. | |
4096 | (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only | |
4097 | add the .sfpr blr when have_undefweak. | |
4098 | (ppc64_elf_setup_section_lists): Check hash table flavour. | |
4099 | (ppc64_elf_next_input_section): Move output_section->owner test to | |
4100 | ppc64elf.em. | |
4101 | (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param | |
4102 | and relocatable test. Return TOCstart and don't set elf_gp. | |
4103 | (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch | |
4104 | offset calculation. Add assert on weak sym branch tweaks. | |
4105 | * elf64-ppc.h (ppc64_elf_set_toc): Delete. | |
4106 | (ppc64_elf_toc): Declare. | |
4107 | (ppc64_elf_next_input_section): Update. | |
ea1e4b0d | 4108 | |
818c39a3 AM |
4109 | 2002-05-01 Alan Modra <amodra@bigpond.net.au> |
4110 | ||
4111 | * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL | |
4112 | file_name. | |
4113 | ||
721956f4 AM |
4114 | 2002-05-01 Alan Modra <amodra@bigpond.net.au> |
4115 | ||
4116 | * elf64-ppc.c (CROR_151515, CROR_313131): Define. | |
4117 | (ppc64_elf_relocate_section): Use them. Don't look for plt calls | |
4118 | on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt | |
4119 | call branches. Correct undefined weak destination. | |
4120 | (ppc64_elf_func_desc_adjust): Always create at least one blr in | |
4121 | .sfpr, and correct case where either only savef* or restf* is | |
4122 | needed. | |
4123 | ||
4124 | Long branch stubs, multiple stub sections. | |
4125 | * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare. | |
4126 | (ppc64_elf_next_input_section): Declare. | |
4127 | * elf64-ppc.c: Move linker-only prototypes. | |
4128 | (STUB_SUFFIX): Define. | |
4129 | (enum ppc_stub_type): New. | |
4130 | (struct ppc_stub_hash_entry): New. | |
4131 | (struct ppc_branch_hash_entry): New. | |
4132 | (struct ppc_link_hash_entry): Add stub_cache, oh. | |
4133 | (struct ppc_link_hash_table): Add stub_hash_table etc. Remove | |
4134 | sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration. | |
4135 | Rename plt_overflow to stub_error. | |
4136 | (ppc_stub_hash_lookup): Define. | |
4137 | (ppc_branch_hash_lookup): Define. | |
4138 | (stub_hash_newfunc): New function. | |
4139 | (branch_hash_newfunc): New function. | |
4140 | (link_hash_newfunc): Init new fields. | |
4141 | (ppc64_elf_link_hash_table_create): Likewise. | |
4142 | (ppc64_elf_link_hash_table_free): New function. | |
4143 | (ppc_stub_name): New function. | |
4144 | (ppc_get_stub_entry): New function. | |
4145 | (ppc_add_stub): New function. | |
4146 | (create_linkage_sections): Use bfd_make_section_anyway. Create | |
4147 | .branch_lt and .rela.branch_lt sections. Don't create .stub. | |
4148 | (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*, | |
4149 | and set up for plt call stubs. Link func and func desc syms. | |
4150 | (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24. | |
4151 | (func_desc_adjust): Avoid hash lookup when func desc sym available | |
4152 | via shortcut, and set links when processing. | |
4153 | (ppc64_elf_hide_symbol): Likewise. | |
4154 | (allocate_dynrelocs): Don't allocate stub section here. | |
4155 | (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt. | |
4156 | Remove sstub code. | |
4157 | (ppc_type_of_stub): New function. | |
4158 | (build_one_stub): Delete. | |
4159 | (ppc_build_one_stub): New function. | |
4160 | (ppc_size_one_stub): New function. | |
4161 | (ppc64_elf_setup_section_lists): New function. | |
4162 | (ppc64_elf_next_input_section): New function. | |
4163 | (group_sections): New function. | |
4164 | (get_local_syms): New function. | |
4165 | (ppc64_elf_size_stubs): Rewrite. | |
4166 | (ppc64_elf_build_stubs): Rewrite. | |
4167 | (ppc64_elf_relocate_section): Look up stub entry for REL24 | |
4168 | relocs. Don't propagate REL14* to dynamic objects. Look for long | |
4169 | branch stubs if REL14* or REL24 relocs won't reach. | |
4170 | (bfd_elf64_bfd_link_hash_table_free): Define. | |
4171 | ||
09c2219b MM |
4172 | 2002-04-30 Mark Mitchell <mark@codesourcery.com> |
4173 | ||
c5cd6d62 | 4174 | * config.bfd: Add support for powerpc-*-windiss. |
09c2219b | 4175 | |
07b678c0 TR |
4176 | 2002-04-30 Tom Rix <trix@redhat.com> |
4177 | ||
4178 | * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT | |
4179 | symbol names into the hash table. | |
4180 | ||
dbe341c6 TR |
4181 | 2002-04-28 Tom Rix <trix@redhat.com> |
4182 | ||
4183 | * coff-rs6000.c (xcoff_calculate_relocation) : Function table for | |
ea1e4b0d | 4184 | calulating relocations. |
dbe341c6 | 4185 | (xcoff_complain_overflow) : Function table for relocation errors. |
ea1e4b0d AM |
4186 | (xcoff_ppc_relocate_section): Use relocation and complain function |
4187 | tables. | |
4188 | (xcoff_complain_overflow_unsigned_func): New complain function. | |
dbe341c6 TR |
4189 | (xcoff_complain_overflow_signed_func): Same. |
4190 | (xcoff_complain_overflow_bitfield_func): Same. | |
4191 | (xcoff_complain_overflow_dont_func): Same. | |
4192 | (xcoff_reloc_type_crel): New recot function. | |
4193 | (xcoff_reloc_type_br): Same. | |
4194 | (xcoff_reloc_type_ba): Same. | |
4195 | (xcoff_reloc_type_toc): Same. | |
4196 | (xcoff_reloc_type_rel): Same. | |
4197 | (xcoff_reloc_type_neg): Same. | |
4198 | (xcoff_reloc_type_pos): Same. | |
4199 | (xcoff_reloc_type_fail): Same. | |
4200 | (xcoff_reloc_type_noop): Same. | |
4201 | * libxcoff.h : Declare common parts for xcoff64. | |
4202 | * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation | |
ea1e4b0d | 4203 | and complain function tables. |
dbe341c6 | 4204 | |
985142a4 AM |
4205 | 2002-04-28 Alan Modra <amodra@bigpond.net.au> |
4206 | ||
4207 | * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo. | |
4208 | * elf32-hppa.c (elf32_hppa_final_link): Formatting. | |
4209 | ||
eba91044 AM |
4210 | 2002-04-26 Alan Modra <amodra@bigpond.net.au> |
4211 | ||
e54fdaa5 AM |
4212 | * opncls.c (bfd_make_readable): Call bfd_section_list_clear. |
4213 | * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise. | |
4214 | ||
a50c1845 AM |
4215 | * elflink.h (elf_bfd_final_link): Ensure input bfd class is the |
4216 | same as the output before calling elf_link_input_bfd. | |
4217 | ||
eba91044 AM |
4218 | * coffcode.h (coff_compute_section_file_positions): Set |
4219 | section_tail after shuffling section list. | |
4220 | ||
3c25c5f6 NC |
4221 | 2002-04-24 Christian Groessler <chris@groessler.org> |
4222 | ||
4223 | * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The | |
4224 | addresses are 23bit with a special layout, not plain 32bit | |
4225 | values. Prevent relocation of immediate values. | |
4226 | ||
40d32fc6 CD |
4227 | 2002-04-24 Chris G. Demetriou <cgd@broadcom.com> |
4228 | ||
4229 | * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or | |
4230 | MIPS-16 ASE flags are set, print something to indicate that. | |
4231 | ||
067fa4a6 AM |
4232 | 2002-04-23 Alan Modra <amodra@bigpond.net.au> |
4233 | ||
4234 | * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition | |
4235 | under which a plt call stub is used. | |
4236 | (final_link_relocate): Similarly. | |
4237 | (allocate_plt_static): Clear h-plabel except when plt entry is | |
4238 | exclusively used for a plabel. | |
4239 | (allocate_dynrelocs): Use the above to simplify plt sizing. | |
4240 | (struct elf32_hppa_link_hash_table): Add has_22bit_branch. | |
4241 | (elf32_hppa_link_hash_table_create): Init. | |
4242 | (BL22_RP): Define. | |
4243 | (hppa_build_one_stub): Use BL22_RP if has_22bit_branch. | |
4244 | (elf32_hppa_check_relocs): Set has_22bit_branch. | |
4245 | ||
4246 | * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message. | |
4247 | (final_link_relocate): Likewise. | |
4248 | ||
af40ce3c JJ |
4249 | 2002-04-22 Jakub Jelinek <jakub@redhat.com> |
4250 | ||
4251 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build | |
4252 | search table if some FDE is DW_EH_PE_aligned encoded either. | |
4253 | (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially. | |
4254 | ||
09ae86c2 JJ |
4255 | 2002-04-22 Richard Smith <richard@ex-parrot.com> |
4256 | Jakub Jelinek <jakub@redhat.com> | |
4257 | ||
4258 | * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative. | |
4259 | (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel | |
4260 | encoded personality. | |
4261 | (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality | |
4262 | for CIE/FDE removal. | |
4263 | ||
deeb2cd7 TR |
4264 | 2002-04-20 Tom Rix <trix@redhat.com> |
4265 | ||
4266 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent. | |
4267 | ||
99dc0092 AM |
4268 | 2002-04-20 Alan Modra <amodra@bigpond.net.au> |
4269 | ||
aa3d5824 AM |
4270 | * archures.c (bfd_lookup_arch): Move the list order comment.. |
4271 | (struct bfd_arch_info): ..to where it belongs. | |
4272 | * bfd-in2.h: Regenerate. | |
4273 | ||
99dc0092 AM |
4274 | * archures.c (bfd_lookup_arch): Add comment on list order. |
4275 | (bfd_default_set_arch_mach): Use bfd_lookup_arch. | |
4276 | * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default | |
4277 | is always at head of list. | |
4278 | ||
7831a775 NC |
4279 | 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com> |
4280 | ||
4281 | * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9, | |
4282 | insert_thumb_branch, record_thumb_to_arm_glue): Suppress | |
4283 | definition of these functions for ARM_WINCE builds as they are | |
4284 | not used. | |
ea1e4b0d | 4285 | (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define |
7831a775 NC |
4286 | for ARM_WINCE builds. |
4287 | ||
4288 | 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com> | |
4289 | ||
ea1e4b0d | 4290 | * coff-arm.c (bfd_arm_process_before_allocation): |
7831a775 NC |
4291 | |
4292 | 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com> | |
a44d7f9c JR |
4293 | |
4294 | * cpu-sh.c (scan_mach): Delete. | |
4295 | (arch_info_struct): Replace scan_mach with bfd_default_scan. | |
4296 | (bfd_sh_arch): Likewise. | |
4297 | ||
3d8dbe36 NC |
4298 | 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com> |
4299 | ||
4300 | * ihex.c (ihex_write_object_contents): Fix check for records | |
4301 | crossing 64K boundaries. | |
4302 | ||
4ab82700 AM |
4303 | 2002-04-16 Alan Modra <amodra@bigpond.net.au> |
4304 | ||
4305 | * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table | |
4306 | type rather than just assuming entries are ELF. | |
4307 | * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise. | |
4308 | * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise. | |
4309 | * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise. | |
4310 | * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry | |
4311 | rather than elf_link_hash_entry. | |
4312 | ||
036fe0fe RH |
4313 | 2002-04-15 Richard Henderson <rth@redhat.com> |
4314 | ||
4315 | * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow | |
4316 | n32 binaries. | |
4317 | ||
c4f3d130 NC |
4318 | 2002-04-15 Michael Snyder <msnyder@redhat.com> |
4319 | ||
4320 | * opncls.c (bfd_close): Write contents if writeable. | |
4321 | Minor formatting tidy-ups. | |
4322 | ||
4ab82700 | 4323 | 2002-04-15 Alan Modra <amodra@bigpond.net.au> |
27242387 AM |
4324 | |
4325 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type. | |
4326 | ||
0c04d169 MS |
4327 | 2002-04-12 Michael Snyder <msnyder@redhat.com> |
4328 | ||
4329 | * bfd-in.h (bfd_get_section_lma): New access macro. | |
4330 | Minor white-space fix-up. | |
4331 | ||
89d4966f AM |
4332 | 2002-04-12 Alan Modra <amodra@bigpond.net.au> |
4333 | ||
4334 | * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or | |
4335 | header pad. | |
4336 | ||
8d0da3c2 DD |
4337 | 2002-04-09 DJ Delorie <dj@redhat.com> |
4338 | ||
4339 | * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks. | |
4340 | ||
05793179 NC |
4341 | 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net> |
4342 | ||
4343 | * coffcode.h (coff_read_word): New. | |
4344 | (coff_compute_checksum): New. | |
4345 | (coff_apply_checksum): New. | |
4346 | (coff_write_object_contents): Call coff_apply_checksum () to | |
4347 | apply checksum to PE image. | |
4348 | ||
46fe4e66 AM |
4349 | 2002-04-08 Randolph Chung <tausq@debian.org> |
4350 | ||
4351 | * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h. | |
4352 | (elf32_hppa_final_link): Split out sorting logic to.. | |
4353 | * elf-hppa.h (elf_hppa_sort_unwind): ..here. | |
4354 | (elf_hppa_final_link): Call elf_hppa_sort_unwind. | |
4355 | ||
3b5b409c AC |
4356 | 2002-04-07 Andrew Cagney <ac131313@redhat.com> |
4357 | ||
4358 | * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]* | |
4359 | pattern. | |
4360 | * configure: Re-generate. | |
4361 | ||
ac7b6ceb AC |
4362 | 2002-04-07 Andrew Cagney <ac131313@redhat.com> |
4363 | ||
4364 | * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version | |
4365 | is greater or equal to 4.3.3. | |
4366 | * configure: Regenerate. | |
4367 | Fix PR gdb/344. | |
4368 | ||
44aa49bb HPN |
4369 | 2002-04-05 Hans-Peter Nilsson <hp@axis.com> |
4370 | ||
4371 | * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL, | |
4372 | R_CRIS_32_PCREL>: Fix typo in name. | |
4373 | (cris_elf_check_relocs): Always create .rela.got here when | |
4374 | R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen. | |
4375 | (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here; | |
4376 | assume it's created. | |
4377 | ||
e2d34d7d DJ |
4378 | 2002-04-04 Daniel Jacobowitz <drow@mvista.com> |
4379 | ||
4380 | * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define. | |
4381 | * aout-target.h (MY_bfd_link_hash_table_free): Conditionally | |
4382 | define. | |
4383 | * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise. | |
4384 | * bfd.c (bfd_link_hash_table_free): Define. | |
4385 | * binary.c (binary_bfd_link_hash_table_free): Define. | |
4386 | * bout.c (b_out_bfd_link_hash_table_free): Define. | |
4387 | * coff-rs6000.c (rs6000coff_vec): Include | |
4388 | _bfd_generic_link_hash_table_free. | |
4389 | (pmac_xcoff_vec): Likewise. | |
4390 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
4391 | (aix5coff64_vec): Likewise. | |
4392 | * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define. | |
4393 | * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function. | |
4394 | (bfd_elf32_bfd_link_hash_table_free): Define. | |
4395 | * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function. | |
4396 | (bfd_elf32_bfd_link_hash_table_free): Define. | |
4397 | * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally | |
4398 | define. | |
4399 | * i386msdos.c (msdos_bfd_link_hash_table_free): Define. | |
4400 | * i386os9k.c (os9k_bfd_link_hash_table_free): Define. | |
4401 | * ieee.c (ieee_bfd_link_hash_table_free): Define. | |
4402 | * ihex.c (ihex_bfd_link_hash_table_free): Define. | |
4403 | * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define. | |
4404 | (_bfd_generic_link_hash_table_free): Add prototype. | |
4405 | * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype. | |
4406 | * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define. | |
4407 | * linker.c (_bfd_generic_link_hash_table_free): New function. | |
4408 | * mmo.c (mmo_bfd_link_hash_table_free): Define. | |
4409 | * nlm-target.h (nlm_bfd_link_hash_table_free): Define. | |
4410 | * oasys.c (oasys_bfd_link_hash_table_free): Define. | |
4411 | * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define. | |
4412 | * som.c (som_bfd_link_hash_table_free): Define. | |
4413 | * srec.c (srec_bfd_link_hash_table_free): Define. | |
4414 | * tekhex.c (tekhex_bfd_link_hash_table_free): Define. | |
4415 | * versados.c (versados_bfd_link_hash_table_free): Define. | |
4416 | * vms.c (vms_bfd_link_hash_table_free): New function. | |
4417 | * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function. | |
4418 | ||
4419 | * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc | |
4420 | instead of bfd_alloc. | |
4421 | * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise. | |
4422 | * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise. | |
4423 | * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise. | |
4424 | * cofflink.c (_bfd_coff_link_hash_table_create): Likewise. | |
4425 | * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise. | |
4426 | * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise. | |
4427 | * elf.c (_bfd_elf_link_hash_table_create): Likewise. | |
4428 | * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise. | |
4429 | * elf32-cris.c (elf_cris_link_hash_table_create): Likewise. | |
4430 | * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise. | |
4431 | * elf32-i386.c (elf_i386_link_hash_table_create): Likewise. | |
4432 | * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise. | |
4433 | * elf32-s390.c (elf_s390_link_hash_table_create): Likewise. | |
4434 | * elf32-sh.c (sh_elf_link_hash_table_create): Likewise. | |
4435 | * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise. | |
4436 | * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise. | |
4437 | * elf64-s390.c (elf_s390_link_hash_table_create): Likewise. | |
4438 | * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise. | |
4439 | * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise. | |
4440 | * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise. | |
4441 | * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise. | |
4442 | * linker.c (_bfd_generic_link_hash_table_create): Likewise. | |
4443 | * m68klinux.c (linux_link_hash_table_create): Likewise. | |
4444 | * sparclinux.c (linux_link_hash_table_create): Likewise. | |
4445 | * sunos.c (sunos_link_hash_table_create): Likewise. | |
4446 | * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise. | |
4447 | ||
4448 | * targets.c: Add _bfd_link_hash_table_free to xvec. | |
4449 | ||
4450 | * bfd-in2.h: Regenerate. | |
4451 | * libbfd.h: Regenerate. | |
4452 | * libcoff.h: Regenerate. | |
4453 | ||
830629ab AM |
4454 | 2002-04-04 Alan Modra <amodra@bigpond.net.au> |
4455 | ||
4456 | * dep-in.sed: Cope with absolute paths. | |
4457 | * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR. | |
4458 | Run "make dep-am". | |
4459 | * Makefile.in: Regenerate. | |
4460 | * coff-arm.c: Fix copyright date. | |
4461 | * cpu-h8300.c: Likewise. | |
4462 | * cpu-i370.c: Likewise. | |
4463 | * cpu-s390.c: Likewise. | |
4464 | * cpu-mips.c: Likewise. | |
4465 | * po/SRC-POTFILES.in: Regenerate. | |
4466 | ||
c6e90b02 TS |
4467 | 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> |
4468 | ||
4469 | * Makefile.am: Add elfxx-mips.c to the known backends. | |
4470 | (elf32-mips.lo): remove dependency to coff/external.h. | |
4471 | * Makefile.in: Regenerate. | |
4472 | * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo | |
4473 | Remove elf32-mips.lo from 64 bit vectors. Update dependencies | |
4474 | accordingly. | |
4475 | * configure: Regenerate. | |
4476 | * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h. | |
4477 | (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c. | |
4478 | (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New | |
4479 | MIPS specific backend functions. | |
4480 | * elf32-mips.c: Moved most code to elfxx-mips.c. | |
4481 | (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make | |
4482 | static. | |
4483 | (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc. | |
4484 | (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc. | |
4485 | (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc. | |
4486 | (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed | |
4487 | interface to allow selection of the right REL or RELA howto table. | |
4488 | (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made | |
4489 | static. Let it refuse n32 objects. | |
4490 | (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus. | |
4491 | (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo. | |
4492 | (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info. | |
4493 | (elf32_mips_ignore_discarded_relocs): Rename from | |
4494 | _bfd_elf32_mips_ignore_discarded_relocs. | |
4495 | (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section. | |
4496 | (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT. | |
4497 | (elf_mips_howto_table_rela): Remove. | |
4498 | * elf64-mips.c: Moved most code to elfxx-mips.c. | |
4499 | (bfd_elf64_bfd_reloc_type_lookup): Make static. | |
4500 | (mips_elf64_rtype_to_howto): New function. | |
4501 | (mips_elf64_object_p): Likewise. | |
4502 | (elf64_mips_irix_compat): Likewise. | |
4503 | * elfxx-mips.c: New file containing common code merged together from | |
4504 | elf32-mips.c and elf64-mips.c. | |
4505 | * elfxx-mips.h: New file containing MIPS specific prototypes from | |
4506 | elf-bfd.h. | |
4507 | * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and | |
4508 | elf_backend_mips_rtype_to_howto. | |
4509 | ||
d8dce692 AM |
4510 | 2002-04-04 Alan Modra <amodra@bigpond.net.au> |
4511 | ||
4512 | * srec.c (MAXCHUNK, Chunk): Revise comments. | |
4513 | (srec_write_record): Correct buffer size. | |
4514 | (srec_write_header): Do without intermediate buffer. | |
4515 | (srec_write_section): Validate Chunk. | |
4516 | (srec_write_terminator): Pass NULL instead of dummy buffer. | |
4517 | (srec_write_symbols): Pass file and symbol names directly to | |
4518 | bfd_bwrite so sprintf won't overflow buffer. | |
4519 | ||
b88a866a JJ |
4520 | 2002-04-03 Jakub Jelinek <jakub@redhat.com> |
4521 | ||
4522 | * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic | |
4523 | PC relative relocs against hidden symbols. | |
4524 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
4525 | ||
d7866f04 AM |
4526 | 2002-04-03 Alan Modra <amodra@bigpond.net.au> |
4527 | ||
4528 | * elf.c (_bfd_elf_make_section_from_shdr): When setting section | |
4529 | LMAs, loop over segments until p_vaddr and p_memsz specify an | |
4530 | extent enclosing the section. | |
4531 | ||
9e81ee67 NC |
4532 | 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com> |
4533 | ||
4534 | * ihex.c (ihex_write_object_contents): Do not allow records to | |
4535 | cross a 64K boundary - wrap if necessary. | |
4536 | ||
d2b64500 JT |
4537 | 2002-04-01 Nathan Williams <nathanw@wasabisystems.com> |
4538 | ||
4539 | * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error | |
4540 | which caused the returned LWP ID to always be 0. | |
4541 | ||
e36f7d53 RH |
4542 | 2002-04-01 Richard Henderson <rth@redhat.com> |
4543 | ||
4544 | * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. | |
4545 | (elf32_sparc_relocate_section): Use it to figure out when to | |
4546 | initialize .got entries. | |
4547 | * elf64-sparc.c: Similarly. | |
4548 | ||
e92d460e AM |
4549 | 2002-03-28 Alan Modra <amodra@bigpond.net.au> |
4550 | ||
4551 | * linker.c (link_action): Ignore duplicate warning syms. | |
4552 | (_bfd_generic_link_write_global_symbol): Follow warning symbol link. | |
4553 | * elflink.h (elf_adjust_dynstr_offsets): Likewise. | |
4554 | (elf_adjust_dynamic_symbol): Likewise. | |
4555 | (elf_export_symbol): Likewise. | |
4556 | (elf_link_find_version_dependencies): Likewise. | |
4557 | (elf_link_assign_sym_version): Likewise. | |
4558 | (elf_link_sec_merge_syms): Likewise. | |
4559 | (elf_link_output_extsym): Likewise. | |
4560 | (elf_gc_sweep_symbol): Likewise. | |
4561 | (elf_gc_propagate_vtable_entries_used): Likewise. | |
4562 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
4563 | (elf_gc_allocate_got_offsets): Likewise. | |
4564 | (elf_collect_hash_codes): Likewise. | |
4565 | * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise. | |
4566 | * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise. | |
4567 | (elf_hppa_remark_useless_dynamic_symbols): Likewise. | |
4568 | * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise. | |
4569 | * elf32-arm.h (elf32_arm_discard_copies): Likewise. | |
4570 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise. | |
4571 | (elf_cris_discard_excess_dso_dynamics): Likewise. | |
4572 | * elf32-hppa.c (clobber_millicode_symbols): Likewise. | |
4573 | (mark_PIC_calls): Likewise. | |
4574 | (allocate_plt_static): Likewise. | |
4575 | (allocate_dynrelocs): Likewise. | |
4576 | (readonly_dynrelocs): Likewise. | |
4577 | * elf32-i386.c (allocate_dynrelocs): Likewise. | |
4578 | (readonly_dynrelocs): Likewise. | |
4579 | * elf32-i370.c (i370_elf_adjust_dynindx): Likewise. | |
4580 | * elf32-m68k.c (elf_m68k_discard_copies): Likewise. | |
4581 | * elf32-mips.c (mips_elf_output_extsym): Likewise. | |
4582 | (mips_elf_sort_hash_table_f): Likewise. | |
4583 | (mips_elf_check_mips16_stubs): Likewise. | |
4584 | * elf32-s390.c (allocate_dynrelocs): Likewise. | |
4585 | (readonly_dynrelocs): Likewise. | |
4586 | * elf32-sh.c (sh_elf_discard_copies): Likewise. | |
4587 | * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise. | |
4588 | (xstormy16_relax_plt_realloc): Likewise. | |
4589 | * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise. | |
4590 | (elf64_alpha_output_extsym): Likewise. | |
4591 | * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise. | |
4592 | * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise. | |
4593 | (mips_elf64_check_mips16_stubs): Likewise. | |
4594 | (mips_elf64_output_extsym): Likewise. | |
4595 | * elf64-ppc.c (func_desc_adjust): Likewise. | |
4596 | (allocate_dynrelocs): Likewise. | |
4597 | (readonly_dynrelocs): Likewise. | |
4598 | * elf64-s390.c (allocate_dynrelocs): Likewise. | |
4599 | (readonly_dynrelocs): Likewise. | |
4600 | * elf64-sh64.c (sh64_elf64_discard_copies): Likewise. | |
4601 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. | |
4602 | (readonly_dynrelocs): Likewise. | |
4603 | * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise. | |
4604 | * aoutx.h (aout_link_write_other_symbol): Likewise. | |
4605 | * cofflink.c (_bfd_coff_write_task_globals): Likewise. | |
4606 | (_bfd_coff_write_global_sym): Likewise. | |
4607 | * i386linux.c (linux_tally_symbols): Likewise. | |
4608 | * m68klinux.c (linux_tally_symbols): Likewise. | |
4609 | * sparclinux.c (linux_tally_symbols): Likewise. | |
4610 | * pdp11.c (aout_link_write_other_symbol): Likewise. | |
4611 | * sunos.c (sunos_scan_dynamic_symbol): Likewise. | |
4612 | * xcofflink.c (xcoff_build_ldsyms): Likewise. | |
4613 | (xcoff_write_global_symbol): Likewise. | |
4614 | ||
4615 | * cofflink.c (_bfd_coff_final_link): Formatting. | |
4616 | * cpu-mips.c (mips_compatible): Make static, prototype. | |
4617 | * elf32-i386.c (elf_i386_check_relocs): Formatting. | |
4618 | * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise. | |
4619 | * elf64-alpha.c (elf64_alpha_output_extsym): Likewise. | |
4620 | * elf64-mips.c (mips_elf64_sort_hash_table): Likewise. | |
4621 | (mips_elf64_final_link): Likewise. | |
4622 | * elflink.h (elf_link_find_version_dependencies): Remove duplicate | |
4623 | prototype. | |
4624 | ||
2106126f NC |
4625 | 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com> |
4626 | ||
4627 | * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define. | |
4628 | (SWAP_OUT_RELOC_OFFSET): Define. | |
4629 | ||
b99d1833 AM |
4630 | 2002-03-27 Gregory Steuck <greg@nest.cx> |
4631 | ||
4632 | * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for | |
4633 | terminating NULL if empty symbol table. | |
4634 | (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise. | |
4635 | ||
ad43ed4c L |
4636 | 2002-03-26 H.J. Lu (hjl@gnu.org) |
4637 | ||
4638 | * elflink.h (elf_link_input_bfd): Revert the last change since | |
4639 | the gcc exception handling isn't fixed yet. | |
4640 | ||
3851fca4 L |
4641 | 2002-03-26 H.J. Lu (hjl@gnu.org) |
4642 | ||
4643 | * elflink.h (elf_link_input_bfd): Complain about relocations | |
4644 | against local symbols in discarded sections. | |
4645 | ||
b91afed7 AM |
4646 | 2002-03-26 Alan Modra <amodra@bigpond.net.au> |
4647 | ||
4648 | * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections. | |
4649 | ||
dba143ef AM |
4650 | 2002-03-23 Alan Modra <amodra@bigpond.net.au> |
4651 | ||
4652 | * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on | |
4653 | section file offset for !SEC_LOAD sections. | |
4654 | ||
ee29b9fb RE |
4655 | 2002-03-21 Richard Earnshaw <rearnsha@arm.com> |
4656 | ||
830629ab AM |
4657 | * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>, |
4658 | <case R_ARM_GOT>): Handle relocations to Thumb functions. | |
ee29b9fb | 4659 | |
54327882 AM |
4660 | 2002-03-21 Alan Modra <amodra@bigpond.net.au> |
4661 | ||
4662 | * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype. | |
4663 | Whitespace changes. | |
4664 | * archive.c: Update copyright date. | |
4665 | * bfd-in2.h: Regenerate. | |
4666 | * libbfd.h: Regenerate. | |
4667 | * Makefile.am: Run "make dep-am" | |
4668 | * Makefile.in: Regenerate. | |
4669 | * po/SRC-POTFILES.in: Regenerate. | |
4670 | ||
1ee24f27 DJ |
4671 | 2002-03-20 Daniel Jacobowitz <drow@mvista.com> |
4672 | ||
4673 | * dwarf2.c (struct funcinfo): Move up. | |
4674 | (lookup_address_in_function_table): New argument function_ptr. | |
4675 | Set it. | |
4676 | (lookup_address_in_line_table): New argument function. If function | |
4677 | is non-NULL, use it to handle ``addr'' before the first line note of | |
4678 | the function. | |
4679 | (comp_unit_find_nearest_line): Update and swap calls to | |
4680 | lookup_address_in_function_table and lookup_address_in_line_table. | |
4681 | * syms.c (_bfd_stab_section_find_nearest_line): Use the first | |
4682 | N_SLINE encountered if we see an N_FUN before any N_SLINE. | |
4683 | ||
51b9608c TR |
4684 | 2002-03-20 Tom Rix <trix@redhat.com> |
4685 | ||
ea1e4b0d | 4686 | * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from |
51b9608c | 4687 | _bfd_xcoff_generic_stat_arch_elt. Fix format check. |
ea1e4b0d | 4688 | * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt. |
51b9608c | 4689 | |
789c90aa TR |
4690 | 2002-03-19 Tom Rix <trix@redhat.com> |
4691 | ||
ea1e4b0d | 4692 | * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all |
789c90aa TR |
4693 | dynamic objects in archives. |
4694 | ||
1da54d81 HPN |
4695 | 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com> |
4696 | ||
4697 | * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set | |
4698 | STT_NOTYPE symbols to STT_OBJECT. | |
4699 | ||
7831a775 | 4700 | 2002-03-18 Jan Hubicka <jh@suse.cz> |
beb43bb9 JH |
4701 | |
4702 | * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64" | |
4703 | ||
eb1e0e80 NC |
4704 | 2002-03-18 Tom Rix <trix@redhat.com> |
4705 | ||
4706 | * aix5ppc.core.c : New file for AIX 5 64 bit core support. | |
4707 | * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration. | |
4708 | * coff-rs6000 (do_pad) : New function for archive padding. | |
4709 | (do_copy) : New function for object file copying in archives. | |
4710 | (do_shared_object_padding) : New function for padding shared | |
4711 | objects to their text section alignment in archives. | |
4712 | (bfd_xcoff_ar_achive_set_magic) : Stub. | |
4713 | (xcoff_write_armap_big) : Use do_copy and do_pad. | |
4714 | (xcoff_write_archive_contents_big) : Use do_shared_object_padding, | |
4715 | do_copy and do_pad. | |
4716 | * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use | |
ea1e4b0d | 4717 | bfd_xcoff_magic_number. |
eb1e0e80 NC |
4718 | (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook |
4719 | fop. | |
4720 | (xcoff_backend_data_r) : Use xcoff64_bad_format_hook. | |
4721 | (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data. | |
4722 | (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000. | |
4723 | * rs6000-core.c : Update copyright date. | |
ea1e4b0d | 4724 | * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL |
eb1e0e80 NC |
4725 | csectpp. |
4726 | * coffcode.h (coff_new_section_hook) : Use new accessor macros. | |
4727 | (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #. | |
4728 | (coff_set_flags) : Use bfd_xcoff_magic_number. | |
4729 | * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC. | |
4730 | * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support. | |
4731 | * Makefile.am : Same. | |
4732 | * config.bfd : Same. | |
4733 | * targets.c : Same. | |
4734 | * configure : Regnerate. | |
4735 | * Makefile.in : Same. | |
4736 | * bfd-in2.h : Same. | |
4737 | ||
a1c259a1 NC |
4738 | 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com> |
4739 | ||
4740 | * po/fr.po: Updated version. | |
4741 | ||
4dae1ae7 AM |
4742 | 2002-03-18 Alan Modra <amodra@bigpond.net.au> |
4743 | ||
4744 | * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success. | |
4745 | * libbfd.h: Regenerate. | |
4746 | * archive.c (coff_write_armap): Pass on failures from | |
4747 | bfd_write_bigendian_4byte_int. | |
4748 | ||
36b4f6e7 L |
4749 | 2002-03-14 H.J. Lu <hjl@gnu.org> |
4750 | ||
4751 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD | |
4752 | error to bfd_error_nonrepresentable_section for reinit_array | |
4753 | section in DSO. | |
4754 | ||
a1aefc76 NC |
4755 | 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com> |
4756 | ||
a181be0a NC |
4757 | * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag, |
4758 | OR it in rather than replacing previously selected flags. | |
4759 | ||
a1aefc76 NC |
4760 | * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15. |
4761 | (TARGET_LITTLE_SYM): Set ar_max_namelen to 15. | |
4762 | ||
c119f9b8 AM |
4763 | 2002-03-14 Alan Modra <amodra@bigpond.net.au> |
4764 | ||
4765 | * cpu-mips.c (mips_compatible): New. Don't check bits_per_word. | |
4766 | (N): Use the above. | |
4767 | * elflink.h (elf_bfd_final_link): Revert last change. Instead, | |
4768 | ensure reloc size matches before calling elf_link_input_bfd. | |
4769 | Add an assert to check reloc size when counting output relocs. | |
4770 | ||
c295a511 NC |
4771 | 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com> |
4772 | ||
4773 | * mmo.c (mmo_get_loc): Return NULL rather than false. | |
4774 | ||
9ce88e60 NC |
4775 | 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com> |
4776 | ||
4777 | * po/fr.po: Updated version. | |
4778 | ||
4ddafab0 AM |
4779 | 2002-03-13 Alan Modra <amodra@bigpond.net.au> |
4780 | ||
b74fa2cd AM |
4781 | * archures.c (bfd_default_compatible): Test bits_per_word. |
4782 | * cpu-i386.c (i386_compatible): Remove. Replace occurrences with | |
4783 | bfd_default_compatible. | |
4784 | * cpu-i370.c (i370_compatible): Likewise. | |
4785 | * cpu-sparc.c (sparc_compatible): Likewise. | |
4786 | * cpu-h8300.c (compatible): Test in->arch == out->arch. | |
4787 | ||
40b829d4 AM |
4788 | * elflink.h: Formatting fixes. |
4789 | (elf_link_output_extsym): Merge undefined and undef weak cases. | |
4790 | ||
4ddafab0 AM |
4791 | * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd |
4792 | when word size of input matches output word size. | |
4793 | ||
dd53c801 AJ |
4794 | 2002-03-12 Andreas Jaeger <aj@suse.de> |
4795 | ||
4796 | * cpu-i386.c (i386_compatible): New. Use it instead of | |
4797 | bfd_default_compatible. | |
4798 | ||
aa066ac8 L |
4799 | 2002-03-07 H.J. Lu (hjl@gnu.org) |
4800 | ||
4801 | * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type | |
4802 | as the type for bfd_reloc_val. | |
4803 | ||
1bf42538 JL |
4804 | 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca> |
4805 | ||
4806 | * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function. | |
4807 | (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols. | |
4808 | (elf_hppa_final_link_relocate): Correct relocations for indirect | |
4809 | references to local data through the DLT. Fix .opd creation for | |
4810 | local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64 | |
4811 | relocations. Use e_lsel selector for R_PARISC_DLTIND21L, | |
4812 | R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per | |
4813 | "Processor-Specific ELF for PA_RISC, Version 1.43" document. | |
4814 | Similarly, use e_rsel for DLT and LTOFF 'R' relocations. | |
4815 | * elf32-hppa.c (final_link_relocate): Revise relocation selectors | |
4816 | as per "Processor-Specific ELF for PA_RISC, Version 1.43" document. | |
4817 | ||
86eaf01e JJ |
4818 | 2002-03-05 Jakub Jelinek <jakub@redhat.com> |
4819 | ||
4820 | * merge.c (_bfd_merge_sections): Don't segfault if there | |
4821 | is nothing to merge due to GC. | |
4822 | ||
c44233aa AM |
4823 | 2002-03-05 Alan Modra <amodra@bigpond.net.au> |
4824 | ||
039cc25f AM |
4825 | * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep |
4826 | symbols that have been forced local. | |
4827 | ||
c44233aa AM |
4828 | * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym |
4829 | to output forced local syms for non-shared link. | |
4830 | (elf_link_output_extsym): Tweak condition for calling backend | |
4831 | adjust_dynamic_symbol so that previous behaviour is kept. | |
4832 | Whitespace changes throughout file. | |
4833 | ||
25e27870 L |
4834 | 2002-03-04 H.J. Lu <hjl@gnu.org> |
4835 | ||
4836 | * elf.c (bfd_section_from_shdr): Handle special sections, | |
4837 | .init_array, .fini_array and .preinit_array. | |
4838 | (elf_fake_sections): Likewise. | |
4839 | ||
4840 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the | |
4841 | DT entry only if the section is in output for .init_array, | |
4842 | .fini_array and .preinit_array. Complain about .preinit_array | |
4843 | section in DSO. | |
4844 | (elf_bfd_final_link): Warn zero size for .init_array, | |
4845 | .fini_array and .preinit_array sections. | |
4846 | ||
4847 | * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove | |
4848 | SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY. | |
4849 | (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and | |
4850 | .preinit_array. | |
4851 | ||
bb2a49f2 AM |
4852 | 2002-03-04 Alan Modra <amodra@bigpond.net.au> |
4853 | ||
4854 | * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment. | |
4855 | * configure: Regenerate. | |
4856 | ||
38487e5e TR |
4857 | 2002-03-02 Tom Rix <trix@redhat.com> |
4858 | ||
c44233aa AM |
4859 | * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with |
4860 | symbolic equiv. | |
38487e5e TR |
4861 | * coff-rs6000.c (xcoff_howto_table): Same. |
4862 | ||
30831527 RH |
4863 | 2002-03-01 David Mosberger <davidm@hpl.hp.com> |
4864 | ||
4865 | * elflink.h (size_dynamic_sections): If section named | |
4866 | ".preinit_array" exists, create DT_PREINIT_ARRAY and | |
4867 | DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for | |
4868 | ".init_array" and ".fini_array". | |
4869 | (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ, | |
4870 | DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and | |
4871 | DT_FINI_ARRAY. | |
4872 | ||
c8e5ddc8 AM |
4873 | 2002-02-26 Andrew Macleod <amacleod@cygnus.com> |
4874 | ||
4875 | * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local | |
4876 | dynsyms. | |
4877 | ||
96e0dda4 AM |
4878 | 2002-02-25 Alan Modra <amodra@bigpond.net.au> |
4879 | ||
1c5b6bf8 AM |
4880 | * elf64-hppa.h: Update copyright date. |
4881 | ||
96e0dda4 AM |
4882 | * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix. |
4883 | (ppc64_elf_relocate_section): Don't generate power4 style branch | |
4884 | hints for *_BRTAKEN and *_BRNTAKEN relocs. | |
4885 | ||
0fb19cbc JJ |
4886 | 2002-02-22 Jakub Jelinek <jakub@redhat.com> |
4887 | ||
4888 | * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my | |
4889 | last patch. | |
4890 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
4891 | ||
c434dee6 AJ |
4892 | 2002-02-21 Andreas Jaeger <aj@suse.de> |
4893 | ||
4894 | * elf64-x86-64.c: Major rework that introduces all recent changes | |
4895 | to the x86-64 backend. Get a closer match to elf32-i386. | |
4896 | (struct elf64_x86_64_dyn_relocs): Rename from | |
4897 | elf64_x86_64_pcrel_relocs_copied, add additional fields. Change | |
4898 | all users. | |
4899 | (struct elf64_x86_64_link_hash_table): Add short cuts to some | |
4900 | sections. | |
4901 | (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc, | |
4902 | remove casts, initialize new hash members. | |
4903 | (create_got_section): New. | |
4904 | (elf64_x86_64_create_dynamic_sections): New. | |
4905 | (elf64_x86_64_copy_indirect_symbol): New. | |
4906 | (elf64_x86_64_check_relocs): Don't allocate space for dynamic | |
4907 | relocs, .got or .relgot here but do it in allocate_dynrelocs. | |
4908 | Reference count possible .plt and .got entries. Don't test input | |
4909 | section SEC_READONLY here to try to avoid copy relocs, and keep | |
4910 | dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set | |
4911 | DF_TEXTREL here. Delay setting of variables until needed. Cache | |
4912 | pointer to "sreloc" section in elf_section_data. Tweak condition | |
4913 | under which .got created. Report files with bad relocation | |
4914 | section names. | |
4915 | (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. | |
4916 | Reference count possible .plt entries. Don't deallocate .got and | |
4917 | .relgot space here. | |
4918 | (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't | |
4919 | do copy reloc processing for weakdefs. Remove redundant casts and | |
4920 | aborts. Delay setting of vars until needed. Move creation of | |
4921 | dynamic symbols and allocation of .plt and .rela.plt to | |
4922 | allocate_dynrelocs. Replace BFD_ASSERT with abort. | |
4923 | (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. | |
4924 | (allocate_dynrelocs): New. | |
4925 | (readonly_dynrelocs): New. | |
4926 | (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs. | |
4927 | Allocate space for dyn relocs. Replace BFD_ASSERT with abort. | |
4928 | Zero out the dynamic allocated content space. | |
4929 | (elf64_x86_64_discard_copies): Removed. | |
4930 | (elf64_x86_64_relocate_section): Make use of dynamic section | |
4931 | short-cuts. Localise vars, and delay setting. Better error | |
4932 | reporting, replace BFD_ASSERT with abort. Check | |
4933 | ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the | |
4934 | regular object file and tread the weak definition as the normal | |
4935 | one. Don't discard relocs for undefweak or undefined symbols and | |
4936 | check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy | |
4937 | relocs. | |
4938 | (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for | |
4939 | symbols that have been forced local. Use same test to decide if | |
4940 | we can use a relative reloc for got as relocate_section. Expand | |
4941 | SHN_UNDEF comment. Move expressions out of function calls. | |
4942 | Replace BFD_ASSERT with abort. | |
4943 | (bfd_elf64_bfd_final_link): Removed. | |
4944 | (elf_backend_copy_indirect_symbol): Define. | |
4945 | ||
ff3a6ee3 TR |
4946 | 2002-02-20 Tom Rix <trix@redhat.com> |
4947 | ||
4948 | * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA. | |
4949 | (_bfd_xcoff_reloc_type_lookup): Use it. | |
4950 | * coff64-rs6000.c (xcoff64_howto_table): Same. | |
4951 | (xcoff64_reloc_type_lookup): Same. | |
c434dee6 | 4952 | |
a68d41fb AM |
4953 | 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> |
4954 | ||
4955 | * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are | |
4956 | little endian. | |
4957 | ||
befc3abb MS |
4958 | 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com> |
4959 | ||
4960 | * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31. | |
4961 | (bfd_mach_s390_esame): Rename to bfd_mach_s390_64. | |
4962 | * bfd-in2.h: Regenerate. | |
4963 | * cpu-s390.c (arch_info_struct): Use renamed architecture defines. | |
4964 | Replace architecture name "s390" with "s390:31-bit" and "s390:esame" | |
4965 | with "s390:64-bit". | |
4966 | * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations. | |
4967 | (elf_s390_reloc_type_lookup): Likewise. | |
4968 | (elf_s390_check_relocs): Likewise. | |
4969 | (elf_s390_gc_sweep_hook): Likewise. | |
4970 | (elf_s390_relocate_section): Likewise. | |
4971 | (elf_s390_object_p): Use renamed architecture define. | |
4972 | * elf64-s390.c (elf_s390_object_p): Use renamed architecture define. | |
4973 | ||
6eeeec9b FCE |
4974 | 2002-02-19 Frank Ch. Eigler <fche@redhat.com> |
4975 | ||
4976 | * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping. | |
4977 | ||
0bb2d96a JJ |
4978 | 2002-02-19 Jakub Jelinek <jakub@redhat.com> |
4979 | ||
4980 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable | |
4981 | absptr -> pcrel optimization for shared libs. | |
4982 | Only create minimal .eh_frame_hdr if absptr FDE encoding in shared | |
4983 | library cannot be converted to pcrel. | |
4984 | (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr | |
4985 | relative. | |
4986 | * elf32-i386.c (elf_i386_relocate_section): If | |
4987 | _bfd_elf_section_offset returned -2, skip, but make sure the | |
4988 | relocation is installed. | |
4989 | * elf32-arm.h (elf32_arm_final_link_relocate): Likewise. | |
4990 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
4991 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
4992 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
4993 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
4994 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
4995 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
4996 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
4997 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
4998 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
4999 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
5000 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. | |
5001 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
5002 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
5003 | * elf64-alpha.c (elf64_alpha_relocate_section): Handle | |
5004 | _bfd_elf_section_offset returning -2 the same way as -1. | |
5005 | * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise. | |
5006 | * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME | |
5007 | and BFD_ASSERT. | |
5008 | * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise. | |
5009 | ||
69f284c7 TR |
5010 | 2002-02-18 Tom Rix <trix@redhat.com> |
5011 | ||
5012 | * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support. | |
5013 | (bfd_xcoff_size_dynamic_sections): Same. | |
5014 | * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same. | |
5015 | (bfd_xcoff_size_dynamic_sections): Same. | |
5016 | * coff-rs6000.c (xcoff_generate_rtinit): Same. | |
5017 | * coff-rs646000.c (xcoff64_generate_rtinit): Same. | |
5018 | * libxcoff.h (struct xcoff_backend_data_rec): Same. | |
5019 | * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean. | |
5020 | * bfd-in2.h: Regenerate. | |
5021 | ||
82bd7b59 AM |
5022 | 2002-02-18 Alan Modra <amodra@bigpond.net.au> |
5023 | ||
5024 | * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define. | |
5025 | (struct ppc_link_hash_table): Add sfpr. | |
5026 | (ppc64_elf_link_hash_table_create): Init it. | |
5027 | (ppc64_elf_create_dynamic_sections): Split creation of .stub and | |
5028 | .glink out to.. | |
5029 | (create_linkage_sections): ..here. Make .sfpr too. | |
5030 | (ppc64_elf_check_relocs): Call create_linkage_sections, and set | |
5031 | dynobj early. | |
5032 | (MIN_SAVE_FPR, MAX_SAVE_FPR): Define. | |
5033 | (ppc64_elf_func_desc_adjust): Look for missing ._savef* and | |
5034 | ._restf* functions, and create as needed. | |
5035 | (func_desc_adjust): Only force_local for shared libs. | |
5036 | ||
ef1355e8 NC |
5037 | 2002-02-18 David O'Brien <obrien@FreeBSD.org> |
5038 | ||
5039 | * configure.in: Bump version number post 2.12 branching. | |
5040 | * configure: Regenerate. | |
5041 | ||
dfa36a69 HPN |
5042 | 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com> |
5043 | ||
5044 | * mmo.c: Correct and improve comments. | |
5045 | (mmo_write_chunk): Store trailing byte in bfd buffer; don't | |
5046 | zero-pad. Use input to fill up non-empty bfd buffer. | |
5047 | (mmo_flush_chunk): New function. | |
5048 | (mmo_write_loc_chunk): Add parameter last_vmap, all callers | |
5049 | changed. Don't emit location specifier if VMA is same as | |
5050 | *LAST_VMAP after omitting leading zero contents. Call | |
5051 | mmo_flush_chunk before emitting location specifier. | |
5052 | (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished | |
5053 | with mmo_write_loc_chunk calls. | |
5054 | (mmo_internal_write_section): Call mmo_flush_chunk after | |
5055 | mmo_write_chunk. | |
5056 | (mmo_write_symbols_and_terminator): Move :Main to first position | |
5057 | in symbol array. Add faked one if it does not exist if there are | |
5058 | other symbols. Don't add it if there are no symbols at all. Move | |
5059 | out test for value of :Main from symbol loop. Rename table | |
5060 | fakemain to maintable and variable mainsym to fakemain. | |
5061 | ||
ccf00ab6 RH |
5062 | 2002-02-15 Richard Henderson <rth@redhat.com> |
5063 | ||
5064 | * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target | |
5065 | section with no got matches any got. Simplify error generaion. | |
5066 | ||
88eaccc2 AM |
5067 | 2002-02-15 Alan Modra <amodra@bigpond.net.au> |
5068 | ||
fd96f80f AM |
5069 | Support arbitrary length fill patterns. |
5070 | * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc. | |
5071 | (_bfd_default_link_order): Remove bfd_fill_link_order code. | |
5072 | Call default_data_link_order. | |
5073 | (default_fill_link_order): Delete. | |
5074 | (default_data_link_order): New function. | |
5075 | * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences | |
5076 | of bfd_fill_link_order with bfd_data_link_order. | |
5077 | * elf64-alpha.c (elf64_alpha_final_link): Likewise. | |
5078 | * elf64-mips.c (mips_elf64_final_link): Likewise. | |
5079 | ||
88eaccc2 AM |
5080 | * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value. |
5081 | Correct value returned in "end" for "0x<non-hex>". | |
5082 | ||
e2fd756b NC |
5083 | 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com> |
5084 | ||
5085 | * cpu-arm.c (processors): Replace 'arch' field with 'mach'. | |
5086 | (scan): Test against 'mach' field in info structure. | |
5087 | ||
edd29cf9 AM |
5088 | 2002-02-14 Alan Modra <amodra@bigpond.net.au> |
5089 | ||
5090 | * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD. | |
5091 | ||
1e30956e | 5092 | 2002-02-14 Matt Fredette <fredette@netbsd.org> |
76f57f3a JT |
5093 | |
5094 | * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize | |
5095 | EF_M68000. | |
5096 | ||
bf36db18 NC |
5097 | 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com> |
5098 | ||
5099 | * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on | |
edd29cf9 AM |
5100 | non-zero physical addresses when adjusting the LMAs of new |
5101 | sections. | |
bf36db18 | 5102 | |
189c6563 AM |
5103 | 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca> |
5104 | ||
5105 | * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped | |
5106 | from _bfd_elf_hppa_gen_reloc_type. | |
5107 | (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype. | |
5108 | * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype. | |
5109 | * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h. | |
5110 | * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype. | |
5111 | ||
e948afaf AO |
5112 | 2002-02-12 Alexandre Oliva <aoliva@redhat.com> |
5113 | ||
5114 | * elf-m10300.c (mn10300_elf_relax_section): Skip section before | |
5115 | loading its contents if there's nothing to do in it. | |
5116 | ||
19397422 AM |
5117 | 2002-02-12 Alan Modra <amodra@bigpond.net.au> |
5118 | ||
0ad3a73b AM |
5119 | * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing |
5120 | 64k boundary. | |
5121 | ||
19397422 AM |
5122 | * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic |
5123 | DT_PPC64_OPD and DT_PPC64_OPDSZ tags. | |
5124 | (ppc64_elf_finish_dynamic_sections): Set values for them. | |
5125 | ||
51316059 MS |
5126 | 2002-02-11 Michael Snyder <msnyder@redhat.com> |
5127 | ||
5128 | * elf-bfd.h (elfcore_write_lwpstatus): Add prototype. | |
5129 | * elf.c (elfcore_grok_pstatus): Add prototype. | |
5130 | (elfcore_grok_lwpstatus): Add prototype. | |
5131 | (elfcore_write_lwpstatus): New function. | |
5132 | (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy. | |
5133 | ||
518313c3 AO |
5134 | 2002-02-11 Alexandre Oliva <aoliva@redhat.com> |
5135 | ||
5136 | * elf32-sh.c: Added missing prototypes. | |
5137 | * elf32-sh64.c: Likewise. | |
5138 | (sh_elf_align_loads): Mark unused args as such. | |
5139 | * elf64-sh64.c: Added missing prototypes. | |
5140 | (struct elf_sh64_link_hash_entry): Fix typo. | |
5141 | (sh_elf64_relocate_section): Fix info argument passed to | |
5142 | _bfd_elf_section_offset. | |
5143 | ||
2c73f9d8 AM |
5144 | 2002-02-11 Alan Modra <amodra@bigpond.net.au> |
5145 | ||
5146 | * Makefile.am: "make dep-am". | |
5147 | * Makefile.in: Regenerate. | |
5148 | * aclocal.m4: Regenerate. | |
5149 | * config.in: Regenerate. | |
5150 | * configure: Regenerate. | |
5151 | ||
d426c6b0 DJ |
5152 | 2002-02-10 Daniel Jacobowitz <drow@mvista.com> |
5153 | ||
5154 | * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized | |
5155 | variable warnings. | |
5156 | * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned | |
5157 | comparison warning. | |
5158 | * trad-core.c (trad_unix_core_file_p): Silence pointer/integer | |
5159 | cast warnings for the common case. | |
5160 | ||
e58ee0cd HPN |
5161 | 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com> |
5162 | ||
5163 | * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64 | |
5164 | vectors. | |
5165 | (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64 | |
5166 | vectors. | |
5167 | ||
7793f4d0 RH |
5168 | 2002-02-09 Richard Henderson <rth@redhat.com> |
5169 | ||
5170 | * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP. | |
5171 | (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise. | |
5172 | (elf64_alpha_relocate_section): Likewise. | |
5173 | * reloc.c (BFD_RELOC_ALPHA_BRSGP): New. | |
5174 | * bfd-in2.h, libbfd.h: Rebuild. | |
5175 | ||
7e799044 HPN |
5176 | 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com> |
5177 | ||
5178 | * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check | |
5179 | that base-plus-offset reloc accounting is consistent. | |
5180 | (mmix_elf_relax_section): Keep base-plus-offset reloc accounting | |
5181 | up to date for undefined symbols. | |
5182 | ||
027d73eb EC |
5183 | 2002-02-08 Eric Christopher <echristo@redhat.com> |
5184 | ||
5185 | From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | |
5186 | ||
5187 | * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela | |
5188 | sections for the O32 ABI. | |
5189 | ||
517662d4 CD |
5190 | 2002-02-08 Chris Demetriou <cgd@broadcom.com> |
5191 | ||
5192 | * elf32-arm.h: Fix formatting of _("..."). | |
5193 | * elf32-d10v.c: Likewise. | |
5194 | * elf32-m68k.c: Likewise. | |
5195 | * elf32-mips.c: Likewise. | |
5196 | ||
5e37cc46 NC |
5197 | 2002-02-08 Ivan Guzvinec <ivang@opencores.org> |
5198 | ||
5199 | * coff-or32.c: Fix compile time warning messages. | |
5200 | ||
fbca6ad9 AO |
5201 | 2002-02-08 Alexandre Oliva <aoliva@redhat.com> |
5202 | ||
5203 | Contribute sh64-elf. | |
5204 | 2002-01-23 Alexandre Oliva <aoliva@redhat.com> | |
5205 | * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16, | |
5206 | R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16, | |
5207 | R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16, | |
5208 | R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16, | |
5209 | R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16, | |
5210 | R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16, | |
5211 | R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16, | |
5212 | R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8, | |
5213 | R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64): | |
5214 | New relocs. | |
5215 | * libbfd.h, bfd-in2.h: Rebuilt. | |
5216 | * elf32-sh.c (sh_elf_howto_table): Define new relocs. | |
5217 | (sh_reloc_map): Map them. | |
5218 | (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le, | |
5219 | elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be, | |
5220 | elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry, | |
5221 | elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset, | |
5222 | elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset, | |
5223 | elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset, | |
5224 | movi_shori_putval) [INCLUDE_SHMEDIA]: New. | |
5225 | (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add | |
5226 | datalabel_got_offset. | |
5227 | (sh_elf_link_hash_newfunc): Initialize it. | |
5228 | (sh_elf_relocate_section): Augment the scope of | |
5229 | seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT, | |
5230 | GOT and GOTOFF handling to new SHmedia relocation types. Support | |
5231 | GOT_BIAS. | |
5232 | (sh_elf_check_relocs): Likewise. | |
5233 | (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in | |
5234 | PLT entries using movi_shori_putval. Support GOT_BIAS. | |
5235 | (sh_elf_finish_dynamic_sections): Likewise. | |
5236 | * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to | |
5237 | relocation, it's now done by the caller. | |
5238 | (GOT_BIAS): New. | |
5239 | * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt, | |
5240 | elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset, | |
5241 | elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset, | |
5242 | elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER, | |
5243 | elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry, | |
5244 | elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse, | |
5245 | sh64_elf64_hash_table): New. | |
5246 | (sh_elf64_howto_table): Introduce new relocs. | |
5247 | (sh_elf64_info_to_howto): Accept new PIC relocs. | |
5248 | (sh_elf64_relocate_section): Augment the scope of | |
5249 | seen_stt_datalabel. Support new PIC relocs. | |
5250 | (sh_elf64_check_relocs): Support new PIC relocs. | |
5251 | (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le, | |
5252 | elf_sh64_plt_entry_be, elf_sh64_plt_entry_le, | |
5253 | elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le, | |
5254 | elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry, | |
5255 | sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create, | |
5256 | movi_shori_putval, movi_3shori_putval, | |
5257 | sh64_elf64_create_dynamic_sections, | |
5258 | sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies, | |
5259 | sh64_elf64_size_dynamic_sections, | |
5260 | sh64_elf64_finish_dynamic_symbol, | |
5261 | sh64_elf64_finish_dynamic_sections): New. | |
5262 | (elf_backend_create_dynamic-sections, | |
5263 | bfd_elf64_bfd_link_hash_table_create, | |
5264 | elf_backend_adjust_dynamic_symbol, | |
5265 | elf_backend_size_dynamic_sections, | |
5266 | elf_backend_finish_dynamic_symbol, | |
5267 | elf_backend_finish_dynamic_sections, elf_backend_want_got_plt, | |
5268 | elf_backend_plt_readonly, elf_backend_want_plt_sym, | |
5269 | elf_backend_got_header_size, elf_backend_plt_header_size): | |
5270 | Define. | |
5271 | 2001-05-16 Alexandre Oliva <aoliva@redhat.com> | |
5272 | * elf32-sh.c: Renumbered and renamed some SH5 relocations to | |
5273 | match official numbers and names; moved unmaching ones to the | |
5274 | range 0xf2-0xff. | |
5275 | * elf32-sh64.c, elf64-sh64.c: Likewise. | |
5276 | 2001-03-12 DJ Delorie <dj@redhat.com> | |
5277 | * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia | |
5278 | sections. | |
5279 | 2001-03-12 DJ Delorie <dj@redhat.com> | |
5280 | * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must | |
5281 | be aligned. | |
5282 | * elf64-sh64.c (sh_elf64_relocate_section): Ditto. | |
5283 | 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com> | |
5284 | * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define. | |
5285 | (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a | |
5286 | .cranges section with SEC_SORT_ENTRIES set. | |
5287 | (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an | |
5288 | incoming sorted .cranges section. | |
5289 | (sh64_bfd_elf_copy_private_section_data): New. | |
5290 | (sh64_elf_final_write_processing): Only sort .cranges and modify | |
5291 | start address if called by linker. | |
5292 | 2001-01-08 Ben Elliston <bje@redhat.com> | |
5293 | * elf32-sh64.c (sh64_elf_final_write_processing): Activate | |
5294 | Hans-Peter Nilsson's set bit 0 patch from 2001-01-06. | |
5295 | * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto. | |
5296 | 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com> | |
5297 | * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of | |
5298 | line. Add comments before all entries. | |
5299 | <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing | |
5300 | comment. | |
5301 | (sh_elf64_reloc): Correct head comment. | |
5302 | (sh_elf64_relocate_section): Correct spacing. | |
5303 | <relocating for a local symbol>: Do not honour STO_SH5_ISA32; | |
5304 | instead call reloc_dangerous callback. | |
5305 | <case R_SH_SHMEDIA_CODE>: New case. | |
5306 | (sh_elf64_gc_mark_hook): Correct spacing. | |
5307 | (sh_elf64_check_relocs): Ditto. | |
5308 | * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>: | |
5309 | New case. | |
5310 | * elf32-sh.c: Correct #endif comments for #ifndef-wrapped | |
5311 | functions. | |
5312 | (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct, | |
5313 | clarify describing comment. Add comments before all entries. | |
5314 | (sh_elf_relocate_section) <relocating for a local symbol>: Do not | |
5315 | honour STO_SH5_ISA32; instead call reloc_dangerous callback. | |
5316 | 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com> | |
5317 | Sort .cranges section in final link. Prepare to set bit 0 on | |
5318 | entry address. | |
5319 | * elf32-sh64.c (struct sh64_find_section_vma_data): New. | |
5320 | (sh64_elf_link_output_symbol_hook): Fix typo in prototype. | |
5321 | (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming | |
5322 | .cranges section. | |
5323 | (sh64_backend_section_from_shdr): New, to recognize | |
5324 | SHT_SH5_CR_SORTED on incoming .cranges section. | |
5325 | (elf_backend_section_from_shdr): Define. | |
5326 | (sh64_elf_final_write_processing): Sort outgoing .cranges | |
5327 | section. (New, temporarily disabled:) Set bit 0 on entry address | |
5328 | according to ISA type. | |
5329 | (sh64_find_section_for_address): New. | |
5330 | (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb, | |
5331 | crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c. | |
5332 | (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use | |
5333 | bfd_malloc, not xmalloc. | |
5334 | (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make | |
5335 | global. | |
5336 | * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but | |
5337 | temporarily disabled) setting bit 0 on entry address. | |
5338 | (elf_backend_final_write_processing): Define. | |
5339 | 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com> | |
5340 | * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to | |
5341 | be a proper relocation for PTA and PTB rather than a marker. | |
5342 | <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2, | |
5343 | R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16, | |
5344 | R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16, | |
5345 | R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL, | |
5346 | R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>: | |
5347 | Zero src_mask. | |
5348 | * elf64-sh64.c: Ditto. | |
5349 | (sh_elf64_relocate_section) <case R_SH_PT_16>: New case. | |
5350 | * elf32-sh64.c: Include opcodes/sh64-opc.h | |
5351 | (shmedia_prepare_reloc): Take a bfd_link_info pointer as first | |
5352 | argument. Drop const qualifiers from "bfd *" and "bfd_byte *" | |
5353 | parameters. No unused parameters. Caller changed. | |
5354 | <case R_SH_PT_16>: New case. | |
5355 | * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h. | |
5356 | * Makefile.in: Regenerate. | |
5357 | 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com> | |
5358 | * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for | |
5359 | all code sections. | |
5360 | (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5. | |
5361 | (sh64_elf_merge_private_data): Ditto. | |
5362 | * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data | |
5363 | to access stored section flags. | |
5364 | (sh64_elf_final_write_processing): Return immediately unless | |
5365 | called by linker. Use sh64_elf_section_data (cranges) to get size | |
5366 | of linker-generated cranges entries. | |
5367 | (sh64_elf_copy_private_data): Add missing "return true". | |
5368 | (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5. | |
5369 | (sh_elf64_merge_private_data): Ditto. | |
5370 | 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com> | |
5371 | * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of | |
5372 | elf64-sh64.c:sh64_elf_fake_sections. | |
5373 | (elf_backend_fake_sections): Define as sh64_elf64_fake_sections. | |
5374 | 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com> | |
5375 | * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete. | |
5376 | (sh64_elf_final_write_processing): New. | |
5377 | (elf_backend_final_write_processing): Define. | |
5378 | (sh64_elf_fake_sections): Get header flags from tdata field. | |
5379 | (sh64_elf_copy_private_data): Do not call | |
5380 | sh64_elf_copy_private_data_internal, just copy e_flags field. | |
5381 | (sh64_elf_merge_private_data): Do not call | |
5382 | sh64_elf_copy_private_data_internal. | |
5383 | 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com> | |
5384 | Remove EF_SH64_ABI64, let ELF size make difference. | |
5385 | Remove SH64-specific BFD section flag. | |
5386 | * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as | |
5387 | containing SHmedia through elf_section_data (asect)->tdata | |
5388 | non-zero, not using a BFD section flag. | |
5389 | (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64. | |
5390 | (sh64_elf_merge_private_data): Similar. | |
5391 | (elf_backend_section_flags): Don't define. | |
5392 | (sh64_elf_backend_section_flags): Delete. | |
5393 | * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64, | |
5394 | not EF_SH64_ABI64. | |
5395 | (sh_elf64_merge_private_data): Similar. | |
5396 | * section.c (Section flags definitions): Don't define | |
5397 | SEC_SH_ISA_SHMEDIA. | |
5398 | (bfd-in2.h): Regenerate. | |
5399 | 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com> | |
5400 | Make DataLabel references work with partial linking. | |
5401 | * elf32-sh64.c: Fix formatting. | |
5402 | (sh64_elf_link_output_symbol_hook): New. | |
5403 | (elf_backend_link_output_symbol_hook): Define to | |
5404 | sh64_elf_link_output_symbol_hook. | |
5405 | (sh64_elf_add_symbol_hook): Make DataLabel symbol just global | |
5406 | undefined if partial linking. Adjust sanity check. | |
5407 | * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New. | |
5408 | (elf_backend_link_output_symbol_hook): Define to | |
5409 | sh64_elf64_link_output_symbol_hook. | |
5410 | (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global | |
5411 | undefined if partial linking. Adjust sanity check. | |
5412 | 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com> | |
5413 | Implement semantics for inter-file DataLabel references. | |
5414 | * elf64-sh64.c (DATALABEL_SUFFIX): Define. | |
5415 | (sh64_elf64_add_symbol_hook): New. | |
5416 | (sh_elf64_relocate_section): If passing an indirect symbol with | |
5417 | st_type STT_DATALABEL on the way to a symbol with st_other | |
5418 | STO_SH5_ISA32, do not bitor 1 to the relocation. | |
5419 | (elf_backend_add_symbol_hook): Define to | |
5420 | sh64_elf64_add_symbol_hook. | |
5421 | * elf64-sh32.c: Tweak comments. | |
5422 | (DATALABEL_SUFFIX): Define. | |
5423 | (sh64_elf_add_symbol_hook): New. | |
5424 | (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook. | |
5425 | * elf32-sh.c (sh_elf_relocate_section): If passing an indirect | |
5426 | symbol with st_type STT_DATALABEL on the way to a symbol with | |
5427 | st_other STO_SH5_ISA32, do not bitor 1 to the relocation. | |
5428 | 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com> | |
5429 | Pass through STT_DATALABEL. | |
5430 | * elf32-sh64.c (sh64_elf_get_symbol_type): New. | |
5431 | (elf_backend_get_symbol_type): Define. | |
5432 | * elf64-sh64.c (sh64_elf64_get_symbol_type): New. | |
5433 | (elf_backend_get_symbol_type): Define. | |
5434 | 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com> | |
5435 | * elf32-sh64.c: Tweak comments. | |
5436 | (sh64_elf_copy_private_data_internal): Add prototype. | |
5437 | (bfd_elf32_bfd_set_private_flags): Define. | |
5438 | (sh64_elf_copy_private_data_internal): Compare machine name, not | |
5439 | textual BFD target name, to check whether to copy section flag | |
5440 | SHF_SH5_ISA32. | |
5441 | (sh64_elf_merge_private_data): Validize bfd_get_arch_size. | |
5442 | Tweak section-contents-type-mismatch message. | |
5443 | (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers. | |
5444 | Validize reloc-types. | |
5445 | * elf64-sh64.c: New file. | |
5446 | * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare. | |
5447 | * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo. | |
5448 | (BFD64_BACKENDS_CFILES): Add elf64-sh64.c. | |
5449 | Regenerate dependencies. | |
5450 | * Makefile.in: Regenerate. | |
5451 | * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and | |
5452 | bfd_elf64_sh64l_vec. | |
5453 | * configure.in: Handle bfd_elf64_sh64_vec and | |
5454 | bfd_elf64_sh64l_vec. | |
5455 | * configure: Regenerate. | |
5456 | * po/POTFILES.in: Regenerate. | |
5457 | * po/bfd.pot: Regenerate. | |
5458 | 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com> | |
5459 | * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize | |
5460 | anything else but EF_SH64 and EF_SH64_ABI64. | |
5461 | (sh64_elf_merge_private_data): Emit error for anything else but | |
5462 | EF_SH64 and EF_SH64_ABI64. | |
5463 | * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec | |
5464 | from targ_selvecs. | |
5465 | * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and | |
5466 | bfd_elf32_sh64l_vec as a temporary measure. | |
5467 | * configure: Regenerate. | |
5468 | 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com> | |
5469 | * cpu-sh.c (arch_info_struct): Include sh5 item | |
5470 | unconditionalized. | |
5471 | * config.bfd (sh64-*-elf*): Do not set targ_cflags. | |
5472 | Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec, | |
5473 | bfd_elf32_shblin_vec and bfd_elf32_shlin_vec. | |
5474 | * elf32-sh64.c: Tweak comments. | |
5475 | (sh64_elf_set_mach_from_flags): Recognize all machine flags that | |
5476 | are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64. | |
5477 | (sh64_elf_copy_private_data_internal): Wrap long line. | |
5478 | (sh64_elf_merge_private_data): Rewrite to allow objects from | |
5479 | SH64 subsets to be linked together. | |
5480 | (INCLUDE_SHMEDIA): Define. | |
5481 | * elf32-sh.c (sh_elf_relocate_section) <local symbol>: | |
5482 | Parenthesize plus-expression inside or-expression. | |
5483 | <global symbol>: Ditto. | |
5484 | (sh_elf_set_mach_from_flags): Remove code refusing | |
5485 | deleted EF_SH64_32BIT_ABI flag. | |
5486 | 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com> | |
5487 | * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL, | |
5488 | R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL, | |
5489 | R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true. | |
5490 | (sh_elf_relocate_section) <local symbol>: Or 1 in | |
5491 | calculation of relocation if sym->st_other & STO_SH5_ISA32. | |
5492 | <global symbol>: Ditto if h->other & STO_SH5_ISA32. | |
5493 | * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to | |
5494 | relocation. | |
5495 | 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com> | |
5496 | * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo. | |
5497 | (BFD32_BACKENDS_CFILES): Add elf32-sh64.c. | |
5498 | Regenerate dependencies. | |
5499 | * Makefile.in: Regenerate. | |
5500 | * archures.c: Add bfd_mach_sh5. | |
5501 | * config.bfd: Map targ_cpu sh* to bfd_sh_arch. | |
5502 | Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA. | |
5503 | * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec. | |
5504 | * configure: Regenerate. | |
5505 | * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5, | |
5506 | BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6, | |
5507 | BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2, | |
5508 | BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8, | |
5509 | BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16, | |
5510 | BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16, | |
5511 | BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16, | |
5512 | BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16, | |
5513 | BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations. | |
5514 | * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link | |
5515 | in item for SH5. | |
5516 | * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items | |
5517 | for SHmedia relocs. | |
5518 | [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs. | |
5519 | [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call | |
5520 | shmedia_prepare_reloc, goto final_link_relocate if it returns | |
5521 | non-zero, else fail as before. | |
5522 | (sh_elf_set_mach_from_flags): Provide function only if not defined | |
5523 | as macro. Do not recognize objects with EF_SH64_32BIT_ABI set. | |
5524 | (sh_elf_set_private_flags): Provide function only if not defined | |
5525 | as a macro. | |
5526 | (sh_elf_copy_private_data): Similar. | |
5527 | (sh_elf_merge_private_data): Similar. | |
5528 | * section.c (SEC_SH_ISA_SHMEDIA): New. | |
5529 | * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare. | |
5530 | * elf32-sh64.c: New file. | |
5531 | * libbfd.h: Regenerate. | |
5532 | * bfd-in2.h: Regenerate. | |
5533 | * po/POTFILES.in: Regenerate. | |
5534 | * po/bfd.pot: Regenerate. | |
5535 | * bfd-in2.h: Regenerate. | |
5536 | * libbfd.h: Regenerate. | |
5537 | ||
e108f470 DJ |
5538 | 2002-02-07 Daniel Jacobowitz <drow@mvista.com> |
5539 | ||
5540 | * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has | |
5541 | been included, not drag it in. | |
5542 | * bfd-in2.h: Regenerate. | |
5543 | ||
259d18a3 L |
5544 | 2002-02-06 H.J. Lu (hjl@gnu.org) |
5545 | ||
5546 | * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update | |
5547 | the mach and ISA fields if necessary. | |
5548 | ||
f13b834e NC |
5549 | 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com> |
5550 | ||
5551 | * coffcode.h (coff_set_arch_mach_hook): Select the highest known | |
5552 | ARM architecture when an F_ARM_5 flag is detected, since we cannot | |
5553 | be sure exactly which architecture this represents. | |
5554 | ||
82f6addb NC |
5555 | 2002-02-05 Nick Clifton <nickc@redhat.com> |
5556 | ||
5557 | * po/tr.po: Updated translation. | |
5558 | ||
899f54f5 AM |
5559 | 2002-02-05 Alan Modra <amodra@bigpond.net.au> |
5560 | ||
5561 | From Jimi X <jimix@watson.ibm.com> | |
5562 | * archures (bfd_mach_ppc64): Define. | |
5563 | (bfd_powerpc_arch): Rename to bfd_powerpc_archs. | |
5564 | (bfd_powerpc_arch): Define. | |
5565 | * bfd-in2.h: Regenerate. | |
5566 | * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs. | |
5567 | (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs. | |
5568 | (bfd_powerpc_archs): Add default powerpc64 arch. | |
5569 | ||
248866a8 AM |
5570 | 2002-02-05 Alan Modra <amodra@bigpond.net.au> |
5571 | ||
5572 | * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs | |
5573 | against section syms in readonly sections. Don't do the global | |
5574 | sym check if we find one. | |
5575 | * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise. | |
5576 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise. | |
0a6958db | 5577 | * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise. |
248866a8 AM |
5578 | * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise. |
5579 | (elf_s390_grok_prstatus): Add missing prototype. | |
5580 | ||
4fa5c2a8 HPN |
5581 | 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com> |
5582 | ||
5583 | * elf64-mmix.c (mmix_dump_bpo_gregs): New function. | |
5584 | (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>: | |
5585 | Call bfd_get_section_by_name only once. Initialize | |
5586 | bpodata->n_bpo_relocs_this_section. | |
5587 | (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment | |
5588 | referring to DSOs. | |
5589 | (bpo_reloc_request_sort_fn): Don't use difference of values as | |
5590 | return-value. | |
5591 | ||
537c972e DB |
5592 | 2002-02-02 David O'Brien <obrien@FreeBSD> |
5593 | ||
5594 | * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat | |
5595 | version 4.5 and later the same as 5-CURRENT. | |
5596 | * configure: Re-generate. | |
5597 | ||
006336b8 JT |
5598 | 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com> |
5599 | ||
5600 | * config.bfd (hppa*-*-netbsd*): New target. | |
5601 | ||
6c571f00 PT |
5602 | 2002-01-31 Philipp Thomas <pthomas@suse.de> |
5603 | ||
19397422 AM |
5604 | * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR |
5605 | to front of message. Unify messages with elf32-arm.h. Use | |
5606 | commas where neccessary. | |
5607 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase | |
5608 | ERROR in messages. Unify messages with coff-arm.c. Correct | |
5609 | VFP/FPA error message. | |
5610 | (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and | |
5611 | APCS-32 for translation. | |
6c571f00 | 5612 | |
930b4cb2 HPN |
5613 | 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com> |
5614 | ||
5615 | Perform on-demand global register allocation from | |
5616 | R_MMIX_BASE_PLUS_OFFSET relocs. | |
5617 | * elf64-mmix.c (struct bpo_reloc_section_info, struct | |
5618 | bpo_reloc_request, struct bpo_greg_section_info): New. | |
5619 | (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook, | |
5620 | bpo_reloc_request_sort_fn, mmix_elf_relax_section, | |
5621 | _bfd_mmix_check_all_relocs, | |
5622 | _bfd_mmix_prepare_linker_allocated_gregs, | |
5623 | _bfd_mmix_finalize_linker_allocated_gregs): New functions. | |
5624 | (elf_mmix_howto_table): Correct src_mask for most relocs. | |
5625 | (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New | |
5626 | case. | |
5627 | (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New | |
5628 | case. Fix typo in comment. New label do_mmix_reloc. | |
5629 | (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to | |
5630 | store first object file with a base-plus-offset reloc. Call | |
5631 | mmix_elf_check_common_relocs for the part common with mmo. | |
5632 | (mmix_elf_final_link): Write out linker-allocated register | |
5633 | contents section. | |
5634 | (elf_backend_gc_sweep_hook): Define. | |
5635 | (bfd_elf64_bfd_relax_section): Define. | |
5636 | ||
5637 | * mmo.c: Don't include <ctype.h> | |
5638 | (mmo_init): Correct init-once logic. | |
5639 | ||
3e36d993 TR |
5640 | 2002-02-01 Tom Rix <trix@redhat.com> |
5641 | ||
5642 | * config.bfd: Conditionally support <aiaff> for pre AIX 4.3. | |
5643 | ||
ba323545 AM |
5644 | 2002-02-01 Alan Modra <amodra@bigpond.net.au> |
5645 | ||
5646 | * Makefile.am: Run "make dep-am" | |
5647 | * Makefile.in: Regenerate. | |
5648 | ||
012884d6 DB |
5649 | 2002-01-31 David O'Brien <obrien@FreeBSD> |
5650 | ||
5651 | * configure.in: Recognize the differences in core files from FreeBSD | |
5652 | 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as | |
5653 | 5-CURRENT. | |
5654 | * configure: Regenerate. | |
5655 | ||
3b16e843 NC |
5656 | 2002-01-31 Ivan Guzvinec <ivang@opencores.org> |
5657 | ||
5658 | * coff-or32.c: New file. | |
5659 | * cpu-or32.c: New file. | |
5660 | * elf32-or32.c: New file. | |
5661 | * archures.c: Add support for or32. | |
5662 | * targets.c: Add support for or32. | |
5663 | * bfd-in2.h: Regenerate. | |
7dc0ab31 | 5664 | * coffcode.h (coff_set_arch_mach_hook, coff_set_flags, |
3b16e843 NC |
5665 | coff_write_object_contents): Add support for or32. |
5666 | * config.bfd: Add target. | |
5667 | * configure.in: Add support for or32. | |
5668 | * configure: Regenerate. | |
5669 | * Makefile.am: Add support for or32. | |
5670 | * Makefile.in: Regenerate. | |
3b16e843 NC |
5671 | * po/SRC-POTFILES.in: Add or32 files. |
5672 | * po/bfd.pot: Regenerate. | |
7dc0ab31 | 5673 | |
caf8ca8e NC |
5674 | 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com> |
5675 | Don Lindsay <lindsayd@cisco.com> | |
5676 | ||
5677 | * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return | |
5678 | false' with a return of a bfd_reloc_ error code. | |
5679 | ||
e5dfef09 HPN |
5680 | 2002-01-31 Hans-Peter Nilsson <hp@axis.com> |
5681 | ||
5682 | * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't | |
5683 | unexport unreferenced symbols when --export-dynamic. Call | |
5684 | _bfd_elf_strtab_delref when unexporting. | |
5685 | ||
4e4770d0 DJ |
5686 | 2002-01-30 Daniel Jacobowitz <drow@mvista.com> |
5687 | ||
5688 | * bfd-in.h: Include <stdbool.h> if it is available. | |
5689 | * bfd-in2.h: Regenerated. | |
5690 | ||
e1fa50e7 AM |
5691 | 2002-01-31 Alan Modra <amodra@bigpond.net.au> |
5692 | ||
5693 | * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should | |
5694 | not go via the plt. | |
5695 | ||
b5f79c76 NC |
5696 | 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com> |
5697 | ||
b5f79c76 NC |
5698 | * archures.c: Tidy up formatting of embedded comments. |
5699 | * bfd.c: Tidy up formatting of embedded comments. | |
7dc0ab31 | 5700 | * bfd-in.h: Fix formatting of comments. |
b5f79c76 NC |
5701 | * reloc.c: Tidy up formatting of ordinary & embedded comments. |
5702 | * section.c: Tidy up formatting of embedded comments. | |
5703 | * syms.c: Tidy up formatting of embedded comments. | |
5704 | * targets.c: Tidy up formatting of embedded comments. | |
5705 | ||
5706 | * bfd-in2.h: Regenerate. | |
5707 | ||
ca09e32b NC |
5708 | 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com> |
5709 | ||
5710 | * vms-tir.c (cmd_name): New function. | |
5711 | (tir_cmd_name): New function. | |
5712 | (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name(). | |
5713 | (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name(). | |
5714 | Fix formatting. | |
7dc0ab31 | 5715 | |
ca09e32b NC |
5716 | * peXXigen.c (pe_print_idata): Rearrange message to aid in |
5717 | translation. | |
5718 | (pe_print_pdata): Rearrange message to aid in translation. | |
5719 | ||
5720 | * libbfd.c (warn_deprecated): Rearrange error message to aid in | |
5721 | translation. | |
5722 | ||
5723 | * ihex.c (ihex_write_object_contents): Fix spelling typo. | |
5724 | ||
5725 | * ieee.c (ieee_slurp_external_symbols): Remove spurious space. | |
5726 | ||
5727 | * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error | |
5728 | message to aid in translation. | |
5729 | ||
5730 | * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message | |
5731 | to aid in translation. | |
5732 | ||
5733 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo. | |
5734 | ||
7dc0ab31 | 5735 | 2002-01-30 Philipp Thomas <pthomas@suse.de> |
ae1a89b7 PT |
5736 | |
5737 | * coff-arm.c, elf32-elf.h: Unify messages. | |
5738 | ||
05f64ac6 NC |
5739 | 2002-01-30 Nick Clifton <nickc@redhat.com> |
5740 | ||
5741 | * po/sv.po: Updated translation. | |
5742 | ||
f5a3e38a NC |
5743 | 2002-01-30 Philipp Thomas <pthomas@suse.de> |
5744 | ||
5745 | * dwarf2.c (read_abbrev): Use full section name in error message. | |
5746 | (decode_line_info): Likewise. | |
661a3fd4 NC |
5747 | |
5748 | * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging | |
5749 | message. | |
5750 | ||
d926e03d AM |
5751 | 2002-01-30 Alan Modra <amodra@bigpond.net.au> |
5752 | ||
5753 | * elf64-ppc.c (func_desc_adjust): Only provide missing function | |
5754 | descriptor symbols for undefined function code syms. Clear | |
5755 | ELF_LINK_NON_ELF so that they can stay weak. | |
5756 | ||
030d18fb | 5757 | 2002-01-29 Chris Demetriou <cgd@broadcom.com> |
7dc0ab31 | 5758 | Mitch Lichtenberg <mpl@broadcom.com> |
030d18fb CD |
5759 | |
5760 | * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype. | |
5761 | * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function | |
5762 | to handle 32-bit ELF embedded reloc (ld --embedded-relocs) | |
5763 | generation. | |
5764 | * bfd-in2.h: Regenerate. | |
5765 | ||
fcc76bea CD |
5766 | 2002-01-29 Chris Demetriou <cgd@broadcom.com> |
5767 | ||
5768 | * elf32-mips.c: Add additional comments about HI16 relocation | |
5769 | processing. | |
5770 | (_bfd_mips_elf_hi16_reloc): Don't subtract address here for | |
5771 | pc-relative relocations. (Reverts change made on 2001-10-31.) | |
5772 | (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here | |
5773 | for pc-relative relocations. | |
5774 | (mips_elf_calculate_relocation): Add a comment about a kludge | |
5775 | in the R_MIPS_GNU_REL_HI16 handling. | |
5776 | (_bfd_mips_elf_relocate_section): Implement that kludge; | |
5777 | adjust pc-relative HI16 relocation for difference in HI16 and | |
5778 | LO16 addresses, since it can't easily be done in | |
5779 | mips_elf_calculate_relocation. | |
5780 | ||
f9cd9119 MS |
5781 | 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com> |
5782 | ||
5783 | * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32 | |
5784 | relocations with PC32 relocations for undefined or weak symbols. | |
5785 | * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise. | |
5786 | * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise. | |
5787 | ||
702248bb JT |
5788 | 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com> |
5789 | ||
5790 | * elfcore.h (elf_core_file_p): Improve comment for last change. | |
5791 | ||
4867be41 DJ |
5792 | 2002-01-27 Daniel Jacobowitz <drow@mvista.com> |
5793 | ||
5794 | * configure: Regenerated. | |
5795 | ||
a94cef6a JT |
5796 | 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com> |
5797 | ||
5798 | * elfcore.h (elf_core_file_p): Set the machine architecture | |
5799 | before processing the program headers. | |
5800 | ||
7562a296 HPN |
5801 | 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com> |
5802 | ||
966abd70 HPN |
5803 | * configure.in <64-bit configuration>: If using gcc, check and |
5804 | emit error for egcs-1.1.2. | |
5805 | * configure: Regenerate. | |
5806 | ||
e8eab623 NC |
5807 | 2002-01-26 Egor Duda <deo@logos-m.ru> |
5808 | ||
5809 | * elf.c (elfcore_grok_win32pstatus): Copy only as much information | |
5810 | as possible to avoid stack corruption. | |
5811 | ||
73896efb RH |
5812 | 2002-01-26 Richard Henderson <rth@redhat.com> |
5813 | ||
5814 | * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext | |
5815 | for non-allocated sections. | |
5816 | ||
5817 | 2002-01-25 Mark Kettenis <kettenis@gnu.org> | |
c106e334 MK |
5818 | |
5819 | * elf.c (elfcore_write_prstatus): Make sure we pass the address of | |
5820 | prstat.pr_reg even if it is a struct. | |
5821 | ||
73896efb | 5822 | 2002-01-25 Steve Ellcey <sje@cup.hp.com> |
254ed743 | 5823 | |
c5cd6d62 | 5824 | * elfxx-ia64.c: Reset AIX vector function overrides for HP-UX. |
254ed743 | 5825 | |
3d66c4f7 NC |
5826 | 2002-01-25 Philipp Thomas <pthomas@suse.de> |
5827 | ||
5828 | * coffgen.c (coff_print_symbol): Don't mark info message | |
5829 | for translation. | |
5830 | ||
9460ecda NC |
5831 | 2002-01-25 Nick Clifton <nickc@redhat.com> |
5832 | ||
5833 | * po/fr.po: Updated translation. | |
5834 | * po/es.po: Updated translation. | |
5835 | ||
cc9ff76a AM |
5836 | 2002-01-25 Philipp Thomas <pthomas@suse.de> |
5837 | ||
5838 | * coff-alpha.c (alpha_relocate_section): Unify warning message | |
5839 | for GP relative relocations without GP defined. | |
5840 | * coff-mips.c (mips_relocate_section): Likewise. | |
5841 | ||
c68836a9 AM |
5842 | 2002-01-25 Alan Modra <amodra@bigpond.net.au> |
5843 | ||
5844 | * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid | |
5845 | unsigned overflow when new_offset < old_offset. | |
5846 | ||
e8eab623 | 5847 | 2002-01-24 Philipp Thomas <pthomas@suse.de> |
391154e9 NC |
5848 | |
5849 | * bfd.c (_bfd_abort): Fix typo. | |
5850 | ||
8ba89f17 RH |
5851 | 2002-01-23 Richard Henderson <rth@redhat.com> |
5852 | ||
5853 | * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress | |
5854 | plt entries for undefweak symbols. | |
5855 | ||
c6953948 NC |
5856 | 2002-01-23 Steve Ellcey <sje@cup.hp.com> |
5857 | ||
c5cd6d62 | 5858 | * targets.c (bfd_elf32_ia64_hpux_big_vec): Add to DEFAULT_VECTOR. |
c6953948 NC |
5859 | (bfd_elf64_ia64_hpux_big_vec): Ditto. |
5860 | (bfd_elf32_h8300_vec): Ditto. | |
5861 | ||
41bd81ab AM |
5862 | 2002-01-23 Alan Modra <amodra@bigpond.net.au> |
5863 | ||
5864 | * elf64-ppc.c: Remove stale part of ABI comment. | |
5865 | (NO_OPD_RELOCS): Define. | |
5866 | (ppc64_elf_check_relocs): Use it. | |
5867 | (ppc64_elf_relocate_section): Here too. | |
5868 | (build_one_stub): Don't point function syms at the stub. Instead, | |
5869 | hijack plt.offset. | |
5870 | (ppc64_elf_relocate_section): Check whether REL24 relocs should | |
5871 | really go to the stub. Make all dynamic relocs in opd against | |
5872 | locals. | |
5873 | (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of | |
5874 | plt.offset. | |
5875 | ||
f304919d RH |
5876 | 2002-01-22 Richard Henderson <rth@redhat.com> |
5877 | ||
5878 | * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp. | |
5879 | ||
c0ef99a7 AM |
5880 | 2002-01-22 Alan Modra <amodra@bigpond.net.au> |
5881 | ||
60ee0d4a AM |
5882 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of |
5883 | TOC_BASE_OFF adjustment. | |
5884 | ||
c0ef99a7 AM |
5885 | * Makefile.am: Run "make dep-am". |
5886 | * Makefile.in: Regenerate. | |
5887 | * po/SRC-POTFILES.in: Regenerate. | |
5888 | ||
64328b46 AM |
5889 | 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca> |
5890 | ||
5891 | * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new | |
5892 | host defines. | |
5893 | ||
59953665 | 5894 | 2002-01-21 Hans-Peter Nilsson <hp@axis.com> |
58255df3 HPN |
5895 | |
5896 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>: | |
5897 | Check for and emit error if sgot is NULL at this point. | |
5898 | ||
9596feea JT |
5899 | 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com> |
5900 | ||
5901 | * config.bfd (ia64*-*-netbsd*): New target. | |
5902 | ||
7b45c6e1 AM |
5903 | 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at> |
5904 | ||
5905 | * som.c (som_write_space_strings): Comment typo fix. | |
5906 | ||
e5094212 AM |
5907 | 2002-01-21 Alan Modra <amodra@bigpond.net.au> |
5908 | ||
e86ce104 AM |
5909 | * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and |
5910 | is_func_descriptor fields. | |
5911 | (link_hash_newfunc): Init them. | |
5912 | (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a | |
5913 | dot are candidates for plt entries. When processing .opd relocs, | |
5914 | set function descriptor strings to point inside function code | |
5915 | string, and set new ppc_link_hash_entry fields. | |
5916 | (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs. | |
5917 | (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with | |
5918 | function descriptors. It's now done in.. | |
5919 | (func_desc_adjust): New. | |
5920 | (ppc64_elf_func_desc_adjust): New. | |
5921 | (define elf_backend_always_size_sections): Define. | |
5922 | (ppc64_elf_hide_symbol): New. | |
5923 | (define elf_backend_hide_symbol): Define. | |
5924 | (allocate_dynrelocs): Remove code looking up function descriptors | |
5925 | as that has been done earlier. | |
5926 | (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash | |
5927 | table. | |
5928 | (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking | |
5929 | up function descriptor. | |
5930 | (build_one_stub): Look up the function code sym. Check for | |
5931 | invalid plt offsets. | |
5932 | (ppc64_elf_relocate_section): Tweak calls to undefined weak syms. | |
5933 | Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs. | |
5934 | ||
e5094212 AM |
5935 | * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add |
5936 | boolean param. | |
5937 | (_bfd_elf_link_hash_hide_symbol): Likewise. | |
5938 | * elflink.h (elf_link_add_object_symbols): Adjust call to | |
5939 | elf_backend_hide_symbol. | |
5940 | (elf_fix_symbol_flags): Likewise. | |
5941 | (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather | |
5942 | than bfd_alloc. | |
5943 | * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param. | |
5944 | Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref. | |
5945 | * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise. | |
5946 | (clobber_millicode_symbols): Adjust to suit new hide_symbol. | |
5947 | * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param | |
5948 | and adjust to suit. | |
5949 | * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call | |
5950 | _bfd_elf_link_hash_hide_symbol rather than duplicating code. | |
5951 | * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise. | |
5952 | ||
40b8271b AM |
5953 | 2002-01-18 Alan Modra <amodra@bigpond.net.au> |
5954 | ||
5955 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a | |
5956 | dynamic function descriptor symbol, not the associated function | |
5957 | symbol. | |
5958 | ||
55baa95b EC |
5959 | 2002-01-17 Eric Christopher <echristo@redhat.com> |
5960 | ||
5961 | * elf32-mips.c (mips_elf_calculate_relocation): Fix typo. | |
5962 | ||
328577ad NC |
5963 | 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com> |
5964 | ||
5965 | * po/bfd.pot: Regenerate. | |
5966 | * po/fr.po: Regenerate. | |
5967 | ||
af746e92 AM |
5968 | 2002-01-17 Alan Modra <amodra@bigpond.net.au> |
5969 | ||
5970 | * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>): | |
5971 | Remove "Elf_Internal_Shdr *" param. | |
5972 | (_bfd_mips_elf_section_from_bfd_section): Ditto. | |
5973 | * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto. | |
5974 | * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto. | |
5975 | * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto. | |
5976 | * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto. | |
5977 | * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto. | |
5978 | * elf.c (_bfd_elf_section_from_bfd_section): Allow backend | |
5979 | function to override special sections. Remove hdr arg from | |
5980 | backend call, and don't loop. | |
5981 | ||
175e9962 EC |
5982 | 2002-01-16 Eric Christopher <echristo@redhat.com> |
5983 | ||
5984 | * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp | |
5985 | on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of | |
5986 | relocations requiring gp0 and gp. | |
5987 | ||
96a846ea RE |
5988 | 2002-01-16 Richard Earnshaw <rearnsha@arm.com> |
5989 | ||
175e9962 | 5990 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle |
96a846ea RE |
5991 | EF_ARM_VFP_FLOAT. |
5992 | (elf32_arm_print_private_bfd_data): Likewise. | |
5993 | ||
af3ae48d NC |
5994 | 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com> |
5995 | ||
5996 | * po/tr.po: Import new version. | |
5997 | ||
10ed1bba AM |
5998 | 2002-01-16 Alan Modra <amodra@bigpond.net.au> |
5999 | ||
6000 | * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs. | |
6001 | (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc. | |
6002 | (ORI_R0_R0_0): Correct. | |
6003 | ||
5d1634d7 AM |
6004 | 2002-01-16 Alan Modra <amodra@bigpond.net.au> |
6005 | ||
6006 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE | |
6007 | when plt_not_loaded. | |
6008 | * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to | |
6009 | clear .plt SEC_CODE here. Create .stub and correct .glink flags. | |
6010 | (PLT_INITIAL_ENTRY_SIZE): Set to 24. | |
6011 | (ppc64_elf_glink_code): Delete. | |
6012 | (PPC64_ELF_GLINK_SIZE): Delete. | |
6013 | (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11, | |
6014 | BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0, | |
6015 | ORI_R0_R0_0): Define. | |
6016 | (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define. | |
6017 | (struct ppc_link_hash_table): Add sstub and plt_overflow. | |
6018 | (ppc64_elf_link_hash_table_create): Init them. | |
6019 | (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry. | |
6020 | Don't copy to shared lib. | |
6021 | (ppc64_elf_check_relocs): Call bfd_set_error on errors. | |
6022 | (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount. | |
6023 | (allocate_dynrelocs <plt>): Don't change function sym here. Make | |
6024 | room for .stub and .glink code. | |
6025 | (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for | |
6026 | DT_PPC64_GLINK. | |
6027 | (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call | |
6028 | bfd_elf64_bfd_final_link. | |
6029 | (bfd_elf64_bfd_final_link): Don't define. | |
6030 | (ppc64_elf_size_stubs): New. | |
6031 | (build_plt_stub): New. | |
6032 | (build_one_stub): New. | |
6033 | (ppc64_elf_build_stubs): New. | |
6034 | (ppc64_elf_relocate_section <toc relocs>): Remove assert. | |
6035 | (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs. | |
6036 | (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set | |
6037 | DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in | |
6038 | case output sections not separate. Adjust DT_RELASZ to not | |
6039 | include plt relocs. Set reserved got entry. Set got and plt | |
6040 | entry size. | |
6041 | (elf_backend_got_header_size): Set to 8. | |
6042 | * elf64-ppc.h: New file. | |
6043 | ||
c601ffdb AM |
6044 | 2002-01-16 Alan Modra <amodra@bigpond.net.au> |
6045 | ||
6046 | * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing | |
6047 | sections, use bfd_section_list_remove. | |
6048 | * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise. | |
6049 | * elflink.h (elf_link_add_object_symbols): When removing all | |
6050 | sections, use bfd_section_list_clear. | |
6051 | ||
8fb4cb7f NC |
6052 | 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com> |
6053 | ||
6054 | * po/sv.po: New file: Swedish translation. | |
6055 | * configure.in (ALL_LINGUAS): Add sv. | |
6056 | * configure: Regenerate. | |
6057 | ||
d3c456e9 JJ |
6058 | 2002-01-15 Jakub Jelinek <jakub@redhat.com> |
6059 | ||
6060 | * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change. | |
6061 | * elf.c (merge_sections_remove_hook): New function. | |
6062 | (_bfd_elf_merge_sections): Pass it as 3rd argument to | |
6063 | _bfd_merge_sections. | |
6064 | * libbfd-in.h (_bfd_merge_sections): Add 3rd argument. | |
6065 | * libbfd.h: Rebuilt. | |
6066 | * merge.c (_bfd_merge_sections): Add remove_hook argument. | |
6067 | Call remove_hook if a SEC_EXCLUDE section is encountered. | |
6068 | ||
1f7fd478 NC |
6069 | 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com> |
6070 | ||
6071 | * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'. | |
6072 | (xstormy16_reloc_map): Initialise new field with correct howto | |
6073 | table. | |
6074 | (xstormy16_reloc_type_lookup): Use 'table' field to locate correct | |
6075 | howto entry. | |
6076 | ||
b87011e9 MS |
6077 | 2002-01-10 Michael Snyder <msnyder@redhat.com> |
6078 | ||
6079 | * elf.c (elfcore_write_prstatus): Use long instead of pid_t; | |
6080 | (elfcore_write_pstatus): Use long instead of pid_t; | |
6081 | * elf-bfd.h: Change prototypes to use long instead of pid_t; | |
6082 | ||
175e9962 | 6083 | 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com> |
b4db1224 JT |
6084 | |
6085 | * elf.c: Update copyright years. | |
6086 | (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO | |
6087 | and NT_NETBSDCORE_FIRSTMACH. Improve a comment. | |
6088 | ||
7c76fa91 MS |
6089 | 2002-01-08 Michael Snyder <msnyder@redhat.com> |
6090 | ||
6091 | Add capability to write corefile note sections, for gdb. | |
6092 | * elf.c (elfcore_write_note): New function. | |
6093 | (elfcore_write_prpsinfo): New function. | |
6094 | (elfcore_write_prstatus): New function. | |
6095 | (elfcore_write_pstatus): New function. | |
6096 | (elfcore_write_prfpreg): New function. | |
6097 | (elfcore_write_prxfpreg): New function. | |
97996af6 | 6098 | * elf-bfd.h: Add prototypes for above functions. |
7c76fa91 | 6099 | |
e1fddb6b AO |
6100 | 2002-01-08 Alexandre Oliva <aoliva@redhat.com> |
6101 | ||
6102 | * elf.c (elf_fake_sections): Propagate errors from | |
6103 | elf_backend_fake_section. | |
6104 | ||
8d05742f JT |
6105 | 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com> |
6106 | ||
6107 | * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo. | |
6108 | (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c. | |
6109 | (elf32-sh-nbsd.lo): New rule. | |
6110 | * Makefile.in: Regenerate. | |
6111 | * config.bfd (sh*le-*-netbsdelf*): New target. | |
6112 | (sh*-*-netbsdelf*): New target. | |
6113 | * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*. | |
6114 | (bfd_elf32_shnbsd_vec): New vector. | |
6115 | (bfd_elf32_shlnbsd_vec): New vector. | |
6116 | * configure: Regenerate. | |
6117 | * elf32-sh-nbsd.c: New file. | |
6118 | * targets.c: Update copyright years. | |
175e9962 | 6119 | (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and |
8d05742f JT |
6120 | bfd_elf32_shnbsd_vec. |
6121 | ||
1dba4cb4 AH |
6122 | 2002-01-07 Aldy Hernandez <aldyh@redhat.com> |
6123 | ||
6124 | * coff-rs6000.c (READ20): Use bfd_scan_vma. | |
6125 | ||
47b22aef GK |
6126 | 2002-01-07 Geoffrey Keating <geoffk@redhat.com> |
6127 | ||
6128 | * elflink.h (elf_link_input_bfd): Don't ask for the merged offset | |
6129 | of a symbol in a section that will be deleted. | |
6130 | ||
be2d1673 NC |
6131 | 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com> |
6132 | ||
6133 | * po/es.po: New file: Spanish translation. | |
6134 | * configure.in (ALL_LINGUAS): Add es. | |
6135 | * configure: Regenerate. | |
6136 | ||
d9cf1b54 AM |
6137 | 2002-01-06 Steve Ellcey <sje@cup.hp.com> |
6138 | ||
6139 | * elfxx-ia64.c (is_unwind_section_name): Add target vector as | |
6140 | argument so we can handle HP-UX specially. | |
6141 | (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name. | |
6142 | (elfNN_hpux_backend_section_from_bfd_section): New for support | |
6143 | of SHN_IA_64_ANSI_COMMON. | |
6144 | (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON. | |
6145 | (is_unwind_section_name): Add special HP-UX support. | |
6146 | (elfNN_ia64_section_from_shdr): Add support for more sections. | |
6147 | (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and | |
6148 | add support for more sections. | |
6149 | (elfNN_ia64_additional_program_headers): Modify | |
6150 | is_unwind_section_name call. | |
6151 | (elfNN_ia64_modify_segment_map): Remove assumption that there is | |
6152 | only one unwind section in segment. | |
6153 | ||
3f3c5c34 AM |
6154 | 2002-01-06 Alan Modra <amodra@bigpond.net.au> |
6155 | ||
6156 | * syms.c (_bfd_generic_make_empty_symbol): New function. | |
6157 | * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as | |
6158 | _bfd_generic_make_empty_symbol. | |
6159 | * libbfd.h: Regenerate. | |
6160 | * bfd-in2.h: Regenerate. | |
6161 | * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function. | |
6162 | (hppabsd_core_get_symtab_upper_bound): Don't define. | |
6163 | (hppabsd_core_get_symtab): Likewise. | |
6164 | (hppabsd_core_print_symbol): Likewise. | |
6165 | (hppabsd_core_get_symbol_info): Likewise. | |
6166 | (hppabsd_core_bfd_is_local_label_name): Likewise. | |
6167 | (hppabsd_core_get_lineno): Likewise. | |
6168 | (hppabsd_core_find_nearest_line): Likewise. | |
6169 | (hppabsd_core_bfd_make_debug_symbol): Likewise. | |
6170 | (hppabsd_core_read_minisymbols): Likewise. | |
6171 | (hppabsd_core_minisymbol_to_symbol): Likewise. | |
6172 | (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols). | |
6173 | Formatting fixes. | |
6174 | * hpux-core.c: Similarly. | |
6175 | * irix-core.c: Similarly. | |
6176 | * osf-core.c: Similarly. | |
6177 | * sco5-core.c: Similarly. | |
6178 | * binary.c (binary_make_empty_symbol): Remove function, define as | |
6179 | _bfd_generic_make_empty_symbol. | |
6180 | * ihex.c (ihex_make_empty_symbol): Likewise. | |
6181 | * mmo.c (mmo_make_empty_symbol): Likewise. | |
6182 | * ppcboot.c (ppcboot_make_empty_symbol): Likewise. | |
6183 | * srec.c (srec_make_empty_symbol): Likewise. | |
6184 | * versados.c (versados_make_empty_symbol): Likewise. | |
6185 | * vms.c (_bfd_vms_make_empty_symbol): Remove. | |
6186 | (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol. | |
6187 | * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol | |
6188 | rather than _bfd_vms_make_empty_symbol. | |
6189 | * vms-misc.c (new_symbol): Likewise. | |
6190 | ||
3f0a7f7f AM |
6191 | 2002-01-05 Alan Modra <amodra@bigpond.net.au> |
6192 | ||
9e7b37b3 AM |
6193 | * section.c (bfd_section_init): Remove unnecessary initialisations. |
6194 | (bfd_section_list_clear): New function. | |
6195 | (bfd_section_list_remove, bfd_section_list_insert): New macros. | |
6196 | (_bfd_strip_section_from_output): Use them. | |
6197 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
6198 | * elf32-mips.c (_bfd_mips_elf_final_link): Likewise. | |
6199 | * elf64-mips.c (mips_elf64_final_link): Likewise. | |
6200 | * elf64-mmix.c (mmix_elf_final_link): Likewise. | |
6201 | * sunos.c (sunos_add_dynamic_symbols): Likewise. | |
6202 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise. | |
6203 | * bfd-in2.h: Regenerate. | |
6204 | ||
6205 | * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway | |
6206 | rather than doing our own section handling. Clean up after errors | |
6207 | with bfd_release and bfd_section_list_clear. Handle unexpected | |
6208 | flags. | |
6209 | * aoutf1.h (sunos4_core_file_p): Likewise. | |
6210 | * aix386-core.c (aix386_core_file_p): Likewise. | |
6211 | * cisco-core.c (cisco_core_file_validate): Likewise. | |
6212 | * ptrace-core.c (ptrace_unix_core_file_p): Likewise. | |
6213 | * trad-core.c (trad_unix_core_file_p): Likewise. | |
6214 | ||
6215 | * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors | |
6216 | with bfd_release and bfd_section_list_clear. | |
6217 | * hpux-core.c (hpux_core_core_file_p): Likewise. | |
6218 | * irix-core.c (irix_core_core_file_p): Likewise. | |
6219 | * lynx-core.c (lynx_core_file_p): Likewise. | |
6220 | * osf-core.c (osf_core_core_file_p): Likewise. | |
6221 | * rs6000-core.c (rs6000coff_core_p): Likewise. | |
6222 | * sco5-core.c (sco5_core_file_p): Likewise. | |
6223 | ||
3f0a7f7f AM |
6224 | * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform |
6225 | sign extension adjustments without conditionals. | |
6226 | ||
a3aa38ee JJ |
6227 | 2002-01-04 Jakub Jelinek <jakub@redhat.com> |
6228 | ||
6229 | * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if | |
6230 | CIE at .eh_frame start is removed due to no FDEs referencing it. | |
6231 | ||
8a8b2d4b AJ |
6232 | 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com> |
6233 | ||
6234 | * config.bfd (x86_64-*-netbsd*): New target. | |
6235 | * configure.in (x86_64-*-netbsd*): Set COREFILE | |
6236 | to netbsd-core.lo. | |
6237 | * configure: Regenerated. | |
6238 | ||
04b5af89 TR |
6239 | 2002-01-03 Tom Rix <trix@redhat.com> |
6240 | ||
6241 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering | |
6242 | for recent bfd_make_section_anyway change. | |
6243 | ||
51c5503b NC |
6244 | 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com> |
6245 | ||
6246 | * elf32-arm.h (elf32_arm_final_link_relocate): Handle | |
6247 | R_ARM_THM_PC11 reloc. | |
6248 | ||
07f7c046 NC |
6249 | 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com> |
6250 | ||
6251 | * configure.in (LINGUAS): Add ja. | |
6252 | * configure: Regenerate. | |
6253 | * po/ja.po: Import from translation project's web site. | |
6254 | ||
5eefb65f NC |
6255 | 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com> |
6256 | ||
6257 | * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error | |
6258 | messages to ease translation into other languages. | |
6259 | ||
39e90f10 | 6260 | For older changes see ChangeLog-0001 |
56882138 AM |
6261 | \f |
6262 | Local Variables: | |
6263 | mode: change-log | |
6264 | left-margin: 8 | |
6265 | fill-column: 74 | |
6266 | version-control: never | |
6267 | End: |