blob: 7aae3f98a28ec65cb5c3bc8d3a60f20dc7b96826 [file] [log] [blame]
Roland McGrath1c83bf12005-08-11 07:03:55 +000012005-07-28 Roland McGrath <roland@redhat.com>
Ulrich Drepperfaf4d192005-08-11 05:12:05 +00002
Roland McGrath1c83bf12005-08-11 07:03:55 +00003 * addr2line.c (options, parse_opt): Don't handle -e here.
4 (executable): Variable removed.
5 (argp_children): New static variable.
6 (argp): Use it. Make const.
7 (main): Fill in argp_children from dwfl_standard_argp ().
8 Let libdwfl handle file selection, pass Dwfl handle to handle_address.
9 (print_dwarf_function): New function. Try to figure out inline chain.
10 (elf_getname): Function removed, libdwfl does it for us.
11 (handle_address): Take Dwfl handle instead of Elf, Dwarf handles.
12 Use dwfl_module_addrname instead of elf_getname.
13 Use dwfl_module_getsrc and dwfl_lineinfo instead of libdw calls.
14 * Makefile.am (INCLUDES): Add libdwfl directory to path.
15
162005-08-10 Ulrich Drepper <drepper@redhat.com>
17
18 * strip.c (parse_opt): STATE parameter is now used.
19 Various little cleanups.
20
21 * readelf.c (print_debug_line_section): Correct fallout of renaming
22 of DW_LNS_set_epilog_begin.
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +000023
Roland McGrath8f31c2c2005-08-09 04:58:05 +0000242005-08-08 Roland McGrath <roland@redhat.com>
25
26 * strip.c (options, parse_opt): Grok -R .comment for compatibility
27 with binutils strip. Likewise -d, -S, as aliases for -g.
28 Likewise ignore -s/--strip-all.
29
Roland McGrath095a01b2005-08-08 03:49:35 +0000302005-08-07 Roland McGrath <roland@redhat.com>
31
32 * strip.c (process_file): Open read-only when using a different output
33 file.
34
Ulrich Drepper47be7952005-08-07 04:41:39 +0000352005-08-06 Ulrich Drepper <drepper@redhat.com>
36
Ulrich Drepper637963b2005-08-07 05:33:07 +000037 * elflint.c (in_nobits_scn): New function.
38 (check_versym): Allow references for defined symbols against versions
39 of other DSOs also for symbols in nobits sections.
40 Move a few variables around.
41
Ulrich Drepper47be7952005-08-07 04:41:39 +000042 * Makefile.am (AM_CFLAGS): Avoid duplication.
43 Link with statis libs if BUILD_STATIC.
44
Ulrich Drepperdbace232005-08-06 01:37:23 +0000452005-08-05 Ulrich Drepper <drepper@redhat.com>
46
47 * elflint.c: Many, many more tests. Mostly related to symbol
48 versioning. Those sections should now be completely checked.
49
50 * readelf.c (print_dynamic): Use gelf_offscn.
51
Ulrich Drepperacb89832005-08-04 07:01:49 +0000522005-08-04 Ulrich Drepper <drepper@redhat.com>
53
54 * elflint.c: Add lots more tests: more extension symbol table sanity,
55 versioning section tests, hash table tests. General cleanup.
56
Ulrich Drepperc911c9e2005-08-02 16:07:42 +0000572005-08-02 Ulrich Drepper <drepper@redhat.com>
58
Ulrich Drepper8a687742005-08-03 02:24:12 +000059 * objdump.c: New file.
60 * Makefile.am (bin_PROGRAMS): Add objdump.
61 (objdump_LDADD): Define.
62
Ulrich Drepperc911c9e2005-08-02 16:07:42 +000063 * elflint.c (check_reloc_shdr): New function split out from check_rela
64 and check_rel.
65 (check_one_reloc): New function. Likewise.
66 (check_rela): Use check_reloc_shdr and check_one_reloc.
67 (check_rel): Likewise.
Ulrich Drepper41de4882005-08-03 00:02:56 +000068 (check_program_header): Check that PT_DYNAMIC entry matches .dynamic
69 section.
70 Add checks that relocations against read-only segments are flagged,
71 that the text relocation flag is not set unnecessarily, and that
72 relocations in one section are either against loaded or not-loaded
73 segments.
Ulrich Drepperc911c9e2005-08-02 16:07:42 +000074
Ulrich Drepper8533dcf2005-08-01 07:18:47 +0000752005-08-01 Ulrich Drepper <drepper@redhat.com>
76
77 * elfcmp.c (main): Ignore section count and section name string table
78 section index.
79
Roland McGrathf9ece8a2005-07-28 07:03:04 +0000802005-07-27 Roland McGrath <roland@redhat.com>
81
82 * elfcmp.c: Include <locale.h>.
83
Ulrich Drepper7d48d6a2005-07-27 10:13:23 +0000842005-07-27 Ulrich Drepper <drepper@redhat.com>
85
86 * elfcmp.c: Print name and index of differing section.
87
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000882005-07-24 Ulrich Drepper <drepper@redhat.com>
89
90 * elfcmp.c: Implement comparing gaps between sections.
91
922005-07-23 Ulrich Drepper <drepper@redhat.com>
93
94 * elflint.c: Include libeblP.h instead of libebl.h.
95 * nm.c: Likewise.
96 * readelf.c: Likewise.
97 * elfcmp.c: Likewise.
98
99 * elfcmp.c (main): Compare individual ELF header fields, excluding
100 e_shoff instead of the whole struct at once.
101 Use ebl_section_strip_p instead of SECTION_STRIP_P.
102 * strip.c: Use ebl_section_strip_p instead of SECTION_STRIP_P.
103
1042005-07-22 Ulrich Drepper <drepper@redhat.com>
105
106 * elfcmp.c (main): Take empty section into account when comparing
107 section content.
108
109 * elflint.c (check_dynamic): Check that d_tag value is >= 0 before
110 using it.
111
1122005-07-21 Ulrich Drepper <drepper@redhat.com>
113
114 * elfcmp.c: New file.
115 * Makefile.am (bin_PROGRAMS): Add elfcmp.
116 (elfcmp_LDADD): Define.
117
118 * elflint.c (check_rela): Check that copy relocations only reference
119 object symbols or symbols with unknown type.
120 (check_rel): Likewise.
121
1222005-06-08 Roland McGrath <roland@redhat.com>
123
124 * readelf.c (print_ops): Add consts.
125
1262005-05-31 Roland McGrath <roland@redhat.com>
127
128 * readelf.c (print_debug_abbrev_section): Don't bail after first CU's
129 abbreviations. Print a header line before each CU section.
130
131 * readelf.c (print_debug_loc_section): Fix indentation for larger
132 address size.
133
1342005-05-30 Roland McGrath <roland@redhat.com>
135
136 * readelf.c (print_debug_line_section): Print section offset of each
137 CU's table, so they are easy to find from seeing the stmt_list value.
138
139 * readelf.c (dwarf_attr_string): Add all attributes in <dwarf.h>.
140 (attr_callback): Grok DW_AT_ranges and print offset in hex.
141
142 * readelf.c (attr_callback): Add 2 to addrsize * 2 for %#0* format.
143 (print_debug_ranges_section, print_debug_loc_section): Likewise.
144
145 * readelf.c (print_ops): Take different args for indentation control.
146 (attr_callback): Caller updated.
147 Grok several more block-form attributes as being location expressions.
148 For those same attributes with udata forms, format output differently
149 for location list offset.
150 (print_debug_loc_section): Implement it for real.
151
152 * readelf.c (options): Mention ranges for --debug-dump.
153 (enum section_e): Add section_ranges.
154 (parse_opt): Grok "ranges" for -w/--debug-dump.
155 (print_debug_ranges_section): New function.
156 (print_debug): Handle .debug_ranges section.
157
1582005-05-30 Ulrich Drepper <drepper@redhat.com>
159
160 * readelf.c (handle_notes): At least x86-64 need not have the note
161 section values aligned to 8 bytes.
162
1632005-05-18 Ulrich Drepper <drepper@redhat.com>
164
165 * readelf.c (dwarf_tag_string): Add new tags.
166
1672005-05-08 Roland McGrath <roland@redhat.com>
168
169 * strip.c (handle_elf): Don't translate hash and versym data formats,
170 elf_getdata already did it for us.
171
1722005-05-07 Ulrich Drepper <drepper@redhat.com>
173
174 * Makefile.am (findtextrel_LDADD): Add $(libmudflap).
175 (addr2line_LDADD): Likewise.
176
1772005-05-03 Roland McGrath <roland@redhat.com>
178
179 * strip.c (handle_elf): Apply symbol table fixups to discarded
180 relocation sections when they are being saved in the debug file.
181
182 * strip.c (handle_elf): Pass EHDR->e_ident[EI_DATA] to gelf_xlatetom
183 and gelf_xlatetof, not the native byte order.
184
185 * strip.c (parse_opt): Give error if -f or -o is repeated.
186 (main): Exit if argp_parse returns nonzero.
187
188 * strip.c (debug_fname_embed): New variable.
189 (options, parse_opt): New option -F to set it.
190
1912005-05-07 Ulrich Drepper <drepper@redhat.com>
192
193 * readelf.c (parse_opt): Make any_control_option variable
194 local. Simplify some tests.
195
1962005-05-03 Roland McGrath <roland@redhat.com>
197
198 * strip.c (crc32_file): Function removed (now in ../lib).
199
2002005-05-03 Roland McGrath <roland@redhat.com>
201
202 * elflint.c (is_debuginfo): New variable.
203 (options, parse_opt): New option --debuginfo/-d to set it.
204 (check_sections): If is_debuginfo, don't complain about SHT_NOBITS.
205 (check_note): If is_debuginfo, don't try to get note contents.
206
2072005-04-24 Ulrich Drepper <drepper@redhat.com>
208
209 * readelf.c (print_debug_abbrev_section): Don't print error when end of
210 section reached.
211
2122005-04-14 Ulrich Drepper <drepper@redhat.com>
213
214 * readelf.c (dwarf_encoding_string): New function.
215 (dwarf_inline_string): New function.
216 (dwarf_access_string): New function.
217 (dwarf_visibility_string): New function.
218 (dwarf_virtuality_string): New function.
219 (dwarf_identifier_case_string): New function.
220 (dwarf_calling_convention_string): New function.
221 (dwarf_ordering_string): New function.
222 (dwarf_discr_list_string): New function.
223 (attr_callback): Decode man more attribute values.
224
2252005-04-01 Ulrich Drepper <drepper@redhat.com>
226
227 * addr2line.c: Finish implementation of -f option.
228
2292005-03-29 Ulrich Drepper <drepper@redhat.com>
230
231 * addr2line.c: New file.
232 * Makefile.am (bin_PROGRAMS): Add addr2line.
233 Define addr2line_LDADD.
234
235 * findtextrel.c: Use new dwarf_addrdie function.
236
237 * findtextrel.c: Fix usage message and re-add accidentally removed
238 line.
239
2402005-03-28 Ulrich Drepper <drepper@redhat.com>
241
242 * findtextrel.c: New file.
243 * Makefile: Add rules to build findtextrel.
244
2452005-02-15 Ulrich Drepper <drepper@redhat.com>
246
247 * ldlex.l: Provide ECHO definition to avoid warning.
248
249 * elflint.c (check_program_header): Fix typo in RELRO test.
250
251 * Makefile.am (AM_CFLAGS): Add more warning options.
252 * elflint.c: Fix warnings introduced by the new warning options.
253 * i386_ld.c: Likewise.
254 * ld.c: Likewise.
255 * ld.h: Likewise.
256 * ldgeneric.c: Likewise.
257 * nm.c: Likewise.
258 * readelf.c: Likewise.
259 * sectionhash.c: Likewise.
260 * size.c: Likewise.
261 * string.c: Likewise.
262
2632005-02-05 Ulrich Drepper <drepper@redhat.com>
264
265 * Makefile.am: Check for text relocations in constructed DSOs.
266
267 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap. Link all apps
268 with -lmudflap.
269
270 * ldscript.y: Add as_needed handling.
271 * ldlex.l: Recognize AS_NEEDED token.
272 * ld.h (struct filename_list): Add as_needed flag.
273
2742005-02-04 Ulrich Drepper <drepper@redhat.com>
275
276 * elflint.c (check_symtab): Correctly determine size of GOT section.
277
2782005-01-19 Ulrich Drepper <drepper@redhat.com>
279
280 * ld.c: Remove unnecessary more_help function. Print bug report
281 address using argp.
282 * strip.c: Likewise.
283 * size.c: Likewise.
284 * nm.c: Likewise.
285 * readelf.c: Likewise.
286 * elflint.c: Likewise.
287
288 * elflint.c (main): Don't check for parameter problems here.
289 (parse_opt): Do it here, where we get informed about some of them
290 anyway.
291
292 * readelf.c (main): Don't check for parameter problems here.
293 (parse_opt): Do it here, where we get informed about some of them
294 anyway.
295
2962005-01-11 Ulrich Drepper <drepper@redhat.com>
297
298 * strip.c: Update copyright year.
299 * readelf.c: Likewise.
300 * size.c: Likewise.
301 * nm.c: Likewise.
302 * ld.c: Likewise.
303 * elflint.c: Likewise.
304
305 * elflint.c (check_symtab): Don't warn about wrong size for
306 _DYNAMIC and __GLOBAL_OFFSET_TABLE__ for --gnu-ld.
307
3082004-10-05 Ulrich Drepper <drepper@redhat.com>
309
310 * readelf.c (print_phdr): In section mapping, also indicate
311 sections in read-only segments.
312
3132004-09-25 Ulrich Drepper <drepper@redhat.com>
314
315 * readelf.c: Make compile with gcc 4.0.
316 * strip.c: Likewise.
317
3182004-08-16 Ulrich Drepper <drepper@redhat.com>
319
320 * strip.c (handle_elf): Rewrite dynamic memory handling to use of
321 allocate to work around gcc 3.4 bug.
322
3232004-01-25 Ulrich Drepper <drepper@redhat.com>
324
325 * ldlex.l (invalid_char): Better error message.
326
3272004-01-23 Ulrich Drepper <drepper@redhat.com>
328
329 * readelf.c: Print SHT_GNU_LIBLIST sections.
330
331 * none_ld.c: New file.
332
3332004-01-21 Ulrich Drepper <drepper@redhat.com>
334
335 * Makefile.am: Enable building of machine specific linker.
336
3372004-01-20 Ulrich Drepper <drepper@redhat.com>
338
339 * Makefile.am: Support building with mudflap.
340
341 * i386_ld.c: Fix warnings gcc 3.4 spits out.
342 * ldgeneric.c: Likewise.
343 * ldscript.y: Likewise.
344 * readelf.c: Likewise.
345 * strip.c: Likewise.
346
347 * readelf.c (print_debug_line_section): Determine address size
348 correctly.
349
3502004-01-19 Ulrich Drepper <drepper@redhat.com>
351
352 * readelf.c (print_phdr): Show which sections are covered by the
353 PT_GNU_RELRO entry.
354
355 * elflint.c (check_program_header): Check PT_GNU_RELRO entry.
356
357 * readelf.c (print_debug_macinfo_section): Implement.
358
3592004-01-18 Ulrich Drepper <drepper@redhat.com>
360
361 * readelf.c (print_debug_line_section): Implement.
362
3632004-01-17 Ulrich Drepper <drepper@redhat.com>
364
365 * src/elflint.c: Use PACKAGE_NAME instead of PACKAGE.
366 * src/ld.c: Likewise.
367 * src/nm.c: Likewise.
368 * src/readelf.c: Likewise.
369 * src/size.c: Likewise.
370 * src/strip.c: Likewise.
371
372 * strip.c: Add a few more unlikely. Reduce scope of some variables.
373
374 * Makefile.am: Support building with mudflap.
375
3762004-01-16 Ulrich Drepper <drepper@redhat.com>
377
378 * readelf.c (print_debug_info_section): Free dies memory.
379
380 * readelf.c: Print .debug_info section content.
381
3822004-01-13 Ulrich Drepper <drepper@redhat.com>
383
384 * readelf.c (print_shdr): Add support for SHF_ORDERED and SHF_EXCLUDE.
385
3862004-01-12 Ulrich Drepper <drepper@redhat.com>
387
388 * readelf.c (print_debug_aranges): Implement using libdw.
389
3902004-01-11 Ulrich Drepper <drepper@redhat.com>
391
392 * nm.c: Adjust for Dwarf_Files type and dwarf_lineno interface change.
393
394 * readelf.c: Use libdw instead of libdwarf. Not all of the old
395 behavior is available yet.
396 * Makefile.am: Link readelf with libdw. Remove libdwarf include path.
397
3982004-01-09 Ulrich Drepper <drepper@redhat.com>
399
400 * nm.c (get_local_names): Adjust call to dwarf_nextcu.
401
402 * nm.c: Implement getting information about local variables.
403
4042004-01-07 Ulrich Drepper <drepper@redhat.com>
405
406 * nm.c: Read also debug information for local symbols.
407
4082004-01-05 Ulrich Drepper <drepper@redhat.com>
409
410 * nm.c: Shuffle dwarf handling code around so the maximum column
411 width can be computed ahead of printing. Avoid collection symbols
412 which are not printed anyway.
413
414 * nm.c: Rewrite dwarf handling to use libdw.
415 * Makefile.am (AM_CFLAGS): Add -std parameter.
416 (INCLUDES): Find header in libdw subdir.
417 (nm_LDADD): Replace libdwarf with libdw.
418
419 * elflint.c: Update copyright year.
420 * readelf.c: Likewise.
421 * size.c: Likewise.
422 * strip.c: Likewise.
423 * nm.c: Likewise.
424
4252003-12-31 Ulrich Drepper <drepper@redhat.com>
426
427 * strip.c (process_file): Close file before returning.
428
4292003-11-19 Ulrich Drepper <drepper@redhat.com>
430
431 * readelf.c (handle_dynamic): Make column for tag name wider.
432
4332003-09-29 Ulrich Drepper <drepper@redhat.com>
434
435 * readelf.c (handle_dynamic): Always terminate tag name with a space.
436
4372003-09-25 Ulrich Drepper <drepper@redhat.com>
438
439 * strip.c (process_file): Don't mmap the input file, we modify the
440 data structures and don't want the change end up on disk.
441
4422003-09-23 Jakub Jelinek <jakub@redhat.com>
443
444 * unaligned.h (union u_2ubyte_unaligned,
445 union u_4ubyte_unaligned, union u_8ubyte_unaligned): Add
446 packed attribute.
447 (add_2ubyte_unaligned, add_4ubyte_unaligned,
448 add_8ubyte_unaligned): Avoid nesting bswap_NN macros.
449 Read/store value through _ptr->u instead of *_ptr.
450
4512003-09-22 Ulrich Drepper <drepper@redhat.com>
452
453 * size.c (show_sysv): Change type of maxlen to int.
454
455 * strip.c (handle_elf): Handle the 64-bit archs which is 64-bit
456 buckets.
457
458 * i386_ld.c: Many many fixes and extensions.
459 * ld.c: Likewise.
460 * ldgeneric.c: Likewise.
461
4622003-08-16 Ulrich Drepper <drepper@redhat.com>
463
464 * ldgeneric.c (check_definition): Don't add symbol on dso_list if
465 the reference is from another DSO.
466
4672003-08-15 Ulrich Drepper <drepper@redhat.com>
468
469 * ldgeneric.c (find_entry_point): It is no fatal error if no entry
470 point is found when creating a DSO.
471
4722003-08-14 Ulrich Drepper <drepper@redhat.com>
473
474 * ld.c (main): Always call FLAG_UNRESOLVED.
475 * ldgeneric.c (ld_generic_flag_unresolved): Only complain about
476 undefined symbols if not creating DSO or ld_state.nodefs is not set.
477
4782003-08-13 Ulrich Drepper <drepper@redhat.com>
479
480 * Makefile.in: Depend on libebl.a, not libebl.so.
481
482 * ld.c (main): Mark stream for linker script as locked by caller.
483 (read_version_script): Likewise.
484 * ldlex.c: Define fread and fwrite to _unlocked variant.
485
486 * i386_ld.c (elf_i386_finalize_plt): Replace #ifdefs with uses of
487 target_bswap_32.
488 * unaligned.h: Define target_bswap_16, target_bswap_32, and
489 target_bswap_64.
490 (store_2ubyte_unaligned, store_4ubyte_unaligned,
491 store_8ubyte_unaligned): Define using new macros.
492
4932003-08-12 Ulrich Drepper <drepper@redhat.com>
494
495 * i386_ld.c (elf_i386_finalize_plt): Use packed structs to access
496 possibly unaligned memory. Support use of big endian machines.
497
4982003-08-11 Ulrich Drepper <drepper@redhat.com>
499
500 * Moved to CVS archive.