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