Ulrich Drepper | 7c0e79f | 2006-12-09 21:10:19 +0000 | [diff] [blame] | 1 | 2006-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 McGrath | 8190db6 | 2006-12-17 23:56:51 +0000 | [diff] [blame^] | 7 | 2006-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 | |
| 12 | 2006-09-19 Jakub Jelinek <jakub@redhat.com> |
| 13 | |
| 14 | * strip.c (process_file): Disallow -f on archives. |
| 15 | |
| 16 | 2006-10-09 Roland McGrath <roland@redhat.com> |
| 17 | |
| 18 | * Makefile.am (libld_elf_i386.so): Use $(LINK), not $(CC). |
| 19 | |
Roland McGrath | c373d85 | 2006-10-10 00:25:21 +0000 | [diff] [blame] | 20 | 2006-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 Drepper | 231c590 | 2006-08-08 22:00:11 +0000 | [diff] [blame] | 30 | 2006-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 McGrath | 858b189 | 2006-07-17 08:41:15 +0000 | [diff] [blame] | 40 | 2006-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 McGrath | 4ec807e | 2006-07-13 03:59:46 +0000 | [diff] [blame] | 46 | 2006-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 Drepper | dcf6160 | 2006-07-12 19:59:02 +0000 | [diff] [blame] | 51 | 2006-07-12 Ulrich Drepper <drepper@redhat.com> |
| 52 | |
| 53 | * elflint.c (check_sysv_hash64): Fix printf format. |
| 54 | |
Ulrich Drepper | cc41562 | 2006-07-12 19:42:23 +0000 | [diff] [blame] | 55 | 2006-07-11 Roland McGrath <roland@redhat.com> |
Ulrich Drepper | 8ae5814 | 2006-07-12 05:22:32 +0000 | [diff] [blame] | 56 | |
Ulrich Drepper | cc41562 | 2006-07-12 19:42:23 +0000 | [diff] [blame] | 57 | * 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 Drepper | 8ae5814 | 2006-07-12 05:22:32 +0000 | [diff] [blame] | 63 | |
Ulrich Drepper | 28ed895 | 2006-07-07 03:43:47 +0000 | [diff] [blame] | 64 | 2006-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 | |
| 72 | 2006-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 | |
| 93 | 2006-07-04 Ulrich Drepper <drepper@redhat.com> |
| 94 | |
| 95 | * elflint.c (is_rel_dyn): Fix and extend DT_RELCOUNT/DT_RELACOUNT |
| 96 | testing. |
| 97 | |
| 98 | 2006-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 Drepper | 6ca4600 | 2006-06-12 22:40:23 +0000 | [diff] [blame] | 106 | 2006-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 Drepper | 595d0e7 | 2006-06-12 23:25:17 +0000 | [diff] [blame] | 113 | (create_verneed_data): Pretty printing. |
| 114 | |
Ulrich Drepper | 6ca4600 | 2006-06-12 22:40:23 +0000 | [diff] [blame] | 115 | * 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 Drepper | 54f33a7 | 2006-06-11 09:07:37 +0000 | [diff] [blame] | 130 | 2006-06-11 Ulrich Drepper <drepper@redhat.com> |
| 131 | |
Ulrich Drepper | cbb51e5 | 2006-06-11 20:25:23 +0000 | [diff] [blame] | 132 | * 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 Drepper | 54f33a7 | 2006-06-11 09:07:37 +0000 | [diff] [blame] | 138 | * 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 Drepper | 2d88028 | 2006-06-11 00:20:43 +0000 | [diff] [blame] | 147 | 2006-06-10 Ulrich Drepper <drepper@redhat.com> |
| 148 | |
| 149 | * ld.c (parse_z_option): Recognize execstack and noexecstack. |
Ulrich Drepper | 4f0a7a8 | 2006-06-11 00:53:45 +0000 | [diff] [blame] | 150 | Handle record and ignore as position dependent options. |
| 151 | (parse_z_option_2): Handle ignore and record here. |
Ulrich Drepper | 2d88028 | 2006-06-11 00:20:43 +0000 | [diff] [blame] | 152 | * 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 Drepper | a688a73 | 2006-06-10 06:33:00 +0000 | [diff] [blame] | 158 | 2006-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 Drepper | 8c56fe3 | 2006-05-31 15:50:43 +0000 | [diff] [blame] | 170 | 2006-05-31 Ulrich Drepper <drepper@redhat.com> |
Ulrich Drepper | 11b030e | 2006-05-28 20:28:19 +0000 | [diff] [blame] | 171 | |
Ulrich Drepper | 8c56fe3 | 2006-05-31 15:50:43 +0000 | [diff] [blame] | 172 | * 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 Drepper | 11b030e | 2006-05-28 20:28:19 +0000 | [diff] [blame] | 180 | |
Ulrich Drepper | 697f4db | 2006-06-10 06:50:47 +0000 | [diff] [blame] | 181 | 2006-05-28 Ulrich Drepper <drepper@redhat.com> |
| 182 | |
| 183 | * addr2line.c (print_dwarf_function): Use unsigned type for lineno |
| 184 | and colno. |
| 185 | |
Ulrich Drepper | 2cb8e73 | 2006-05-27 21:57:27 +0000 | [diff] [blame] | 186 | 2006-05-27 Ulrich Drepper <drepper@redhat.com> |
| 187 | |
| 188 | * readelf.c (handle_relocs_rela): Better notations for addon value. |
Ulrich Drepper | 41a9908 | 2006-05-28 00:01:43 +0000 | [diff] [blame] | 189 | (print_ehdr): Distinguish e_ident[EI_VERSION] from e_version. |
Ulrich Drepper | 2cb8e73 | 2006-05-27 21:57:27 +0000 | [diff] [blame] | 190 | |
Ulrich Drepper | 82c345d | 2006-04-04 22:07:54 +0000 | [diff] [blame] | 191 | 2006-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 McGrath | dd7e22b | 2006-03-09 23:05:47 +0000 | [diff] [blame] | 206 | 2006-03-09 Roland McGrath <roland@redhat.com> |
| 207 | |
| 208 | * Makefile.am (AM_LDFLAGS): New variable. |
| 209 | |
Roland McGrath | 060fa05 | 2006-03-02 07:51:50 +0000 | [diff] [blame] | 210 | 2006-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 Drepper | 038129b | 2005-12-04 16:47:24 +0000 | [diff] [blame] | 216 | 2005-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 Drepper | 607e054 | 2005-12-04 15:51:06 +0000 | [diff] [blame] | 222 | 2005-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 McGrath | 6724c90 | 2005-10-28 07:07:19 +0000 | [diff] [blame] | 232 | 2005-10-26 Roland McGrath <roland@redhat.com> |
| 233 | |
| 234 | * nm.c (get_var_range): dwarf_getloclist -> dwarf_getlocation. |
| 235 | |
Ulrich Drepper | d044952 | 2005-09-03 07:23:52 +0000 | [diff] [blame] | 236 | 2005-09-03 Ulrich Drepper <drepper@redhat.com> |
| 237 | |
Ulrich Drepper | e3f9b7d | 2005-09-03 16:42:46 +0000 | [diff] [blame] | 238 | * 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 Drepper | d044952 | 2005-09-03 07:23:52 +0000 | [diff] [blame] | 246 | * readelf.c: Lots of little cleanups. Use _unlocked functions. |
| 247 | |
Ulrich Drepper | a60501e | 2005-09-02 19:50:17 +0000 | [diff] [blame] | 248 | 2005-09-02 Ulrich Drepper <drepper@redhat.com> |
| 249 | |
Ulrich Drepper | e3f9b7d | 2005-09-03 16:42:46 +0000 | [diff] [blame] | 250 | * strings.c (main): Reset elfmap variable after munmap call. |
Ulrich Drepper | 618795f | 2005-09-02 20:01:37 +0000 | [diff] [blame] | 251 | [_MUDFLAP] (map_file): Simplify mudflap debugging by not using mmap. |
Ulrich Drepper | a60501e | 2005-09-02 19:50:17 +0000 | [diff] [blame] | 252 | |
Ulrich Drepper | fbe998a | 2005-08-29 16:27:10 +0000 | [diff] [blame] | 253 | 2005-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 McGrath | 71e15a0 | 2005-08-27 10:33:26 +0000 | [diff] [blame] | 268 | 2005-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 Drepper | c5a06cd | 2005-08-24 19:50:14 +0000 | [diff] [blame] | 273 | 2005-08-24 Ulrich Drepper <drepper@redhat.com> |
| 274 | |
| 275 | * elflint.c (check_versym): Versioned symbols should not have |
| 276 | local binding. |
| 277 | |
Ulrich Drepper | 5d83229 | 2005-08-15 21:36:27 +0000 | [diff] [blame] | 278 | 2005-08-15 Ulrich Drepper <drepper@redhat.com> |
| 279 | |
Ulrich Drepper | 61655e0 | 2005-08-16 04:23:02 +0000 | [diff] [blame] | 280 | * elflint.c (check_versym): Allow VER_NDX_LOCAL symbols to be |
| 281 | undefined. |
| 282 | |
Ulrich Drepper | 5d83229 | 2005-08-15 21:36:27 +0000 | [diff] [blame] | 283 | * Makefile.am: Add rules to build ranlib. |
| 284 | * ranlib.c: New file. |
| 285 | |
Roland McGrath | 18e1342 | 2005-08-15 08:01:25 +0000 | [diff] [blame] | 286 | 2005-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 McGrath | f689504 | 2005-08-13 20:56:52 +0000 | [diff] [blame] | 294 | 2005-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 Drepper | c5c33a6 | 2005-08-13 17:50:47 +0000 | [diff] [blame] | 300 | 2005-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 McGrath | 653d376 | 2005-08-13 01:59:10 +0000 | [diff] [blame] | 306 | 2005-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 McGrath | 1c83bf1 | 2005-08-11 07:03:55 +0000 | [diff] [blame] | 321 | 2005-07-28 Roland McGrath <roland@redhat.com> |
Ulrich Drepper | faf4d19 | 2005-08-11 05:12:05 +0000 | [diff] [blame] | 322 | |
Roland McGrath | 1c83bf1 | 2005-08-11 07:03:55 +0000 | [diff] [blame] | 323 | * 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 | |
| 336 | 2005-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 Drepper | 6d5c3bd | 2005-08-11 04:37:52 +0000 | [diff] [blame] | 343 | |
Roland McGrath | 8f31c2c | 2005-08-09 04:58:05 +0000 | [diff] [blame] | 344 | 2005-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 McGrath | 095a01b | 2005-08-08 03:49:35 +0000 | [diff] [blame] | 350 | 2005-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 Drepper | 47be795 | 2005-08-07 04:41:39 +0000 | [diff] [blame] | 355 | 2005-08-06 Ulrich Drepper <drepper@redhat.com> |
| 356 | |
Ulrich Drepper | 637963b | 2005-08-07 05:33:07 +0000 | [diff] [blame] | 357 | * 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 Drepper | 47be795 | 2005-08-07 04:41:39 +0000 | [diff] [blame] | 362 | * Makefile.am (AM_CFLAGS): Avoid duplication. |
| 363 | Link with statis libs if BUILD_STATIC. |
| 364 | |
Ulrich Drepper | dbace23 | 2005-08-06 01:37:23 +0000 | [diff] [blame] | 365 | 2005-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 Drepper | acb8983 | 2005-08-04 07:01:49 +0000 | [diff] [blame] | 372 | 2005-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 Drepper | c911c9e | 2005-08-02 16:07:42 +0000 | [diff] [blame] | 377 | 2005-08-02 Ulrich Drepper <drepper@redhat.com> |
| 378 | |
Ulrich Drepper | 8a68774 | 2005-08-03 02:24:12 +0000 | [diff] [blame] | 379 | * objdump.c: New file. |
| 380 | * Makefile.am (bin_PROGRAMS): Add objdump. |
| 381 | (objdump_LDADD): Define. |
| 382 | |
Ulrich Drepper | c911c9e | 2005-08-02 16:07:42 +0000 | [diff] [blame] | 383 | * 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 Drepper | 41de488 | 2005-08-03 00:02:56 +0000 | [diff] [blame] | 388 | (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 Drepper | c911c9e | 2005-08-02 16:07:42 +0000 | [diff] [blame] | 394 | |
Ulrich Drepper | 8533dcf | 2005-08-01 07:18:47 +0000 | [diff] [blame] | 395 | 2005-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 McGrath | f9ece8a | 2005-07-28 07:03:04 +0000 | [diff] [blame] | 400 | 2005-07-27 Roland McGrath <roland@redhat.com> |
| 401 | |
| 402 | * elfcmp.c: Include <locale.h>. |
| 403 | |
Ulrich Drepper | 7d48d6a | 2005-07-27 10:13:23 +0000 | [diff] [blame] | 404 | 2005-07-27 Ulrich Drepper <drepper@redhat.com> |
| 405 | |
| 406 | * elfcmp.c: Print name and index of differing section. |
| 407 | |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 408 | 2005-07-24 Ulrich Drepper <drepper@redhat.com> |
| 409 | |
| 410 | * elfcmp.c: Implement comparing gaps between sections. |
| 411 | |
| 412 | 2005-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 | |
| 424 | 2005-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 | |
| 432 | 2005-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 | |
| 442 | 2005-06-08 Roland McGrath <roland@redhat.com> |
| 443 | |
| 444 | * readelf.c (print_ops): Add consts. |
| 445 | |
| 446 | 2005-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 | |
| 454 | 2005-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 | |
| 478 | 2005-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 | |
| 483 | 2005-05-18 Ulrich Drepper <drepper@redhat.com> |
| 484 | |
| 485 | * readelf.c (dwarf_tag_string): Add new tags. |
| 486 | |
| 487 | 2005-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 | |
| 492 | 2005-05-07 Ulrich Drepper <drepper@redhat.com> |
| 493 | |
| 494 | * Makefile.am (findtextrel_LDADD): Add $(libmudflap). |
| 495 | (addr2line_LDADD): Likewise. |
| 496 | |
| 497 | 2005-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 | |
| 511 | 2005-05-07 Ulrich Drepper <drepper@redhat.com> |
| 512 | |
| 513 | * readelf.c (parse_opt): Make any_control_option variable |
| 514 | local. Simplify some tests. |
| 515 | |
| 516 | 2005-05-03 Roland McGrath <roland@redhat.com> |
| 517 | |
| 518 | * strip.c (crc32_file): Function removed (now in ../lib). |
| 519 | |
| 520 | 2005-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 | |
| 527 | 2005-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 | |
| 532 | 2005-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 | |
| 545 | 2005-04-01 Ulrich Drepper <drepper@redhat.com> |
| 546 | |
| 547 | * addr2line.c: Finish implementation of -f option. |
| 548 | |
| 549 | 2005-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 | |
| 560 | 2005-03-28 Ulrich Drepper <drepper@redhat.com> |
| 561 | |
| 562 | * findtextrel.c: New file. |
| 563 | * Makefile: Add rules to build findtextrel. |
| 564 | |
| 565 | 2005-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 | |
| 583 | 2005-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 | |
| 594 | 2005-02-04 Ulrich Drepper <drepper@redhat.com> |
| 595 | |
| 596 | * elflint.c (check_symtab): Correctly determine size of GOT section. |
| 597 | |
| 598 | 2005-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 | |
| 616 | 2005-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 | |
| 628 | 2004-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 | |
| 633 | 2004-09-25 Ulrich Drepper <drepper@redhat.com> |
| 634 | |
| 635 | * readelf.c: Make compile with gcc 4.0. |
| 636 | * strip.c: Likewise. |
| 637 | |
| 638 | 2004-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 | |
| 643 | 2004-01-25 Ulrich Drepper <drepper@redhat.com> |
| 644 | |
| 645 | * ldlex.l (invalid_char): Better error message. |
| 646 | |
| 647 | 2004-01-23 Ulrich Drepper <drepper@redhat.com> |
| 648 | |
| 649 | * readelf.c: Print SHT_GNU_LIBLIST sections. |
| 650 | |
| 651 | * none_ld.c: New file. |
| 652 | |
| 653 | 2004-01-21 Ulrich Drepper <drepper@redhat.com> |
| 654 | |
| 655 | * Makefile.am: Enable building of machine specific linker. |
| 656 | |
| 657 | 2004-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 | |
| 670 | 2004-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 | |
| 679 | 2004-01-18 Ulrich Drepper <drepper@redhat.com> |
| 680 | |
| 681 | * readelf.c (print_debug_line_section): Implement. |
| 682 | |
| 683 | 2004-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 | |
| 696 | 2004-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 | |
| 702 | 2004-01-13 Ulrich Drepper <drepper@redhat.com> |
| 703 | |
| 704 | * readelf.c (print_shdr): Add support for SHF_ORDERED and SHF_EXCLUDE. |
| 705 | |
| 706 | 2004-01-12 Ulrich Drepper <drepper@redhat.com> |
| 707 | |
| 708 | * readelf.c (print_debug_aranges): Implement using libdw. |
| 709 | |
| 710 | 2004-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 | |
| 718 | 2004-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 | |
| 724 | 2004-01-07 Ulrich Drepper <drepper@redhat.com> |
| 725 | |
| 726 | * nm.c: Read also debug information for local symbols. |
| 727 | |
| 728 | 2004-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 | |
| 745 | 2003-12-31 Ulrich Drepper <drepper@redhat.com> |
| 746 | |
| 747 | * strip.c (process_file): Close file before returning. |
| 748 | |
| 749 | 2003-11-19 Ulrich Drepper <drepper@redhat.com> |
| 750 | |
| 751 | * readelf.c (handle_dynamic): Make column for tag name wider. |
| 752 | |
| 753 | 2003-09-29 Ulrich Drepper <drepper@redhat.com> |
| 754 | |
| 755 | * readelf.c (handle_dynamic): Always terminate tag name with a space. |
| 756 | |
| 757 | 2003-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 | |
| 762 | 2003-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 | |
| 771 | 2003-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 | |
| 782 | 2003-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 | |
| 787 | 2003-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 | |
| 792 | 2003-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 | |
| 798 | 2003-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 | |
| 813 | 2003-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 | |
| 818 | 2003-08-11 Ulrich Drepper <drepper@redhat.com> |
| 819 | |
| 820 | * Moved to CVS archive. |