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