blob: 701c2196af58647a2c840d1b53eb591124ca906a [file] [log] [blame]
Roland McGrathce4550a2005-08-10 08:10:07 +000012005-08-10 Roland McGrath <roland@redhat.com>
Ulrich Drepperfaf4d192005-08-11 05:12:05 +00002
Roland McGrathce4550a2005-08-10 08:10:07 +00003 * readelf.c (print_debug_line_section): Update
4 DW_LNS_set_epilogue_begin use to correct misspelling.
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00005
Roland McGrath8f31c2c2005-08-09 04:58:05 +000062005-08-08 Roland McGrath <roland@redhat.com>
7
8 * strip.c (options, parse_opt): Grok -R .comment for compatibility
9 with binutils strip. Likewise -d, -S, as aliases for -g.
10 Likewise ignore -s/--strip-all.
11
Roland McGrath095a01b2005-08-08 03:49:35 +0000122005-08-07 Roland McGrath <roland@redhat.com>
13
14 * strip.c (process_file): Open read-only when using a different output
15 file.
16
Ulrich Drepper47be7952005-08-07 04:41:39 +0000172005-08-06 Ulrich Drepper <drepper@redhat.com>
18
Ulrich Drepper637963b2005-08-07 05:33:07 +000019 * elflint.c (in_nobits_scn): New function.
20 (check_versym): Allow references for defined symbols against versions
21 of other DSOs also for symbols in nobits sections.
22 Move a few variables around.
23
Ulrich Drepper47be7952005-08-07 04:41:39 +000024 * Makefile.am (AM_CFLAGS): Avoid duplication.
25 Link with statis libs if BUILD_STATIC.
26
Ulrich Drepperdbace232005-08-06 01:37:23 +0000272005-08-05 Ulrich Drepper <drepper@redhat.com>
28
29 * elflint.c: Many, many more tests. Mostly related to symbol
30 versioning. Those sections should now be completely checked.
31
32 * readelf.c (print_dynamic): Use gelf_offscn.
33
Ulrich Drepperacb89832005-08-04 07:01:49 +0000342005-08-04 Ulrich Drepper <drepper@redhat.com>
35
36 * elflint.c: Add lots more tests: more extension symbol table sanity,
37 versioning section tests, hash table tests. General cleanup.
38
Ulrich Drepperc911c9e2005-08-02 16:07:42 +0000392005-08-02 Ulrich Drepper <drepper@redhat.com>
40
Ulrich Drepper8a687742005-08-03 02:24:12 +000041 * objdump.c: New file.
42 * Makefile.am (bin_PROGRAMS): Add objdump.
43 (objdump_LDADD): Define.
44
Ulrich Drepperc911c9e2005-08-02 16:07:42 +000045 * elflint.c (check_reloc_shdr): New function split out from check_rela
46 and check_rel.
47 (check_one_reloc): New function. Likewise.
48 (check_rela): Use check_reloc_shdr and check_one_reloc.
49 (check_rel): Likewise.
Ulrich Drepper41de4882005-08-03 00:02:56 +000050 (check_program_header): Check that PT_DYNAMIC entry matches .dynamic
51 section.
52 Add checks that relocations against read-only segments are flagged,
53 that the text relocation flag is not set unnecessarily, and that
54 relocations in one section are either against loaded or not-loaded
55 segments.
Ulrich Drepperc911c9e2005-08-02 16:07:42 +000056
Ulrich Drepper8533dcf2005-08-01 07:18:47 +0000572005-08-01 Ulrich Drepper <drepper@redhat.com>
58
59 * elfcmp.c (main): Ignore section count and section name string table
60 section index.
61
Roland McGrathf9ece8a2005-07-28 07:03:04 +0000622005-07-27 Roland McGrath <roland@redhat.com>
63
64 * elfcmp.c: Include <locale.h>.
65
Ulrich Drepper7d48d6a2005-07-27 10:13:23 +0000662005-07-27 Ulrich Drepper <drepper@redhat.com>
67
68 * elfcmp.c: Print name and index of differing section.
69
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000702005-07-24 Ulrich Drepper <drepper@redhat.com>
71
72 * elfcmp.c: Implement comparing gaps between sections.
73
742005-07-23 Ulrich Drepper <drepper@redhat.com>
75
76 * elflint.c: Include libeblP.h instead of libebl.h.
77 * nm.c: Likewise.
78 * readelf.c: Likewise.
79 * elfcmp.c: Likewise.
80
81 * elfcmp.c (main): Compare individual ELF header fields, excluding
82 e_shoff instead of the whole struct at once.
83 Use ebl_section_strip_p instead of SECTION_STRIP_P.
84 * strip.c: Use ebl_section_strip_p instead of SECTION_STRIP_P.
85
862005-07-22 Ulrich Drepper <drepper@redhat.com>
87
88 * elfcmp.c (main): Take empty section into account when comparing
89 section content.
90
91 * elflint.c (check_dynamic): Check that d_tag value is >= 0 before
92 using it.
93
942005-07-21 Ulrich Drepper <drepper@redhat.com>
95
96 * elfcmp.c: New file.
97 * Makefile.am (bin_PROGRAMS): Add elfcmp.
98 (elfcmp_LDADD): Define.
99
100 * elflint.c (check_rela): Check that copy relocations only reference
101 object symbols or symbols with unknown type.
102 (check_rel): Likewise.
103
1042005-06-08 Roland McGrath <roland@redhat.com>
105
106 * readelf.c (print_ops): Add consts.
107
1082005-05-31 Roland McGrath <roland@redhat.com>
109
110 * readelf.c (print_debug_abbrev_section): Don't bail after first CU's
111 abbreviations. Print a header line before each CU section.
112
113 * readelf.c (print_debug_loc_section): Fix indentation for larger
114 address size.
115
1162005-05-30 Roland McGrath <roland@redhat.com>
117
118 * readelf.c (print_debug_line_section): Print section offset of each
119 CU's table, so they are easy to find from seeing the stmt_list value.
120
121 * readelf.c (dwarf_attr_string): Add all attributes in <dwarf.h>.
122 (attr_callback): Grok DW_AT_ranges and print offset in hex.
123
124 * readelf.c (attr_callback): Add 2 to addrsize * 2 for %#0* format.
125 (print_debug_ranges_section, print_debug_loc_section): Likewise.
126
127 * readelf.c (print_ops): Take different args for indentation control.
128 (attr_callback): Caller updated.
129 Grok several more block-form attributes as being location expressions.
130 For those same attributes with udata forms, format output differently
131 for location list offset.
132 (print_debug_loc_section): Implement it for real.
133
134 * readelf.c (options): Mention ranges for --debug-dump.
135 (enum section_e): Add section_ranges.
136 (parse_opt): Grok "ranges" for -w/--debug-dump.
137 (print_debug_ranges_section): New function.
138 (print_debug): Handle .debug_ranges section.
139
1402005-05-30 Ulrich Drepper <drepper@redhat.com>
141
142 * readelf.c (handle_notes): At least x86-64 need not have the note
143 section values aligned to 8 bytes.
144
1452005-05-18 Ulrich Drepper <drepper@redhat.com>
146
147 * readelf.c (dwarf_tag_string): Add new tags.
148
1492005-05-08 Roland McGrath <roland@redhat.com>
150
151 * strip.c (handle_elf): Don't translate hash and versym data formats,
152 elf_getdata already did it for us.
153
1542005-05-07 Ulrich Drepper <drepper@redhat.com>
155
156 * Makefile.am (findtextrel_LDADD): Add $(libmudflap).
157 (addr2line_LDADD): Likewise.
158
1592005-05-03 Roland McGrath <roland@redhat.com>
160
161 * strip.c (handle_elf): Apply symbol table fixups to discarded
162 relocation sections when they are being saved in the debug file.
163
164 * strip.c (handle_elf): Pass EHDR->e_ident[EI_DATA] to gelf_xlatetom
165 and gelf_xlatetof, not the native byte order.
166
167 * strip.c (parse_opt): Give error if -f or -o is repeated.
168 (main): Exit if argp_parse returns nonzero.
169
170 * strip.c (debug_fname_embed): New variable.
171 (options, parse_opt): New option -F to set it.
172
1732005-05-07 Ulrich Drepper <drepper@redhat.com>
174
175 * readelf.c (parse_opt): Make any_control_option variable
176 local. Simplify some tests.
177
1782005-05-03 Roland McGrath <roland@redhat.com>
179
180 * strip.c (crc32_file): Function removed (now in ../lib).
181
1822005-05-03 Roland McGrath <roland@redhat.com>
183
184 * elflint.c (is_debuginfo): New variable.
185 (options, parse_opt): New option --debuginfo/-d to set it.
186 (check_sections): If is_debuginfo, don't complain about SHT_NOBITS.
187 (check_note): If is_debuginfo, don't try to get note contents.
188
1892005-04-24 Ulrich Drepper <drepper@redhat.com>
190
191 * readelf.c (print_debug_abbrev_section): Don't print error when end of
192 section reached.
193
1942005-04-14 Ulrich Drepper <drepper@redhat.com>
195
196 * readelf.c (dwarf_encoding_string): New function.
197 (dwarf_inline_string): New function.
198 (dwarf_access_string): New function.
199 (dwarf_visibility_string): New function.
200 (dwarf_virtuality_string): New function.
201 (dwarf_identifier_case_string): New function.
202 (dwarf_calling_convention_string): New function.
203 (dwarf_ordering_string): New function.
204 (dwarf_discr_list_string): New function.
205 (attr_callback): Decode man more attribute values.
206
2072005-04-01 Ulrich Drepper <drepper@redhat.com>
208
209 * addr2line.c: Finish implementation of -f option.
210
2112005-03-29 Ulrich Drepper <drepper@redhat.com>
212
213 * addr2line.c: New file.
214 * Makefile.am (bin_PROGRAMS): Add addr2line.
215 Define addr2line_LDADD.
216
217 * findtextrel.c: Use new dwarf_addrdie function.
218
219 * findtextrel.c: Fix usage message and re-add accidentally removed
220 line.
221
2222005-03-28 Ulrich Drepper <drepper@redhat.com>
223
224 * findtextrel.c: New file.
225 * Makefile: Add rules to build findtextrel.
226
2272005-02-15 Ulrich Drepper <drepper@redhat.com>
228
229 * ldlex.l: Provide ECHO definition to avoid warning.
230
231 * elflint.c (check_program_header): Fix typo in RELRO test.
232
233 * Makefile.am (AM_CFLAGS): Add more warning options.
234 * elflint.c: Fix warnings introduced by the new warning options.
235 * i386_ld.c: Likewise.
236 * ld.c: Likewise.
237 * ld.h: Likewise.
238 * ldgeneric.c: Likewise.
239 * nm.c: Likewise.
240 * readelf.c: Likewise.
241 * sectionhash.c: Likewise.
242 * size.c: Likewise.
243 * string.c: Likewise.
244
2452005-02-05 Ulrich Drepper <drepper@redhat.com>
246
247 * Makefile.am: Check for text relocations in constructed DSOs.
248
249 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap. Link all apps
250 with -lmudflap.
251
252 * ldscript.y: Add as_needed handling.
253 * ldlex.l: Recognize AS_NEEDED token.
254 * ld.h (struct filename_list): Add as_needed flag.
255
2562005-02-04 Ulrich Drepper <drepper@redhat.com>
257
258 * elflint.c (check_symtab): Correctly determine size of GOT section.
259
2602005-01-19 Ulrich Drepper <drepper@redhat.com>
261
262 * ld.c: Remove unnecessary more_help function. Print bug report
263 address using argp.
264 * strip.c: Likewise.
265 * size.c: Likewise.
266 * nm.c: Likewise.
267 * readelf.c: Likewise.
268 * elflint.c: Likewise.
269
270 * elflint.c (main): Don't check for parameter problems here.
271 (parse_opt): Do it here, where we get informed about some of them
272 anyway.
273
274 * readelf.c (main): Don't check for parameter problems here.
275 (parse_opt): Do it here, where we get informed about some of them
276 anyway.
277
2782005-01-11 Ulrich Drepper <drepper@redhat.com>
279
280 * strip.c: Update copyright year.
281 * readelf.c: Likewise.
282 * size.c: Likewise.
283 * nm.c: Likewise.
284 * ld.c: Likewise.
285 * elflint.c: Likewise.
286
287 * elflint.c (check_symtab): Don't warn about wrong size for
288 _DYNAMIC and __GLOBAL_OFFSET_TABLE__ for --gnu-ld.
289
2902004-10-05 Ulrich Drepper <drepper@redhat.com>
291
292 * readelf.c (print_phdr): In section mapping, also indicate
293 sections in read-only segments.
294
2952004-09-25 Ulrich Drepper <drepper@redhat.com>
296
297 * readelf.c: Make compile with gcc 4.0.
298 * strip.c: Likewise.
299
3002004-08-16 Ulrich Drepper <drepper@redhat.com>
301
302 * strip.c (handle_elf): Rewrite dynamic memory handling to use of
303 allocate to work around gcc 3.4 bug.
304
3052004-01-25 Ulrich Drepper <drepper@redhat.com>
306
307 * ldlex.l (invalid_char): Better error message.
308
3092004-01-23 Ulrich Drepper <drepper@redhat.com>
310
311 * readelf.c: Print SHT_GNU_LIBLIST sections.
312
313 * none_ld.c: New file.
314
3152004-01-21 Ulrich Drepper <drepper@redhat.com>
316
317 * Makefile.am: Enable building of machine specific linker.
318
3192004-01-20 Ulrich Drepper <drepper@redhat.com>
320
321 * Makefile.am: Support building with mudflap.
322
323 * i386_ld.c: Fix warnings gcc 3.4 spits out.
324 * ldgeneric.c: Likewise.
325 * ldscript.y: Likewise.
326 * readelf.c: Likewise.
327 * strip.c: Likewise.
328
329 * readelf.c (print_debug_line_section): Determine address size
330 correctly.
331
3322004-01-19 Ulrich Drepper <drepper@redhat.com>
333
334 * readelf.c (print_phdr): Show which sections are covered by the
335 PT_GNU_RELRO entry.
336
337 * elflint.c (check_program_header): Check PT_GNU_RELRO entry.
338
339 * readelf.c (print_debug_macinfo_section): Implement.
340
3412004-01-18 Ulrich Drepper <drepper@redhat.com>
342
343 * readelf.c (print_debug_line_section): Implement.
344
3452004-01-17 Ulrich Drepper <drepper@redhat.com>
346
347 * src/elflint.c: Use PACKAGE_NAME instead of PACKAGE.
348 * src/ld.c: Likewise.
349 * src/nm.c: Likewise.
350 * src/readelf.c: Likewise.
351 * src/size.c: Likewise.
352 * src/strip.c: Likewise.
353
354 * strip.c: Add a few more unlikely. Reduce scope of some variables.
355
356 * Makefile.am: Support building with mudflap.
357
3582004-01-16 Ulrich Drepper <drepper@redhat.com>
359
360 * readelf.c (print_debug_info_section): Free dies memory.
361
362 * readelf.c: Print .debug_info section content.
363
3642004-01-13 Ulrich Drepper <drepper@redhat.com>
365
366 * readelf.c (print_shdr): Add support for SHF_ORDERED and SHF_EXCLUDE.
367
3682004-01-12 Ulrich Drepper <drepper@redhat.com>
369
370 * readelf.c (print_debug_aranges): Implement using libdw.
371
3722004-01-11 Ulrich Drepper <drepper@redhat.com>
373
374 * nm.c: Adjust for Dwarf_Files type and dwarf_lineno interface change.
375
376 * readelf.c: Use libdw instead of libdwarf. Not all of the old
377 behavior is available yet.
378 * Makefile.am: Link readelf with libdw. Remove libdwarf include path.
379
3802004-01-09 Ulrich Drepper <drepper@redhat.com>
381
382 * nm.c (get_local_names): Adjust call to dwarf_nextcu.
383
384 * nm.c: Implement getting information about local variables.
385
3862004-01-07 Ulrich Drepper <drepper@redhat.com>
387
388 * nm.c: Read also debug information for local symbols.
389
3902004-01-05 Ulrich Drepper <drepper@redhat.com>
391
392 * nm.c: Shuffle dwarf handling code around so the maximum column
393 width can be computed ahead of printing. Avoid collection symbols
394 which are not printed anyway.
395
396 * nm.c: Rewrite dwarf handling to use libdw.
397 * Makefile.am (AM_CFLAGS): Add -std parameter.
398 (INCLUDES): Find header in libdw subdir.
399 (nm_LDADD): Replace libdwarf with libdw.
400
401 * elflint.c: Update copyright year.
402 * readelf.c: Likewise.
403 * size.c: Likewise.
404 * strip.c: Likewise.
405 * nm.c: Likewise.
406
4072003-12-31 Ulrich Drepper <drepper@redhat.com>
408
409 * strip.c (process_file): Close file before returning.
410
4112003-11-19 Ulrich Drepper <drepper@redhat.com>
412
413 * readelf.c (handle_dynamic): Make column for tag name wider.
414
4152003-09-29 Ulrich Drepper <drepper@redhat.com>
416
417 * readelf.c (handle_dynamic): Always terminate tag name with a space.
418
4192003-09-25 Ulrich Drepper <drepper@redhat.com>
420
421 * strip.c (process_file): Don't mmap the input file, we modify the
422 data structures and don't want the change end up on disk.
423
4242003-09-23 Jakub Jelinek <jakub@redhat.com>
425
426 * unaligned.h (union u_2ubyte_unaligned,
427 union u_4ubyte_unaligned, union u_8ubyte_unaligned): Add
428 packed attribute.
429 (add_2ubyte_unaligned, add_4ubyte_unaligned,
430 add_8ubyte_unaligned): Avoid nesting bswap_NN macros.
431 Read/store value through _ptr->u instead of *_ptr.
432
4332003-09-22 Ulrich Drepper <drepper@redhat.com>
434
435 * size.c (show_sysv): Change type of maxlen to int.
436
437 * strip.c (handle_elf): Handle the 64-bit archs which is 64-bit
438 buckets.
439
440 * i386_ld.c: Many many fixes and extensions.
441 * ld.c: Likewise.
442 * ldgeneric.c: Likewise.
443
4442003-08-16 Ulrich Drepper <drepper@redhat.com>
445
446 * ldgeneric.c (check_definition): Don't add symbol on dso_list if
447 the reference is from another DSO.
448
4492003-08-15 Ulrich Drepper <drepper@redhat.com>
450
451 * ldgeneric.c (find_entry_point): It is no fatal error if no entry
452 point is found when creating a DSO.
453
4542003-08-14 Ulrich Drepper <drepper@redhat.com>
455
456 * ld.c (main): Always call FLAG_UNRESOLVED.
457 * ldgeneric.c (ld_generic_flag_unresolved): Only complain about
458 undefined symbols if not creating DSO or ld_state.nodefs is not set.
459
4602003-08-13 Ulrich Drepper <drepper@redhat.com>
461
462 * Makefile.in: Depend on libebl.a, not libebl.so.
463
464 * ld.c (main): Mark stream for linker script as locked by caller.
465 (read_version_script): Likewise.
466 * ldlex.c: Define fread and fwrite to _unlocked variant.
467
468 * i386_ld.c (elf_i386_finalize_plt): Replace #ifdefs with uses of
469 target_bswap_32.
470 * unaligned.h: Define target_bswap_16, target_bswap_32, and
471 target_bswap_64.
472 (store_2ubyte_unaligned, store_4ubyte_unaligned,
473 store_8ubyte_unaligned): Define using new macros.
474
4752003-08-12 Ulrich Drepper <drepper@redhat.com>
476
477 * i386_ld.c (elf_i386_finalize_plt): Use packed structs to access
478 possibly unaligned memory. Support use of big endian machines.
479
4802003-08-11 Ulrich Drepper <drepper@redhat.com>
481
482 * Moved to CVS archive.