* elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
2
3 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
4 mips_elf64_rtype_to_howto instead of using howto_table.
5
6 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
7
8 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
9 the .plt section.
10 (elf32_arm_check_relocs): Don't increment the PLT refcount for
11 relocs which would not use the PLT.
12
13 2004-01-13 Alan Modra <amodra@bigpond.net.au>
14
15 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
16 (ppc64_elf_gc_sweep_hook): Likewise.
17 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
18
19 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
20
21 Adds linker relaxation support for bit manipulation insns like
22 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
23 bst, btst, bxor.
24 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
25 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
26 * coff-h8300.c: Opcode for bit manipulation insn is checked in
27 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
28
29 2004-01-12 Alan Modra <amodra@bigpond.net.au>
30
31 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
32
33 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
34
35 * elf32-h8300.c: Fix formatting.
36
37 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
38
39 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
40 dynamic object is present. Declare r_symndx and h in an inner
41 scope.
42 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
43
44 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
45
46 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
47 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
48 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
49 identically. Do not emit PC24 relocations for shared libraries.
50 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
51 identically. Don't adjust pc_count.
52 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
53 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
54 adjust count for branch relocations.
55 (allocate_dynrelocs): Correct typo in call to
56 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
57 PC24 or PLT32 relocs when linking.
58
59 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
60
61 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
62 relocation howto with ARM_26 one for consistency.
63 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
64 that will be converted to ARM_26D ones, since we always want 'done'
65 relocations to be reflected in section's data.
66 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
67 offset.
68 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
69 requested.
70
71 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
72
73 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
74 are not partial_inplace during a relocatable link.
75
76 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
77
78 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
79 if no dynamic object is present. Declare r_symndx and h in an
80 inner scope.
81
82 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
83
84 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
85 trampoline if it is known out of range.
86
87 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
88
89 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
90 * elf32-frv.c (_frv_osec_readonly_p): New.
91 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
92 undefweak symbol.
93 (_frv_count_got_plt_entries): Adjust expected count accordingly.
94 (elf32_frv_relocate_section): Likewise. Error out if attempting
95 to emit rofixups or dynamic relocs in read-only segments. Use
96 _bfd_elf_section_offset to adjust r_offsets in rofixups and
97 dynamic relocations.
98 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
99 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
100 relocations or fixups involving merged sections correctly. Avoid
101 crash when undefined symbol is referenced by R_FRV_32 or
102 R_FRV_FUNCDESC_VALUE.
103 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
104 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
105 input section holding local symbol to addend of R_FRV_32 or
106 R_FRV_FUNCDESC_VALUE dynamic relocation.
107 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
108 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
109 (elf32_frv_always_size_sections): Don't store pointer to
110 __stacksize symbol in sec_info.
111 (elf32_frv_modify_segment_map): Look it up here.
112 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
113 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
114 of the lazy PLT entry, not only its offset, as the low word of a
115 function descriptor.
116 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
117 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
118 if a hash table entry already exists but is not a definition.
119 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
120 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
121 (_frv_add_rofixup): Don't inline.
122 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
123 for undefweak symbols.
124 (elf32_frv_relocate_section): Avoid crash while computing
125 relocation when linking with shared library. Only emit rofixups
126 and dynamic relocations for alloc&load sections. Mark binaries
127 with inter-segment relocations for relocation as a unit.
128 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
129 (DEFAULT_STACK_SIZE): New.
130 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
131 emit rofixups or dynamic relocs when linking dynamic non-PIE
132 executables.
133 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
134 shared libs too. Reserve the last entry for the GOT pointer.
135 (elf32_frv_finish_dynamic_sections): Emit it.
136 (elf32_frv_always_size_sections): New.
137 (elf32_frv_modify_segment_map): New.
138 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
139 sections.
140 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
141 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
142 (elf_backend_always_size_sections): New.
143 (elf_backend_modify_segment_map): New.
144 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
145 * config.bfd: Added frv-*-*linux*.
146 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
147 ABS section, instead of crashing.
148 (elf32_frv_relocate_section): Don't crash before warning about
149 different segments in non-PIC relocation.
150 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
151 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
152 relocs to undefweak symbols.
153 (elf32_frv_relocate_section): Ditto for undefined symbols.
154 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
155 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
156 gotfixup section was created.
157 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
158 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
159 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
160 complain_overflow_signed.
161 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
162 have not been allocated.
163 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
164 privfd only if dynamic sections were created.
165 (elf32_frv_relocate_section): Compute gprel_segment, and use it
166 for GPREL relocs. When linking relocatable FDPIC executables,
167 emit warnings for relocations that would be illegal on PIE or
168 shared libraries. Emit rofixup for R_FRV_32 only if input object
169 is not FDPIC.
170 (_frv_create_got_section): Define _gp symbol in the rofixup
171 section.
172 (elf32_frv_finish_dynamic_sections): If rofixups needed but
173 dynamic sections missing, error out requesting -melf32frvfd.
174 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
175 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
176 computation of addends from section and global or local symbol
177 value. Change return type to bfd_boolean, and return a failure if
178 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
179 nonzero addend is required.
180 (elf32_frv_relocate_section): Likewise. Print error for
181 unsupported nonzero addends.
182 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
183 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
184 force everything local.
185 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
186 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
187 (frv_gotfixup_section): New.
188 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
189 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
190 and relocsfdv.
191 (_frv_add_rofixup): New.
192 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
193 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
194 improve some ugly conditions.
195 (elf32_frv_relocate_section): Likewise. Reject inter-segment
196 relocations in fdpic.
197 (_frv_create_got_section): Create .rofixup.got section.
198 (struct _frv_dynamic_got_info): Added fixups.
199 (_frv_count_got_plt_entries): Account in-GOT relocations into
200 relocs32, relocsfd and relocsfdv. Account them into relocs or
201 fixups, as appropriate.
202 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
203 sizing of gotrel.
204 (elf32_frv_finish_dynamic_sections): Verify that the right number
205 of relocations and fixups was generated.
206 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
207 relocsfdv.
208 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
209 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
210 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
211 descriptor of a (formerly-)global symbol is local.
212 (struct frv_pic_relocs_info): Adjust comments.
213 (_frv_emit_got_relocs_plt_entries): Adjust.
214 (elf32_frv_relocate_section): Likewise.
215 (_frv_count_got_plt_entries): Likewise.
216 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
217 symbol's value to addend in the common preamble. Decay dynamic
218 symbols to section+offset if they bind or call locally, for GOT
219 and FUNCDESC_VALUE, respectively.
220 (elf32_frv_relocate_section): Likewise.
221 (elf32_frv_check_relocs): Don't register as dynamic symbols of
222 internal or hidden visibility.
223 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
224 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
225 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
226 (elf32_frv_relocate_section): Pass relocation addend in. Use
227 original relocation addend to look up the got relocs/plt entries
228 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
229 processing relocations that reference .scommon symbols.
230 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
231 Introduce support for dynamic linking.
232 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
233 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
234 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
235 (frv_reloc_type_lookup): Return REL howtos for executables and
236 dynamic libraries.
237 (frv_info_to_howto_rel): New.
238 (struct frv_elf_link_hash_table): New.
239 (frv_hash_table, frv_got_section, frv_gotrel_section,
240 frv_plt_section, frv_pltrel_section, frv_relocs_info,
241 frv_got_initial_offset, frv_plt_initial_offset): New macros.
242 (frv_elf_link_hash_table_create): New.
243 (struct frv_pic_relocs_info): New.
244 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
245 (frv_pic_relocs_info_find): New.
246 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
247 New.
248 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
249 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
250 (_frv_emit_got_relocs_plt_entries): New.
251 (elf32_frv_relocate_section): Add support for dynamic linking.
252 Handle new relocations.
253 (_frv_create_got_section): New.
254 (elf32_frv_create_dynamic_sections): New.
255 (ELF_DYNAMIC_INTERPRETER): New.
256 (struct _frv_dynamic_got_info): New.
257 (_frv_count_got_plt_entries): New.
258 (struct _frv_dynamic_got_plt_info): New.
259 (_frv_compute_got_alloc_data): New.
260 (_frv_get_got_entry, _frv_get_fd_entry): New.
261 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
262 (_frv_resolve_final_relocs_info): New.
263 (elf32_frv_size_dynamic_sections): New.
264 (elf32_frv_finish_dynamic_sections): New.
265 (elf32_frv_adjust_dynamic_symbol): New.
266 (elf32_frv_finish_dynamic_symbol): New.
267 (elf32_frv_check_relocs): Handle new relocs. Explain how the
268 whole thing works.
269 (elf_info_to_howto_rel): Define.
270 (bfd_elf32_bfd_link_hash_table_create): Define.
271 (elf_backend_create_dynamic_sections): Define.
272 (elf_backend_adjust_dynamic_symbol): Define.
273 (elf_backend_size_dynamic_sections): Define.
274 (elf_backend_finish_dynamic_symbol): Define.
275 (elf_backend_finish_dynamic_sections): Define.
276 (elf_backend_want_got_sym): Define.
277 (elf_backend_got_header_size): Define.
278 (elf_backend_want_got_plt): Define.
279 (elf_backend_plt_readonly): Define.
280 (elf_backend_want_plt_sym): Define.
281 (elf_backend_plt_header_size): Define.
282 (elf_backend_may_use_rel_p): Define.
283 (elf_backend_may_use_rela_p): Define.
284 (elf_backend_default_use_rela_p): Define.
285 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
286 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
287 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
288 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
289 (frv_reloc_map): Map the corresponding BFD relocs to them.
290 (frv_reloc_type_lookup): ... and back to BFD relocs.
291 * reloc.c: New relocs.
292 * bfd-in2.h, libbfd.h: Rebuilt.
293 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
294 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
295 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
296 R_FRV_FUNCDESC_GOTLO): New.
297 (frv_reloc_map): Map the corresponding BFD relocs to them.
298 (frv_reloc_type_lookup): ... and back to BFD relocs.
299 * reloc.c: New relocs.
300 * bfd-in2.h, libbfd.h: Rebuilt.
301
302 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
303
304 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
305 targets to support pages of up to 64kB.
306 (elf32_bed): Redefine to get a separate backend data structure for
307 traditional targets.
308 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
309 targets to support pages of up to 64kB.
310 (elf64_bed): Redefine to get a separate backend data structure for
311 traditional targets.
312 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
313 targets to support pages of up to 64kB.
314 (elf32_bed): Redefine to get a separate backend data structure for
315 traditional targets.
316
317 2004-01-04 Mark Kettenis <kettenis@gnu.org>
318
319 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
320
321 2004-01-02 Mark Kettenis <kettenis@gnu.org>
322
323 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
324 (elf_i386_grok_psinfo): Likewise.
325
326 2004-01-02 Bernardo Innocenti <bernie@develer.com>
327
328 * config.bfd: Add m68k-uClinux target.
329
330 2004-01-01 Grant Edwards <grante@visi.com>
331
332 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
333 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
334 (elf32_h8_gc_sweep_hook): New function.
335 (elf_backend_gc_mark_hook): Define.
336 (elf_backend_gc_sweep_hook): Define.
337 (elf_backend_can_gc_sections): Define.
338
339 For older changes see ChangeLog-0203
340 \f
341 Local Variables:
342 mode: change-log
343 left-margin: 8
344 fill-column: 74
345 version-control: never
346 End:
This page took 0.036821 seconds and 4 git commands to generate.