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