blob: 3655e72c55c76810ee736b6aab1430242d02c31e [file] [log] [blame]
Mark Wielaard858dc652015-01-27 13:07:17 +010012015-01-27 Mark Wielaard <mjw@redhat.com>
2
3 * libebl.h: Add comment from README that this is completely
4 UNSUPPORTED.
5
Mark Wielaard712c8fa2014-11-22 23:08:48 +010062014-11-22 Mark Wielaard <mjw@redhat.com>
7
8 * ebl-hooks.h (bss_plt_p): Remove ehdr argument.
9 * eblbsspltp.c (ebl_bss_plt_p): Likewise.
10 * eblopenbackend.c (default_bss_plt_p): Likewise.
11 * libebl.h (ebl_bss_plt_p): Likewise.
12
Mark Wielaard5c1a45c2014-11-17 23:15:45 +0100132014-11-17 Mark Wielaard <mjw@redhat.com>
14
15 * ebldebugscnp.c (ebl_debugscn_p): Check name is not NULL.
16
Mark Wielaardc1c1c062014-06-14 17:15:37 +0200172014-06-17 Mark Wielaard <mjw@redhat.com>
18
19 * eblinitreg.c (ebl_func_addr_mask): New function.
20 * libebl.h (ebl_func_addr_mask): Define.
21 * libeblP.h (struct ebl): Add func_addr_mask.
22
Mark Wielaard028d0ab2014-05-19 16:52:56 +0200232014-05-19 Mark Wielaard <mjw@redhat.com>
24
25 * Makefile.am (gen_SOURCES): Add eblcheckreloctargettype.c.
26 * eblcheckreloctargettype.c: New file.
27 * ebl-hooks.h (check_reloc_target_type): New hook.
28 * eblopenbackend.c (default_check_reloc_target_type): New function.
29 (fill_defaults): Assign default_check_reloc_target_type to
30 check_reloc_target_type.
31 * libebl.h (ebl_check_reloc_target_type): New function definition.
32
Mark Wielaard159ac522013-12-18 11:05:54 +0100332013-12-18 Mark Wielaard <mjw@redhat.com>
34
35 * Makefile.am (gen_SOURCES): Add eblresolvesym.c.
36 * ebl-hooks.h (resolve_sym_value): New entry.
37 * eblresolvesym.c: New file.
38 * libebl.h (ebl_resolve_sym_value): New definition.
39 * libeblP.h (fd_addr): New field.
40 (fd_data): Likewise.
41
Jan Kratochvilc6a41482013-12-17 18:49:54 +0100422013-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
43
44 unwinder: s390 and s390x
45 * Makefile.am (gen_SOURCES): Add eblnormalizepc.c and eblunwind.c.
46 * ebl-hooks.h (normalize_pc, unwind): New.
47 * eblnormalizepc.c: New file.
48 * eblunwind.c: New file.
49 * libebl.h (Ebl_Register_Location): Add field pc_register.
50 (ebl_normalize_pc): New declaration.
51 (ebl_tid_registers_get_t, ebl_pid_memory_read_t): New definitions.
52 (ebl_unwind): New declaration.
53
Jan Kratochvil5cbf42a2013-12-15 18:56:17 +0100542013-12-15 Jan Kratochvil <jan.kratochvil@redhat.com>
55
56 unwinder: ppc and ppc64
57 * Makefile.am (gen_SOURCES): Add ebldwarftoregno.c.
58 * ebl-hooks.h (dwarf_to_regno): New.
59 * ebldwarftoregno.c: New file.
60 * libebl.h (Ebl_Core_Item): New field pc_register.
61 (ebl_tid_registers_t): Add FIRSTREG -1 to the comment.
62 (ebl_dwarf_to_regno): New.
63
Petr Machata98c8a732013-11-26 03:10:31 +0100642013-11-25 Petr Machata <pmachata@redhat.com>
65
66 * eblopenbackend.c (machines): Add entry for AArch64.
67
Jan Kratochvil1c1a53b2013-11-14 20:55:41 +0100682013-11-14 Jan Kratochvil <jan.kratochvil@redhat.com>
69
70 Code cleanup: Remove const in prototype
71 * libebl.h (ebl_tid_registers_t): Remove const from firstreg.
72
Jan Kratochvil0b867462013-05-30 14:37:38 +0200732013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
74 Mark Wielaard <mjw@redhat.com>
75
76 * Makefile.am (gen_SOURCES): Add eblinitreg.c.
77 * ebl-hooks.h (set_initial_registers_tid): New entry.
78 * eblinitreg.c: New file.
79 * libebl.h (ebl_tid_registers_t): New definition.
80 (ebl_set_initial_registers_tid, ebl_frame_nregs): New declarations.
81 * libeblP.h (struct ebl): New entry frame_nregs.
82
Mark Wielaard3dec3e12013-10-06 17:04:07 +0200832013-10-06 Mark Wielaard <mjw@redhat.com>
84
85 * libebl.h (ebl_abi_cfi): Document restrictions using register
86 rules.
87
Petr Machatab43bcfe2013-09-26 00:38:37 +0200882013-09-26 Petr Machata <pmachata@redhat.com>
89
90 * eblcorenotetypename.c: Handle NT_ARM_TLS, NT_ARM_HW_BREAK,
91 NT_ARM_HW_WATCH, NT_SIGINFO, NT_FILE.
92
Mark Wielaard2cfec292013-09-25 13:02:53 +0200932013-09-25 Mark Wielaard <mjw@redhat.com>
94
95 * eblsectionstripp.c (ebl_section_strip_p): Check shdr_l is not NULL.
96
Mark Wielaardcdaaf212013-04-25 16:50:11 -0400972013-04-24 Mark Wielaard <mjw@redhat.com>
98
99 * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
100
Jan Kratochvil0631d1f2012-10-12 20:43:21 +02001012012-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
102
103 * ebl-hooks.h (abi_cfi): Extend its comment for return value.
104 * eblopenbackend.c (default_abi_cfi): Return -1.
105 * libebl.h (ebl_abi_cfi): Extend its comment for return value.
106
Petr Machata96896012012-08-30 16:01:02 +02001072012-08-30 Petr Machata <pmachata@redhat.com>
108
109 * eblcorenotetypename.c: Handle PPC_VSX, X86_XSTATE,
110 S390_HIGH_GPRS, S390_TIMER, S390_TODCMP, S390_TODPREG, S390_CTRS,
111 S390_PREFIX, S390_LAST_BREAK, S390_SYSTEM_CALL, and ARM_VFP.
112
Jeff Kenton257dcf42012-08-22 09:00:03 -04001132012-08-22 Jeff Kenton <jkenton@tilera.com>
114
115 * eblopenbackend.c (machines): Add tilegx.
116
Mark Wielaarda0172d72012-06-25 17:18:53 +02001172011-06-26 Mark Wielaard <mjw@redhat.com>
118
119 * eblopenbackend.c (default_debugscn_p): Add .debug_macro.
120
Mark Wielaardbb9d1b42011-04-24 17:53:38 +02001212011-04-26 Mark Wielaard <mjw@redhat.com>
122
123 * libebl.h (ebl_object_note_type_name): Add const char *name arg.
124 * eblhooks.h (object_note_type_name): Likewise.
125 * eblopenbackend.c (default_object_note_type_name): Likewise.
126 * eblobjnotetypename.c (ebl_object_note_type_name): Likewise.
127 And print version if name is "stapsdt".
128 * eblobjnote.c (ebl_object_note): Add output for "stapsdt" notes.
129
Marek Polacekcde0b272011-03-21 23:46:56 +01001302011-03-21 Marek Polacek <mpolacek@redhat.com>
131
132 * ebldynamictagname.c: Fix typo in TLSDESC_GOT.
133
Mark Wielaarda062b6b2011-03-10 13:02:32 +01001342011-03-10 Mark Wielaard <mjw@redhat.com>
135
136 * Makefile.am (gen_SOURCES): Add eblstother.c.
137 * eblstother.c: New file.
138 * ebl-hooks.h: Add check_st_other_bits hook.
139 * eblopenbackend.c (default_check_st_other_bits): New function.
140 (fill_defaults): Hook default_check_st_other_bits.
141 * libebl.h (ebl_check_st_other_bits): New prototype.
142
Roland McGrath804e9ca2010-07-07 16:06:12 -07001432010-07-07 Roland McGrath <roland@redhat.com>
144
145 * eblopenbackend.c (default_debugscn_p): Match .gdb_index section.
146
Roland McGrath22359e22010-02-15 15:57:03 -08001472010-02-15 Roland McGrath <roland@redhat.com>
148
149 * Makefile.am: Use config/eu.am for common stuff.
150
Roland McGrath0ccbbcd2010-01-04 21:59:07 -08001512010-01-04 Roland McGrath <roland@redhat.com>
152
153 * eblcorenote.c (ebl_core_note): Take GElf_Nhdr * and name data
154 pointer instead of only n_type and n_descsz.
155 * libebl.h: Update declaration.
156 * ebl-hooks.h: Update core_note hook signature.
157 * eblopenbackend.c (default_core_note): Likewise.
158
Roland McGrathf80c9072009-10-14 12:35:47 -07001592009-10-14 Roland McGrath <roland@redhat.com>
160
161 * eblobjnote.c (ebl_object_note): Clean up NT_GNU_GOLD_VERSION printing.
162
Roland McGratha14b4eb2009-10-05 11:32:26 -07001632009-10-05 Roland McGrath <roland@redhat.com>
164
165 * eblopenbackend.c (default_debugscn_p): Match .debug_pubtypes and
166 .debug_types too.
167
Petr Machatad3a8b2d2009-09-02 20:46:08 +02001682009-09-02 Petr Machata <pmachata@redhat.com>
169
170 * libebl/eblstrtab.c (morememory): Allocate memory in multiples of
171 pagesize.
172
Petr Machata077a7082009-08-06 18:45:08 +02001732009-08-06 Petr Machata <pmachata@redhat.com>
174
175 * libebl/eblstrtab.c (ebl_strtabfinalize): Only call copystrings
176 if we have any strings to copy.
177
Mark Wielaardbc1b92e2009-07-26 08:33:18 -07001782009-07-26 Mark Wielaard <mjw@redhat.com>
179
Mark Wielaard2f5b79e2009-07-26 14:49:26 -0700180 * eblobjnote.c (ebl_object_note): Handle NT_GNU_GOLD_VERSION.
181
Mark Wielaardbc1b92e2009-07-26 08:33:18 -0700182 * eblobjnotetypename.c (ebl_object_note_type_name): Recognize
183 NT_GNU_GOLD_VERSION.
184
Roland McGrath3c84db32009-06-24 17:41:40 -07001852009-07-08 Roland McGrath <roland@redhat.com>
186
187 * ebl-hooks.h: Add abi_cfi hook.
188 * eblopenbackend.c (default_abi_cfi): New function.
189 (fill_defaults): Add initializer.
190 * eblabicfi.c: New file.
191 * Makefile.am (gen_SOURCES): Add it.
192 * libebl.h: Declare ebl_abi_cfi.
193
Ulrich Drepper70c442c2009-07-08 00:53:24 -07001942009-07-08 Ulrich Drepper <drepper@redhat.com>
195
196 * eblsymbolbindingname.c (ebl_symbol_binding_name): Handle
197 STB_GNU_UNIQUE.
198
199 * eblsymboltypename.c (ebl_symbol_type_name): Only handle STT_GNU_IFUNC
200 if the binary is marked as being for Linux.
201
Roland McGrathd5ff6672009-04-01 18:28:41 -07002022009-04-01 Roland McGrath <roland@redhat.com>
203
204 * eblsymboltypename.c (ebl_symbol_type_name): Add STT_GNU_IFUNC.
205
206 * eblauxvinfo.c (AUXV_TYPES): Add RANDOM and BASE_PLATFORM.
207
Ulrich Drepper95fa15e2009-02-01 19:06:10 -08002082009-02-01 Ulrich Drepper <drepper@redhat.com>
209
210 * eblreloctypename.c (ebl_reloc_type_name): Return "<INVALID RELOC>"
211 instead of "???" for invalid relocations.
212
Roland McGratha845f682008-12-03 03:41:58 +00002132008-08-01 Roland McGrath <roland@redhat.com>
214
215 * eblcorenotetypename.c: Handle NT_386_IOPERM.
216
Roland McGrath1d8bb252008-08-07 08:39:41 +00002172008-07-28 Roland McGrath <roland@redhat.com>
218
219 * eblauxvinfo.c (AUXV_TYPES): Add EXECFN.
220
221 * eblauxvinfo.c (ebl_auxv_info): Handle missing elements of standard
222 table.
223
2242008-07-04 Roland McGrath <roland@redhat.com>
225
226 * libebl.h: Declare ebl_syscall_abi.
227 * ebl_syscall_abi.c: New file.
228 * Makefile.am (gen_SOURCES): Add it.
229 * ebl-hooks.h: New hook syscall_abi.
230 * eblopenbackend.c (default_syscall_abi): New function.
231 (fill_defaults): Use it.
232
Roland McGrath13b69602008-04-01 02:30:05 +00002332008-03-31 Roland McGrath <roland@redhat.com>
234
235 * ebldynamictagname.c (ebl_dynamic_tag_name): Use hex for unknown tag.
236
237 * ebl-hooks.h: Add check_special_section hook.
238 * eblopenbackend.c (fill_defaults): Set new hook to ...
239 (default_check_special_section): ... this, new function.
240 * ebl_check_special_section.c: New file.
241 * Makefile.am (gen_SOURCES): Add it.
242 * libebl.h: Declare it.
243
Roland McGrath059c83e2008-02-21 06:19:39 +00002442008-02-20 Roland McGrath <roland@redhat.com>
245
246 * libebl.h: Declare ebl_check_object_attribute.
247 * eblcheckobjattr.c: New file.
248 * Makefile.am (gen_SOURCES): Add it.
249 * ebl-hooks.h: Add check_object_attribute hook.
250 * eblopenbackend.c (default_check_object_attribute): New function.
251 (fill_defaults): Initialize pointer to it.
252
2532008-02-19 Roland McGrath <roland@redhat.com>
254
255 * eblsectiontypename.c (ebl_section_type_name):
256 Handle SHT_GNU_ATTRIBUTES.
257
2582008-02-08 Roland McGrath <roland@redhat.com>
259
260 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_SPE.
261
2622008-01-30 Roland McGrath <roland@redhat.com>
263
264 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_386_TLS.
265
Roland McGrathe4c22ea2007-10-23 13:07:39 +00002662007-10-18 Roland McGrath <roland@redhat.com>
267
268 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_VMX.
269
Ulrich Drepperb597dfa2007-10-16 05:21:27 +00002702007-10-11 Roland McGrath <roland@redhat.com>
271
272 * eblobjnote.c (ebl_object_note): Translate target format (byte-swap)
273 for NT_GNU_ABI_TAG contents.
274
Roland McGrathcb6d8652007-08-23 08:10:54 +00002752007-08-22 Roland McGrath <roland@redhat.com>
276
277 * libebl.h (Ebl_Core_Item): New member `group'.
278
2792007-08-19 Roland McGrath <roland@redhat.com>
280
281 * ebl-hooks.h: Add new hook auxv_info.
282 * eblopenbackend.c (default_auxv_info): New function.
283 (fill_defaults): Initialize auxv_info hook.
284 * eblauxvinfo.c : New file.
285 * Makefile.am (gen_SOURCES): Add it.
286 * libebl.h: Declare ebl_auxv_info.
287
288 * eblcorenote.c: Rewritten with new signature.
289 * Makefile.am (gen_SOURCES): Add it.
290 * libebl.h (Ebl_Register_Location, Ebl_Core_Item): New types.
291 (ebl_core_note_info): Completely revamp signature.
292 * ebl-hooks.h: Update decl.
293 * eblopenbackend.c (default_core_note): Update signature.
294
Roland McGrath87d47802007-07-16 22:23:37 +00002952007-07-09 Roland McGrath <roland@redhat.com>
296
297 * eblobjnotetypename.c (ebl_object_note_type_name): Handle
298 NT_GNU_HWCAP, NT_GNU_BUILD_ID.
299
300 * eblobjnote.c (ebl_object_note): Handle NT_GNU_BUILD_ID.
301
Roland McGrath4be15242007-04-25 03:09:33 +00003022007-04-22 Roland McGrath <roland@redhat.com>
303
304 * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PRXFPREG.
305
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00003062007-03-10 Roland McGrath <roland@redhat.com>
307
308 * eblcorenote.c (ebl_core_note): For normally-zero types,
309 print in hex if not zero.
310
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00003112007-01-11 Roland McGrath <roland@redhat.com>
312
313 * ebl-hooks.h (machine_section_flag_check): New hook.
314 * libebl.h: Declare ebl_machine_section_flag_check.
315 * eblmachinesectionflagcheck.c: New file.
316 * Makefile.am (gen_SOURCES): Add it.
317 * eblopenbackend.c (default_machine_section_flag_check): New function.
318 (fill_defaults): Use it.
319
Roland McGrathc373d852006-10-10 00:25:21 +00003202006-09-04 Roland McGrath <roland@redhat.com>
321
322 * ebl-hooks.h: Replace register_name hook with register_info.
323 Also yield natural bit width and base type encoding.
324 * eblopenbackend.c (default_register_name): Renamed
325 default_register_info, new args added.
326 (fill_defaults): Update initialization.
327 * eblregname.c: File renamed ...
328 * eblreginfo.c: ... to this.
329 (ebl_register_name): Renamed to ebl_register_info, new args added.
330 * libebl.h: Update decl.
331
332 * Makefile.am (gen_SOURCES): Update list.
333
Ulrich Drepper28ed8952006-07-07 03:43:47 +00003342006-07-06 Ulrich Drepper <drepper@redhat.com>
335
336 * ebldynamictagname.c: Add support for DT_GNU_HASH.
337 * ebldynamictagcheck.c: Likewise.
338 * eblsectiontypename.c: Add support for SHT_GNU_HASH.
339
3402006-07-05 Ulrich Drepper <drepper@redhat.com>
341
342 * Makefile.am (gen_SOURCES): Add eblsysvhashentrysize.c.
343 * libeblP.h (struct ebl): Add sysvhash_entrysize element.
344 * eblopenbackend.c (fill_defaults): Initialize sysvhash_entrysize.
345
346 * eblopenbackend.c (openbackend): If possible, fill machine, class,
347 and data values in from the ELF file.
348
3492006-07-04 Ulrich Drepper <drepper@redhat.com>
350
351 * Makefile.am (gen_SOURCES): Add eblrelativerelocp.c.
352 * eblrelativerelocp.c: New file.
353 * ebl-hooks.c: Add relative_reloc_p.
354 * eblopenbackend.c (default_relative_reloc_p): New function.
355 (fill_defaults): Hook it up.
356 * libebl.h: Declare ebl_relative_reloc_p.
357
Ulrich Drepper6ca46002006-06-12 22:40:23 +00003582006-06-12 Ulrich Drepper <drepper@redhat.com>
359
360 * Makefile.am (gen_SOURCES): Add eblnonerelocp.c.
361 * eblnonerelocp.c: New file.
362 * ebl-hooks.c: Add none_reloc_p.
363 * eblopenbackend.c (default_none_reloc_p): New function.
364 (fill_defaults): Hook it up.
365 * libebl.h: Declare ebl_none_reloc_p.
366
Ulrich Drepper41cbd762006-05-27 18:19:23 +00003672006-05-27 Ulrich Drepper <drepper@redhat.com>
368
369 * libebl.h: Add extern "C".
370
Roland McGrath994b4892005-12-05 22:46:21 +00003712005-11-25 Roland McGrath <roland@redhat.com>
372
373 * eblregname.c: New file.
374 * Makefile.am (gen_SOURCES): Add it.
375 * ebl-hooks.h: Declare register_name hook.
376 * libebl.h: Declare ebl_register_name.
377 * eblopenbackend.c (default_register_name): New function.
378 (fill_defaults): Use it.
379
Roland McGrath215c6322005-11-16 22:46:04 +00003802005-11-16 Roland McGrath <roland@redhat.com>
381
382 * libebl.h: Use "" for elf-knowledge.h, not <>.
383
Roland McGrathe47ab762005-11-17 03:16:00 +00003842005-11-15 Roland McGrath <roland@redhat.com>
385
386 * Makefile.am: Removed everything for building libebl_*.so modules,
387 now in ../backends/Makefile.am instead.
388 * alpha_init.c: Moved to ../backends.
389 * alpha_reloc.def: Likewise.
390 * alpha_retval.c: Likewise.
391 * alpha_symbol.c: Likewise.
392 * arm_init.c: Likewise.
393 * arm_reloc.def: Likewise.
394 * arm_symbol.c: Likewise.
395 * common-reloc.c: Likewise.
396 * i386_corenote.c: Likewise.
397 * i386_init.c: Likewise.
398 * i386_reloc.def: Likewise.
399 * i386_retval.c: Likewise.
400 * i386_symbol.c: Likewise.
401 * ia64_init.c: Likewise.
402 * ia64_reloc.def: Likewise.
403 * ia64_symbol.c: Likewise.
404 * libebl_CPU.h: Likewise.
405 * ppc64_init.c: Likewise.
406 * ppc64_reloc.def: Likewise.
407 * ppc64_retval.c: Likewise.
408 * ppc64_symbol.c: Likewise.
409 * ppc_init.c: Likewise.
410 * ppc_reloc.def: Likewise.
411 * ppc_retval.c: Likewise.
412 * ppc_symbol.c: Likewise.
413 * s390_init.c: Likewise.
414 * s390_reloc.def: Likewise.
415 * s390_symbol.c: Likewise.
416 * sh_init.c: Likewise.
417 * sh_reloc.def: Likewise.
418 * sh_symbol.c: Likewise.
419 * sparc_init.c: Likewise.
420 * sparc_reloc.def: Likewise.
421 * sparc_symbol.c: Likewise.
422 * x86_64_corenote.c: Likewise.
423 * x86_64_init.c: Likewise.
424 * x86_64_reloc.def: Likewise.
425 * x86_64_retval.c: Likewise.
426 * x86_64_symbol.c: Likewise.
427
428 * libebl.h: Comment fixes.
429
430 * alpha_retval.c: New file.
431 * Makefile.am (alpha_SRCS): Add it.
432 * alpha_init.c (alpha_init): Initialize return_value_location hook.
433
434 * ppc64_retval.c: New file.
435 * Makefile.am (ppc64_SRCS): Add it.
436 * ppc64_init.c (ppc64_init): Initialize return_value_location hook.
437
438 * ppc_retval.c: New file.
439 * Makefile.am (ppc_SRCS): Add it.
440 * ppc_init.c (ppc_init): Initialize return_value_location hook.
441
Roland McGrathcd60ea82005-11-16 01:57:40 +00004422005-11-14 Roland McGrath <roland@redhat.com>
443
444 * ia64_init.c (ia64_init): Initialize EH->reloc_simple_type.
445 * sh_init.c (sh_init): Likewise.
446 * x86_64_init.c (x86_64_init): Likewise.
447
448 * sparc_symbol.c (sparc_reloc_simple_type): New function.
449 * sparc_init.c (sparc_init): Use it.
450
451 * arm_symbol.c (arm_reloc_simple_type): New function.
452 * arm_init.c (arm_init): Use it.
453
454 * alpha_symbol.c (alpha_reloc_simple_type): New function.
455 * alpha_init.c (alpha_init): Use it.
456
457 * ia64_reloc.def: Update bits per H. J. Lu <hjl@lucon.org>.
458
459 * arm_reloc.def: Update bits per Daniel Jacobowitz <drow@false.org>.
460
461 * alpha_reloc.def: Update bits per Richard Henderson <rth@redhat.com>.
462
Roland McGrathe47ab762005-11-17 03:16:00 +00004632005-11-13 Roland McGrath <roland@redhat.com>
464
465 * x86_64_retval.c: New file.
466 * Makefile.am (x86_64_SRCS): Add it.
467 * x86_64_init.c (x86_64_init): Use x86_64_return_value_location.
468
469 * i386_retval.c: New file.
470 * Makefile.am (i386_SRCS): Add it.
471 (libdw): New variable.
472 (libebl_%.so): Use $(libdw) in link; use --as-needed.
473 * i386_init.c (i386_init): Use i386_return_value_location.
474
475 * eblretval.c: New file.
476 * Makefile.am (gen_SOURCES): Add it.
477 (INCLUDES): Search in libdw.
478 * libebl.h: Include <libdw.h>. Declare ebl_return_value_location.
479 * ebl-hooks.h: Declare return_value_location hook.
480 * eblopenbackend.c (default_return_value_location): New function.
481 (fill_defaults): Use it.
482
Roland McGrathcd60ea82005-11-16 01:57:40 +00004832005-11-10 Roland McGrath <roland@redhat.com>
484
485 * s390_init.c: New file.
486 * s390_reloc.def: New file.
487 * s390_symbol.c: New file.
488 * Makefile.am (modules, libebl_pic): Add s390.
489 (s390_SRCS, libebl_s390_pic_a_SOURCES): New variables.
490 (am_libebl_s390_pic_a_OBJECTS): New variable.
491
492 * ppc64_init.c: Use common-reloc.c.
493 * ppc64_symbol.c (ppc64_backend_name): Removed.
494 (ppc64_reloc_type_check, ppc64_reloc_type_name): Likewise.
495 (ppc64_copy_reloc_p, ppc64_reloc_valid_use): Likewise.
496
497 * ppc_init.c: Use common-reloc.c.
498 * ppc_symbol.c (ppc_backend_name): Removed.
499 (ppc_reloc_type_name, ppc_reloc_type_check): Likewise.
500 (ppc_reloc_valid_use, ppc_copy_reloc_p): Likewise.
501
502 * sparc_init.c: Use common-reloc.c.
503 * sparc_symbol.c (sparc_backend_name): Removed.
504 (sparc_reloc_type_name, sparc_reloc_type_check): Likewise.
505 (sparc_copy_reloc_p): Likewise.
506
507 * arm_init.c: Use common-reloc.c.
508 * arm_symbol.c (arm_backend_name): Removed.
509 (arm_reloc_type_name, arm_reloc_type_check, arm_copy_reloc_p): Removed.
510
511 * alpha_init.c: Use common-reloc.c.
512 * alpha_symbol.c (alpha_backend_name): Removed.
513 (alpha_reloc_type_name, alpha_reloc_type_check): Likewise.
514 (alpha_copy_reloc_p): Likewise.
515
516 * ia64_symbol.c (ia64_backend_name): Removed.
517 (ia64_reloc_type_name, ia64_reloc_type_check): Likewise.
518 (ia64_copy_reloc_p): Likewise.
519
520 * x86_64_init.c: Use common-reloc.c.
521 * x86_64_symbol.c (x86_64_backend_name): Removed.
522 (x86_64_copy_reloc_p, x86_64_reloc_valid_use): Likewise.
523 (x86_64_reloc_type_check, x86_64_reloc_type_name): Likewise.
524
525 * sh_init.c: Use common-reloc.c.
526 * sh_symbol.c: All functions removed.
527 (sh_reloc_simple_type): New function.
528 (sh_gotpc_reloc_check): New function.
529
530 * common-reloc.c: New file.
531 * Makefile.am (noinst_HEADERS): Add it.
532 * i386_init.c: Include it.
533
534 * sh_reloc.def: New file.
535 * i386_reloc.def: New file.
536 * alpha_reloc.def: New file.
537 * arm_reloc.def: New file.
538 * i386_reloc.def: New file.
539 * ia64_reloc.def: New file.
540 * ppc64_reloc.def: New file.
541 * ppc_reloc.def: New file.
542 * sh_reloc.def: New file.
543 * sparc_reloc.def: New file.
544 * x86_64_reloc.def: New file.
545 * Makefile.am (EXTRA_DIST): Add $(modules:=_reloc.def).
546
547 * libebl_alpha.map: Removed.
548 * libebl_ia64.map: Removed.
549 * libebl_ppc.map: Removed.
550 * libebl_sparc.map: Removed.
551 * libebl_arm.map: Removed.
552 * libebl_i386.map: Removed.
553 * libebl_ppc64.map: Removed.
554 * libebl_sh.map: Removed.
555 * libebl_x86_64.map: Removed.
556 * Makefile.am (EXTRA_DIST): Remove them.
557 (libebl_%.map, libebl_%.so): New pattern rules.
558
559 * libebl_alpha.h: Removed.
560 * libebl_ia64.h: Removed.
561 * libebl_ppc.h: Removed.
562 * libebl_sparc.h: Removed.
563 * libebl_arm.h: Removed.
564 * libebl_i386.h: Removed.
565 * libebl_ppc64.h: Removed.
566 * libebl_sh.h: Removed.
567 * libebl_x86_64.h: Removed.
568 * Makefile.am (noinst_HEADERS): Remove them.
569
570 * x86_64_corenote.c: Use libebl_CPU.h instead.
571 * x86_64_symbol.c: Likewise.
572 * i386_corenote.c: Likewise.
573
5742005-11-09 Roland McGrath <roland@redhat.com>
575
576 * ia64_symbol.c (ia64_reloc_simple_type): New function.
577
578 * ebl-hooks.h (reloc_simple_type): Take the Ebl handle, not Elf handle.
579 * eblrelocsimpletype.c (ebl_reloc_simple_type): Update caller.
580 * eblopenbackend.c (default_reloc_simple_type): Update signature.
581 * i386_symbol.c (i386_reloc_simple_type): Likewise.
582 * ppc64_symbol.c (ppc64_reloc_simple_type): Likewise.
583 * ppc_symbol.c (ppc_reloc_simple_type): Likewise.
584 * x86_64_symbol.c (x86_64_reloc_simple_type): Likewise.
585
586 * i386_symbol.c (i386_backend_name): Removed.
587 (i386_reloc_type_name, i386_reloc_type_check): Likewise.
588 (i386_reloc_valid_use): Removed.
589 (i386_copy_reloc_p): Removed.
590
591 * alpha_destr.c: Removed.
592 * arm_destr.c: Removed.
593 * i386_destr.c: Removed.
594 * ia64_destr.c: Removed.
595 * ppc64_destr.c: Removed.
596 * ppc_destr.c: Removed.
597 * sh_destr.c: Removed.
598 * sparc_destr.c: Removed.
599 * x86_64_destr.c: Removed.
600
601 * ebl-hooks.h: New file, broken out of ...
602 * libeblP.h (struct ebl): ... here. #include that for hook
603 declarations, after defining EBLHOOK macro.
604 * libebl_CPU.h: New file.
605 * Makefile.am (noinst_HEADERS): Add them.
606
607 * libeblP.h (struct ebl): Use uint_fast16_t for machine,
608 and uint_fast8_t for class and data.
609
6102005-08-14 Roland McGrath <roland@redhat.com>
611
612 * ia64_symbol.c (ia64_section_type_name): New function.
613 (ia64_dynamic_tag_check): New function.
614 (ia64_reloc_valid_use): New function.
615 * libebl_ia64.h: Declare them.
616 * ia64_init.c (ia64_init): Use them.
617 * Makefile.am (libebl_ia64.so): Link with libelf.
618
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00006192005-08-28 Ulrich Drepper <drepper@redhat.com>
620
621 * Makefile.am: Use $(LINK) not $(CC) when creating DSOs.
622
Roland McGrathe53d04a2005-08-13 20:56:07 +00006232005-08-13 Roland McGrath <roland@redhat.com>
624
625 * ia64_symbol.c (ia64_machine_flag_check): New function.
626 * libebl_ia64.h: Declare it.
627 * ia64_init.c (ia64_init): Use it.
628
Ulrich Drepperc5c33a62005-08-13 17:50:47 +00006292005-08-13 Ulrich Drepper <drepper@redhat.com>
630
631 * libebl.h: Add ehdr parameter to ebl_bss_plt_p and
632 ebl_check_special_symbol.
633 * libeblP.h (struct ebl): Adjust callback functions.
634 * eblopenbackend.c: Adjust dummy functions.
635 * ebl_check_special_symbol.c: Add parameter and pass it on.
636 * eblbsspltp.c: Likewise.
637 * ppc_symbol.c (find_dyn_got): With ehdr passed, simplify search for
638 the dynamic section entry.
639 (ppc_check_special_symbol): Add ehdr parameter.
640 (ppc_bss_plt_p): Likewise.
641 * libebl_ppc.h: Adjust prototypes.
642 * ppc64_symbol.c (ppc_check_special_symbol): Add ehdr parameter.
643 (ppc_bss_plt_p): Likewise.
644 * libebl_ppc64.h: Adjust prototypes.
645
Roland McGrath653d3762005-08-13 01:59:10 +00006462005-08-12 Roland McGrath <roland@redhat.com>
647
Roland McGrathf8873cb2005-08-13 03:26:06 +0000648 * ppc_symbol.c (find_dyn_got): New function, broken out of ...
649 (ppc_bss_plt_p): ... here. Call that.
650 (ppc_check_special_symbol): Use find_dyn_got to fetch value to check
651 against _GLOBAL_OFFSET_TABLE_.
652
Roland McGrath653d3762005-08-13 01:59:10 +0000653 * libeblP.h (struct ebl): Add bss_plt_p hook.
654 * eblopenbackend.c (default_bss_plt_p): New function.
655 (fill_defaults): Use it.
656 * eblbsspltp.c: New file.
657 * Makefile.am (gen_SOURCES): Add it.
658 * libebl.h: Declare ebl_bss_plt_p.
659 * ppc_symbol.c (ppc_bss_plt_p): New function.
660 * libebl_ppc.h: Declare it.
661 * ppc_init.c (ppc_init): Use it.
662 * ppc64_symbol.c (ppc64_bss_plt_p): New function.
663 * libebl_ppc64.h: Declare it.
664 * ppc64_init.c (ppc64_init): Use it.
665
666 * ebl_check_special_symbol.c: New file.
667 * Makefile.am (gen_SOURCES): Add it.
668 * libebl.h: Declare ebl_check_special_symbol.
669 * libeblP.h (struct ebl): Add check_special_symbol hook.
670 * eblopenbackend.c (default_check_special_symbol): New function.
671 (fill_defaults): Use it.
672 * ppc_symbol.c (ppc_check_special_symbol): New function.
673 * libebl_ppc.h: Add prototype.
674 * ppc_init.c (ppc_init): Use it.
675 * ppc64_symbol.c (ppc64_check_special_symbol): New function.
676 * libebl_ppc64.h: Add prototype.
677 * ppc64_init.c (ppc64_init): Use it.
678
Ulrich Drepperb03b0572005-08-07 08:12:22 +00006792005-08-07 Ulrich Drepper <drepper@redhat.com>
680
681 * ppc_init.c: Add support for new DT_PPC_* and R_PPC_* values.
682 * ppc_symbol.c: Likewise.
683 * libebl_ppc.h: Likewise.
684 * ppc64_init.c: There is now also a dynamic_tag_check functions
685 * ppc64_symbol.c: Add dynamic_tag_check.
686 * libebl_ppc64.h: Add prototype.
687 * alpha_init.c: Add support for new DT_ALPHA_* value.
688 * alpha_symbol.c: Likewise.
689 * libebl_alpha.h: Likewise.
690
Ulrich Drepper6fcb3832005-08-03 21:10:49 +00006912005-08-03 Ulrich Drepper <drepper@redhat.com>
692
693 * libebl_alpha.map: Remove unnecessary exports.
694 * libebl_arm.map: Likewise.
695 * libebl_i386.map: Likewise.
696 * libebl_ia64.map: Likewise.
697 * libebl_ppc.map: Likewise.
698 * libebl_ppc64.map: Likewise.
699 * libebl_sh.map: Likewise.
700 * libebl_sparc.map: Likewise.
701 * libebl_x86_64.map: Likewise.
702
Ulrich Dreppera38998e2005-08-03 02:05:39 +00007032005-08-02 Ulrich Drepper <drepper@redhat.com>
704
705 * Makefile.am (libebl_a_SOURCES): Add eblelfclass.c, eblelfdata.c,
706 and eblelfmachine.c.
707 * elbopenbackend.c (machines): Add class and data fields. Initialize
708 them.
709 (ebl_openbackend): Initialize machine, class, data fields in result.
710 * libebl.h: Declare Add eblelfclass, eblelfdata, and eblelfmachine.
711 * libeblP.h (Ebl): Add machine, class, data fields.
712
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00007132005-07-23 Ulrich Drepper <drepper@redhat.com>
714
715 * eblsectionstripp.c: New file.
716 * Makefile.am (gen_SOURCES): Add eblsectionstripp.c.
717 * i386_init.c (i386_init): Install specific debugscn_p callback.
718 * i386_symbol.c (i386_debugscn_p): New function.
719 * libebl.h: Declare ebl_section_strip_p.
720 * libebl_i386.h: Declare i386_debugscn_p.
721
722 * libebl.h: Move Ebl definition to...
723 * libeblP.h: ...here.
724
7252005-07-21 Roland McGrath <roland@redhat.com>
726
727 * Makefile.am (install-ebl-modules): New target, commands from ...
728 (install): ... here. Make this depend on it.
729 (LIBEBL_SUBDIR): New variable, substituted by configure.
730 (install-ebl-modules): Install in $(libdir)/$(LIBEBL_SUBDIR).
731 * eblopenbackend.c (openbackend): Use LIBEBL_SUBDIR in module name.
732
7332005-07-21 Ulrich Drepper <drepper@redhat.com>
734
735 * eblcopyrelocp.c: New file.
736 * Makefile.am (gen_SOURCES): Add eblcopyrelocp.c.
737 * libebl.h: Declare ebl_copy_reloc_p.
738 * eblopenbackend.c (fill_defaults): Fill in copy_reloc_p.
739 (default_copy_reloc_p): New function.
740 * alpha_init.c: Define and use arch-specific copy_reloc_p function.
741 * alpha_symbol.c: Likewise.
742 * arm_init.c: Likewise.
743 * arm_symbol.c: Likewise.
744 * i386_init.c: Likewise.
745 * i386_symbol.c: Likewise.
746 * ia64_init.c: Likewise.
747 * ia64_symbol.c: Likewise.
748 * ppc64_init.c: Likewise.
749 * ppc64_symbol.c: Likewise.
750 * ppc_init.c: Likewise.
751 * ppc_symbol.c: Likewise.
752 * sh_init.c: Likewise.
753 * sh_symbol.c: Likewise.
754 * sparc_init.c: Likewise.
755 * sparc_symbol.c: Likewise.
756 * x86_64_init.c: Likewise.
757 * x86_64_symbol.c: Likewise.
758 * libebl_alpha.h: Declare the copy_reloc_p function.
759 * libebl_arm.h: Likewise.
760 * libebl_i386.h: Likewise.
761 * libebl_ia64.h: Likewise.
762 * libebl_ppc.h: Likewise.
763 * libebl_ppc64.h: Likewise.
764 * libebl_sh.h: Likewise.
765 * libebl_sparc.h: Likewise.
766 * libebl_x86_64.h: Likewise.
767
7682005-05-31 Roland McGrath <roland@redhat.com>
769
770 * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
771 tracking works right.
772
7732005-05-21 Ulrich Drepper <drepper@redhat.com>
774
775 * libebl_x86_64.map: Add x86_64_core_note.
776
7772005-05-19 Roland McGrath <roland@redhat.com>
778
779 * libebl_i386.map: Add i386_reloc_valid_use, i386_reloc_simple_type.
780 * libebl_ppc.map: Add ppc_reloc_simple_type.
781 * libebl_ppc64.map: Add ppc64_reloc_simple_type.
782 * libebl_x86_64.map: Add x86_64_reloc_simple_type.
783
7842005-05-11 Ulrich Drepper <drepper@redhat.com>
785
786 * eblcorenote.c: Handle new AT_* values and files with different
787 endianess.
788 * Makefile.am (x86_64_SRCS): Add x86_64_corenote.c.
789 * x86-64_corenote.c: New file.
790 * x86_64_init.c: Hook in x86_64_corenote.
791 * i386_corenote.c: Make file usable on 64-bit platforms.
792
793 * eblopenbackend.c: If modules version comparison fails, reinitialize
794 hooks.
795
7962005-05-10 Ulrich Drepper <drepper@redhat.com>
797
798 * eblopenbackend.c: Require the init function to return a string.
799 Compare it with MODVERSION from config.h.
800 * alpha_init.c: Change return type. Return MODVERSION or NULL.
801 * arm_init.c: Likewise.
802 * eblopenbackend.c: Likewise.
803 * i386_init.c: Likewise.
804 * ia64_init.c: Likewise.
805 * ppc64_init.c: Likewise.
806 * ppc_init.c: Likewise.
807 * sh_init.c: Likewise.
808 * sparc_init.c: Likewise.
809 * x86_64_init.c: Likewise.
810 * libeblP.h: Adjust ebl_bhinit_t.
811 * libebl_alpha.h: Adjust init function prototype.
812 * libebl_arm.h: Likewise.
813 * libebl_i386.h: Likewise.
814 * libebl_ia64.h: Likewise.
815 * libebl_ppc.h: Likewise.
816 * libebl_ppc64.h: Likewise.
817 * libebl_sh.h: Likewise.
818 * libebl_sparc.h: Likewise.
819 * libebl_x86_64.h: Likewise.
820
821 * mips_destr.c: Removed.
822 * mips_init.c: Removed.
823 * mips_symbol.c: Removed.
824 * libebl_mips.h: Removed.
825 * libebl_mips.map: Removed.
826
8272005-05-03 Roland McGrath <roland@redhat.com>
828
829 * libebl.h (Ebl): Add `reloc_simple_type' member.
830 * eblopenbackend.c (default_reloc_simple_type): New function.
831 (openbackend): Use that as default reloc_simple_type callback.
832 * eblrelocsimpletype.c: New file.
833 * Makefile.am (gen_SOURCES): Add it.
834 * i386_symbol.c (i386_reloc_simple_type): New function.
835 * libebl_i386.h: Declare it.
836 * i386_init.c (i386_init): Use it.
837 * x86_64_symbol.c (x86_64_reloc_simple_type): New function.
838 * libebl_x86_64.h: Declare it.
839 * x86_64_init.c (x86_64_init): Use it.
840 * ppc_symbol.c (ppc_reloc_simple_type): New function.
841 * libebl_ppc.h: Declare it.
842 * ppc_init.c (ppc_init): Use it.
843 * ppc64_symbol.c (ppc64_reloc_simple_type): New function.
844 * libebl_ppc64.h: Declare it.
845 * ppc64_init.c (ppc64_init): Use it.
846
8472005-03-17 Ulrich Drepper <drepper@redhat.com>
848
849 * eblcorenote.c (ebl_core_note): Add support for AT_SECURE.
850
8512005-02-15 Ulrich Drepper <drepper@redhat.com>
852
853 * Makefile.am (AM_CFLAGS): Add -Wformat=2.
854
8552005-02-14 Ulrich Drepper <drepper@redhat.com>
856
857 * alpha_destr.c: Add __attribute__((unused)) where needed.
858 * alpha_init.c: Likewise.
859 * alpha_symbol.c: Likewise.
860 * arm_destr.c: Likewise.
861 * arm_init.c: Likewise.
862 * arm_symbol.c: Likewise.
863 * i386_corenote.c: Likewise.
864 * i386_destr.c: Likewise.
865 * i386_init.c: Likewise.
866 * i386_symbol.c: Likewise.
867 * ia64_destr.c: Likewise.
868 * ia64_init.c: Likewise.
869 * ia64_symbol.c: Likewise.
870 * mips_destr.c: Likewise.
871 * mips_init.c: Likewise.
872 * mips_symbol.c: Likewise.
873 * ppc64_destr.c: Likewise.
874 * ppc64_init.c: Likewise.
875 * ppc64_symbol.c: Likewise.
876 * ppc_destr.c: Likewise.
877 * ppc_init.c: Likewise.
878 * ppc_symbol.c: Likewise.
879 * sh_destr.c: Likewise.
880 * sh_init.c: Likewise.
881 * sh_symbol.c: Likewise.
882 * sparc_destr.c: Likewise.
883 * sparc_init.c: Likewise.
884 * sparc_symbol.c: Likewise.
885 * x86_64_destr.c: Likewise.
886 * x86_64_init.c: Likewise.
887 * x86_64_symbol.c: Likewise.
888
889 * x86_64_symbol.c (reloc_map_table): Fix entries for R_X86_64_64
890 and R_X86_64_32..
891
8922005-02-06 Ulrich Drepper <drepper@redhat.com>
893
894 * eblstrtab.c: A few cleanups.
895
896 * eblopenbackend.c: Mark unused parameters.
897
898 * eblgstrtab.c: Cleanups a few printf format strings.
899
900 * Makefile.am: Cleanup AM_CFLAGS handling. Add -Wunused -Wextra.
901
9022005-02-05 Ulrich Drepper <drepper@redhat.com>
903
904 * Makefile.am: Check for text relocations in constructed DSOs.
905
906 * eblstrtab.c: Minor cleanups.
907
908 * Makefile.am (AM_CFLAGS): Add -std=gnu99 and -fmudflap for MUDFLAP.
909
9102004-08-16 Ulrich Drepper <drepper@redhat.com>
911
912 * Makefile.am (AM_CFLAGS): Add LIBSTR definition with base name of
913 the lib directory.
914 * eblopenbackend.c (openbackend): Use LIBSTR instead of hardcoded
915 lib in path to ebl modules.
916
9172004-04-01 Ulrich Drepper <drepper@redhat.com>
918
919 * Makefile.am: Add rules for ppc and ppc64 ebl module.
920 * ppc_init..c: New file.
921 * ppc_destr.c: New file.
922 * ppc_symbol.c: New file.
923 * libebl_ppc.h: New file.
924 * libebl_ppc.map: New file.
925 * ppc64_init..c: New file.
926 * ppc64_destr.c: New file.
927 * ppc64_symbol.c: New file.
928 * libebl_ppc64.h: New file.
929 * libebl_ppc64.map: New file.
930
9312004-01-20 Ulrich Drepper <drepper@redhat.com>
932
933 * Makefile.am: Support building with mudflap.
934
9352004-01-18 Ulrich Drepper <drepper@redhat.com>
936
937 * libeblP.h (_): Use elfutils domain.
938
9392004-01-16 Ulrich Drepper <drepper@redhat.com>
940
941 * eblsectionname.c: Add support for SHN_BEFORE and SHN_AFTER.
942
9432004-01-13 Ulrich Drepper <drepper@redhat.com>
944
945 * eblsegmenttypename.c ((ebl_segment_type_name): Add support for
946 PT_GNU_RELRO.
947
9482004-01-08 Ulrich Drepper <drepper@redhat.com>
949
950 * libebl.h: Remove last traces of libtool.
951
9522004-01-05 Ulrich Drepper <drepper@redhat.com>
953
954 * elf-knowledge.h: Move to libelf subdir.
955
956 * Makefile.am (EXTRA_DIST): Remove libebl.map.
957 * libebl.map: Removed.
958
9592003-12-08 Ulrich Drepper <drepper@redhat.com>
960
961 * eblsectiontypename.c (ebl_section_type_name): Add support for
962 SHT_SUNW_move, SHT_CHECKSUM, and SHT_GNU_LIBLIST.
963
9642003-11-19 Ulrich Drepper <drepper@redhat.com>
965
966 * ia64_symbol.c (ia64_dynamic_tag_name): New function.
967 * libebl_ia64.h (ia64_dynamic_tag_name): Declare.
968 * ia64_init.c (ia64_init): Register i164_dynamic_tag_name.
969
9702003-09-24 Ulrich Drepper <drepper@redhat.com>
971
972 * ia64_init.c (ia64_init): Initialize segment_type_name callback.
973 * ia64_symbol.c (ia64_segment_type_name): Define.
974 * libebl_ia64.h (ia64_segment_type_name): Declare.
975
9762003-09-22 Ulrich Drepper <drepper@redhat.com>
977
978 * Makefile.am (AM_CFLAGS): Add -fpic.
979
9802003-08-14 Ulrich Drepper <drepper@redhat.com>
981
982 * Makefile.am (install): Remove dependency on libebl.so.
983
9842003-08-13 Ulrich Drepper <drepper@redhat.com>
985
986 * eblopenbackend.c: Adjust relative path to arch-specific DSOs
987 assuming the code ends up in the application. Add second dlopen()
988 try without any path, just the filename.
989 * Makefile.in: Remove rules to build and install libebl.so.
990
9912003-08-11 Ulrich Drepper <drepper@redhat.com>
992
993 * Moved to CVS archive.