blob: 190c673266de18dd69aa6ea5cf42f6cebba86eeb [file] [log] [blame]
Ulrich Drepper7c0e79f2006-12-09 21:10:19 +000012006-12-09 Ulrich Drepper <drepper@redhat.com>
2
3 * elflint.c (compare_hash_gnu_hash): New function. Report if the
4 two hash tables have different content (module expected omission
5 of undefined symbols).
6
Roland McGrath8190db62006-12-17 23:56:51 +000072006-10-31 Roland McGrath <roland@redhat.com>
8
9 * elflint.c (check_program_header): Don't complain about
10 p_filesz > p_memsz if p_memsz is zero and p_type is not PT_LOAD.
11
122006-09-19 Jakub Jelinek <jakub@redhat.com>
13
14 * strip.c (process_file): Disallow -f on archives.
15
162006-10-09 Roland McGrath <roland@redhat.com>
17
18 * Makefile.am (libld_elf_i386.so): Use $(LINK), not $(CC).
19
Roland McGrathc373d852006-10-10 00:25:21 +0000202006-08-29 Roland McGrath <roland@redhat.com>
21
22 * Makefile.am (MAINTAINERCLEANFILES): New variable.
23
24 * readelf.c (handle_relocs_rel): Typo fix, test DESTSHDR properly.
25 Reported by Christian Aichinger <Greek0@gmx.net>.
26
27 * elflint.c (valid_e_machine): Add EM_ALPHA.
28 Reported by Christian Aichinger <Greek0@gmx.net>.
29
Ulrich Drepper231c5902006-08-08 22:00:11 +0000302006-08-08 Ulrich Drepper <drepper@redhat.com>
31
32 * elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB.
33 Keep track of which "high DT" entries are present.
34 Check that either old or GNU-style hash table is present.
35 If GNU-style hash table is used a symbol table is mandatory.
36 Check that if any prelink entry is present all of them are.
37 (check_gnu_hash): Only fail for undefined symbols in GNU-style hash
38 table if they don't refer to functions.
39
Roland McGrath858b1892006-07-17 08:41:15 +0000402006-07-17 Roland McGrath <roland@redhat.com>
41
42 * elflint.c (struct version_namelist): Use GElf_Versym for `ndx' field.
43 (add_version): Likewise for argument.
44 (check_versym): Cast constant to GElf_Versym for comparison.
45
Roland McGrath4ec807e2006-07-13 03:59:46 +0000462006-07-12 Roland McGrath <roland@redhat.com>
47
48 * readelf.c (handle_gnu_hash): Add casts for machines where
49 Elf32_Word != unsigned int.
50
Ulrich Drepperdcf61602006-07-12 19:59:02 +0000512006-07-12 Ulrich Drepper <drepper@redhat.com>
52
53 * elflint.c (check_sysv_hash64): Fix printf format.
54
Ulrich Dreppercc415622006-07-12 19:42:23 +0000552006-07-11 Roland McGrath <roland@redhat.com>
Ulrich Drepper8ae58142006-07-12 05:22:32 +000056
Ulrich Dreppercc415622006-07-12 19:42:23 +000057 * addr2line.c (options): English fix in -f doc string.
58
59 * addr2line.c (use_comp_dir): New variable.
60 (options, parse_opt): Grok -A/--absolute to set it.
61 (handle_address): If set, prepend dwfl_line_comp_dir results to
62 relative file names.
Ulrich Drepper8ae58142006-07-12 05:22:32 +000063
Ulrich Drepper28ed8952006-07-07 03:43:47 +0000642006-07-06 Ulrich Drepper <drepper@redhat.com>
65
66 * elflint.c: Adjust for latest new hash table format.
67 * readelf.c: Likewise.
68
69 * elflint.c (check_versym): Ignore hidden bit when comparing version
70 numbers.
71
722006-07-05 Ulrich Drepper <drepper@redhat.com>
73
74 * ldgeneric.c (ld_generic_create_outfile): Correctly recognize
75 discarded COMDAT symbols.
76
77 * i386_ld.c (elf_i386_count_relocations): Lot of corrections.
78 (elf_i386_create_relocations): Likewise.
79 * ld.h (struct symbol): Add local and hidden bits.
80 * ld.c (create_special_section_symbol): These synthsized symbols
81 are local and hidden.
82 * ldgeneric.c (file_process2): Check whether input file matches
83 the emulation.
84 (fillin_special_symbol): Create symbols as local and/or hidden
85 if requested.
86 (ld_generic_create_outfile): Make local copy of symbol.
87 Don't hide global, defined symbols in dynamic symbol table unless
88 requested. Synthetic symbols have no version information.
89
90 * elflint.c: Add support for checking 64-bit SysV-style hash tables.
91 * readelf.c: Add support for printing 64-bit SysV-style hash tables.
92
932006-07-04 Ulrich Drepper <drepper@redhat.com>
94
95 * elflint.c (is_rel_dyn): Fix and extend DT_RELCOUNT/DT_RELACOUNT
96 testing.
97
982006-07-03 Ulrich Drepper <drepper@redhat.com>
99
100 * elflint.c: Add testing of DT_GNU_HASH.
101 * readelf.c: Implement showing histogram for DT_GNU_HASH section.
102
103 * Makefile.am: Add hacks to create dependency files for non-generic
104 linker.
105
Ulrich Drepper6ca46002006-06-12 22:40:23 +00001062006-06-12 Ulrich Drepper <drepper@redhat.com>
107
108 * ldgeneric.c (ld_generic_generate_sections): Don't create .interp
109 section if creating a DSO and no interpreter is given.
110 (ld_generic_create_outfile): Don't store reference to symbols in
111 discarded COMDAT groups. Don't create PHDR and INTERP program header
112 for DSO if no interpreter is specified.
Ulrich Drepper595d0e72006-06-12 23:25:17 +0000113 (create_verneed_data): Pretty printing.
114
Ulrich Drepper6ca46002006-06-12 22:40:23 +0000115 * ldscript.y (content): If a DSO is created don't set default
116 interpreter from linker script.
117
118 * i386_ld.c (elf_i386_count_relocations): Do not add relocations
119 for symbols in discarded COMDAT groups.
120 (elf_i386_create_relocations): Likewise.
121 * ld.h (struct scninfo): Add unused_comdat.
122 * ldgeneric.c (add_section): Also check group signature when
123 matching COMDAT sections.
124 (add_relocatable_file): Ignore symbols in COMDAT group which are
125 discarded.
126
127 * elflint.c (check_one_reloc): For *_NONE relocs only check type
128 and symbol reference.
129
Ulrich Drepper54f33a72006-06-11 09:07:37 +00001302006-06-11 Ulrich Drepper <drepper@redhat.com>
131
Ulrich Dreppercbb51e52006-06-11 20:25:23 +0000132 * elflint.c (check_dynamic): Fix checking value of tags which are
133 offsets in the string section. Make sure DT_STRTAB points to the
134 section referenced in sh_link.
135
136 * ld.c (options): Add headers. Add short option 'R' for '--rpath'.
137
Ulrich Drepper54f33a72006-06-11 09:07:37 +0000138 * ld.c: Recognize --eh-frame-hdr option.
139 * ld.h (struct ld_state): Add eh_frame_hdr field.
140 * ldgeneric.c (struct unw_eh_frame_hdr): Define.
141
142 * ldgeneric.c (add_section): Use ebl_sh_flags_combine instead of
143 SH_FLAGS_COMBINE.
144 (add_relocatable_file): Minor optimization of last change.
145 (match_section): Don't preserve SHF_GROUP flag any longer.
146
Ulrich Drepper2d880282006-06-11 00:20:43 +00001472006-06-10 Ulrich Drepper <drepper@redhat.com>
148
149 * ld.c (parse_z_option): Recognize execstack and noexecstack.
Ulrich Drepper4f0a7a82006-06-11 00:53:45 +0000150 Handle record and ignore as position dependent options.
151 (parse_z_option_2): Handle ignore and record here.
Ulrich Drepper2d880282006-06-11 00:20:43 +0000152 * ld.h (struct ld_state): Add execstack field.
153 * ldgeneric.c (add_relocatable_file): Recognize .note.GNU-stack
154 sections.
155 (ld_generic_create_outfile): Fix program header creation in native
156 linker. Add PT_GNU_STACK program header.
157
Ulrich Dreppera688a732006-06-10 06:33:00 +00001582006-06-09 Ulrich Drepper <drepper@redhat.com>
159
160 * i386_ld.c (elf_i386_finalize_plt): Don't change symbol table entries
161 for PLT entries if there is no local definition.
162
163 * ld.c (parse_option): Handle -z ignore like --as-needed and
164 -z record like --no-as-needed.
165 * ld.h (struct ld_state): Remove ignore_unused_dsos field.
166 * ldgeneric.c (new_generated_scn): Always compute ndt_needed by
167 looping over DSOs. When deciding about adding DT_NEEDED entries
168 use ->as_needed instead of ignore_unused_dsos.
169
Ulrich Drepper8c56fe32006-05-31 15:50:43 +00001702006-05-31 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper11b030e2006-05-28 20:28:19 +0000171
Ulrich Drepper8c56fe32006-05-31 15:50:43 +0000172 * ld.c: Recognize --as-needed and --no-as-needed options.
173 * ld.h (struct usedfile): Add as_needed field.
174 (struct ld_state): Likewise.
175 * ldgeneric.c (ld_handle_filename_list): Copy as_needed flag from
176 the list.
177 * ldscript.y (filename_id_list): Split to correctly parse all
178 combinations.
179 (mark_as_needed): Fix loop.
Ulrich Drepper11b030e2006-05-28 20:28:19 +0000180
Ulrich Drepper697f4db2006-06-10 06:50:47 +00001812006-05-28 Ulrich Drepper <drepper@redhat.com>
182
183 * addr2line.c (print_dwarf_function): Use unsigned type for lineno
184 and colno.
185
Ulrich Drepper2cb8e732006-05-27 21:57:27 +00001862006-05-27 Ulrich Drepper <drepper@redhat.com>
187
188 * readelf.c (handle_relocs_rela): Better notations for addon value.
Ulrich Drepper41a99082006-05-28 00:01:43 +0000189 (print_ehdr): Distinguish e_ident[EI_VERSION] from e_version.
Ulrich Drepper2cb8e732006-05-27 21:57:27 +0000190
Ulrich Drepper82c345d2006-04-04 22:07:54 +00001912006-04-04 Ulrich Drepper <drepper@redhat.com>
192
193 * addr2line.c: Update copyright year.
194 * elfcmp.c: Likewise.
195 * elflint.c: Likewise.
196 * findtextrel.c: Likewise.
197 * ld.c: Likewise.
198 * nm.c: Likewise.
199 * objdump.c: Likewise.
200 * ranlib.c: Likewise.
201 * readelf.c: Likewise.
202 * size.c: Likewise.
203 * strings.c: Likewise.
204 * strip.c: Likewise.
205
Roland McGrathdd7e22b2006-03-09 23:05:47 +00002062006-03-09 Roland McGrath <roland@redhat.com>
207
208 * Makefile.am (AM_LDFLAGS): New variable.
209
Roland McGrath060fa052006-03-02 07:51:50 +00002102006-03-01 Roland McGrath <roland@redhat.com>
211
212 * readelf.c (dwarf_tag_string, dwarf_attr_string): Update name tables
213 for dwarf.h changes matching 3.0 spec.
214 (dwarf_encoding_string, dwarf_lang_string, print_ops): Likewise.
215
Ulrich Drepper038129b2005-12-04 16:47:24 +00002162005-12-04 Ulrich Drepper <drepper@redhat.com>
217
218 * elflint.c (check_one_reloc): If relocation section is not loaded,
219 don't check whether the relocations modify read-only sections or
220 loaded and unloaded sections.
221
Ulrich Drepper607e0542005-12-04 15:51:06 +00002222005-11-28 Ulrich Drepper <drepper@redhat.com>
223
224 * elflint.c (check_one_reloc): Take additional parameters. Use
225 them to determine whether relocation is valid in this type of
226 file. DSOs and executables can contain relocation sections in
227 unloaded sections which just show the relocations the linker
228 applied. Adjust all callers.
229 (check_program_header): Check that PT_PHDR is loaded and that offset
230 matches the one in the ELF header.
231
Roland McGrath6724c902005-10-28 07:07:19 +00002322005-10-26 Roland McGrath <roland@redhat.com>
233
234 * nm.c (get_var_range): dwarf_getloclist -> dwarf_getlocation.
235
Ulrich Drepperd0449522005-09-03 07:23:52 +00002362005-09-03 Ulrich Drepper <drepper@redhat.com>
237
Ulrich Dreppere3f9b7d2005-09-03 16:42:46 +0000238 * strip.c (handle_elf): Unify some error messages.
239 * ld.c (main): Likewise.
240 * ldgeneric.c (open_elf): Likewise.
241 * elfcmp.c (main): Likewise.
242 * elflint.c (check_elf_header): Likewise.
243
244 * size.c (process_file): Fix typo in error message.
245
Ulrich Drepperd0449522005-09-03 07:23:52 +0000246 * readelf.c: Lots of little cleanups. Use _unlocked functions.
247
Ulrich Dreppera60501e2005-09-02 19:50:17 +00002482005-09-02 Ulrich Drepper <drepper@redhat.com>
249
Ulrich Dreppere3f9b7d2005-09-03 16:42:46 +0000250 * strings.c (main): Reset elfmap variable after munmap call.
Ulrich Drepper618795f2005-09-02 20:01:37 +0000251 [_MUDFLAP] (map_file): Simplify mudflap debugging by not using mmap.
Ulrich Dreppera60501e2005-09-02 19:50:17 +0000252
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00002532005-08-28 Ulrich Drepper <drepper@redhat.com>
254
255 * ranlib.c: Don't define pread_retry and write_retry here.
256
257 * Makefile.an [BUILD_STATIC] (libdw): Add -ldl.
258 (CLEANFILES): Add *.gcno *.gcda *.gconv.
259
260 * strings.c (process_chunk): Reorder expressions in conditional
261 (process_chunk_mb): Likewise.
262
263 * strings.c: New file.
264 * Makefile.am (bin_PROGRAMS): Add strings.
265 (strings_no_Wstring): Define.
266 (strings_LDADD): Define.
267
Roland McGrath71e15a02005-08-27 10:33:26 +00002682005-08-27 Roland McGrath <roland@redhat.com>
269
270 * addr2line.c (dwarf_diename_integrate): Function removed.
271 (print_dwarf_function): Use plain dwarf_diename.
272
Ulrich Drepperc5a06cd2005-08-24 19:50:14 +00002732005-08-24 Ulrich Drepper <drepper@redhat.com>
274
275 * elflint.c (check_versym): Versioned symbols should not have
276 local binding.
277
Ulrich Drepper5d832292005-08-15 21:36:27 +00002782005-08-15 Ulrich Drepper <drepper@redhat.com>
279
Ulrich Drepper61655e02005-08-16 04:23:02 +0000280 * elflint.c (check_versym): Allow VER_NDX_LOCAL symbols to be
281 undefined.
282
Ulrich Drepper5d832292005-08-15 21:36:27 +0000283 * Makefile.am: Add rules to build ranlib.
284 * ranlib.c: New file.
285
Roland McGrath18e13422005-08-15 08:01:25 +00002862005-08-14 Roland McGrath <roland@redhat.com>
287
288 * elflint.c (check_sections): Use ebl_section_type_name and allow any
289 sh_type it recognizes.
290
291 * elflint.c (check_sections): Print unknown flags in hex, don't
292 truncate high bits. Print section number and name for unknown type.
293
Roland McGrathf6895042005-08-13 20:56:52 +00002942005-08-13 Roland McGrath <roland@redhat.com>
295
296 * elflint.c (check_program_header): Use ebl_segment_type_name and
297 allow any p_type it recognizes. Include p_type value in error
298 message for unknown type.
299
Ulrich Drepperc5c33a62005-08-13 17:50:47 +00003002005-08-13 Ulrich Drepper <drepper@redhat.com>
301
302 * elflint.c (check_symtab): Simplify last change a bit. Pass ehdr
303 to ebl_check_special_symbol.
304 (check_sections): Pass ehdr to ebl_bss_plt_p.
305
Roland McGrath653d3762005-08-13 01:59:10 +00003062005-08-12 Roland McGrath <roland@redhat.com>
307
308 * elflint.c (check_symtab): Check that _GLOBAL_OFFSET_TABLE_ st_shndx
309 refers to the right section if it's not SHN_ABS.
310 Let ebl_check_special_symbol override _G_O_T_ value and size checks.
311
312 * elflint.c (check_sections): Don't complain about a non-NOBITS
313 section taking no segment space, if it's sh_size is 0.
314
315 * elflint.c (check_sections): Use ebl_bss_plt_p to see if .plt should
316 be PROGBITS or NOBITS.
317
318 * elflint.c (check_symtab): Use ebl_check_special_symbol to override
319 standard st_value and st_size checks.
320
Roland McGrath1c83bf12005-08-11 07:03:55 +00003212005-07-28 Roland McGrath <roland@redhat.com>
Ulrich Drepperfaf4d192005-08-11 05:12:05 +0000322
Roland McGrath1c83bf12005-08-11 07:03:55 +0000323 * addr2line.c (options, parse_opt): Don't handle -e here.
324 (executable): Variable removed.
325 (argp_children): New static variable.
326 (argp): Use it. Make const.
327 (main): Fill in argp_children from dwfl_standard_argp ().
328 Let libdwfl handle file selection, pass Dwfl handle to handle_address.
329 (print_dwarf_function): New function. Try to figure out inline chain.
330 (elf_getname): Function removed, libdwfl does it for us.
331 (handle_address): Take Dwfl handle instead of Elf, Dwarf handles.
332 Use dwfl_module_addrname instead of elf_getname.
333 Use dwfl_module_getsrc and dwfl_lineinfo instead of libdw calls.
334 * Makefile.am (INCLUDES): Add libdwfl directory to path.
335
3362005-08-10 Ulrich Drepper <drepper@redhat.com>
337
338 * strip.c (parse_opt): STATE parameter is now used.
339 Various little cleanups.
340
341 * readelf.c (print_debug_line_section): Correct fallout of renaming
342 of DW_LNS_set_epilog_begin.
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +0000343
Roland McGrath8f31c2c2005-08-09 04:58:05 +00003442005-08-08 Roland McGrath <roland@redhat.com>
345
346 * strip.c (options, parse_opt): Grok -R .comment for compatibility
347 with binutils strip. Likewise -d, -S, as aliases for -g.
348 Likewise ignore -s/--strip-all.
349
Roland McGrath095a01b2005-08-08 03:49:35 +00003502005-08-07 Roland McGrath <roland@redhat.com>
351
352 * strip.c (process_file): Open read-only when using a different output
353 file.
354
Ulrich Drepper47be7952005-08-07 04:41:39 +00003552005-08-06 Ulrich Drepper <drepper@redhat.com>
356
Ulrich Drepper637963b2005-08-07 05:33:07 +0000357 * elflint.c (in_nobits_scn): New function.
358 (check_versym): Allow references for defined symbols against versions
359 of other DSOs also for symbols in nobits sections.
360 Move a few variables around.
361
Ulrich Drepper47be7952005-08-07 04:41:39 +0000362 * Makefile.am (AM_CFLAGS): Avoid duplication.
363 Link with statis libs if BUILD_STATIC.
364
Ulrich Drepperdbace232005-08-06 01:37:23 +00003652005-08-05 Ulrich Drepper <drepper@redhat.com>
366
367 * elflint.c: Many, many more tests. Mostly related to symbol
368 versioning. Those sections should now be completely checked.
369
370 * readelf.c (print_dynamic): Use gelf_offscn.
371
Ulrich Drepperacb89832005-08-04 07:01:49 +00003722005-08-04 Ulrich Drepper <drepper@redhat.com>
373
374 * elflint.c: Add lots more tests: more extension symbol table sanity,
375 versioning section tests, hash table tests. General cleanup.
376
Ulrich Drepperc911c9e2005-08-02 16:07:42 +00003772005-08-02 Ulrich Drepper <drepper@redhat.com>
378
Ulrich Drepper8a687742005-08-03 02:24:12 +0000379 * objdump.c: New file.
380 * Makefile.am (bin_PROGRAMS): Add objdump.
381 (objdump_LDADD): Define.
382
Ulrich Drepperc911c9e2005-08-02 16:07:42 +0000383 * elflint.c (check_reloc_shdr): New function split out from check_rela
384 and check_rel.
385 (check_one_reloc): New function. Likewise.
386 (check_rela): Use check_reloc_shdr and check_one_reloc.
387 (check_rel): Likewise.
Ulrich Drepper41de4882005-08-03 00:02:56 +0000388 (check_program_header): Check that PT_DYNAMIC entry matches .dynamic
389 section.
390 Add checks that relocations against read-only segments are flagged,
391 that the text relocation flag is not set unnecessarily, and that
392 relocations in one section are either against loaded or not-loaded
393 segments.
Ulrich Drepperc911c9e2005-08-02 16:07:42 +0000394
Ulrich Drepper8533dcf2005-08-01 07:18:47 +00003952005-08-01 Ulrich Drepper <drepper@redhat.com>
396
397 * elfcmp.c (main): Ignore section count and section name string table
398 section index.
399
Roland McGrathf9ece8a2005-07-28 07:03:04 +00004002005-07-27 Roland McGrath <roland@redhat.com>
401
402 * elfcmp.c: Include <locale.h>.
403
Ulrich Drepper7d48d6a2005-07-27 10:13:23 +00004042005-07-27 Ulrich Drepper <drepper@redhat.com>
405
406 * elfcmp.c: Print name and index of differing section.
407
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00004082005-07-24 Ulrich Drepper <drepper@redhat.com>
409
410 * elfcmp.c: Implement comparing gaps between sections.
411
4122005-07-23 Ulrich Drepper <drepper@redhat.com>
413
414 * elflint.c: Include libeblP.h instead of libebl.h.
415 * nm.c: Likewise.
416 * readelf.c: Likewise.
417 * elfcmp.c: Likewise.
418
419 * elfcmp.c (main): Compare individual ELF header fields, excluding
420 e_shoff instead of the whole struct at once.
421 Use ebl_section_strip_p instead of SECTION_STRIP_P.
422 * strip.c: Use ebl_section_strip_p instead of SECTION_STRIP_P.
423
4242005-07-22 Ulrich Drepper <drepper@redhat.com>
425
426 * elfcmp.c (main): Take empty section into account when comparing
427 section content.
428
429 * elflint.c (check_dynamic): Check that d_tag value is >= 0 before
430 using it.
431
4322005-07-21 Ulrich Drepper <drepper@redhat.com>
433
434 * elfcmp.c: New file.
435 * Makefile.am (bin_PROGRAMS): Add elfcmp.
436 (elfcmp_LDADD): Define.
437
438 * elflint.c (check_rela): Check that copy relocations only reference
439 object symbols or symbols with unknown type.
440 (check_rel): Likewise.
441
4422005-06-08 Roland McGrath <roland@redhat.com>
443
444 * readelf.c (print_ops): Add consts.
445
4462005-05-31 Roland McGrath <roland@redhat.com>
447
448 * readelf.c (print_debug_abbrev_section): Don't bail after first CU's
449 abbreviations. Print a header line before each CU section.
450
451 * readelf.c (print_debug_loc_section): Fix indentation for larger
452 address size.
453
4542005-05-30 Roland McGrath <roland@redhat.com>
455
456 * readelf.c (print_debug_line_section): Print section offset of each
457 CU's table, so they are easy to find from seeing the stmt_list value.
458
459 * readelf.c (dwarf_attr_string): Add all attributes in <dwarf.h>.
460 (attr_callback): Grok DW_AT_ranges and print offset in hex.
461
462 * readelf.c (attr_callback): Add 2 to addrsize * 2 for %#0* format.
463 (print_debug_ranges_section, print_debug_loc_section): Likewise.
464
465 * readelf.c (print_ops): Take different args for indentation control.
466 (attr_callback): Caller updated.
467 Grok several more block-form attributes as being location expressions.
468 For those same attributes with udata forms, format output differently
469 for location list offset.
470 (print_debug_loc_section): Implement it for real.
471
472 * readelf.c (options): Mention ranges for --debug-dump.
473 (enum section_e): Add section_ranges.
474 (parse_opt): Grok "ranges" for -w/--debug-dump.
475 (print_debug_ranges_section): New function.
476 (print_debug): Handle .debug_ranges section.
477
4782005-05-30 Ulrich Drepper <drepper@redhat.com>
479
480 * readelf.c (handle_notes): At least x86-64 need not have the note
481 section values aligned to 8 bytes.
482
4832005-05-18 Ulrich Drepper <drepper@redhat.com>
484
485 * readelf.c (dwarf_tag_string): Add new tags.
486
4872005-05-08 Roland McGrath <roland@redhat.com>
488
489 * strip.c (handle_elf): Don't translate hash and versym data formats,
490 elf_getdata already did it for us.
491
4922005-05-07 Ulrich Drepper <drepper@redhat.com>
493
494 * Makefile.am (findtextrel_LDADD): Add $(libmudflap).
495 (addr2line_LDADD): Likewise.
496
4972005-05-03 Roland McGrath <roland@redhat.com>
498
499 * strip.c (handle_elf): Apply symbol table fixups to discarded
500 relocation sections when they are being saved in the debug file.
501
502 * strip.c (handle_elf): Pass EHDR->e_ident[EI_DATA] to gelf_xlatetom
503 and gelf_xlatetof, not the native byte order.
504
505 * strip.c (parse_opt): Give error if -f or -o is repeated.
506 (main): Exit if argp_parse returns nonzero.
507
508 * strip.c (debug_fname_embed): New variable.
509 (options, parse_opt): New option -F to set it.
510
5112005-05-07 Ulrich Drepper <drepper@redhat.com>
512
513 * readelf.c (parse_opt): Make any_control_option variable
514 local. Simplify some tests.
515
5162005-05-03 Roland McGrath <roland@redhat.com>
517
518 * strip.c (crc32_file): Function removed (now in ../lib).
519
5202005-05-03 Roland McGrath <roland@redhat.com>
521
522 * elflint.c (is_debuginfo): New variable.
523 (options, parse_opt): New option --debuginfo/-d to set it.
524 (check_sections): If is_debuginfo, don't complain about SHT_NOBITS.
525 (check_note): If is_debuginfo, don't try to get note contents.
526
5272005-04-24 Ulrich Drepper <drepper@redhat.com>
528
529 * readelf.c (print_debug_abbrev_section): Don't print error when end of
530 section reached.
531
5322005-04-14 Ulrich Drepper <drepper@redhat.com>
533
534 * readelf.c (dwarf_encoding_string): New function.
535 (dwarf_inline_string): New function.
536 (dwarf_access_string): New function.
537 (dwarf_visibility_string): New function.
538 (dwarf_virtuality_string): New function.
539 (dwarf_identifier_case_string): New function.
540 (dwarf_calling_convention_string): New function.
541 (dwarf_ordering_string): New function.
542 (dwarf_discr_list_string): New function.
543 (attr_callback): Decode man more attribute values.
544
5452005-04-01 Ulrich Drepper <drepper@redhat.com>
546
547 * addr2line.c: Finish implementation of -f option.
548
5492005-03-29 Ulrich Drepper <drepper@redhat.com>
550
551 * addr2line.c: New file.
552 * Makefile.am (bin_PROGRAMS): Add addr2line.
553 Define addr2line_LDADD.
554
555 * findtextrel.c: Use new dwarf_addrdie function.
556
557 * findtextrel.c: Fix usage message and re-add accidentally removed
558 line.
559
5602005-03-28 Ulrich Drepper <drepper@redhat.com>
561
562 * findtextrel.c: New file.
563 * Makefile: Add rules to build findtextrel.
564
5652005-02-15 Ulrich Drepper <drepper@redhat.com>
566
567 * ldlex.l: Provide ECHO definition to avoid warning.
568
569 * elflint.c (check_program_header): Fix typo in RELRO test.
570
571 * Makefile.am (AM_CFLAGS): Add more warning options.
572 * elflint.c: Fix warnings introduced by the new warning options.
573 * i386_ld.c: Likewise.
574 * ld.c: Likewise.
575 * ld.h: Likewise.
576 * ldgeneric.c: Likewise.
577 * nm.c: Likewise.
578 * readelf.c: Likewise.
579 * sectionhash.c: Likewise.
580 * size.c: Likewise.
581 * string.c: Likewise.
582
5832005-02-05 Ulrich Drepper <drepper@redhat.com>
584
585 * Makefile.am: Check for text relocations in constructed DSOs.
586
587 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap. Link all apps
588 with -lmudflap.
589
590 * ldscript.y: Add as_needed handling.
591 * ldlex.l: Recognize AS_NEEDED token.
592 * ld.h (struct filename_list): Add as_needed flag.
593
5942005-02-04 Ulrich Drepper <drepper@redhat.com>
595
596 * elflint.c (check_symtab): Correctly determine size of GOT section.
597
5982005-01-19 Ulrich Drepper <drepper@redhat.com>
599
600 * ld.c: Remove unnecessary more_help function. Print bug report
601 address using argp.
602 * strip.c: Likewise.
603 * size.c: Likewise.
604 * nm.c: Likewise.
605 * readelf.c: Likewise.
606 * elflint.c: Likewise.
607
608 * elflint.c (main): Don't check for parameter problems here.
609 (parse_opt): Do it here, where we get informed about some of them
610 anyway.
611
612 * readelf.c (main): Don't check for parameter problems here.
613 (parse_opt): Do it here, where we get informed about some of them
614 anyway.
615
6162005-01-11 Ulrich Drepper <drepper@redhat.com>
617
618 * strip.c: Update copyright year.
619 * readelf.c: Likewise.
620 * size.c: Likewise.
621 * nm.c: Likewise.
622 * ld.c: Likewise.
623 * elflint.c: Likewise.
624
625 * elflint.c (check_symtab): Don't warn about wrong size for
626 _DYNAMIC and __GLOBAL_OFFSET_TABLE__ for --gnu-ld.
627
6282004-10-05 Ulrich Drepper <drepper@redhat.com>
629
630 * readelf.c (print_phdr): In section mapping, also indicate
631 sections in read-only segments.
632
6332004-09-25 Ulrich Drepper <drepper@redhat.com>
634
635 * readelf.c: Make compile with gcc 4.0.
636 * strip.c: Likewise.
637
6382004-08-16 Ulrich Drepper <drepper@redhat.com>
639
640 * strip.c (handle_elf): Rewrite dynamic memory handling to use of
641 allocate to work around gcc 3.4 bug.
642
6432004-01-25 Ulrich Drepper <drepper@redhat.com>
644
645 * ldlex.l (invalid_char): Better error message.
646
6472004-01-23 Ulrich Drepper <drepper@redhat.com>
648
649 * readelf.c: Print SHT_GNU_LIBLIST sections.
650
651 * none_ld.c: New file.
652
6532004-01-21 Ulrich Drepper <drepper@redhat.com>
654
655 * Makefile.am: Enable building of machine specific linker.
656
6572004-01-20 Ulrich Drepper <drepper@redhat.com>
658
659 * Makefile.am: Support building with mudflap.
660
661 * i386_ld.c: Fix warnings gcc 3.4 spits out.
662 * ldgeneric.c: Likewise.
663 * ldscript.y: Likewise.
664 * readelf.c: Likewise.
665 * strip.c: Likewise.
666
667 * readelf.c (print_debug_line_section): Determine address size
668 correctly.
669
6702004-01-19 Ulrich Drepper <drepper@redhat.com>
671
672 * readelf.c (print_phdr): Show which sections are covered by the
673 PT_GNU_RELRO entry.
674
675 * elflint.c (check_program_header): Check PT_GNU_RELRO entry.
676
677 * readelf.c (print_debug_macinfo_section): Implement.
678
6792004-01-18 Ulrich Drepper <drepper@redhat.com>
680
681 * readelf.c (print_debug_line_section): Implement.
682
6832004-01-17 Ulrich Drepper <drepper@redhat.com>
684
685 * src/elflint.c: Use PACKAGE_NAME instead of PACKAGE.
686 * src/ld.c: Likewise.
687 * src/nm.c: Likewise.
688 * src/readelf.c: Likewise.
689 * src/size.c: Likewise.
690 * src/strip.c: Likewise.
691
692 * strip.c: Add a few more unlikely. Reduce scope of some variables.
693
694 * Makefile.am: Support building with mudflap.
695
6962004-01-16 Ulrich Drepper <drepper@redhat.com>
697
698 * readelf.c (print_debug_info_section): Free dies memory.
699
700 * readelf.c: Print .debug_info section content.
701
7022004-01-13 Ulrich Drepper <drepper@redhat.com>
703
704 * readelf.c (print_shdr): Add support for SHF_ORDERED and SHF_EXCLUDE.
705
7062004-01-12 Ulrich Drepper <drepper@redhat.com>
707
708 * readelf.c (print_debug_aranges): Implement using libdw.
709
7102004-01-11 Ulrich Drepper <drepper@redhat.com>
711
712 * nm.c: Adjust for Dwarf_Files type and dwarf_lineno interface change.
713
714 * readelf.c: Use libdw instead of libdwarf. Not all of the old
715 behavior is available yet.
716 * Makefile.am: Link readelf with libdw. Remove libdwarf include path.
717
7182004-01-09 Ulrich Drepper <drepper@redhat.com>
719
720 * nm.c (get_local_names): Adjust call to dwarf_nextcu.
721
722 * nm.c: Implement getting information about local variables.
723
7242004-01-07 Ulrich Drepper <drepper@redhat.com>
725
726 * nm.c: Read also debug information for local symbols.
727
7282004-01-05 Ulrich Drepper <drepper@redhat.com>
729
730 * nm.c: Shuffle dwarf handling code around so the maximum column
731 width can be computed ahead of printing. Avoid collection symbols
732 which are not printed anyway.
733
734 * nm.c: Rewrite dwarf handling to use libdw.
735 * Makefile.am (AM_CFLAGS): Add -std parameter.
736 (INCLUDES): Find header in libdw subdir.
737 (nm_LDADD): Replace libdwarf with libdw.
738
739 * elflint.c: Update copyright year.
740 * readelf.c: Likewise.
741 * size.c: Likewise.
742 * strip.c: Likewise.
743 * nm.c: Likewise.
744
7452003-12-31 Ulrich Drepper <drepper@redhat.com>
746
747 * strip.c (process_file): Close file before returning.
748
7492003-11-19 Ulrich Drepper <drepper@redhat.com>
750
751 * readelf.c (handle_dynamic): Make column for tag name wider.
752
7532003-09-29 Ulrich Drepper <drepper@redhat.com>
754
755 * readelf.c (handle_dynamic): Always terminate tag name with a space.
756
7572003-09-25 Ulrich Drepper <drepper@redhat.com>
758
759 * strip.c (process_file): Don't mmap the input file, we modify the
760 data structures and don't want the change end up on disk.
761
7622003-09-23 Jakub Jelinek <jakub@redhat.com>
763
764 * unaligned.h (union u_2ubyte_unaligned,
765 union u_4ubyte_unaligned, union u_8ubyte_unaligned): Add
766 packed attribute.
767 (add_2ubyte_unaligned, add_4ubyte_unaligned,
768 add_8ubyte_unaligned): Avoid nesting bswap_NN macros.
769 Read/store value through _ptr->u instead of *_ptr.
770
7712003-09-22 Ulrich Drepper <drepper@redhat.com>
772
773 * size.c (show_sysv): Change type of maxlen to int.
774
775 * strip.c (handle_elf): Handle the 64-bit archs which is 64-bit
776 buckets.
777
778 * i386_ld.c: Many many fixes and extensions.
779 * ld.c: Likewise.
780 * ldgeneric.c: Likewise.
781
7822003-08-16 Ulrich Drepper <drepper@redhat.com>
783
784 * ldgeneric.c (check_definition): Don't add symbol on dso_list if
785 the reference is from another DSO.
786
7872003-08-15 Ulrich Drepper <drepper@redhat.com>
788
789 * ldgeneric.c (find_entry_point): It is no fatal error if no entry
790 point is found when creating a DSO.
791
7922003-08-14 Ulrich Drepper <drepper@redhat.com>
793
794 * ld.c (main): Always call FLAG_UNRESOLVED.
795 * ldgeneric.c (ld_generic_flag_unresolved): Only complain about
796 undefined symbols if not creating DSO or ld_state.nodefs is not set.
797
7982003-08-13 Ulrich Drepper <drepper@redhat.com>
799
800 * Makefile.in: Depend on libebl.a, not libebl.so.
801
802 * ld.c (main): Mark stream for linker script as locked by caller.
803 (read_version_script): Likewise.
804 * ldlex.c: Define fread and fwrite to _unlocked variant.
805
806 * i386_ld.c (elf_i386_finalize_plt): Replace #ifdefs with uses of
807 target_bswap_32.
808 * unaligned.h: Define target_bswap_16, target_bswap_32, and
809 target_bswap_64.
810 (store_2ubyte_unaligned, store_4ubyte_unaligned,
811 store_8ubyte_unaligned): Define using new macros.
812
8132003-08-12 Ulrich Drepper <drepper@redhat.com>
814
815 * i386_ld.c (elf_i386_finalize_plt): Use packed structs to access
816 possibly unaligned memory. Support use of big endian machines.
817
8182003-08-11 Ulrich Drepper <drepper@redhat.com>
819
820 * Moved to CVS archive.