Roland McGrath | c373d85 | 2006-10-10 00:25:21 +0000 | [diff] [blame] | 1 | 2006-08-29 Roland McGrath <roland@redhat.com> |
| 2 | |
| 3 | * Makefile.am (MAINTAINERCLEANFILES): New variable. |
| 4 | |
| 5 | * readelf.c (handle_relocs_rel): Typo fix, test DESTSHDR properly. |
| 6 | Reported by Christian Aichinger <Greek0@gmx.net>. |
| 7 | |
| 8 | * elflint.c (valid_e_machine): Add EM_ALPHA. |
| 9 | Reported by Christian Aichinger <Greek0@gmx.net>. |
| 10 | |
Ulrich Drepper | 231c590 | 2006-08-08 22:00:11 +0000 | [diff] [blame] | 11 | 2006-08-08 Ulrich Drepper <drepper@redhat.com> |
| 12 | |
| 13 | * elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB. |
| 14 | Keep track of which "high DT" entries are present. |
| 15 | Check that either old or GNU-style hash table is present. |
| 16 | If GNU-style hash table is used a symbol table is mandatory. |
| 17 | Check that if any prelink entry is present all of them are. |
| 18 | (check_gnu_hash): Only fail for undefined symbols in GNU-style hash |
| 19 | table if they don't refer to functions. |
| 20 | |
Roland McGrath | 858b189 | 2006-07-17 08:41:15 +0000 | [diff] [blame] | 21 | 2006-07-17 Roland McGrath <roland@redhat.com> |
| 22 | |
| 23 | * elflint.c (struct version_namelist): Use GElf_Versym for `ndx' field. |
| 24 | (add_version): Likewise for argument. |
| 25 | (check_versym): Cast constant to GElf_Versym for comparison. |
| 26 | |
Roland McGrath | 4ec807e | 2006-07-13 03:59:46 +0000 | [diff] [blame] | 27 | 2006-07-12 Roland McGrath <roland@redhat.com> |
| 28 | |
| 29 | * readelf.c (handle_gnu_hash): Add casts for machines where |
| 30 | Elf32_Word != unsigned int. |
| 31 | |
Ulrich Drepper | dcf6160 | 2006-07-12 19:59:02 +0000 | [diff] [blame] | 32 | 2006-07-12 Ulrich Drepper <drepper@redhat.com> |
| 33 | |
| 34 | * elflint.c (check_sysv_hash64): Fix printf format. |
| 35 | |
Ulrich Drepper | cc41562 | 2006-07-12 19:42:23 +0000 | [diff] [blame] | 36 | 2006-07-11 Roland McGrath <roland@redhat.com> |
Ulrich Drepper | 8ae5814 | 2006-07-12 05:22:32 +0000 | [diff] [blame] | 37 | |
Ulrich Drepper | cc41562 | 2006-07-12 19:42:23 +0000 | [diff] [blame] | 38 | * addr2line.c (options): English fix in -f doc string. |
| 39 | |
| 40 | * addr2line.c (use_comp_dir): New variable. |
| 41 | (options, parse_opt): Grok -A/--absolute to set it. |
| 42 | (handle_address): If set, prepend dwfl_line_comp_dir results to |
| 43 | relative file names. |
Ulrich Drepper | 8ae5814 | 2006-07-12 05:22:32 +0000 | [diff] [blame] | 44 | |
Ulrich Drepper | 28ed895 | 2006-07-07 03:43:47 +0000 | [diff] [blame] | 45 | 2006-07-06 Ulrich Drepper <drepper@redhat.com> |
| 46 | |
| 47 | * elflint.c: Adjust for latest new hash table format. |
| 48 | * readelf.c: Likewise. |
| 49 | |
| 50 | * elflint.c (check_versym): Ignore hidden bit when comparing version |
| 51 | numbers. |
| 52 | |
| 53 | 2006-07-05 Ulrich Drepper <drepper@redhat.com> |
| 54 | |
| 55 | * ldgeneric.c (ld_generic_create_outfile): Correctly recognize |
| 56 | discarded COMDAT symbols. |
| 57 | |
| 58 | * i386_ld.c (elf_i386_count_relocations): Lot of corrections. |
| 59 | (elf_i386_create_relocations): Likewise. |
| 60 | * ld.h (struct symbol): Add local and hidden bits. |
| 61 | * ld.c (create_special_section_symbol): These synthsized symbols |
| 62 | are local and hidden. |
| 63 | * ldgeneric.c (file_process2): Check whether input file matches |
| 64 | the emulation. |
| 65 | (fillin_special_symbol): Create symbols as local and/or hidden |
| 66 | if requested. |
| 67 | (ld_generic_create_outfile): Make local copy of symbol. |
| 68 | Don't hide global, defined symbols in dynamic symbol table unless |
| 69 | requested. Synthetic symbols have no version information. |
| 70 | |
| 71 | * elflint.c: Add support for checking 64-bit SysV-style hash tables. |
| 72 | * readelf.c: Add support for printing 64-bit SysV-style hash tables. |
| 73 | |
| 74 | 2006-07-04 Ulrich Drepper <drepper@redhat.com> |
| 75 | |
| 76 | * elflint.c (is_rel_dyn): Fix and extend DT_RELCOUNT/DT_RELACOUNT |
| 77 | testing. |
| 78 | |
| 79 | 2006-07-03 Ulrich Drepper <drepper@redhat.com> |
| 80 | |
| 81 | * elflint.c: Add testing of DT_GNU_HASH. |
| 82 | * readelf.c: Implement showing histogram for DT_GNU_HASH section. |
| 83 | |
| 84 | * Makefile.am: Add hacks to create dependency files for non-generic |
| 85 | linker. |
| 86 | |
Ulrich Drepper | 6ca4600 | 2006-06-12 22:40:23 +0000 | [diff] [blame] | 87 | 2006-06-12 Ulrich Drepper <drepper@redhat.com> |
| 88 | |
| 89 | * ldgeneric.c (ld_generic_generate_sections): Don't create .interp |
| 90 | section if creating a DSO and no interpreter is given. |
| 91 | (ld_generic_create_outfile): Don't store reference to symbols in |
| 92 | discarded COMDAT groups. Don't create PHDR and INTERP program header |
| 93 | for DSO if no interpreter is specified. |
Ulrich Drepper | 595d0e7 | 2006-06-12 23:25:17 +0000 | [diff] [blame] | 94 | (create_verneed_data): Pretty printing. |
| 95 | |
Ulrich Drepper | 6ca4600 | 2006-06-12 22:40:23 +0000 | [diff] [blame] | 96 | * ldscript.y (content): If a DSO is created don't set default |
| 97 | interpreter from linker script. |
| 98 | |
| 99 | * i386_ld.c (elf_i386_count_relocations): Do not add relocations |
| 100 | for symbols in discarded COMDAT groups. |
| 101 | (elf_i386_create_relocations): Likewise. |
| 102 | * ld.h (struct scninfo): Add unused_comdat. |
| 103 | * ldgeneric.c (add_section): Also check group signature when |
| 104 | matching COMDAT sections. |
| 105 | (add_relocatable_file): Ignore symbols in COMDAT group which are |
| 106 | discarded. |
| 107 | |
| 108 | * elflint.c (check_one_reloc): For *_NONE relocs only check type |
| 109 | and symbol reference. |
| 110 | |
Ulrich Drepper | 54f33a7 | 2006-06-11 09:07:37 +0000 | [diff] [blame] | 111 | 2006-06-11 Ulrich Drepper <drepper@redhat.com> |
| 112 | |
Ulrich Drepper | cbb51e5 | 2006-06-11 20:25:23 +0000 | [diff] [blame] | 113 | * elflint.c (check_dynamic): Fix checking value of tags which are |
| 114 | offsets in the string section. Make sure DT_STRTAB points to the |
| 115 | section referenced in sh_link. |
| 116 | |
| 117 | * ld.c (options): Add headers. Add short option 'R' for '--rpath'. |
| 118 | |
Ulrich Drepper | 54f33a7 | 2006-06-11 09:07:37 +0000 | [diff] [blame] | 119 | * ld.c: Recognize --eh-frame-hdr option. |
| 120 | * ld.h (struct ld_state): Add eh_frame_hdr field. |
| 121 | * ldgeneric.c (struct unw_eh_frame_hdr): Define. |
| 122 | |
| 123 | * ldgeneric.c (add_section): Use ebl_sh_flags_combine instead of |
| 124 | SH_FLAGS_COMBINE. |
| 125 | (add_relocatable_file): Minor optimization of last change. |
| 126 | (match_section): Don't preserve SHF_GROUP flag any longer. |
| 127 | |
Ulrich Drepper | 2d88028 | 2006-06-11 00:20:43 +0000 | [diff] [blame] | 128 | 2006-06-10 Ulrich Drepper <drepper@redhat.com> |
| 129 | |
| 130 | * ld.c (parse_z_option): Recognize execstack and noexecstack. |
Ulrich Drepper | 4f0a7a8 | 2006-06-11 00:53:45 +0000 | [diff] [blame] | 131 | Handle record and ignore as position dependent options. |
| 132 | (parse_z_option_2): Handle ignore and record here. |
Ulrich Drepper | 2d88028 | 2006-06-11 00:20:43 +0000 | [diff] [blame] | 133 | * ld.h (struct ld_state): Add execstack field. |
| 134 | * ldgeneric.c (add_relocatable_file): Recognize .note.GNU-stack |
| 135 | sections. |
| 136 | (ld_generic_create_outfile): Fix program header creation in native |
| 137 | linker. Add PT_GNU_STACK program header. |
| 138 | |
Ulrich Drepper | a688a73 | 2006-06-10 06:33:00 +0000 | [diff] [blame] | 139 | 2006-06-09 Ulrich Drepper <drepper@redhat.com> |
| 140 | |
| 141 | * i386_ld.c (elf_i386_finalize_plt): Don't change symbol table entries |
| 142 | for PLT entries if there is no local definition. |
| 143 | |
| 144 | * ld.c (parse_option): Handle -z ignore like --as-needed and |
| 145 | -z record like --no-as-needed. |
| 146 | * ld.h (struct ld_state): Remove ignore_unused_dsos field. |
| 147 | * ldgeneric.c (new_generated_scn): Always compute ndt_needed by |
| 148 | looping over DSOs. When deciding about adding DT_NEEDED entries |
| 149 | use ->as_needed instead of ignore_unused_dsos. |
| 150 | |
Ulrich Drepper | 8c56fe3 | 2006-05-31 15:50:43 +0000 | [diff] [blame] | 151 | 2006-05-31 Ulrich Drepper <drepper@redhat.com> |
Ulrich Drepper | 11b030e | 2006-05-28 20:28:19 +0000 | [diff] [blame] | 152 | |
Ulrich Drepper | 8c56fe3 | 2006-05-31 15:50:43 +0000 | [diff] [blame] | 153 | * ld.c: Recognize --as-needed and --no-as-needed options. |
| 154 | * ld.h (struct usedfile): Add as_needed field. |
| 155 | (struct ld_state): Likewise. |
| 156 | * ldgeneric.c (ld_handle_filename_list): Copy as_needed flag from |
| 157 | the list. |
| 158 | * ldscript.y (filename_id_list): Split to correctly parse all |
| 159 | combinations. |
| 160 | (mark_as_needed): Fix loop. |
Ulrich Drepper | 11b030e | 2006-05-28 20:28:19 +0000 | [diff] [blame] | 161 | |
Ulrich Drepper | 697f4db | 2006-06-10 06:50:47 +0000 | [diff] [blame] | 162 | 2006-05-28 Ulrich Drepper <drepper@redhat.com> |
| 163 | |
| 164 | * addr2line.c (print_dwarf_function): Use unsigned type for lineno |
| 165 | and colno. |
| 166 | |
Ulrich Drepper | 2cb8e73 | 2006-05-27 21:57:27 +0000 | [diff] [blame] | 167 | 2006-05-27 Ulrich Drepper <drepper@redhat.com> |
| 168 | |
| 169 | * readelf.c (handle_relocs_rela): Better notations for addon value. |
Ulrich Drepper | 41a9908 | 2006-05-28 00:01:43 +0000 | [diff] [blame] | 170 | (print_ehdr): Distinguish e_ident[EI_VERSION] from e_version. |
Ulrich Drepper | 2cb8e73 | 2006-05-27 21:57:27 +0000 | [diff] [blame] | 171 | |
Ulrich Drepper | 82c345d | 2006-04-04 22:07:54 +0000 | [diff] [blame] | 172 | 2006-04-04 Ulrich Drepper <drepper@redhat.com> |
| 173 | |
| 174 | * addr2line.c: Update copyright year. |
| 175 | * elfcmp.c: Likewise. |
| 176 | * elflint.c: Likewise. |
| 177 | * findtextrel.c: Likewise. |
| 178 | * ld.c: Likewise. |
| 179 | * nm.c: Likewise. |
| 180 | * objdump.c: Likewise. |
| 181 | * ranlib.c: Likewise. |
| 182 | * readelf.c: Likewise. |
| 183 | * size.c: Likewise. |
| 184 | * strings.c: Likewise. |
| 185 | * strip.c: Likewise. |
| 186 | |
Roland McGrath | dd7e22b | 2006-03-09 23:05:47 +0000 | [diff] [blame] | 187 | 2006-03-09 Roland McGrath <roland@redhat.com> |
| 188 | |
| 189 | * Makefile.am (AM_LDFLAGS): New variable. |
| 190 | |
Roland McGrath | 060fa05 | 2006-03-02 07:51:50 +0000 | [diff] [blame] | 191 | 2006-03-01 Roland McGrath <roland@redhat.com> |
| 192 | |
| 193 | * readelf.c (dwarf_tag_string, dwarf_attr_string): Update name tables |
| 194 | for dwarf.h changes matching 3.0 spec. |
| 195 | (dwarf_encoding_string, dwarf_lang_string, print_ops): Likewise. |
| 196 | |
Ulrich Drepper | 038129b | 2005-12-04 16:47:24 +0000 | [diff] [blame] | 197 | 2005-12-04 Ulrich Drepper <drepper@redhat.com> |
| 198 | |
| 199 | * elflint.c (check_one_reloc): If relocation section is not loaded, |
| 200 | don't check whether the relocations modify read-only sections or |
| 201 | loaded and unloaded sections. |
| 202 | |
Ulrich Drepper | 607e054 | 2005-12-04 15:51:06 +0000 | [diff] [blame] | 203 | 2005-11-28 Ulrich Drepper <drepper@redhat.com> |
| 204 | |
| 205 | * elflint.c (check_one_reloc): Take additional parameters. Use |
| 206 | them to determine whether relocation is valid in this type of |
| 207 | file. DSOs and executables can contain relocation sections in |
| 208 | unloaded sections which just show the relocations the linker |
| 209 | applied. Adjust all callers. |
| 210 | (check_program_header): Check that PT_PHDR is loaded and that offset |
| 211 | matches the one in the ELF header. |
| 212 | |
Roland McGrath | 6724c90 | 2005-10-28 07:07:19 +0000 | [diff] [blame] | 213 | 2005-10-26 Roland McGrath <roland@redhat.com> |
| 214 | |
| 215 | * nm.c (get_var_range): dwarf_getloclist -> dwarf_getlocation. |
| 216 | |
Ulrich Drepper | d044952 | 2005-09-03 07:23:52 +0000 | [diff] [blame] | 217 | 2005-09-03 Ulrich Drepper <drepper@redhat.com> |
| 218 | |
Ulrich Drepper | e3f9b7d | 2005-09-03 16:42:46 +0000 | [diff] [blame] | 219 | * strip.c (handle_elf): Unify some error messages. |
| 220 | * ld.c (main): Likewise. |
| 221 | * ldgeneric.c (open_elf): Likewise. |
| 222 | * elfcmp.c (main): Likewise. |
| 223 | * elflint.c (check_elf_header): Likewise. |
| 224 | |
| 225 | * size.c (process_file): Fix typo in error message. |
| 226 | |
Ulrich Drepper | d044952 | 2005-09-03 07:23:52 +0000 | [diff] [blame] | 227 | * readelf.c: Lots of little cleanups. Use _unlocked functions. |
| 228 | |
Ulrich Drepper | a60501e | 2005-09-02 19:50:17 +0000 | [diff] [blame] | 229 | 2005-09-02 Ulrich Drepper <drepper@redhat.com> |
| 230 | |
Ulrich Drepper | e3f9b7d | 2005-09-03 16:42:46 +0000 | [diff] [blame] | 231 | * strings.c (main): Reset elfmap variable after munmap call. |
Ulrich Drepper | 618795f | 2005-09-02 20:01:37 +0000 | [diff] [blame] | 232 | [_MUDFLAP] (map_file): Simplify mudflap debugging by not using mmap. |
Ulrich Drepper | a60501e | 2005-09-02 19:50:17 +0000 | [diff] [blame] | 233 | |
Ulrich Drepper | fbe998a | 2005-08-29 16:27:10 +0000 | [diff] [blame] | 234 | 2005-08-28 Ulrich Drepper <drepper@redhat.com> |
| 235 | |
| 236 | * ranlib.c: Don't define pread_retry and write_retry here. |
| 237 | |
| 238 | * Makefile.an [BUILD_STATIC] (libdw): Add -ldl. |
| 239 | (CLEANFILES): Add *.gcno *.gcda *.gconv. |
| 240 | |
| 241 | * strings.c (process_chunk): Reorder expressions in conditional |
| 242 | (process_chunk_mb): Likewise. |
| 243 | |
| 244 | * strings.c: New file. |
| 245 | * Makefile.am (bin_PROGRAMS): Add strings. |
| 246 | (strings_no_Wstring): Define. |
| 247 | (strings_LDADD): Define. |
| 248 | |
Roland McGrath | 71e15a0 | 2005-08-27 10:33:26 +0000 | [diff] [blame] | 249 | 2005-08-27 Roland McGrath <roland@redhat.com> |
| 250 | |
| 251 | * addr2line.c (dwarf_diename_integrate): Function removed. |
| 252 | (print_dwarf_function): Use plain dwarf_diename. |
| 253 | |
Ulrich Drepper | c5a06cd | 2005-08-24 19:50:14 +0000 | [diff] [blame] | 254 | 2005-08-24 Ulrich Drepper <drepper@redhat.com> |
| 255 | |
| 256 | * elflint.c (check_versym): Versioned symbols should not have |
| 257 | local binding. |
| 258 | |
Ulrich Drepper | 5d83229 | 2005-08-15 21:36:27 +0000 | [diff] [blame] | 259 | 2005-08-15 Ulrich Drepper <drepper@redhat.com> |
| 260 | |
Ulrich Drepper | 61655e0 | 2005-08-16 04:23:02 +0000 | [diff] [blame] | 261 | * elflint.c (check_versym): Allow VER_NDX_LOCAL symbols to be |
| 262 | undefined. |
| 263 | |
Ulrich Drepper | 5d83229 | 2005-08-15 21:36:27 +0000 | [diff] [blame] | 264 | * Makefile.am: Add rules to build ranlib. |
| 265 | * ranlib.c: New file. |
| 266 | |
Roland McGrath | 18e1342 | 2005-08-15 08:01:25 +0000 | [diff] [blame] | 267 | 2005-08-14 Roland McGrath <roland@redhat.com> |
| 268 | |
| 269 | * elflint.c (check_sections): Use ebl_section_type_name and allow any |
| 270 | sh_type it recognizes. |
| 271 | |
| 272 | * elflint.c (check_sections): Print unknown flags in hex, don't |
| 273 | truncate high bits. Print section number and name for unknown type. |
| 274 | |
Roland McGrath | f689504 | 2005-08-13 20:56:52 +0000 | [diff] [blame] | 275 | 2005-08-13 Roland McGrath <roland@redhat.com> |
| 276 | |
| 277 | * elflint.c (check_program_header): Use ebl_segment_type_name and |
| 278 | allow any p_type it recognizes. Include p_type value in error |
| 279 | message for unknown type. |
| 280 | |
Ulrich Drepper | c5c33a6 | 2005-08-13 17:50:47 +0000 | [diff] [blame] | 281 | 2005-08-13 Ulrich Drepper <drepper@redhat.com> |
| 282 | |
| 283 | * elflint.c (check_symtab): Simplify last change a bit. Pass ehdr |
| 284 | to ebl_check_special_symbol. |
| 285 | (check_sections): Pass ehdr to ebl_bss_plt_p. |
| 286 | |
Roland McGrath | 653d376 | 2005-08-13 01:59:10 +0000 | [diff] [blame] | 287 | 2005-08-12 Roland McGrath <roland@redhat.com> |
| 288 | |
| 289 | * elflint.c (check_symtab): Check that _GLOBAL_OFFSET_TABLE_ st_shndx |
| 290 | refers to the right section if it's not SHN_ABS. |
| 291 | Let ebl_check_special_symbol override _G_O_T_ value and size checks. |
| 292 | |
| 293 | * elflint.c (check_sections): Don't complain about a non-NOBITS |
| 294 | section taking no segment space, if it's sh_size is 0. |
| 295 | |
| 296 | * elflint.c (check_sections): Use ebl_bss_plt_p to see if .plt should |
| 297 | be PROGBITS or NOBITS. |
| 298 | |
| 299 | * elflint.c (check_symtab): Use ebl_check_special_symbol to override |
| 300 | standard st_value and st_size checks. |
| 301 | |
Roland McGrath | 1c83bf1 | 2005-08-11 07:03:55 +0000 | [diff] [blame] | 302 | 2005-07-28 Roland McGrath <roland@redhat.com> |
Ulrich Drepper | faf4d19 | 2005-08-11 05:12:05 +0000 | [diff] [blame] | 303 | |
Roland McGrath | 1c83bf1 | 2005-08-11 07:03:55 +0000 | [diff] [blame] | 304 | * addr2line.c (options, parse_opt): Don't handle -e here. |
| 305 | (executable): Variable removed. |
| 306 | (argp_children): New static variable. |
| 307 | (argp): Use it. Make const. |
| 308 | (main): Fill in argp_children from dwfl_standard_argp (). |
| 309 | Let libdwfl handle file selection, pass Dwfl handle to handle_address. |
| 310 | (print_dwarf_function): New function. Try to figure out inline chain. |
| 311 | (elf_getname): Function removed, libdwfl does it for us. |
| 312 | (handle_address): Take Dwfl handle instead of Elf, Dwarf handles. |
| 313 | Use dwfl_module_addrname instead of elf_getname. |
| 314 | Use dwfl_module_getsrc and dwfl_lineinfo instead of libdw calls. |
| 315 | * Makefile.am (INCLUDES): Add libdwfl directory to path. |
| 316 | |
| 317 | 2005-08-10 Ulrich Drepper <drepper@redhat.com> |
| 318 | |
| 319 | * strip.c (parse_opt): STATE parameter is now used. |
| 320 | Various little cleanups. |
| 321 | |
| 322 | * readelf.c (print_debug_line_section): Correct fallout of renaming |
| 323 | of DW_LNS_set_epilog_begin. |
Ulrich Drepper | 6d5c3bd | 2005-08-11 04:37:52 +0000 | [diff] [blame] | 324 | |
Roland McGrath | 8f31c2c | 2005-08-09 04:58:05 +0000 | [diff] [blame] | 325 | 2005-08-08 Roland McGrath <roland@redhat.com> |
| 326 | |
| 327 | * strip.c (options, parse_opt): Grok -R .comment for compatibility |
| 328 | with binutils strip. Likewise -d, -S, as aliases for -g. |
| 329 | Likewise ignore -s/--strip-all. |
| 330 | |
Roland McGrath | 095a01b | 2005-08-08 03:49:35 +0000 | [diff] [blame] | 331 | 2005-08-07 Roland McGrath <roland@redhat.com> |
| 332 | |
| 333 | * strip.c (process_file): Open read-only when using a different output |
| 334 | file. |
| 335 | |
Ulrich Drepper | 47be795 | 2005-08-07 04:41:39 +0000 | [diff] [blame] | 336 | 2005-08-06 Ulrich Drepper <drepper@redhat.com> |
| 337 | |
Ulrich Drepper | 637963b | 2005-08-07 05:33:07 +0000 | [diff] [blame] | 338 | * elflint.c (in_nobits_scn): New function. |
| 339 | (check_versym): Allow references for defined symbols against versions |
| 340 | of other DSOs also for symbols in nobits sections. |
| 341 | Move a few variables around. |
| 342 | |
Ulrich Drepper | 47be795 | 2005-08-07 04:41:39 +0000 | [diff] [blame] | 343 | * Makefile.am (AM_CFLAGS): Avoid duplication. |
| 344 | Link with statis libs if BUILD_STATIC. |
| 345 | |
Ulrich Drepper | dbace23 | 2005-08-06 01:37:23 +0000 | [diff] [blame] | 346 | 2005-08-05 Ulrich Drepper <drepper@redhat.com> |
| 347 | |
| 348 | * elflint.c: Many, many more tests. Mostly related to symbol |
| 349 | versioning. Those sections should now be completely checked. |
| 350 | |
| 351 | * readelf.c (print_dynamic): Use gelf_offscn. |
| 352 | |
Ulrich Drepper | acb8983 | 2005-08-04 07:01:49 +0000 | [diff] [blame] | 353 | 2005-08-04 Ulrich Drepper <drepper@redhat.com> |
| 354 | |
| 355 | * elflint.c: Add lots more tests: more extension symbol table sanity, |
| 356 | versioning section tests, hash table tests. General cleanup. |
| 357 | |
Ulrich Drepper | c911c9e | 2005-08-02 16:07:42 +0000 | [diff] [blame] | 358 | 2005-08-02 Ulrich Drepper <drepper@redhat.com> |
| 359 | |
Ulrich Drepper | 8a68774 | 2005-08-03 02:24:12 +0000 | [diff] [blame] | 360 | * objdump.c: New file. |
| 361 | * Makefile.am (bin_PROGRAMS): Add objdump. |
| 362 | (objdump_LDADD): Define. |
| 363 | |
Ulrich Drepper | c911c9e | 2005-08-02 16:07:42 +0000 | [diff] [blame] | 364 | * elflint.c (check_reloc_shdr): New function split out from check_rela |
| 365 | and check_rel. |
| 366 | (check_one_reloc): New function. Likewise. |
| 367 | (check_rela): Use check_reloc_shdr and check_one_reloc. |
| 368 | (check_rel): Likewise. |
Ulrich Drepper | 41de488 | 2005-08-03 00:02:56 +0000 | [diff] [blame] | 369 | (check_program_header): Check that PT_DYNAMIC entry matches .dynamic |
| 370 | section. |
| 371 | Add checks that relocations against read-only segments are flagged, |
| 372 | that the text relocation flag is not set unnecessarily, and that |
| 373 | relocations in one section are either against loaded or not-loaded |
| 374 | segments. |
Ulrich Drepper | c911c9e | 2005-08-02 16:07:42 +0000 | [diff] [blame] | 375 | |
Ulrich Drepper | 8533dcf | 2005-08-01 07:18:47 +0000 | [diff] [blame] | 376 | 2005-08-01 Ulrich Drepper <drepper@redhat.com> |
| 377 | |
| 378 | * elfcmp.c (main): Ignore section count and section name string table |
| 379 | section index. |
| 380 | |
Roland McGrath | f9ece8a | 2005-07-28 07:03:04 +0000 | [diff] [blame] | 381 | 2005-07-27 Roland McGrath <roland@redhat.com> |
| 382 | |
| 383 | * elfcmp.c: Include <locale.h>. |
| 384 | |
Ulrich Drepper | 7d48d6a | 2005-07-27 10:13:23 +0000 | [diff] [blame] | 385 | 2005-07-27 Ulrich Drepper <drepper@redhat.com> |
| 386 | |
| 387 | * elfcmp.c: Print name and index of differing section. |
| 388 | |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 389 | 2005-07-24 Ulrich Drepper <drepper@redhat.com> |
| 390 | |
| 391 | * elfcmp.c: Implement comparing gaps between sections. |
| 392 | |
| 393 | 2005-07-23 Ulrich Drepper <drepper@redhat.com> |
| 394 | |
| 395 | * elflint.c: Include libeblP.h instead of libebl.h. |
| 396 | * nm.c: Likewise. |
| 397 | * readelf.c: Likewise. |
| 398 | * elfcmp.c: Likewise. |
| 399 | |
| 400 | * elfcmp.c (main): Compare individual ELF header fields, excluding |
| 401 | e_shoff instead of the whole struct at once. |
| 402 | Use ebl_section_strip_p instead of SECTION_STRIP_P. |
| 403 | * strip.c: Use ebl_section_strip_p instead of SECTION_STRIP_P. |
| 404 | |
| 405 | 2005-07-22 Ulrich Drepper <drepper@redhat.com> |
| 406 | |
| 407 | * elfcmp.c (main): Take empty section into account when comparing |
| 408 | section content. |
| 409 | |
| 410 | * elflint.c (check_dynamic): Check that d_tag value is >= 0 before |
| 411 | using it. |
| 412 | |
| 413 | 2005-07-21 Ulrich Drepper <drepper@redhat.com> |
| 414 | |
| 415 | * elfcmp.c: New file. |
| 416 | * Makefile.am (bin_PROGRAMS): Add elfcmp. |
| 417 | (elfcmp_LDADD): Define. |
| 418 | |
| 419 | * elflint.c (check_rela): Check that copy relocations only reference |
| 420 | object symbols or symbols with unknown type. |
| 421 | (check_rel): Likewise. |
| 422 | |
| 423 | 2005-06-08 Roland McGrath <roland@redhat.com> |
| 424 | |
| 425 | * readelf.c (print_ops): Add consts. |
| 426 | |
| 427 | 2005-05-31 Roland McGrath <roland@redhat.com> |
| 428 | |
| 429 | * readelf.c (print_debug_abbrev_section): Don't bail after first CU's |
| 430 | abbreviations. Print a header line before each CU section. |
| 431 | |
| 432 | * readelf.c (print_debug_loc_section): Fix indentation for larger |
| 433 | address size. |
| 434 | |
| 435 | 2005-05-30 Roland McGrath <roland@redhat.com> |
| 436 | |
| 437 | * readelf.c (print_debug_line_section): Print section offset of each |
| 438 | CU's table, so they are easy to find from seeing the stmt_list value. |
| 439 | |
| 440 | * readelf.c (dwarf_attr_string): Add all attributes in <dwarf.h>. |
| 441 | (attr_callback): Grok DW_AT_ranges and print offset in hex. |
| 442 | |
| 443 | * readelf.c (attr_callback): Add 2 to addrsize * 2 for %#0* format. |
| 444 | (print_debug_ranges_section, print_debug_loc_section): Likewise. |
| 445 | |
| 446 | * readelf.c (print_ops): Take different args for indentation control. |
| 447 | (attr_callback): Caller updated. |
| 448 | Grok several more block-form attributes as being location expressions. |
| 449 | For those same attributes with udata forms, format output differently |
| 450 | for location list offset. |
| 451 | (print_debug_loc_section): Implement it for real. |
| 452 | |
| 453 | * readelf.c (options): Mention ranges for --debug-dump. |
| 454 | (enum section_e): Add section_ranges. |
| 455 | (parse_opt): Grok "ranges" for -w/--debug-dump. |
| 456 | (print_debug_ranges_section): New function. |
| 457 | (print_debug): Handle .debug_ranges section. |
| 458 | |
| 459 | 2005-05-30 Ulrich Drepper <drepper@redhat.com> |
| 460 | |
| 461 | * readelf.c (handle_notes): At least x86-64 need not have the note |
| 462 | section values aligned to 8 bytes. |
| 463 | |
| 464 | 2005-05-18 Ulrich Drepper <drepper@redhat.com> |
| 465 | |
| 466 | * readelf.c (dwarf_tag_string): Add new tags. |
| 467 | |
| 468 | 2005-05-08 Roland McGrath <roland@redhat.com> |
| 469 | |
| 470 | * strip.c (handle_elf): Don't translate hash and versym data formats, |
| 471 | elf_getdata already did it for us. |
| 472 | |
| 473 | 2005-05-07 Ulrich Drepper <drepper@redhat.com> |
| 474 | |
| 475 | * Makefile.am (findtextrel_LDADD): Add $(libmudflap). |
| 476 | (addr2line_LDADD): Likewise. |
| 477 | |
| 478 | 2005-05-03 Roland McGrath <roland@redhat.com> |
| 479 | |
| 480 | * strip.c (handle_elf): Apply symbol table fixups to discarded |
| 481 | relocation sections when they are being saved in the debug file. |
| 482 | |
| 483 | * strip.c (handle_elf): Pass EHDR->e_ident[EI_DATA] to gelf_xlatetom |
| 484 | and gelf_xlatetof, not the native byte order. |
| 485 | |
| 486 | * strip.c (parse_opt): Give error if -f or -o is repeated. |
| 487 | (main): Exit if argp_parse returns nonzero. |
| 488 | |
| 489 | * strip.c (debug_fname_embed): New variable. |
| 490 | (options, parse_opt): New option -F to set it. |
| 491 | |
| 492 | 2005-05-07 Ulrich Drepper <drepper@redhat.com> |
| 493 | |
| 494 | * readelf.c (parse_opt): Make any_control_option variable |
| 495 | local. Simplify some tests. |
| 496 | |
| 497 | 2005-05-03 Roland McGrath <roland@redhat.com> |
| 498 | |
| 499 | * strip.c (crc32_file): Function removed (now in ../lib). |
| 500 | |
| 501 | 2005-05-03 Roland McGrath <roland@redhat.com> |
| 502 | |
| 503 | * elflint.c (is_debuginfo): New variable. |
| 504 | (options, parse_opt): New option --debuginfo/-d to set it. |
| 505 | (check_sections): If is_debuginfo, don't complain about SHT_NOBITS. |
| 506 | (check_note): If is_debuginfo, don't try to get note contents. |
| 507 | |
| 508 | 2005-04-24 Ulrich Drepper <drepper@redhat.com> |
| 509 | |
| 510 | * readelf.c (print_debug_abbrev_section): Don't print error when end of |
| 511 | section reached. |
| 512 | |
| 513 | 2005-04-14 Ulrich Drepper <drepper@redhat.com> |
| 514 | |
| 515 | * readelf.c (dwarf_encoding_string): New function. |
| 516 | (dwarf_inline_string): New function. |
| 517 | (dwarf_access_string): New function. |
| 518 | (dwarf_visibility_string): New function. |
| 519 | (dwarf_virtuality_string): New function. |
| 520 | (dwarf_identifier_case_string): New function. |
| 521 | (dwarf_calling_convention_string): New function. |
| 522 | (dwarf_ordering_string): New function. |
| 523 | (dwarf_discr_list_string): New function. |
| 524 | (attr_callback): Decode man more attribute values. |
| 525 | |
| 526 | 2005-04-01 Ulrich Drepper <drepper@redhat.com> |
| 527 | |
| 528 | * addr2line.c: Finish implementation of -f option. |
| 529 | |
| 530 | 2005-03-29 Ulrich Drepper <drepper@redhat.com> |
| 531 | |
| 532 | * addr2line.c: New file. |
| 533 | * Makefile.am (bin_PROGRAMS): Add addr2line. |
| 534 | Define addr2line_LDADD. |
| 535 | |
| 536 | * findtextrel.c: Use new dwarf_addrdie function. |
| 537 | |
| 538 | * findtextrel.c: Fix usage message and re-add accidentally removed |
| 539 | line. |
| 540 | |
| 541 | 2005-03-28 Ulrich Drepper <drepper@redhat.com> |
| 542 | |
| 543 | * findtextrel.c: New file. |
| 544 | * Makefile: Add rules to build findtextrel. |
| 545 | |
| 546 | 2005-02-15 Ulrich Drepper <drepper@redhat.com> |
| 547 | |
| 548 | * ldlex.l: Provide ECHO definition to avoid warning. |
| 549 | |
| 550 | * elflint.c (check_program_header): Fix typo in RELRO test. |
| 551 | |
| 552 | * Makefile.am (AM_CFLAGS): Add more warning options. |
| 553 | * elflint.c: Fix warnings introduced by the new warning options. |
| 554 | * i386_ld.c: Likewise. |
| 555 | * ld.c: Likewise. |
| 556 | * ld.h: Likewise. |
| 557 | * ldgeneric.c: Likewise. |
| 558 | * nm.c: Likewise. |
| 559 | * readelf.c: Likewise. |
| 560 | * sectionhash.c: Likewise. |
| 561 | * size.c: Likewise. |
| 562 | * string.c: Likewise. |
| 563 | |
| 564 | 2005-02-05 Ulrich Drepper <drepper@redhat.com> |
| 565 | |
| 566 | * Makefile.am: Check for text relocations in constructed DSOs. |
| 567 | |
| 568 | * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap. Link all apps |
| 569 | with -lmudflap. |
| 570 | |
| 571 | * ldscript.y: Add as_needed handling. |
| 572 | * ldlex.l: Recognize AS_NEEDED token. |
| 573 | * ld.h (struct filename_list): Add as_needed flag. |
| 574 | |
| 575 | 2005-02-04 Ulrich Drepper <drepper@redhat.com> |
| 576 | |
| 577 | * elflint.c (check_symtab): Correctly determine size of GOT section. |
| 578 | |
| 579 | 2005-01-19 Ulrich Drepper <drepper@redhat.com> |
| 580 | |
| 581 | * ld.c: Remove unnecessary more_help function. Print bug report |
| 582 | address using argp. |
| 583 | * strip.c: Likewise. |
| 584 | * size.c: Likewise. |
| 585 | * nm.c: Likewise. |
| 586 | * readelf.c: Likewise. |
| 587 | * elflint.c: Likewise. |
| 588 | |
| 589 | * elflint.c (main): Don't check for parameter problems here. |
| 590 | (parse_opt): Do it here, where we get informed about some of them |
| 591 | anyway. |
| 592 | |
| 593 | * readelf.c (main): Don't check for parameter problems here. |
| 594 | (parse_opt): Do it here, where we get informed about some of them |
| 595 | anyway. |
| 596 | |
| 597 | 2005-01-11 Ulrich Drepper <drepper@redhat.com> |
| 598 | |
| 599 | * strip.c: Update copyright year. |
| 600 | * readelf.c: Likewise. |
| 601 | * size.c: Likewise. |
| 602 | * nm.c: Likewise. |
| 603 | * ld.c: Likewise. |
| 604 | * elflint.c: Likewise. |
| 605 | |
| 606 | * elflint.c (check_symtab): Don't warn about wrong size for |
| 607 | _DYNAMIC and __GLOBAL_OFFSET_TABLE__ for --gnu-ld. |
| 608 | |
| 609 | 2004-10-05 Ulrich Drepper <drepper@redhat.com> |
| 610 | |
| 611 | * readelf.c (print_phdr): In section mapping, also indicate |
| 612 | sections in read-only segments. |
| 613 | |
| 614 | 2004-09-25 Ulrich Drepper <drepper@redhat.com> |
| 615 | |
| 616 | * readelf.c: Make compile with gcc 4.0. |
| 617 | * strip.c: Likewise. |
| 618 | |
| 619 | 2004-08-16 Ulrich Drepper <drepper@redhat.com> |
| 620 | |
| 621 | * strip.c (handle_elf): Rewrite dynamic memory handling to use of |
| 622 | allocate to work around gcc 3.4 bug. |
| 623 | |
| 624 | 2004-01-25 Ulrich Drepper <drepper@redhat.com> |
| 625 | |
| 626 | * ldlex.l (invalid_char): Better error message. |
| 627 | |
| 628 | 2004-01-23 Ulrich Drepper <drepper@redhat.com> |
| 629 | |
| 630 | * readelf.c: Print SHT_GNU_LIBLIST sections. |
| 631 | |
| 632 | * none_ld.c: New file. |
| 633 | |
| 634 | 2004-01-21 Ulrich Drepper <drepper@redhat.com> |
| 635 | |
| 636 | * Makefile.am: Enable building of machine specific linker. |
| 637 | |
| 638 | 2004-01-20 Ulrich Drepper <drepper@redhat.com> |
| 639 | |
| 640 | * Makefile.am: Support building with mudflap. |
| 641 | |
| 642 | * i386_ld.c: Fix warnings gcc 3.4 spits out. |
| 643 | * ldgeneric.c: Likewise. |
| 644 | * ldscript.y: Likewise. |
| 645 | * readelf.c: Likewise. |
| 646 | * strip.c: Likewise. |
| 647 | |
| 648 | * readelf.c (print_debug_line_section): Determine address size |
| 649 | correctly. |
| 650 | |
| 651 | 2004-01-19 Ulrich Drepper <drepper@redhat.com> |
| 652 | |
| 653 | * readelf.c (print_phdr): Show which sections are covered by the |
| 654 | PT_GNU_RELRO entry. |
| 655 | |
| 656 | * elflint.c (check_program_header): Check PT_GNU_RELRO entry. |
| 657 | |
| 658 | * readelf.c (print_debug_macinfo_section): Implement. |
| 659 | |
| 660 | 2004-01-18 Ulrich Drepper <drepper@redhat.com> |
| 661 | |
| 662 | * readelf.c (print_debug_line_section): Implement. |
| 663 | |
| 664 | 2004-01-17 Ulrich Drepper <drepper@redhat.com> |
| 665 | |
| 666 | * src/elflint.c: Use PACKAGE_NAME instead of PACKAGE. |
| 667 | * src/ld.c: Likewise. |
| 668 | * src/nm.c: Likewise. |
| 669 | * src/readelf.c: Likewise. |
| 670 | * src/size.c: Likewise. |
| 671 | * src/strip.c: Likewise. |
| 672 | |
| 673 | * strip.c: Add a few more unlikely. Reduce scope of some variables. |
| 674 | |
| 675 | * Makefile.am: Support building with mudflap. |
| 676 | |
| 677 | 2004-01-16 Ulrich Drepper <drepper@redhat.com> |
| 678 | |
| 679 | * readelf.c (print_debug_info_section): Free dies memory. |
| 680 | |
| 681 | * readelf.c: Print .debug_info section content. |
| 682 | |
| 683 | 2004-01-13 Ulrich Drepper <drepper@redhat.com> |
| 684 | |
| 685 | * readelf.c (print_shdr): Add support for SHF_ORDERED and SHF_EXCLUDE. |
| 686 | |
| 687 | 2004-01-12 Ulrich Drepper <drepper@redhat.com> |
| 688 | |
| 689 | * readelf.c (print_debug_aranges): Implement using libdw. |
| 690 | |
| 691 | 2004-01-11 Ulrich Drepper <drepper@redhat.com> |
| 692 | |
| 693 | * nm.c: Adjust for Dwarf_Files type and dwarf_lineno interface change. |
| 694 | |
| 695 | * readelf.c: Use libdw instead of libdwarf. Not all of the old |
| 696 | behavior is available yet. |
| 697 | * Makefile.am: Link readelf with libdw. Remove libdwarf include path. |
| 698 | |
| 699 | 2004-01-09 Ulrich Drepper <drepper@redhat.com> |
| 700 | |
| 701 | * nm.c (get_local_names): Adjust call to dwarf_nextcu. |
| 702 | |
| 703 | * nm.c: Implement getting information about local variables. |
| 704 | |
| 705 | 2004-01-07 Ulrich Drepper <drepper@redhat.com> |
| 706 | |
| 707 | * nm.c: Read also debug information for local symbols. |
| 708 | |
| 709 | 2004-01-05 Ulrich Drepper <drepper@redhat.com> |
| 710 | |
| 711 | * nm.c: Shuffle dwarf handling code around so the maximum column |
| 712 | width can be computed ahead of printing. Avoid collection symbols |
| 713 | which are not printed anyway. |
| 714 | |
| 715 | * nm.c: Rewrite dwarf handling to use libdw. |
| 716 | * Makefile.am (AM_CFLAGS): Add -std parameter. |
| 717 | (INCLUDES): Find header in libdw subdir. |
| 718 | (nm_LDADD): Replace libdwarf with libdw. |
| 719 | |
| 720 | * elflint.c: Update copyright year. |
| 721 | * readelf.c: Likewise. |
| 722 | * size.c: Likewise. |
| 723 | * strip.c: Likewise. |
| 724 | * nm.c: Likewise. |
| 725 | |
| 726 | 2003-12-31 Ulrich Drepper <drepper@redhat.com> |
| 727 | |
| 728 | * strip.c (process_file): Close file before returning. |
| 729 | |
| 730 | 2003-11-19 Ulrich Drepper <drepper@redhat.com> |
| 731 | |
| 732 | * readelf.c (handle_dynamic): Make column for tag name wider. |
| 733 | |
| 734 | 2003-09-29 Ulrich Drepper <drepper@redhat.com> |
| 735 | |
| 736 | * readelf.c (handle_dynamic): Always terminate tag name with a space. |
| 737 | |
| 738 | 2003-09-25 Ulrich Drepper <drepper@redhat.com> |
| 739 | |
| 740 | * strip.c (process_file): Don't mmap the input file, we modify the |
| 741 | data structures and don't want the change end up on disk. |
| 742 | |
| 743 | 2003-09-23 Jakub Jelinek <jakub@redhat.com> |
| 744 | |
| 745 | * unaligned.h (union u_2ubyte_unaligned, |
| 746 | union u_4ubyte_unaligned, union u_8ubyte_unaligned): Add |
| 747 | packed attribute. |
| 748 | (add_2ubyte_unaligned, add_4ubyte_unaligned, |
| 749 | add_8ubyte_unaligned): Avoid nesting bswap_NN macros. |
| 750 | Read/store value through _ptr->u instead of *_ptr. |
| 751 | |
| 752 | 2003-09-22 Ulrich Drepper <drepper@redhat.com> |
| 753 | |
| 754 | * size.c (show_sysv): Change type of maxlen to int. |
| 755 | |
| 756 | * strip.c (handle_elf): Handle the 64-bit archs which is 64-bit |
| 757 | buckets. |
| 758 | |
| 759 | * i386_ld.c: Many many fixes and extensions. |
| 760 | * ld.c: Likewise. |
| 761 | * ldgeneric.c: Likewise. |
| 762 | |
| 763 | 2003-08-16 Ulrich Drepper <drepper@redhat.com> |
| 764 | |
| 765 | * ldgeneric.c (check_definition): Don't add symbol on dso_list if |
| 766 | the reference is from another DSO. |
| 767 | |
| 768 | 2003-08-15 Ulrich Drepper <drepper@redhat.com> |
| 769 | |
| 770 | * ldgeneric.c (find_entry_point): It is no fatal error if no entry |
| 771 | point is found when creating a DSO. |
| 772 | |
| 773 | 2003-08-14 Ulrich Drepper <drepper@redhat.com> |
| 774 | |
| 775 | * ld.c (main): Always call FLAG_UNRESOLVED. |
| 776 | * ldgeneric.c (ld_generic_flag_unresolved): Only complain about |
| 777 | undefined symbols if not creating DSO or ld_state.nodefs is not set. |
| 778 | |
| 779 | 2003-08-13 Ulrich Drepper <drepper@redhat.com> |
| 780 | |
| 781 | * Makefile.in: Depend on libebl.a, not libebl.so. |
| 782 | |
| 783 | * ld.c (main): Mark stream for linker script as locked by caller. |
| 784 | (read_version_script): Likewise. |
| 785 | * ldlex.c: Define fread and fwrite to _unlocked variant. |
| 786 | |
| 787 | * i386_ld.c (elf_i386_finalize_plt): Replace #ifdefs with uses of |
| 788 | target_bswap_32. |
| 789 | * unaligned.h: Define target_bswap_16, target_bswap_32, and |
| 790 | target_bswap_64. |
| 791 | (store_2ubyte_unaligned, store_4ubyte_unaligned, |
| 792 | store_8ubyte_unaligned): Define using new macros. |
| 793 | |
| 794 | 2003-08-12 Ulrich Drepper <drepper@redhat.com> |
| 795 | |
| 796 | * i386_ld.c (elf_i386_finalize_plt): Use packed structs to access |
| 797 | possibly unaligned memory. Support use of big endian machines. |
| 798 | |
| 799 | 2003-08-11 Ulrich Drepper <drepper@redhat.com> |
| 800 | |
| 801 | * Moved to CVS archive. |