Mark Wielaard | 36aa598 | 2012-05-09 11:27:44 +0200 | [diff] [blame^] | 1 | 2012-05-09 Roland McGrath <roland@hack.frob.com> |
| 2 | |
| 3 | * elflint (check_sections): Allow zero sized sections at (filesz) end |
| 4 | of segment. And make check overflow-proofed. |
| 5 | |
Mark Wielaard | 716486d | 2012-04-24 11:56:42 +0200 | [diff] [blame] | 6 | 2012-04-24 Mark Wielaard <mjw@redhat.com> |
| 7 | |
| 8 | * readelf.c (print_ops): Add DW_OP_GNU_push_tls_address, |
| 9 | DW_OP_GNU_uinit and DW_OP_GNU_encoded_addr. |
| 10 | |
Roland McGrath | 738c183 | 2012-03-28 15:01:49 -0700 | [diff] [blame] | 11 | 2012-03-28 Roland McGrath <roland@hack.frob.com> |
| 12 | |
| 13 | * elflint.c (special_sections): Accept SHF_INFO_LINK for reloc sections. |
| 14 | |
Mark Wielaard | 61651c1 | 2012-03-28 11:20:36 +0200 | [diff] [blame] | 15 | 2012-03-28 Mark Wielaard <mjw@redhat.com> |
| 16 | |
| 17 | * readelf.c (print_debug_abbrev_section): Check there is Dwarf |
| 18 | section data. |
| 19 | (print_debug_str_section): Likewise. |
| 20 | |
Mark Wielaard | 30bb714 | 2012-03-21 16:05:31 +0100 | [diff] [blame] | 21 | 2012-03-21 Mark Wielaard <mjw@redhat.com> |
| 22 | |
| 23 | * readelf.c (print_gdb_index_section): Accept version 6. |
| 24 | |
Mark Wielaard | cb643d6 | 2012-01-31 19:22:03 +0100 | [diff] [blame] | 25 | 2012-01-31 Mark Wielaard <mjw@redhat.com> |
| 26 | |
| 27 | * readelf.c (attr_callback): Don't special case DW_FORM_sec_offset. |
| 28 | |
Ulrich Drepper | c6b3d0c | 2012-01-21 18:14:39 -0500 | [diff] [blame] | 29 | 2012-01-21 Ulrich Drepper <drepper@gmail.com> |
| 30 | |
Ulrich Drepper | 3a64a30 | 2012-01-21 18:19:24 -0500 | [diff] [blame] | 31 | * addr2line.c: Update copyright year. |
| 32 | * ar.c: Likewise. |
| 33 | * elfcmp.c: Likewise. |
| 34 | * elflint.c: Likewise. |
| 35 | * findtextrel.c: Likewise. |
| 36 | * ld.c: Likewise. |
| 37 | * nm.c: Likewise. |
| 38 | * objdump.c: Likewise. |
| 39 | * ranlib.c: Likewise. |
| 40 | * readelf.c: Likewise. |
| 41 | * size.c: Likewise. |
| 42 | * strings.c: Likewise. |
| 43 | * strip.c: Likewise. |
| 44 | * unstrip.c: Likewise. |
| 45 | |
Ulrich Drepper | c6b3d0c | 2012-01-21 18:14:39 -0500 | [diff] [blame] | 46 | * nm.c (argp_children): Define. |
| 47 | (argp): Hook up argp_children. |
| 48 | (handle_ar): Optimize puts call. |
| 49 | (show_symbols_bsd): Use positional parameters to also print color |
| 50 | codes. Don't print STT_FILE symbols. |
| 51 | * objdump.c (options): Improve help text. |
| 52 | (argp_children): Define. |
| 53 | (argp): Hook up argp_children. |
| 54 | (disasm_info): Add elements for color codes. |
| 55 | (disasm_output): Print color codes as well. |
| 56 | (show_disasm): Set up disasm_info data for callback. |
| 57 | |
Roland McGrath | 8592478 | 2012-01-20 11:40:59 -0800 | [diff] [blame] | 58 | 2012-01-20 Roland McGrath <roland@hack.frob.com> |
| 59 | |
Roland McGrath | 3284b79 | 2012-01-20 12:51:46 -0800 | [diff] [blame] | 60 | * arlib-argp.c (arlib_deterministic_output): Initialize from |
| 61 | configured value. |
| 62 | (help_filter): New function. |
| 63 | (argp): Use it. |
| 64 | |
Roland McGrath | 9bffd36 | 2012-01-20 12:04:19 -0800 | [diff] [blame] | 65 | * ar.c (main): Handle oper_none as usage error. |
| 66 | |
Roland McGrath | 6e063d9 | 2012-01-20 11:43:36 -0800 | [diff] [blame] | 67 | * arlib-argp.c (options, parse_opt): Grok -U as inverse of -D. |
| 68 | |
Roland McGrath | 8592478 | 2012-01-20 11:40:59 -0800 | [diff] [blame] | 69 | * ranlib.c (argp): Use arlib_argp_children. |
| 70 | |
| 71 | * arlib.c (arlib_init): Obey arlib_deterministic_output. |
| 72 | |
| 73 | * arlib-argp.c: New file. |
| 74 | * Makefile.am (libar_a_SOURCES): Add it. |
| 75 | * arlib.h (arlib_deterministic_output, arlib_argp_children): |
| 76 | Declare new variables. |
| 77 | * ar.c (deterministic_output): Variable removed. |
| 78 | (do_oper_insert): Use arlib_deterministic_output instead. |
| 79 | (options, parse_opt): Don't handle -D here. Add group numbers. |
| 80 | (argp): Use arlib_argp_children. |
| 81 | |
Roland McGrath | a065c4b | 2011-12-20 10:55:01 -0800 | [diff] [blame] | 82 | 2011-12-20 Roland McGrath <roland@hack.frob.com> |
| 83 | |
| 84 | * readelf.c (print_debug): Initialize DUMMY_DBG.elf. |
| 85 | Reported by Karel Klic <kklic@redhat.com>. |
| 86 | |
Roland McGrath | 4fa988e | 2011-11-05 20:58:14 -0700 | [diff] [blame] | 87 | 2011-11-05 Roland McGrath <roland@hack.frob.com> |
| 88 | |
Roland McGrath | e5ba2a1 | 2011-11-05 21:08:07 -0700 | [diff] [blame] | 89 | * ar.c (deterministic_output): New flag variable. |
| 90 | (options, parse_opt): Grok -D to set it. |
| 91 | (do_oper_insert): When set, use zero from mtime, uid, and gid. |
| 92 | |
Roland McGrath | 4fa988e | 2011-11-05 20:58:14 -0700 | [diff] [blame] | 93 | * ar.c (do_oper_insert): Fix check on elf_rawfile return value. |
| 94 | |
Marek Polacek | 8d1e297 | 2011-10-04 05:11:42 -0400 | [diff] [blame] | 95 | 2011-10-04 Marek Polacek <mpolacek@redhat.com> |
| 96 | |
| 97 | * readelf.c (register_info): Assume the right size of an array. |
| 98 | |
Ulrich Drepper | 2356ba0 | 2011-10-03 07:23:07 -0400 | [diff] [blame] | 99 | 2011-10-03 Ulrich Drepper <drepper@gmail.com> |
| 100 | |
| 101 | * nm.c: Recognize option --mark-special. Still recognize --mark-weak |
| 102 | but don't show it in help anymore. |
| 103 | (mark_special): Renamed from mark_weak. |
| 104 | (parse_opt): Adjust. |
| 105 | (class_type_char): Take additional parameters for ELF file and ELF |
| 106 | header. Treat TLS symbols like objects. |
| 107 | In case of D symbols, show u for unique symbols, R for symbols in |
| 108 | read-only sections, B for symbols in BSS sections. |
Ulrich Drepper | 21b5d4c | 2011-10-03 16:08:33 -0400 | [diff] [blame] | 109 | (show_symbols_bsd): Take additional parameters for ELF file and ELF |
Ulrich Drepper | 2356ba0 | 2011-10-03 07:23:07 -0400 | [diff] [blame] | 110 | header. Adjust for class_type_char change. Show TLS symbols with |
| 111 | @ after them in case --mark-special is selected. |
| 112 | (show_symbols_posix): Likewise. |
| 113 | (show_symbols): Adjust calls to show_symbols_bsd and |
| 114 | show_symbols_posix. |
Ulrich Drepper | 66f4c37 | 2011-10-03 15:53:12 -0400 | [diff] [blame] | 115 | (show_symbols_sysv): Avoid printing adress and size for undefined |
Ulrich Drepper | 21b5d4c | 2011-10-03 16:08:33 -0400 | [diff] [blame] | 116 | symbols. Don't print initial special entry and section entries. |
Ulrich Drepper | 2356ba0 | 2011-10-03 07:23:07 -0400 | [diff] [blame] | 117 | |
Ulrich Drepper | b4a16cf | 2011-10-02 08:33:19 -0400 | [diff] [blame] | 118 | 2011-10-02 Ulrich Drepper <drepper@gmail.com> |
| 119 | |
| 120 | * Makefile.am (demanglelib): Define. |
| 121 | (nm_LDADD): Add demanglelib. |
| 122 | * nm.c (options): Add -C option. |
| 123 | (demangle): Define as global variable. |
| 124 | (parse_opt): Recognize -C. |
| 125 | (show_symbols_sysv): Handle demangling. |
| 126 | (show_symbols_bad): Likewise. |
| 127 | (show_symbols_posix): Likewise. |
| 128 | (show_symbols): Likewise. |
| 129 | |
Roland McGrath | b0a0e0d | 2011-07-09 03:20:16 -0700 | [diff] [blame] | 130 | 2011-07-09 Roland McGrath <roland@hack.frob.com> |
| 131 | |
Roland McGrath | bd75419 | 2011-07-09 05:33:37 -0700 | [diff] [blame] | 132 | * readelf.c (options, parse_opt): Grok -W/--wide and ignore it. |
| 133 | |
| 134 | * ar.c (parse_opt): Grok -u. |
Roland McGrath | b0a0e0d | 2011-07-09 03:20:16 -0700 | [diff] [blame] | 135 | |
Mark Wielaard | 02a958b | 2011-05-30 17:23:57 +0200 | [diff] [blame] | 136 | 2011-05-30 Mark Wielaard <mjw@redhat.com> |
| 137 | |
| 138 | * strip.c (relocate): Make offset check overflow-proof. |
| 139 | |
Mark Wielaard | 1662bc3 | 2011-05-16 11:33:11 +0200 | [diff] [blame] | 140 | 2011-05-23 Mark Wielaard <mjw@redhat.com> |
| 141 | |
Mark Wielaard | 63868c2 | 2011-05-24 16:09:31 +0200 | [diff] [blame] | 142 | * strip.c (relocate): Take new arguments is_rela to indicate |
Roland McGrath | b0a0e0d | 2011-07-09 03:20:16 -0700 | [diff] [blame] | 143 | whether the relocation is from a SHT_REL or SHT_RELA section. |
Mark Wielaard | 63868c2 | 2011-05-24 16:09:31 +0200 | [diff] [blame] | 144 | Relocate against any debug section symbol, not just STT_SECTION |
| 145 | symbols. For SHT_REL relocations, fetch addend from offset and |
| 146 | add it to symbol value if not zero. |
| 147 | |
| 148 | 2011-05-23 Mark Wielaard <mjw@redhat.com> |
| 149 | |
Mark Wielaard | 1662bc3 | 2011-05-16 11:33:11 +0200 | [diff] [blame] | 150 | * strip.c (OPT_RELOC_DEBUG): New option. |
| 151 | (argp_option): Add new --reloc-debug-sections option. |
| 152 | (main): Check new option. |
| 153 | (parse_opt): Likewise. |
| 154 | (handle_elf): Remove any relocations between debug sections |
| 155 | in ET_REL for the debug file when requested. |
| 156 | |
Mark Wielaard | 7a125b9 | 2011-05-17 12:20:01 +0200 | [diff] [blame] | 157 | 2011-05-18 Mark Wielaard <mjw@redhat.com> |
| 158 | |
| 159 | * strip.c (handle_elf): Make sure all sections of a removed group |
| 160 | section are removed too. Don't discard SHT_GROUP sections, copy |
| 161 | section table before it gets modified. Section group signature |
| 162 | symbols don't have to be retained. |
| 163 | |
Jakub Jelinek | 0312424 | 2011-05-17 17:00:14 +0200 | [diff] [blame] | 164 | 2011-05-16 Jakub Jelinek <jakub@redhat.com> |
| 165 | |
| 166 | * readelf.c (print_ops): Handle DW_OP_GNU_const_type, |
| 167 | DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert |
| 168 | and DW_OP_GNU_reinterpret. |
| 169 | |
Mark Wielaard | 69a9b11 | 2011-05-17 15:34:02 +0200 | [diff] [blame] | 170 | 2011-05-17 Mark Wielaard <mjw@redhat.com> |
| 171 | |
| 172 | * readelf.c (dwarf_tag_string): Fixup DW_TAG_GNU_call_site and |
| 173 | DW_TAG_GNU_call_site_parameter return strings. |
| 174 | |
Marek Polacek | c8920de | 2011-05-12 12:08:21 +0200 | [diff] [blame] | 175 | 2011-05-11 Marek Polacek <mpolacek@redhat.com> |
| 176 | |
| 177 | * nm.c (show_symbols_sysv): Remove unused if/else, remove |
| 178 | unused `prefix' and `fname' parameters. |
| 179 | |
Marek Polacek | 82f77d7 | 2011-05-07 19:26:20 +0200 | [diff] [blame] | 180 | 2011-05-07 Marek Polacek <mpolacek@redhat.com> |
| 181 | |
| 182 | * unstrip.c (compare_sections_nonrel): Mark this function as static. |
| 183 | |
Mark Wielaard | bb9d1b4 | 2011-04-24 17:53:38 +0200 | [diff] [blame] | 184 | 2011-04-26 Mark Wielaard <mjw@redhat.com> |
| 185 | |
| 186 | * readelf.c (handle_notes_data): Call ebl_object_note_type_name |
| 187 | with note name. |
| 188 | |
Mark Wielaard | 093a1d3 | 2011-04-14 23:47:26 +0200 | [diff] [blame] | 189 | 2011-04-14 Mark Wielaard <mjw@redhat.com> |
| 190 | |
| 191 | * readelf.c (options): Add gdb_index. |
| 192 | (section_e): Define section_gdb_index. |
| 193 | (parse_opt): Recognize gdb_index debug-dump argument. |
| 194 | (print_gdb_index_section): New function. |
| 195 | (print_debug): Add gdb_index to debug_sections. |
| 196 | |
Petr Machata | 1879e5b | 2011-03-25 15:17:04 +0100 | [diff] [blame] | 197 | 2011-03-24 Petr Machata <pmachata@redhat.com> |
| 198 | |
| 199 | * readelf.c (print_debug_line_section): Emit initial space for all |
| 200 | opcode lines. Print offset in front of each opcode. |
| 201 | |
Marek Polacek | 44de92a | 2011-03-22 01:07:20 +0100 | [diff] [blame] | 202 | 2011-03-22 Marek Polacek <mpolacek@redhat.com> |
| 203 | |
| 204 | * readelf.c (handle_dynamic): Don't segfault at DT_PLTREL case. |
| 205 | |
Mark Wielaard | e3368c5 | 2011-03-22 23:03:31 +0100 | [diff] [blame] | 206 | 2011-03-22 Mark Wielaard <mjw@redhat.com> |
| 207 | |
| 208 | * readelf.c (dwarf_tag_string): Support DW_TAG_GNU_call_site |
| 209 | and DW_TAG_GNU_call_site_parameter. |
| 210 | (dwarf_attr_string): Support DW_AT_GNU_call_site_value, |
| 211 | DW_AT_GNU_call_site_data_value, |
| 212 | DW_AT_GNU_call_site_target, |
| 213 | DW_AT_GNU_call_site_target_clobbered, |
| 214 | DW_AT_GNU_tail_call, |
| 215 | DW_AT_GNU_all_tail_call_sites, |
| 216 | DW_AT_GNU_all_call_sites, |
| 217 | and DW_AT_GNU_all_source_call_sites. |
| 218 | (print_ops): Handle DW_OP_GNU_entry_value. |
| 219 | (attr_callback): Handle DW_AT_GNU_call_site_value, |
| 220 | DW_AT_GNU_call_site_data_value, |
| 221 | DW_AT_GNU_call_site_target, |
| 222 | and DW_AT_GNU_call_site_target_clobbered. |
| 223 | |
Mark Wielaard | a062b6b | 2011-03-10 13:02:32 +0100 | [diff] [blame] | 224 | 2011-03-10 Mark Wielaard <mjw@redhat.com> |
| 225 | |
| 226 | * elflint.c (check_symtab): Use ebl_check_st_other_bits. |
| 227 | |
Jan Kratochvil | fec3999 | 2011-02-27 12:01:25 -0800 | [diff] [blame] | 228 | 2011-02-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 229 | |
| 230 | * readelf.c (reset_listptr): Clear TABLE->TABLE. |
| 231 | |
Mark Wielaard | cf454ab | 2011-02-25 12:58:54 +0100 | [diff] [blame] | 232 | 2011-02-25 Mark Wielaard <mjw@redhat.com> |
| 233 | |
| 234 | * readelf.c (dwarf_attr_string): Add DW_AT_GNU_* handling. |
| 235 | (dwarf_form_string): Properly format and return unknown form. |
| 236 | |
Roland McGrath | 47c5323 | 2011-02-23 09:23:08 -0800 | [diff] [blame] | 237 | 2011-02-23 Roland McGrath <roland@redhat.com> |
| 238 | |
Roland McGrath | 725aad5 | 2011-02-23 19:52:46 -0800 | [diff] [blame] | 239 | * readelf.c (section_name): New function. |
| 240 | (print_debug_abbrev_section): Use it instead of constant. |
| 241 | (print_debug_aranges_section): Likewise. |
| 242 | (print_debug_ranges_section): Likewise. |
| 243 | (print_debug_units): Likewise. |
| 244 | (print_debug_line_section): Likewise. |
| 245 | (print_debug_loc_section): Likewise. |
| 246 | (print_debug_macinfo_section): Likewise. |
| 247 | (print_debug_pubnames_section): Likewise. |
| 248 | (print_debug_str_section): Likewise. |
| 249 | (print_debug) [USE_ZLIB]: Match .zdebug_* sections too. |
| 250 | (print_debug_abbrev_section): Use decoded d_size, not sh_size. |
| 251 | (print_debug_str_section): Likewise. |
| 252 | |
Roland McGrath | 47c5323 | 2011-02-23 09:23:08 -0800 | [diff] [blame] | 253 | * readelf.c (dwarf_attr_string): Grok DW_AT_GNU_odr_signature. |
| 254 | |
Roland McGrath | 1fb9c91 | 2011-02-11 10:32:30 -0800 | [diff] [blame] | 255 | 2011-02-11 Roland McGrath <roland@redhat.com> |
| 256 | |
Roland McGrath | 4a14ef7 | 2011-02-11 10:42:45 -0800 | [diff] [blame] | 257 | * elfcmp.c (verbose): New variable. |
| 258 | (options, parse_opt): Grok -l/--verbose to set it. |
| 259 | (main): Under -l, keep going after first difference. |
| 260 | |
Roland McGrath | 1fb9c91 | 2011-02-11 10:32:30 -0800 | [diff] [blame] | 261 | * elfcmp.c (ignore_build_id): New variable. |
| 262 | (options, parse_opt): Grok --ignore-build-id to set it. |
| 263 | (main): For SHT_NOTE sections, compare note details rather than raw |
| 264 | bytes. Under --ignore-build-id, don't complain about differing build |
| 265 | ID contents if lengths match. |
| 266 | |
Roland McGrath | fd99254 | 2011-02-08 19:45:12 -0800 | [diff] [blame] | 267 | 2011-02-08 Roland McGrath <roland@redhat.com> |
| 268 | |
Roland McGrath | 240784b | 2011-02-08 19:48:42 -0800 | [diff] [blame] | 269 | * ldscript.y (filename_id_star): Remove unused variable. |
| 270 | |
Roland McGrath | 8f6c179 | 2011-02-08 19:48:02 -0800 | [diff] [blame] | 271 | * unstrip.c (copy_elided_sections): Remove unused variable. |
| 272 | |
Roland McGrath | 4db89f0 | 2011-02-08 19:46:50 -0800 | [diff] [blame] | 273 | * elflint.c (check_dynamic): Remove unused variables. |
| 274 | |
Roland McGrath | 3323131 | 2011-02-08 19:45:26 -0800 | [diff] [blame] | 275 | * elflint.c (check_symtab): Warn about missing xndx section only once. |
| 276 | |
Roland McGrath | fd99254 | 2011-02-08 19:45:12 -0800 | [diff] [blame] | 277 | * ldgeneric.c (check_for_duplicate2): Remove unused variable. |
| 278 | |
Roland McGrath | f151b7d | 2011-01-06 12:14:43 -0800 | [diff] [blame] | 279 | 2011-01-06 Roland McGrath <roland@redhat.com> |
| 280 | |
| 281 | * strip.c (handle_elf): Under --strip-sections, remove all |
| 282 | non-allocated sections and never generate .gnu_debuglink. |
| 283 | |
Roland McGrath | 0b9d1fb | 2011-01-04 19:29:24 -0800 | [diff] [blame] | 284 | 2011-01-04 Roland McGrath <roland@redhat.com> |
| 285 | |
| 286 | * strip.c (remove_shdrs): New variable. |
| 287 | (options, parse_opt): Grok --strip-sections to set it. |
| 288 | (handle_elf): When that's set, truncate off .shstrtab and shdrs. |
| 289 | |
Roland McGrath | 77221de | 2010-11-10 19:47:31 -0800 | [diff] [blame] | 290 | 2010-11-10 Roland McGrath <roland@redhat.com> |
| 291 | |
| 292 | * findtextrel.c (process_file): Don't assume order of sections. |
| 293 | Reported by Mike Hommey <mh@glandium.org>. |
| 294 | |
Roland McGrath | 932585d | 2010-05-08 04:01:14 -0700 | [diff] [blame] | 295 | 2010-07-26 Roland McGrath <roland@redhat.com> |
| 296 | |
| 297 | * readelf.c (print_ops): Handle DW_OP_GNU_implicit_pointer. |
| 298 | |
Roland McGrath | a159915 | 2010-08-30 04:04:37 -0700 | [diff] [blame] | 299 | 2010-08-30 Roland McGrath <roland@redhat.com> |
| 300 | |
Roland McGrath | fa14495 | 2010-08-30 19:22:41 -0700 | [diff] [blame] | 301 | Print .debug_loc/.debug_ranges with cognizance of actual DIE uses. |
| 302 | * readelf.c (parse_opt): Add section_info to implicit_debug_sections |
| 303 | for ranges, loc. |
| 304 | (struct listptr, struct listptr_table): New types. |
| 305 | (compare_listptr, reset_listptr, sort_listptr): New functions. |
| 306 | (notice_listptr, skip_listptr_hole): New functions. |
| 307 | (struct attrcb_args): Add silent member. |
| 308 | (attr_callback): Call notice_listptr for loclistptr and rangelistptr. |
| 309 | Suppress output if silent, but still call notice_listptr. |
| 310 | (print_debug_units): Suppress output if section_info not requested. |
| 311 | (print_debug_loc_section): Call sort_listptr, skip_listptr_hole. |
| 312 | (print_debug_ranges_section): Likewise. |
| 313 | (print_debug): Call reset_listptr on both tables. |
| 314 | |
| 315 | * readelf.c (print_debug_ranges_section): Print empty list. |
| 316 | (print_debug_loc_section): Likewise. |
| 317 | |
Roland McGrath | a159915 | 2010-08-30 04:04:37 -0700 | [diff] [blame] | 318 | * readelf.c (print_debug_loc_section): Check for bogus length |
| 319 | before calling print_ops. |
| 320 | (print_ops): Check harder for bogus data that would read off end. |
| 321 | |
Roland McGrath | f4763cf | 2010-08-11 13:04:12 -0700 | [diff] [blame] | 322 | 2010-08-11 Roland McGrath <roland@redhat.com> |
| 323 | |
| 324 | * readelf.c (for_each_section_argument): Process all sections with |
| 325 | matching name, not just the first. |
| 326 | |
Roland McGrath | 52604ba | 2010-07-26 21:29:44 -0700 | [diff] [blame] | 327 | 2010-07-26 Roland McGrath <roland@redhat.com> |
| 328 | |
| 329 | * readelf.c (print_ops): Take new argument for CU version. |
| 330 | Fix DW_OP_call_ref decoding to depend on it. |
| 331 | (print_debug_loc_section): Update caller. |
| 332 | (print_cfa_program): Take new argument, pass it down. |
| 333 | (print_debug_frame_section): Update caller. |
| 334 | (struct attrcb_args): New member version. |
| 335 | (print_debug_units): Initialize it. |
| 336 | |
Roland McGrath | 2f14a31 | 2010-07-02 11:16:25 -0700 | [diff] [blame] | 337 | 2010-07-02 Roland McGrath <roland@redhat.com> |
| 338 | |
| 339 | * readelf.c (print_debug_frame_section): Use format_dwarf_addr for |
| 340 | initial_location. |
| 341 | |
Roland McGrath | b645803 | 2010-06-30 11:57:19 -0700 | [diff] [blame] | 342 | 2010-06-30 Roland McGrath <roland@redhat.com> |
| 343 | |
| 344 | * strings.c (main): Use STDIN_FILENO, not STDOUT_FILENO. |
| 345 | Ignore st_size for a non-S_ISREG file descriptor. |
| 346 | (read_block): Move assert after no-mmap bail-out. |
| 347 | (read_block_no_mmap): Fix size calculations for moving buffer remnant. |
| 348 | |
Roland McGrath | fa79990 | 2010-06-22 13:05:23 -0700 | [diff] [blame] | 349 | 2010-06-22 Roland McGrath <roland@redhat.com> |
| 350 | |
| 351 | * readelf.c (print_debug_line_section): Fix braino in DW_LNS_set_isa. |
| 352 | |
Roland McGrath | 0c5638c | 2010-06-21 23:00:35 -0700 | [diff] [blame] | 353 | 2010-06-21 Roland McGrath <roland@redhat.com> |
| 354 | |
| 355 | * readelf.c (dwarf_tag_string): Handle new v4 tags. |
Roland McGrath | 474cb48 | 2010-06-22 00:10:54 -0700 | [diff] [blame] | 356 | (dwarf_attr_string): Add new attributes. |
| 357 | (dwarf_tag_string): Handle DW_TAG_GNU_*. |
Roland McGrath | 0c5638c | 2010-06-21 23:00:35 -0700 | [diff] [blame] | 358 | |
| 359 | * readelf.c (print_ops): Use 64-bit types for LEB128 operands. |
| 360 | (print_cfa_program): Likewise. |
| 361 | |
Roland McGrath | e5251a1 | 2010-06-20 16:59:39 -0700 | [diff] [blame] | 362 | 2010-06-20 Roland McGrath <roland@redhat.com> |
| 363 | |
Roland McGrath | 2b1f095 | 2010-06-20 17:55:50 -0700 | [diff] [blame] | 364 | * readelf.c (print_debug_units): New function, broken out of ... |
| 365 | (print_debug_info_section): ... here. Call it. |
| 366 | (print_debug_types_section): New function. |
| 367 | (enum section_e): Add section_types alias for section_info. |
| 368 | (print_debug): Add types to the sections table. |
| 369 | |
Roland McGrath | 599f7f5 | 2010-06-20 17:12:43 -0700 | [diff] [blame] | 370 | * readelf.c (print_debug_frame_section): Handle version 4 format. |
| 371 | |
Roland McGrath | e5251a1 | 2010-06-20 16:59:39 -0700 | [diff] [blame] | 372 | * readelf.c (print_debug_line_section): Handle version 4 format. |
| 373 | |
Roland McGrath | ec86e5f | 2010-06-14 17:44:38 -0700 | [diff] [blame] | 374 | 2010-06-14 Roland McGrath <roland@redhat.com> |
| 375 | |
| 376 | * unstrip.c (copy_elided_sections): Make sure all sections' data have |
| 377 | been read in before we write anything out. |
| 378 | |
Roland McGrath | 3b1b651 | 2010-06-04 02:26:30 -0700 | [diff] [blame] | 379 | 2010-06-04 Roland McGrath <roland@redhat.com> |
| 380 | |
Roland McGrath | aa32f92 | 2010-06-04 02:29:08 -0700 | [diff] [blame] | 381 | * unstrip.c (update_shdr): New function. |
| 382 | (update_sh_size): Call it instead of gelf_update_shdr. |
| 383 | (adjust_relocs, add_new_section_symbols): Likewise. |
| 384 | (new_shstrtab, copy_elided_sections): Likewise. |
| 385 | |
Roland McGrath | 3b1b651 | 2010-06-04 02:26:30 -0700 | [diff] [blame] | 386 | * unstrip.c (copy_elided_sections): Bail if stripped file has more |
| 387 | sections than unstripped file, rather than getting confused later. |
| 388 | |
Roland McGrath | 7a5bed8 | 2010-06-01 13:44:00 -0700 | [diff] [blame] | 389 | 2010-06-01 Roland McGrath <roland@redhat.com> |
| 390 | |
Roland McGrath | 7fac1ce | 2010-06-01 15:56:58 -0700 | [diff] [blame] | 391 | * readelf.c (dwarf_form_string): Handle DWARF 4 forms. |
| 392 | (attr_callback): Handle DW_FORM_flag_present, DW_FORM_exprloc, |
Roland McGrath | c8a0673 | 2010-06-01 19:52:39 -0700 | [diff] [blame] | 393 | DW_FORM_sec_offset, DW_FORM_ref_sig8. |
Roland McGrath | 7fac1ce | 2010-06-01 15:56:58 -0700 | [diff] [blame] | 394 | |
Roland McGrath | 7a5bed8 | 2010-06-01 13:44:00 -0700 | [diff] [blame] | 395 | * readelf.c (print_debug): Don't bail if libdw setup fails. |
| 396 | Suppress complaint if we only want .eh_frame anyway. |
| 397 | |
Ulrich Drepper | 173ade8 | 2010-05-28 07:39:49 -0700 | [diff] [blame] | 398 | 2010-05-28 Ulrich Drepper <drepper@redhat.com> |
| 399 | |
| 400 | * readelf.c (attr_callback): Also print form information. |
| 401 | |
Roland McGrath | 12e3d1f | 2010-05-19 18:03:31 -0700 | [diff] [blame] | 402 | 2010-05-19 Roland McGrath <roland@redhat.com> |
| 403 | |
| 404 | * addr2line.c (find_symbol): Short-circuit on empty name. |
| 405 | (handle_address): Handle SYMBOL with no +OFFSET. |
| 406 | |
Roland McGrath | 688f7fc | 2010-05-08 03:22:59 -0700 | [diff] [blame] | 407 | 2010-05-08 Roland McGrath <roland@redhat.com> |
| 408 | |
| 409 | * readelf.c (print_ops): Take new arg OFFSET_SIZE. |
| 410 | Use that for DW_OP_call_ref, not ADDRSIZE. |
| 411 | (print_cfa_program): Update caller. |
| 412 | (struct attrcb_args): Add offset_size field. |
| 413 | (attr_callback): Use it for print_ops call. |
| 414 | (print_debug_info_section): Initialize it. |
Roland McGrath | 932585d | 2010-05-08 04:01:14 -0700 | [diff] [blame] | 415 | (print_ops): Likewise. |
Roland McGrath | 50aa8d1 | 2010-06-01 11:22:36 -0700 | [diff] [blame] | 416 | |
Roland McGrath | 62b28b6 | 2010-04-14 11:54:06 -0700 | [diff] [blame] | 417 | 2010-04-14 Roland McGrath <roland@redhat.com> |
| 418 | |
| 419 | * readelf.c (handle_core_item): Fix bitmask printing. |
| 420 | |
Roland McGrath | 3b495d8 | 2010-04-06 12:58:32 -0700 | [diff] [blame] | 421 | 2010-04-06 Roland McGrath <roland@redhat.com> |
| 422 | |
| 423 | * ld.c (options): Fix some typos in messages. |
| 424 | * elflint.c (check_scn_group, check_group): Likewise. |
| 425 | * ldscript.y (add_id_list): Likewise. |
| 426 | * readelf.c (print_hash_info): Add xgettext:no-c-format magic comment |
| 427 | before translated string containing a literal %. |
| 428 | |
Roland McGrath | 890081b | 2010-02-26 17:57:50 -0800 | [diff] [blame] | 429 | 2010-02-26 Roland McGrath <roland@redhat.com> |
| 430 | |
| 431 | * readelf.c (process_file): Don't leak an fd in failure case. |
| 432 | |
Roland McGrath | c2b26f1 | 2010-02-15 15:16:15 -0800 | [diff] [blame] | 433 | 2010-02-15 Roland McGrath <roland@redhat.com> |
| 434 | |
Roland McGrath | 22359e2 | 2010-02-15 15:57:03 -0800 | [diff] [blame] | 435 | * Makefile.am: Use config/eu.am for common stuff. |
| 436 | |
Roland McGrath | c2b26f1 | 2010-02-15 15:16:15 -0800 | [diff] [blame] | 437 | * readelf.c (print_debug_frame_section): Add a cast to avoid sign |
| 438 | mismatch in comparison. |
| 439 | |
Roland McGrath | f920fd5 | 2010-02-02 15:50:15 -0800 | [diff] [blame] | 440 | 2010-02-02 Roland McGrath <roland@redhat.com> |
| 441 | |
| 442 | * readelf.c (print_encoding_base): Handle DW_EH_PE_absptr (zero). |
| 443 | (read_encoded): Likewise. |
| 444 | (print_debug_frame_section): Check for bogus augmentation length. |
| 445 | For P augmentation, use read_encoded, print the encoding description, |
| 446 | and use hex for unsigned values. |
| 447 | |
Roland McGrath | b337b1f | 2010-01-15 01:02:27 -0800 | [diff] [blame] | 448 | 2010-01-15 Roland McGrath <roland@redhat.com> |
| 449 | |
| 450 | * ar.c: Include <sys/stat.h>. |
| 451 | * elflint.c: Likewise. |
| 452 | * readelf.c: Likewise. |
| 453 | * strip.c: Likewise. |
| 454 | * unstrip.c: Likewise |
| 455 | |
Roland McGrath | bd733ca | 2010-01-07 20:11:42 -0800 | [diff] [blame] | 456 | 2010-01-07 Roland McGrath <roland@redhat.com> |
| 457 | |
Roland McGrath | 8111da0 | 2010-01-07 20:31:59 -0800 | [diff] [blame] | 458 | * readelf.c (print_ehdr): Handle PN_XNUM. |
| 459 | (phnum): New static variable. |
| 460 | (process_elf_file): Set it with elf_getphdrnum. |
| 461 | (print_phdr): Use phnum instead of EHDR->e_phnum. |
| 462 | (print_dynamic, handle_notes): Likewise. |
| 463 | (handle_relocs_rel, handle_relocs_rela): Likewise. |
| 464 | |
Roland McGrath | bd733ca | 2010-01-07 20:11:42 -0800 | [diff] [blame] | 465 | * elfcmp.c (main): Use elf_getshdrnum and elf_getphdrnum. |
| 466 | |
| 467 | * elflint.c (phnum): New static variable. |
| 468 | (check_elf_header): Set it, handling PN_XNUM. |
| 469 | Use that in place of EHDR->e_phnum throughout. |
| 470 | (check_symtab, check_reloc_shdr, check_dynamic): Likewise. |
| 471 | (unknown_dependency_p, check_sections, check_program_header): Likewise. |
| 472 | |
Roland McGrath | 019d9fb | 2010-01-05 13:36:07 -0800 | [diff] [blame] | 473 | 2010-01-05 Roland McGrath <roland@redhat.com> |
| 474 | |
| 475 | * readelf.c (dwarf_attr_string): Match DW_AT_GNU_vector and |
| 476 | DW_AT_GNU_template_name. |
| 477 | |
Roland McGrath | e4061d0 | 2010-01-04 20:25:09 -0800 | [diff] [blame] | 478 | 2010-01-04 Roland McGrath <roland@redhat.com> |
| 479 | |
Roland McGrath | 0ccbbcd | 2010-01-04 21:59:07 -0800 | [diff] [blame] | 480 | * readelf.c (handle_notes_data): Grab NT_AUXV only for name "CORE". |
| 481 | (handle_core_note): Pass NHDR and NAME to ebl_core_note. |
| 482 | (handle_core_item): Handle .format of '\n' as \n-separated strings. |
| 483 | |
Roland McGrath | 2e79deb | 2010-01-04 20:36:10 -0800 | [diff] [blame] | 484 | * readelf.c (implicit_debug_sections): New variable. |
| 485 | (parse_opt): Set it instead of print_debug_sections for -a. |
| 486 | OR them together for print_debug check. |
| 487 | (print_debug): OR them together for section check. |
| 488 | |
Roland McGrath | a7422be | 2010-01-04 20:29:33 -0800 | [diff] [blame] | 489 | * readelf.c (options): Repartition into set implied by -a and others. |
| 490 | Correct -a text to match reality. |
| 491 | |
Roland McGrath | e4061d0 | 2010-01-04 20:25:09 -0800 | [diff] [blame] | 492 | * readelf.c (struct section_argument): Add bool member 'implicit'. |
| 493 | (parse_opt): Set it for -a cases, clear it for -x args. |
| 494 | (for_each_section_argument): Don't complain about a missing section by |
| 495 | name if it's implicit. |
| 496 | |
Roland McGrath | efa6496 | 2009-11-16 01:50:58 -0800 | [diff] [blame] | 497 | 2009-11-16 Roland McGrath <roland@redhat.com> |
| 498 | |
| 499 | * readelf.c (print_string_section): Punt SHT_NOBITS like empty |
| 500 | sections, just as dump_data_section already does. |
| 501 | |
Mark Wielaard | c49d00a | 2009-09-21 16:47:07 -0700 | [diff] [blame] | 502 | 2009-09-21 Ulrich Drepper <drepper@redhat.com> |
| 503 | |
| 504 | * elflint.c (special_sections): Allow MERGE and STRINGS flags to be |
| 505 | set for .comment section. |
| 506 | Patch by Mark Wielaard <mjw@redhat.com>. |
| 507 | |
Roland McGrath | fb33c67 | 2009-09-08 00:21:18 -0700 | [diff] [blame] | 508 | 2009-09-08 Roland McGrath <roland@redhat.com> |
| 509 | |
| 510 | * ar.c (main): Fix typo in message format. |
| 511 | |
Roland McGrath | 2d13ea2 | 2009-08-21 03:16:32 -0700 | [diff] [blame] | 512 | 2009-08-21 Roland McGrath <roland@redhat.com> |
| 513 | |
| 514 | * readelf.c (attr_callback): Use print_block only when we don't use |
| 515 | print_ops. |
| 516 | |
Roland McGrath | 536127f | 2009-08-14 13:10:09 -0700 | [diff] [blame] | 517 | 2009-08-14 Roland McGrath <roland@redhat.com> |
| 518 | |
| 519 | * ar.c (do_oper_extract): Use pathconf instead of statfs. |
| 520 | |
Ulrich Drepper | 9ccf76a | 2009-08-01 10:07:24 -0700 | [diff] [blame] | 521 | 2009-08-01 Ulrich Drepper <drepper@redhat.com> |
| 522 | |
| 523 | * debugpred.h: Add two most const. |
| 524 | |
Mark Wielaard | bc1b92e | 2009-07-26 08:33:18 -0700 | [diff] [blame] | 525 | 2009-07-26 Mark Wielaard <mjw@redhat.com> |
| 526 | |
| 527 | * elflint.c (check_note_data): Recognize NT_GNU_GOLD_VERSION. |
| 528 | |
Mark Wielaard | 7917820 | 2009-07-25 12:44:46 -0700 | [diff] [blame] | 529 | 2009-07-25 Mark Wielaard <mjw@redhat.com> |
| 530 | |
| 531 | * Makefile.am (addr2line_LDADD): Add $(libelf). |
| 532 | |
Roland McGrath | be4589d | 2009-07-24 16:23:12 -0700 | [diff] [blame] | 533 | 2009-07-24 Roland McGrath <roland@redhat.com> |
| 534 | |
| 535 | * readelf.c (print_block): New function. |
| 536 | (print_ops): Use it. |
| 537 | (attr_callback): Use it for DW_FORM_block* forms. |
| 538 | |
Mark Wielaard | daf85b2 | 2009-07-24 15:49:51 -0700 | [diff] [blame] | 539 | 2009-07-20 Mark Wielaard <mjw@redhat.com> |
| 540 | |
| 541 | * readelf.c (print_ops): Add handling of DW_OP_implicit_value |
| 542 | and DW_OP_stack_value. |
| 543 | |
Ulrich Drepper | 96d950e | 2009-07-14 10:42:01 -0700 | [diff] [blame] | 544 | 2009-07-14 Ulrich Drepper <drepper@redhat.com> |
| 545 | |
| 546 | * elflint.c (check_elf_header): Allow Linux ABI. |
| 547 | (check_symtab): Handle STB_GNU_UNIQUE. |
| 548 | |
Mark Wielaard | f735db1 | 2009-07-08 19:18:53 +0200 | [diff] [blame] | 549 | 2009-07-08 Mark Wielaard <mjw@redhat.com> |
| 550 | |
| 551 | * readelf.c (attr_callback): Handle DW_Form constants for |
| 552 | DW_AT_data_member_location. |
| 553 | |
Roland McGrath | dffc33d | 2009-07-06 16:06:41 -0700 | [diff] [blame] | 554 | 2009-07-06 Roland McGrath <roland@redhat.com> |
| 555 | |
| 556 | * readelf.c (register_info): New function. Handle unknown register #s. |
| 557 | (print_cfa_program): Use it. |
| 558 | (handle_core_register, handle_core_registers): Likewise. |
| 559 | |
Roland McGrath | 5dbccdb | 2009-06-28 14:48:02 -0700 | [diff] [blame] | 560 | 2009-06-28 Roland McGrath <roland@redhat.com> |
| 561 | |
| 562 | * readelf.c (print_address_names): New static variable. |
| 563 | (options, parse_opt): Grok -N/--numeric-addresses to clear it. |
| 564 | (format_dwarf_addr): Don't look up name if !print_address_names. |
| 565 | |
Ulrich Drepper | f189493 | 2009-06-13 15:55:42 -0700 | [diff] [blame] | 566 | 2009-06-13 Ulrich Drepper <drepper@redhat.com> |
| 567 | |
| 568 | * ldgeneric.c: Don't use deprecated libelf functions. |
| 569 | * nm.c: Likewise. |
| 570 | * objdump.c: Likewise. |
| 571 | * readelf.c: Likewise. |
| 572 | * size.c: Likewise. |
| 573 | * strip.c: Likewise. |
| 574 | * unstrip.c: Likewise. |
| 575 | * ld.h: Fix up comment. |
| 576 | |
Ulrich Drepper | b47d290 | 2009-06-01 07:38:32 -0700 | [diff] [blame] | 577 | 2009-06-01 Ulrich Drepper <drepper@redhat.com> |
| 578 | |
| 579 | * readelf.c (print_relocs): Expect ELF header argument and pass on |
| 580 | to handle_relocs_rel* functions. Adjust caller. |
| 581 | (handle_relocs_rel): Add ELF header argument. Add special case for |
| 582 | the IRELATIVE relocations in statically linked executables. |
| 583 | (handle_relocs_rela): Likewise. |
| 584 | |
Roland McGrath | db19f0b | 2009-05-07 18:44:27 -0700 | [diff] [blame] | 585 | 2009-04-29 Ulrich Drepper <drepper@redhat.com> |
| 586 | |
| 587 | * elflint.c (check_symtab): Add tests of st_other field. |
| 588 | |
Ulrich Drepper | aab90f9 | 2009-04-23 07:44:36 -0700 | [diff] [blame] | 589 | 2009-04-23 Ulrich Drepper <drepper@redhat.com> |
| 590 | |
| 591 | * Makefile [BUILD_STATIC] (libdw): Add $(zip_LIBS). |
| 592 | |
Roland McGrath | d86e183 | 2009-04-20 00:49:33 -0700 | [diff] [blame] | 593 | 2009-04-20 Roland McGrath <roland@redhat.com> |
| 594 | |
Roland McGrath | 8a59241 | 2009-04-20 01:20:44 -0700 | [diff] [blame] | 595 | * addr2line.c (print_dwarf_function): Honor -s and -A for file names |
| 596 | of inline call sites. |
| 597 | |
Roland McGrath | d86e183 | 2009-04-20 00:49:33 -0700 | [diff] [blame] | 598 | * addr2line.c (just_section): New variable. |
| 599 | (adjust_to_section): New function, broken out of ... |
| 600 | (handle_address): ... here. |
| 601 | (options, parse_opt): Add -j/--section=NAME to set it. |
| 602 | |
Roland McGrath | 2fb9051 | 2009-04-15 14:47:13 -0700 | [diff] [blame] | 603 | 2009-04-15 Roland McGrath <roland@redhat.com> |
| 604 | |
| 605 | * readelf.c (print_debug_frame_section): Check for DW_CIE_ID_64 in |
| 606 | 64-bit format header, DW_CIE_ID_32 in 32-bit format header. |
| 607 | |
Roland McGrath | 04a1416 | 2009-04-14 01:02:17 -0700 | [diff] [blame] | 608 | 2009-04-14 Roland McGrath <roland@redhat.com> |
| 609 | |
Roland McGrath | eb9ba47 | 2009-04-14 18:44:45 -0700 | [diff] [blame] | 610 | * readelf.c (print_attributes): Treat SHT_ARM_ATTRIBUTES on EM_ARM |
| 611 | like SHT_GNU_ATTRIBUTES. |
| 612 | |
Roland McGrath | 94f4383 | 2009-04-14 04:39:32 -0700 | [diff] [blame] | 613 | * readelf.c (handle_core_registers): Fix error message. |
| 614 | |
Roland McGrath | 04a1416 | 2009-04-14 01:02:17 -0700 | [diff] [blame] | 615 | * strip.c (handle_elf: check_preserved): Don't note any change when |
| 616 | .debug_data is already filled from a previous pass. |
| 617 | |
Ulrich Drepper | 411cdb2 | 2009-02-05 22:04:26 -0800 | [diff] [blame] | 618 | 2009-02-05 Ulrich Drepper <drepper@redhat.com> |
| 619 | |
Ulrich Drepper | 51b3f47 | 2009-02-05 22:10:39 -0800 | [diff] [blame] | 620 | * objdump.c (show_relocs_x): Minor cleanups. |
| 621 | |
Ulrich Drepper | 411cdb2 | 2009-02-05 22:04:26 -0800 | [diff] [blame] | 622 | * readelf.c (print_cfa_program): Correct a few labels. |
Ulrich Drepper | 973a9c7 | 2009-02-05 22:56:39 -0800 | [diff] [blame] | 623 | Print first DW_CFA_expression and DW_CFA_val_expression parameter |
| 624 | as register. |
Ulrich Drepper | 411cdb2 | 2009-02-05 22:04:26 -0800 | [diff] [blame] | 625 | |
Ulrich Drepper | 5ee720c | 2009-02-01 16:18:18 -0800 | [diff] [blame] | 626 | 2009-02-01 Ulrich Drepper <drepper@redhat.com> |
| 627 | |
Ulrich Drepper | 95fa15e | 2009-02-01 19:06:10 -0800 | [diff] [blame] | 628 | * objdump.c (show_relocs_rel, show_relocs_rela): Split common parts |
| 629 | into ... |
| 630 | (show_relocs_x): ...here. New function. |
Ulrich Drepper | f44f0ce | 2009-02-01 21:31:26 -0800 | [diff] [blame] | 631 | (show_relocs): Better spacing in output. |
Ulrich Drepper | 95fa15e | 2009-02-01 19:06:10 -0800 | [diff] [blame] | 632 | |
Ulrich Drepper | cbb422e | 2009-02-01 18:18:55 -0800 | [diff] [blame] | 633 | * objdump.c (show_relocs_rela): Show offsets as signed values. |
| 634 | |
Ulrich Drepper | 5ee720c | 2009-02-01 16:18:18 -0800 | [diff] [blame] | 635 | * ar.c (main): Fix recognition of invalid modes for a, b, i modifiers. |
| 636 | Improve some error messages. |
| 637 | Use program_invocation_short_name instead of AR macro. |
| 638 | * Makefile.am (CFLAGS_ar): Remove. |
| 639 | * elflint.c (parse_opt): ARGP_HELP_EXIT_ERR does nothing for argp_help. |
| 640 | * objdump.c (parse_opt): Likewise. |
| 641 | * readelf.c (parse_opt): Likewise. |
| 642 | |
Roland McGrath | 51f0128 | 2009-01-27 17:08:03 -0800 | [diff] [blame] | 643 | 2009-01-27 Roland McGrath <roland@redhat.com> |
| 644 | |
| 645 | * readelf.c (print_ops): Notice short length, don't overrun buffer |
| 646 | (still need to fix LEB128). |
| 647 | |
| 648 | * readelf.c (print_ops): Fix DW_OP_call[24] decoding. |
| 649 | |
| 650 | * readelf.c (print_ops): Print (empty)\n when LEN == 0. |
| 651 | |
Ulrich Drepper | 62c4653 | 2009-01-24 17:01:08 -0800 | [diff] [blame] | 652 | 2009-01-24 Ulrich Drepper <drepper@redhat.com> |
| 653 | |
| 654 | * readelf.c (print_debug_frame_section): Fix computation of vma_base |
| 655 | for PC-relative mode. |
| 656 | |
Ulrich Drepper | d7285e1 | 2009-01-23 16:10:44 -0800 | [diff] [blame] | 657 | 2009-01-23 Ulrich Drepper <drepper@redhat.com> |
| 658 | |
Ulrich Drepper | ccccab0 | 2009-01-23 16:32:21 -0800 | [diff] [blame] | 659 | * size.c (process_file): When handling archive, close file descriptor |
| 660 | here. For unknown file format also close file descriptor. |
| 661 | (handle_ar): Don't close file descriptor here. |
| 662 | |
Ulrich Drepper | d7285e1 | 2009-01-23 16:10:44 -0800 | [diff] [blame] | 663 | * readelf.c (parse_opt): Move code to add to dump_data_sections and |
| 664 | string_sections list in local function add_dump_section. Adjust 'x' |
| 665 | key handling. For 'a' key add .strtab, .dynstr, and .comment section |
| 666 | to string_sections list. |
| 667 | |
Roland McGrath | e9de9b4 | 2009-01-22 13:05:40 -0800 | [diff] [blame] | 668 | 2009-01-22 Roland McGrath <roland@redhat.com> |
| 669 | |
Roland McGrath | 9a847e1 | 2009-01-22 19:55:00 -0800 | [diff] [blame] | 670 | * readelf.c (print_phdr): Don't print section mapping when no sections. |
| 671 | |
Roland McGrath | d759aa6 | 2009-01-22 19:17:07 -0800 | [diff] [blame] | 672 | * Makefile.am (AM_CFLAGS): Pass -Wno-format for *_no_Wformat. |
| 673 | |
Roland McGrath | cabeeee | 2009-01-22 13:17:45 -0800 | [diff] [blame] | 674 | * readelf.c (print_debug_frame_section): Initialize IS_SIGNED to false |
| 675 | and reset it only for the 'true' cases. |
| 676 | |
| 677 | * Makefile.am (addr2line_no_Wformat): New variable. |
| 678 | |
Roland McGrath | e9de9b4 | 2009-01-22 13:05:40 -0800 | [diff] [blame] | 679 | * readelf.c (print_debug_frame_section): Use t instead of j formats |
| 680 | for ptrdiff_t OFFSET. |
| 681 | |
Ulrich Drepper | daf0fda | 2009-01-21 13:05:36 -0800 | [diff] [blame] | 682 | 2009-01-21 Ulrich Drepper <drepper@redhat.com> |
| 683 | |
| 684 | * elflint.c (check_program_header): Fix typo in .eh_frame_hdr section |
Ulrich Drepper | f93ee8d | 2009-01-21 15:02:03 -0800 | [diff] [blame] | 685 | test. Handle debuginfo files. |
Ulrich Drepper | daf0fda | 2009-01-21 13:05:36 -0800 | [diff] [blame] | 686 | (check_exception_data): First sanity test. |
| 687 | |
Ulrich Drepper | fdc93e1 | 2009-01-17 11:47:10 -0800 | [diff] [blame] | 688 | 2009-01-17 Ulrich Drepper <drepper@redhat.com> |
| 689 | |
Ulrich Drepper | 935edde | 2009-01-17 16:06:42 -0800 | [diff] [blame] | 690 | * readelf.c (print_debug_exception_table): Show target of ar_disp |
| 691 | field. |
| 692 | |
| 693 | * elflint.c (check_program_header): Add most consistency checks for |
| 694 | PT_GNU_EH_FRAME entry. |
| 695 | |
Ulrich Drepper | fdc93e1 | 2009-01-17 11:47:10 -0800 | [diff] [blame] | 696 | * addr2line.c: Use ARGP_PROGRAM_VERSION_HOOK_DEF and |
| 697 | ARGP_PROGRAM_BUG_ADDRESS_DEF. |
| 698 | * ar.c: Likewise. |
| 699 | * elfcmp.c: Likewise. |
| 700 | * elflint.c: Likewise. |
| 701 | * findtextrel.c: Likewise. |
| 702 | * ld.c: Likewise. |
| 703 | * nm.c: Likewise. |
| 704 | * objdump.c: Likewise. |
| 705 | * ranlib.c: Likewise. |
| 706 | * readelf.c: Likewise. |
Ulrich Drepper | 935edde | 2009-01-17 16:06:42 -0800 | [diff] [blame] | 707 | |
Ulrich Drepper | fdc93e1 | 2009-01-17 11:47:10 -0800 | [diff] [blame] | 708 | * size.c: Likewise. |
| 709 | * strings.c: Likewise. |
| 710 | * strip.c: Likewise. |
| 711 | * unstrip.c: Likewise. |
| 712 | |
Ulrich Drepper | b006fbf | 2009-01-16 03:08:25 -0800 | [diff] [blame] | 713 | 2009-01-16 Ulrich Drepper <drepper@redhat.com> |
| 714 | |
Ulrich Drepper | 3a52c7a | 2009-01-16 21:11:49 -0800 | [diff] [blame] | 715 | * elflint.c (check_program_header): Check that PT_GNU_EH_FRAME entry |
| 716 | matches .eh_frame_hdr section, if it is available. Also check that |
| 717 | the segment is allocated, not writable, not executable. |
| 718 | |
Ulrich Drepper | b006fbf | 2009-01-16 03:08:25 -0800 | [diff] [blame] | 719 | * readelf.c: Add -e option. Dump exception and unwind related |
| 720 | sections. Add -e to -a. |
Ulrich Drepper | 05d2b20 | 2009-01-16 17:58:54 -0800 | [diff] [blame] | 721 | (print_encoding_base): Handle DW_EH_PE_omit. |
Ulrich Drepper | b006fbf | 2009-01-16 03:08:25 -0800 | [diff] [blame] | 722 | (print_debug_exception_table): Beginning of support. |
| 723 | (print_debug): Hook up print_debug_exception_table for |
| 724 | .gcc_except_table sections. |
| 725 | |
| 726 | * readelf.c (print_debug_frame_section): Some fixes for last change. |
| 727 | |
Ulrich Drepper | 351bf20 | 2009-01-15 20:18:40 -0800 | [diff] [blame] | 728 | 2009-01-15 Ulrich Drepper <drepper@redhat.com> |
| 729 | |
| 730 | * readelf.c (print_encoding): Now a toplevel function. |
| 731 | (print_relinfo): Likewise. |
| 732 | (print_encoding_base): Broken out of print_debug_frame_section. |
| 733 | (print_debug_frame_section): Print different header for .eh_frame |
| 734 | sections. Fix recognition of matching CIEs in .debug_frame sections. |
| 735 | Print absolute offset for PC-relative FDE locations. Don't print |
| 736 | table header for FDEs if the table is empty. |
| 737 | (read_encoded): New function. |
| 738 | (print_debug_frame_hdr_section): New function. |
| 739 | (print_debug): Hook up print_debug_frame_hdr_section for .eh_frame_hdr |
| 740 | sections. |
| 741 | |
| 742 | * readelf.c (handle_relocs_rel): Print section number. |
| 743 | (print_debug_abbrev_section): Likewise. |
| 744 | (print_debug_aranges_section): Likewise. |
| 745 | (print_debug_ranges_section): Likewise. |
| 746 | (print_debug_info_section): Likewise. |
| 747 | (print_debug_line_section): Likewise. |
| 748 | (print_debug_loc_section): Likewise. |
| 749 | (print_debug_macinfo_section): Likewise. |
| 750 | (print_debug_pubnames_section): Likewise. |
| 751 | (print_debug_str_section): Likewise. |
| 752 | |
Ulrich Drepper | 8b39463 | 2009-01-10 18:29:56 -0800 | [diff] [blame] | 753 | 2009-01-10 Ulrich Drepper <drepper@redhat.com> |
| 754 | |
| 755 | * strings.c (read_block): Fix typo in error message string. |
| 756 | |
Ulrich Drepper | 87cf583 | 2009-01-07 20:39:21 -0800 | [diff] [blame] | 757 | 2009-01-07 Ulrich Drepper <drepper@redhat.com> |
| 758 | |
| 759 | * ld.c (ld_new_searchdir): Fix adding to search path list. |
| 760 | |
Ulrich Drepper | ac194d0 | 2009-01-06 00:30:01 -0800 | [diff] [blame] | 761 | 2009-01-06 Ulrich Drepper <drepper@redhat.com> |
| 762 | |
| 763 | * readelf.c: Implement call frame debug section dumping. |
Roland McGrath | e9243e6 | 2009-01-21 18:54:20 -0800 | [diff] [blame] | 764 | |
Roland McGrath | 3614d99 | 2009-01-05 18:05:32 -0800 | [diff] [blame] | 765 | 2009-01-05 Roland McGrath <roland@redhat.com> |
| 766 | |
| 767 | * elfcmp.c: Exit with status 2 for errors (like cmp, diff, grep). |
| 768 | Status 1 (aka EXIT_FAILURE) is only for completed OK but not equal. |
Ulrich Drepper | ac194d0 | 2009-01-06 00:30:01 -0800 | [diff] [blame] | 769 | |
Ulrich Drepper | 44173ed | 2009-01-01 19:00:41 -0800 | [diff] [blame] | 770 | 2009-01-01 Ulrich Drepper <drepper@redhat.com> |
| 771 | |
| 772 | * addr2line.c: Update copyright year. |
| 773 | * ar.c: Likewise. |
| 774 | * elfcmp.c: Likewise. |
| 775 | * elflint.c: Likewise. |
| 776 | * findtextrel.c: Likewise. |
| 777 | * ld.c: Likewise. |
| 778 | * nm.c: Likewise. |
| 779 | * objdump.c: Likewise. |
| 780 | * ranlib.c: Likewise. |
| 781 | * readelf.c: Likewise. |
| 782 | * size.c: Likewise. |
| 783 | * strings.c: Likewise. |
| 784 | * strip.c: Likewise. |
| 785 | * unstrip.c: Likewise. |
| 786 | |
Roland McGrath | 468fe4d | 2008-12-11 21:00:12 -0800 | [diff] [blame] | 787 | 2008-12-11 Roland McGrath <roland@redhat.com> |
| 788 | |
| 789 | * nm.c (sym_name): New function. |
| 790 | (show_symbols_sysv): Use it in place of elf_strptr. |
| 791 | (show_symbols_bsd, show_symbols_posix): Likewise. |
| 792 | Fixes RHBZ#476136. |
| 793 | |
| 794 | * nm.c (show_symbols_sysv): Use an alloca'd backup section name when |
| 795 | elf_strptr fails. |
| 796 | |
Roland McGrath | a845f68 | 2008-12-03 03:41:58 +0000 | [diff] [blame] | 797 | 2008-12-02 Roland McGrath <roland@redhat.com> |
| 798 | |
| 799 | * readelf.c (count_dwflmod, process_file): Don't presume encoding of |
| 800 | nonzero OFFSET argument to dwfl_getmodules. |
| 801 | |
Roland McGrath | 1d8bb25 | 2008-08-07 08:39:41 +0000 | [diff] [blame] | 802 | 2008-08-07 Roland McGrath <roland@redhat.com> |
| 803 | |
| 804 | * addr2line.c (main): Pass string to handle_address. |
| 805 | (see_one_module): New function, subroutine of handle_address. |
| 806 | (find_symbol): Likewise. |
| 807 | (handle_address): Take string argument rather than address. |
| 808 | Convert plain number, or handle strings like "(section)+offset" |
| 809 | or "symbol+offset". |
| 810 | |
| 811 | 2008-08-01 Roland McGrath <roland@redhat.com> |
| 812 | |
| 813 | * readelf.c (handle_core_item): Handle 'B' type for 1-origin bitset. |
| 814 | For 'b' and 'B', print <x-y,z> or ~<x,y-z> rather than 1/0 string. |
| 815 | |
| 816 | * readelf.c (convert): Take new argument SIZE. |
| 817 | (handle_core_register, handle_core_item): Update callers. |
| 818 | (handle_core_item): Take new arg REPEATED_SIZE. |
| 819 | (handle_core_items): Special case for a singleton item, |
| 820 | let handle_core_item handle repeats if it wants to. |
| 821 | |
| 822 | * readelf.c (handle_core_items): Give abridged output |
| 823 | for identical groups repeated more than twice. |
| 824 | |
| 825 | 2008-07-04 Roland McGrath <roland@redhat.com> |
| 826 | |
| 827 | * readelf.c (handle_core_items): Handle ELF_T_ADDR. |
| 828 | |
Roland McGrath | 521c47d | 2008-04-11 07:01:58 +0000 | [diff] [blame] | 829 | 2008-04-10 Roland McGrath <roland@redhat.com> |
| 830 | |
| 831 | * strip.c (handle_elf): Don't keep sections that kept symbol tables |
| 832 | refer to. Instead, just be sure to preserve the original symbol |
| 833 | table in the debug file so those symbols go with their sections and |
| 834 | can be elided from the stripped version of the symbol table. |
| 835 | |
| 836 | * strip.c (handle_elf): When a discarded section kept in the debug |
| 837 | file refers to a nondiscard section via sh_link/sh_info, preserve |
| 838 | that nondiscarded section unmodified in the debug file as well. |
| 839 | Skip adjustment of discarded sections symbol table references when |
| 840 | that symbol table is copied in this way. |
| 841 | |
| 842 | * elflint.c (check_symtab): Don't crash from missing symbol names |
| 843 | after diagnosing bogus strtab. |
| 844 | |
| 845 | * strip.c (handle_elf): Cosmetic cleanup in special section contents |
| 846 | adjustment for symtab changes. |
| 847 | |
Roland McGrath | 13b6960 | 2008-04-01 02:30:05 +0000 | [diff] [blame] | 848 | 2008-03-31 Roland McGrath <roland@redhat.com> |
| 849 | |
| 850 | * elflint.c (check_sections): Add checks on SHF_EXECINSTR sections: |
| 851 | must be SHT_PROGBITS, must not be SHF_WRITE. Let backend hook |
| 852 | excuse a special section. |
| 853 | |
| 854 | 2008-03-27 Roland McGrath <roland@redhat.com> |
| 855 | |
| 856 | * elflint.c (check_sections): Check that executability and writability |
| 857 | of sections is reflected in segment p_flags. |
| 858 | |
Roland McGrath | d11f9cb | 2008-03-26 20:51:59 +0000 | [diff] [blame] | 859 | 2008-03-26 Roland McGrath <roland@redhat.com> |
| 860 | |
| 861 | * elflint.c (check_program_header): Accept PT_GNU_RELRO p_flags |
| 862 | that matches its PT_LOAD's p_flags &~ PF_W. On sparc, PF_X really |
| 863 | is valid in RELRO. |
| 864 | |
Roland McGrath | 47c5c35 | 2008-02-29 10:17:16 +0000 | [diff] [blame] | 865 | 2008-02-29 Roland McGrath <roland@redhat.com> |
| 866 | |
| 867 | * readelf.c (print_attributes): Add a cast. |
| 868 | * elflint.c (check_attributes): Likewise. |
| 869 | |
| 870 | * unaligned.h (add_8ubyte_unaligned): Cast PTR argument for parity |
| 871 | with [UNALIGNED_ACCESS_CLASS == BYTE_ORDER] definition. |
| 872 | (add_4ubyte_unaligned, add_2ubyte_unaligned): Likewise. |
| 873 | |
Ulrich Drepper | 834de6f | 2008-02-23 06:50:01 +0000 | [diff] [blame] | 874 | 2008-02-03 Ulrich Drepper <drepper@redhat.com> |
| 875 | |
| 876 | * i386_ld.c (elf_i386_count_relocations): Implement R_386_TLS_GD |
| 877 | when linked into executable. |
| 878 | (elf_i386_create_relocations): Likewise. |
| 879 | |
Roland McGrath | 059c83e | 2008-02-21 06:19:39 +0000 | [diff] [blame] | 880 | 2008-02-20 Roland McGrath <roland@redhat.com> |
| 881 | |
| 882 | * readelf.c (print_attributes): New function. |
| 883 | (process_elf_file): Call it under -A. |
| 884 | |
| 885 | * elflint.c (check_attributes): Implement it for real. |
| 886 | |
| 887 | 2008-02-19 Roland McGrath <roland@redhat.com> |
| 888 | |
| 889 | * elflint.c (special_sections): Handle .gnu.attributes section. |
| 890 | (check_sections): Likewise. |
| 891 | (check_attributes): New function. |
| 892 | |
| 893 | 2008-02-10 Roland McGrath <roland@redhat.com> |
| 894 | |
| 895 | * elfcmp.c (main): Ignore sh_offset differences in non-SHF_ALLOC |
| 896 | sections and ET_REL files. |
| 897 | |
Ulrich Drepper | 712d78e | 2008-02-02 10:01:53 +0000 | [diff] [blame] | 898 | 2008-02-02 Ulrich Drepper <drepper@redhat.com> |
| 899 | |
| 900 | * elf32-i386.script: Add .eh_frame_hdr, .tdata, and .tbss sections. |
| 901 | * i386_ld.c (elf_i386_count_relocations): Handle R_386_TLS_LDO_32 |
| 902 | and R_386_TLS_LE. |
| 903 | (elf_i386_create_relocations): Likewise. |
| 904 | * ld.h (struct ld_state): Add need_tls, tls_start, and tls_tcb |
| 905 | elements. |
| 906 | * ldgeneric.c (add_section): If TLS section is used, set need_tls flag. |
| 907 | (ld_generic_create_outfile): Add PT_TLS entry to program header. |
| 908 | Fix generation of PT_GNU_STACK entry. |
| 909 | |
Ulrich Drepper | c54785a | 2008-02-01 18:05:21 +0000 | [diff] [blame] | 910 | 2008-02-01 Ulrich Drepper <drepper@redhat.com> |
| 911 | |
Ulrich Drepper | 7cd1bf7 | 2008-02-01 23:52:59 +0000 | [diff] [blame] | 912 | * ld.c (replace_args): Prevent loop over replacements if the parameter |
| 913 | is only two characters long. |
| 914 | |
Ulrich Drepper | c54785a | 2008-02-01 18:05:21 +0000 | [diff] [blame] | 915 | * ld.c: Recognize sha1 argument for --build-id parameter. |
| 916 | * ldgeneric.c (create_build_id_section): Handle sha1. |
| 917 | (compute_hash_sum): New function. Broken out of compute_build_id. |
| 918 | Take hash function and context as parameters. |
| 919 | (compute_build_id): Use compute_hash_sum for md5 and the new sha1 |
| 920 | implementation. |
| 921 | |
Ulrich Drepper | 89759c7 | 2008-01-31 19:44:12 +0000 | [diff] [blame] | 922 | 2008-01-31 Ulrich Drepper <drepper@redhat.com> |
| 923 | |
| 924 | * elf32-i386.script: Add .note.ABI-tag and .note.gnu.build-id sections. |
| 925 | * ld.c: Recognize --build-id command line parameter. |
| 926 | * ld.h: Define scn_dot_note_gnu_build_id. |
| 927 | (struct ld_state): Add build_id and buildidscnidx elements. |
| 928 | * ldgeneric.c: Implement --build-id command line parameter. |
| 929 | * ldlex.l (ID): Recognize - as valid character after the first one. |
| 930 | |
Ulrich Drepper | 5530ec5 | 2008-01-29 10:42:07 +0000 | [diff] [blame] | 931 | 2008-01-29 Ulrich Drepper <drepper@redhat.com> |
| 932 | |
Ulrich Drepper | b61c4cc | 2008-01-30 07:16:28 +0000 | [diff] [blame] | 933 | * ld.c (replace_args): New function. |
| 934 | (main): Use it to rewrite old-style parameters. |
| 935 | |
Ulrich Drepper | ed9b6cb | 2008-01-30 06:33:33 +0000 | [diff] [blame] | 936 | * elf32-i386.script: Add .gnu.hash section. |
| 937 | * ldgeneric.c (optimal_bucket_size): A tiny bit more efficient. |
| 938 | (fillin_special_symbol): Initialize st_size. |
| 939 | (sortfct_hashval): New function. |
| 940 | (create_gnu_hash): New function. |
| 941 | (create_hash): New function. |
| 942 | (ld_generic_create_outfile): Use the new functions to create the |
| 943 | hash tables. |
| 944 | |
Ulrich Drepper | 5530ec5 | 2008-01-29 10:42:07 +0000 | [diff] [blame] | 945 | * elflint.c (check_gnu_hash): Fix index value printed in error message. |
| 946 | |
Ulrich Drepper | 0e864dd | 2008-01-25 00:18:42 +0000 | [diff] [blame] | 947 | 2008-01-24 Ulrich Drepper <drepper@redhat.com> |
| 948 | |
| 949 | * elflint.c (check_group): Check that signature symbol for section |
| 950 | group is not an empty string. |
| 951 | * ldgeneric.c: Remove magic assignment of indeces in the dynsym |
| 952 | section. Start implementation of --hash-style. |
| 953 | * i386_ld.c: Likewise. |
| 954 | * ld.c: Recognize --hash-style. |
| 955 | * ld.h (struct scninfo): Add comdat_group. |
| 956 | Add additional parameter to finalize_plt callback. |
| 957 | |
Ulrich Drepper | 5449a6b | 2008-01-22 15:49:39 +0000 | [diff] [blame] | 958 | 2008-01-22 Ulrich Drepper <drepper@redhat.com> |
| 959 | |
| 960 | * ld.h (struct callbacks): Add initialize_gotplt. |
| 961 | (struct scnhead): Add scn_dot_gotplt. |
| 962 | (struct ld_state): Add gotpltscnidx. |
| 963 | * i386_ld.c (elf_i386_initialize_plt): Minor optimization. |
| 964 | (elf_i386_initialize_pltrel): Likewise. |
| 965 | (elf_i386_initialize_got): There is now a separate .got.plt, so |
| 966 | don't do the PLT-related work here. Initialize d_type. |
| 967 | (elf_i386_initialize_gotplt): New function. |
| 968 | (elf_i386_plt0): Use ud2a after indirect jump. |
| 969 | (elf_i386_pic_plt0_entry): Likewise. |
| 970 | (elf_i386_finalize_plt): Reference now .got.plt. |
| 971 | (elf_i386_count_relocations): For GOT entries which need no relocation |
| 972 | don't bump nrel_got. |
| 973 | (elf_i386_create_relocations): Also get .got.plt. Rewrite R-386_GOT32 |
| 974 | handling for split .got/.got.plt. |
| 975 | (elf_i386_ld_init): Initialize callbacks.initialize_gotplt. |
| 976 | * elf32-i386.script: Sort sections for security. There are no .got |
| 977 | input sections. Add .got.plt. |
| 978 | * ldgeneric.c (ld_generic_generate_sections): Add .got.plt section. |
| 979 | (ld_generic_create_outfile): Initialize .got.plt section. |
| 980 | Use .got.plt address for _GLOBAL_OFFSET_TABLE_ symbol and DT_PLTGOT. |
| 981 | |
Ulrich Drepper | d948829 | 2008-01-20 16:43:15 +0000 | [diff] [blame] | 982 | 2008-01-19 Ulrich Drepper <drepper@redhat.com> |
| 983 | |
| 984 | * i386_ld.c (elf_i386_count_relocations): PLT relocations for undefined |
| 985 | symbols are not carried over into statically linked output files. |
| 986 | Add dummy entries for more TLS relocations. |
| 987 | |
| 988 | * ld.c (options): Add long names for -( and -). |
| 989 | |
| 990 | * ldgeneric.c (check_definition): For newly found definitions don't |
| 991 | mark section as used if symbol is absolute. |
| 992 | (extract_from_archive): Only assign archive sequence number the first |
| 993 | time the archive is handled. Update ld_state.last_archive_used |
| 994 | if any symbol was used. Remove nround variable. |
| 995 | (file_process2): When using symbol from an archive, update |
| 996 | ld_state.group_start_archive, ld_state.archives, and |
| 997 | ld_state.tailarchives. |
| 998 | (ld_generic_file_process): If group is not handled anymore, after |
| 999 | freeing ELF handles for the archives, clear ld_state.archives and |
| 1000 | *nextp. Fix wrong logic in recognizing first iteration of group |
| 1001 | loop. When clearing flags, also clear ld_state.group_start_archive. |
| 1002 | |
Ulrich Drepper | 5eee122 | 2008-01-11 10:12:18 +0000 | [diff] [blame] | 1003 | 2008-01-11 Ulrich Drepper <drepper@redhat.com> |
| 1004 | |
| 1005 | * objdump.c (show_disasm): Adjust disassembler format string for |
| 1006 | removal of %e. |
| 1007 | |
Ulrich Drepper | e219f1c | 2008-01-09 05:49:49 +0000 | [diff] [blame] | 1008 | 2008-01-04 Roland McGrath <roland@redhat.com> |
| 1009 | |
Roland McGrath | 059c83e | 2008-02-21 06:19:39 +0000 | [diff] [blame] | 1010 | * readelf.c (handle_core_items): Take new arg DESCSZ; if nonzero, |
| 1011 | a size greater than the items cover means multiple sets of items. |
| 1012 | (handle_core_note): Update caller. |
| 1013 | |
| 1014 | 2008-01-04 Roland McGrath <roland@redhat.com> |
| 1015 | |
Ulrich Drepper | e219f1c | 2008-01-09 05:49:49 +0000 | [diff] [blame] | 1016 | * strip.c (handle_elf): Move SHDRIDX defn to silence gcc warning. |
| 1017 | |
| 1018 | 2008-01-03 Roland McGrath <roland@redhat.com> |
| 1019 | |
| 1020 | * ld.h (linked_from_dso_p): Use __attribute__ ((__gnu_inline__)). |
| 1021 | |
| 1022 | * elflint.c (check_dynamic): Remove duplicate initializer. |
| 1023 | |
Ulrich Drepper | ad024af | 2008-01-02 17:42:52 +0000 | [diff] [blame] | 1024 | 2008-01-02 Ulrich Drepper <drepper@redhat.com> |
| 1025 | |
| 1026 | * addr2line.c: Update copyright year. |
| 1027 | * ar.c: Likewise. |
| 1028 | * elfcmp.c: Likewise. |
| 1029 | * elflint.c: Likewise. |
| 1030 | * findtextrel.c: Likewise. |
| 1031 | * ld.c: Likewise. |
| 1032 | * nm.c: Likewise. |
| 1033 | * objdump.c: Likewise. |
| 1034 | * ranlib.c: Likewise. |
| 1035 | * readelf.c: Likewise. |
| 1036 | * size.c: Likewise. |
| 1037 | * strings.c: Likewise. |
| 1038 | * strip.c: Likewise. |
| 1039 | * unstrip.c: Likewise. |
| 1040 | |
Ulrich Drepper | 3cbdd38 | 2008-01-02 17:44:39 +0000 | [diff] [blame] | 1041 | 2007-12-30 Ulrich Drepper <drepper@redhat.com> |
| 1042 | |
| 1043 | * objdump (show_disasm): Use %e after third parameter. |
| 1044 | |
| 1045 | 2007-12-21 Ulrich Drepper <drepper@redhat.com> |
| 1046 | |
| 1047 | * strip.c: Fix wrong parenthesis in a few branch predictions. |
| 1048 | * strings.c: Likewise. |
| 1049 | |
| 1050 | 2007-12-20 Ulrich Drepper <drepper@redhat.com> |
| 1051 | |
| 1052 | * Makefile.am (DEFS): Add DEBUGPRED. |
| 1053 | * addr2line.c: Include debugpred.h. |
| 1054 | * ar.c: Likewise. |
| 1055 | * elfcmp.c: Likewise. |
| 1056 | * elflint.c: Likewise. |
| 1057 | * findtextrel.c: Likewise. |
| 1058 | * nm.c: Likewise. |
| 1059 | * objdump.c: Likewise. |
| 1060 | * ranlib.c: Likewise. |
| 1061 | * readelf.c: Likewise. |
| 1062 | * size.c: Likewise. |
| 1063 | * strings.c: Likewise. |
| 1064 | * strip.c: Likewise. |
| 1065 | * unstrip.c: Likewise. |
| 1066 | * debugpred.h: New file. |
| 1067 | |
| 1068 | * readelf.c (handle_relocs_rel): Use elf_scnshndx. |
| 1069 | (handle_relocs_rela): Likewise. |
| 1070 | |
| 1071 | * readelf.c: Add lots of likely/unlikely. |
| 1072 | |
| 1073 | * elflint.c: Minor cleanups. |
| 1074 | |
Roland McGrath | 1a2e8f4 | 2007-12-15 23:39:34 +0000 | [diff] [blame] | 1075 | 2007-11-19 Roland McGrath <roland@redhat.com> |
| 1076 | |
| 1077 | * readelf.c (print_ops): Handle all bad op codes gracefully. |
| 1078 | Print their numbers instead of just ???. |
| 1079 | |
Roland McGrath | 07a696e | 2007-11-09 22:44:26 +0000 | [diff] [blame] | 1080 | 2007-11-09 Roland McGrath <roland@redhat.com> |
| 1081 | |
| 1082 | * readelf.c (attr_callback): Handle DW_AT_data_location. |
Roland McGrath | 1a2e8f4 | 2007-12-15 23:39:34 +0000 | [diff] [blame] | 1083 | Handle block forms to mean a DWARF expression for DW_AT_allocated, |
| 1084 | DW_AT_associated, DW_AT_bit_size, DW_AT_bit_offset, DW_AT_bit_stride, |
| 1085 | DW_AT_byte_size, DW_AT_byte_stride, DW_AT_count, DW_AT_lower_bound, |
| 1086 | DW_AT_upper_bound. |
Roland McGrath | 07a696e | 2007-11-09 22:44:26 +0000 | [diff] [blame] | 1087 | |
Roland McGrath | e4c22ea | 2007-10-23 13:07:39 +0000 | [diff] [blame] | 1088 | 2007-10-20 Roland McGrath <roland@redhat.com> |
| 1089 | |
| 1090 | * unstrip.c (options): Update -R description. |
| 1091 | (struct symbol): Put symbol details a union with a size_t pointer |
| 1092 | `duplicate'. |
| 1093 | (compare_symbols_output): Use null ->name as marker for discard |
| 1094 | symbols, not zero *->map. |
| 1095 | (copy_elided_sections): Record forwarding pointers for discarded |
| 1096 | duplicates and fill SYMNDX_MAP elements through them. |
| 1097 | |
| 1098 | * readelf.c (process_file): Set offline_next_address to 0 at start. |
| 1099 | (struct process_dwflmod_args): New type. |
| 1100 | (process_dwflmod): Take args in it, pass fd to process_elf_file. |
| 1101 | (process_file): Update caller; dup FD for passing to libdwfl. |
| 1102 | (process_elf_file): Take new arg FD. For ET_REL file when |
| 1103 | displaying data affected by libdwfl relocation, open a new Elf handle. |
| 1104 | |
| 1105 | 2007-10-17 Roland McGrath <roland@redhat.com> |
| 1106 | |
| 1107 | * readelf.c (print_debug_line_section): For invalid data inside a |
| 1108 | unit with plausible length, keep printing at the next unit boundary. |
| 1109 | |
| 1110 | * readelf.c (attr_callback): Use dwarf_formref_die, not dwarf_formref. |
| 1111 | |
| 1112 | 2007-10-16 Roland McGrath <roland@redhat.com> |
| 1113 | |
| 1114 | * readelf.c (hex_dump): Fix rounding error in whitespace calculation. |
| 1115 | |
Ulrich Drepper | b597dfa | 2007-10-16 05:21:27 +0000 | [diff] [blame] | 1116 | 2007-10-15 Roland McGrath <roland@redhat.com> |
| 1117 | |
| 1118 | * make-debug-archive.in: New file. |
| 1119 | * Makefile.am (EXTRA_DIST): Add it. |
| 1120 | (make-debug-archive): New target. |
| 1121 | (bin_SCRIPTS, CLEANFILES): Add it. |
| 1122 | |
| 1123 | 2007-10-10 Roland McGrath <roland@redhat.com> |
| 1124 | |
| 1125 | * elflint.c (special_sections): Add new attrflag value exact_or_gnuld. |
| 1126 | Use it to check MERGE|STRINGS for .debug_str. |
| 1127 | (check_sections): Handle exact_or_gnuld. |
| 1128 | |
| 1129 | 2007-10-08 Roland McGrath <roland@redhat.com> |
| 1130 | |
| 1131 | * readelf.c (handle_core_item): Handle 'T'|0x80 to indicate |
| 1132 | 64-bit struct timeval with 32-bit tv_usec. |
| 1133 | |
| 1134 | 2007-10-07 Roland McGrath <roland@redhat.com> |
| 1135 | |
| 1136 | * readelf.c (check_archive_index): New function. |
| 1137 | (process_file): Call it. Change signature to take only fd and name. |
| 1138 | Use libdwfl to open the file, then iterate on its modules (multiple |
| 1139 | for an archive) to print file name and call process_elf_file. |
| 1140 | (main): Update caller. Let process_file do elf_begin. |
| 1141 | (count_dwflmod, process_dwflmod, find_no_debuginfo): New functions. |
| 1142 | (process_elf_file): Take only Dwfl_Module * argument. |
| 1143 | Don't print the file name here. |
| 1144 | (print_debug_*_section): Take Dwfl_Module * argument. |
| 1145 | (print_debug): Likewise. Update caller. |
| 1146 | (format_dwarf_addr): New function. |
| 1147 | (print_debug_ranges_section): Use it. |
| 1148 | (attr_callback): Likewise. |
| 1149 | (print_debug_line_section, print_debug_loc_section): Likewise. |
| 1150 | |
| 1151 | * readelf.c (print_debug_ranges_section): Translate all strings. |
| 1152 | (print_debug_loc_section): Likewise. |
| 1153 | |
| 1154 | * unstrip.c (copy_elided_sections): Initialize SEC. |
| 1155 | |
| 1156 | * ar.c (do_oper_insert): Put trailing / on short names. |
| 1157 | |
| 1158 | * arlib.h (MAX_AR_NAME_LEN): Decrease by one. |
| 1159 | |
| 1160 | * arlib2.c (arlib_add_long_name): Adjust for header size. |
| 1161 | |
| 1162 | * arlib.c (arlib_finalize): Pad long name table to keep size even. |
| 1163 | |
| 1164 | * ar.c (do_oper_insert): Use write_retry for padding write. |
| 1165 | |
| 1166 | * ar.c (do_oper_insert): Initialize CUR_OFF in no_old case. |
| 1167 | Unconditionally set FOUND[CNT]->elf when setting ->mem. |
| 1168 | (remember_long_name): New function. |
| 1169 | (do_oper_insert): Call it. Correctly use length of basename, |
| 1170 | not original name. Don't store long name twice for new member. |
| 1171 | |
| 1172 | 2007-10-06 Roland McGrath <roland@redhat.com> |
| 1173 | |
| 1174 | * elflint.c (check_note): Skip empty segment. |
| 1175 | (check_note_section): Skip empty section. |
| 1176 | |
| 1177 | * unstrip.c (options, parse_opt, struct arg_info): Grok -R/--relocate. |
| 1178 | (handle_output_dir_module, handle_implicit_modules): Pass it down. |
| 1179 | (handle_dwfl_module): When set, use ET_REL already loaded by Dwfl. |
| 1180 | (compare_alloc_sections): Take new arg REL, ignore address if true. |
| 1181 | (compare_sections): Likewise, pass it down. |
| 1182 | (compare_sections_rel, compare_sections_nonrel): New functions. |
| 1183 | (find_alloc_sections_prelink, copy_elided_sections): Use them |
| 1184 | instead of compare_sections. |
| 1185 | (sections_match): New function, broken out of ... |
| 1186 | (find_alloc_section): ... here. |
| 1187 | (copy_elided_sections): Reorganize section match-up logic. |
| 1188 | Use sections_match for SHF_ALLOC in ET_REL. |
| 1189 | For ET_REL, let the nonzero sh_addr from the debug file dominate. |
| 1190 | |
| 1191 | * unstrip.c (add_new_section_symbols): Take new arg REL. |
| 1192 | When true, do not update section symbol values. |
| 1193 | (collect_symbols): Likewise. Update section symbols with address |
| 1194 | of chosen output section, not original section. |
| 1195 | (check_symtab_section_symbols, copy_elided_sections): Update callers. |
| 1196 | |
| 1197 | * unstrip.c (compare_alloc_sections): At the same address, preserve |
| 1198 | original section order. |
| 1199 | |
| 1200 | * elflint.c (special_sections): Don't require MERGE|STRINGS for |
| 1201 | .debug_str, it didn't always have them with older tools. |
| 1202 | |
| 1203 | * elflint.c (check_symtab, check_one_reloc): Ignore sh_addr in ET_REL. |
| 1204 | |
| 1205 | 2007-10-05 Roland McGrath <roland@redhat.com> |
| 1206 | |
| 1207 | * elflint.c (check_symtab): Allow SHN_UNDEF _GLOBAL_OFFSET_TABLE_ in |
| 1208 | ET_REL file. |
| 1209 | |
| 1210 | * elflint.c (check_symtab): For _GLOBAL_OFFSET_TABLE_, diagnose |
| 1211 | SHN_UNDEF as "bad section". Use shndx value in messages. |
| 1212 | |
| 1213 | * elflint.c (special_sections): Add ".debug_str". Decrement namelen |
| 1214 | for ".debug" so it matches as a prefix. |
| 1215 | (IS_KNOWN_SPECIAL): New macro. |
| 1216 | (check_sections): Use it for ".plt" match. Cite wrong SHT_NOBITS |
| 1217 | type even under -d, for a .debug* or .shstrtab section. |
| 1218 | |
| 1219 | * readelf.c (print_ops): Use hex for address operand. |
| 1220 | |
| 1221 | 2007-10-04 Roland McGrath <roland@redhat.com> |
| 1222 | |
| 1223 | * unstrip.c (copy_elided_sections): Initialize NDX_SECTION element for |
| 1224 | .gnu_debuglink section to SHN_UNDEF. Drop STT_SECTION symbols for |
| 1225 | sections mapped to SHN_UNDEF. |
| 1226 | |
Ulrich Drepper | 3fc3d7b | 2007-10-04 18:40:28 +0000 | [diff] [blame] | 1227 | 2007-10-04 Ulrich Drepper <drepper@redhat.com> |
| 1228 | |
| 1229 | * readelf.c (dump_archive_index): Avoid warning about uninitialized |
| 1230 | variable with older glibc versions. |
| 1231 | Add some branch prediction. |
| 1232 | |
Roland McGrath | 59ea7f3 | 2007-10-04 08:50:09 +0000 | [diff] [blame] | 1233 | 2007-10-04 Roland McGrath <roland@redhat.com> |
| 1234 | |
| 1235 | * readelf.c (print_archive_index): New variable. |
| 1236 | (options, parse_opt): Accept -c/--archive-index to set it. |
| 1237 | (dump_archive_index): New function. |
| 1238 | (process_file): Take new arg WILL_PRINT_ARCHIVE_INDEX. |
| 1239 | Call dump_archive_index on archives if set. |
| 1240 | (main): Update caller. |
| 1241 | (any_control_option): Give it file scope, moved out of ... |
| 1242 | (parse_opt): ... here. |
| 1243 | |
| 1244 | 2007-10-03 Roland McGrath <roland@redhat.com> |
| 1245 | |
| 1246 | * unstrip.c (struct arg_info): Add `list' flag. |
| 1247 | (options, parse_opt): Grok -n/--list to set it. |
| 1248 | (list_module): New function. |
| 1249 | (handle_implicit_modules): Call it under -n. |
| 1250 | |
| 1251 | * elflint.c (check_note_section): New function. |
| 1252 | (check_sections): Call it for SHT_NOTE. |
| 1253 | |
| 1254 | * readelf.c (handle_notes): Use sections when available. |
| 1255 | |
| 1256 | * elflint.c (check_note_data): New function, broken out of ... |
| 1257 | (check_note): ... here. Call it and elf_getdata_rawchunk. |
| 1258 | |
| 1259 | * readelf.c (handle_auxv_note): Take offset as argument, not buffer. |
| 1260 | Use elf_getdata_rawchunk and gelf_getauxv. |
| 1261 | (handle_notes_data): New function, broken out of ... |
| 1262 | (handle_notes): ... here. Call it and elf_getdata_rawchunk. |
| 1263 | |
Roland McGrath | 241ac02 | 2007-10-01 18:21:46 +0000 | [diff] [blame] | 1264 | 2007-10-01 Roland McGrath <roland@redhat.com> |
| 1265 | |
Roland McGrath | ac0a16c | 2007-10-01 18:50:35 +0000 | [diff] [blame] | 1266 | * readelf.c (hex_dump): Fix transposed subtraction generating spaces. |
| 1267 | |
Roland McGrath | 241ac02 | 2007-10-01 18:21:46 +0000 | [diff] [blame] | 1268 | * readelf.c (hex_dump): Fix line header to be hex instead of decimal. |
| 1269 | |
Roland McGrath | c76f0b0 | 2007-09-27 07:31:33 +0000 | [diff] [blame] | 1270 | 2007-09-10 Roland McGrath <roland@redhat.com> |
| 1271 | |
| 1272 | * readelf.c (options): Give -p optional argument, alias --string-dump. |
| 1273 | (string_sections, string_sections_tail): New static variables. |
| 1274 | (parse_opt): Set them when -p has an argument. |
| 1275 | (print_string_section): New function, broken out of ... |
| 1276 | (print_strings): ... here. Call it. |
| 1277 | (dump_data_section): New function, broken out of ... |
| 1278 | (dump_data): ... here. Call it. |
| 1279 | (for_each_section_argument): New function, broken out of ... |
| 1280 | (dump_data): ... here. Call it. |
| 1281 | (dump_strings): New function. |
| 1282 | |
| 1283 | 2007-08-31 Roland McGrath <roland@redhat.com> |
| 1284 | |
| 1285 | * readelf.c (print_strings): Typo fix. |
| 1286 | |
Roland McGrath | cb6d865 | 2007-08-23 08:10:54 +0000 | [diff] [blame] | 1287 | 2007-08-23 Roland McGrath <roland@redhat.com> |
| 1288 | |
| 1289 | * readelf.c (printf_with_wrap): Function removed. |
| 1290 | (REGISTER_WRAP_COLUMN): New macro. |
| 1291 | (handle_core_register): Use print_core_item instead. |
| 1292 | (struct register_info): New type. |
| 1293 | (compare_registers, compare_register_sets): New functions. |
| 1294 | (register_bitpos, compare_sets_by_info): New functions. |
| 1295 | (handle_core_registers): Use those to segregate and sort registers |
| 1296 | for display. |
| 1297 | |
| 1298 | * readelf.c (ITEM_WRAP_COLUMN): New macro. |
| 1299 | (print_core_item): New function. |
| 1300 | (handle_core_item): Use it instead of printf_with_wrap. |
| 1301 | (compare_core_items, compare_core_item_groups): New functions. |
| 1302 | (handle_core_items): Use them. Sort by group and force line breaks |
| 1303 | between groups. |
| 1304 | |
| 1305 | * readelf.c (handle_core_registers, handle_core_items): New functions, |
| 1306 | broken out of ... |
| 1307 | (handle_core_note): ... here. Call them. |
| 1308 | |
| 1309 | 2007-08-22 Roland McGrath <roland@redhat.com> |
| 1310 | |
| 1311 | * unstrip.c (new_shstrtab): New function, broken out of ... |
| 1312 | (copy_elided_sections): ... here. |
| 1313 | |
| 1314 | 2007-08-20 Roland McGrath <roland@redhat.com> |
| 1315 | |
| 1316 | Avoid local function trampolines in nm binary. |
| 1317 | * nm.c (sort_by_address): Move to a static function instead of local |
| 1318 | inside show_symbols. |
| 1319 | (sort_by_name_strtab): New static variable. |
| 1320 | (sort_by_name): Use it. Move to a static function instead of local |
| 1321 | inside show_symbols. |
| 1322 | (show_symbols): Set sort_by_name_strtab. |
| 1323 | |
| 1324 | 2007-08-19 Roland McGrath <roland@redhat.com> |
| 1325 | |
| 1326 | * readelf.c (handle_auxv_note): New function. |
| 1327 | (handle_notes): Call it. |
| 1328 | |
| 1329 | * readelf.c (printf_with_wrap, convert): New functions. |
| 1330 | (handle_core_item, (handle_core_register): New functions. |
| 1331 | (handle_notes): Call those with details from ebl_core_note. |
| 1332 | |
Roland McGrath | 099dd52 | 2007-08-13 22:58:36 +0000 | [diff] [blame] | 1333 | 2007-08-12 Roland McGrath <roland@redhat.com> |
| 1334 | |
| 1335 | * elflint.c (check_note): Accept type 0 with name "Linux". |
| 1336 | |
| 1337 | * elflint.c (special_sections): Accept SHF_ALLOC for ".note". |
| 1338 | |
| 1339 | * elflint.c (section_flags_string): Return "none" for 0, not "". |
| 1340 | |
Roland McGrath | d822172 | 2007-08-11 21:18:09 +0000 | [diff] [blame] | 1341 | 2007-08-11 Roland McGrath <roland@redhat.com> |
| 1342 | |
| 1343 | * elflint.c (check_note): Accept NT_GNU_HWCAP, NT_GNU_BUILD_ID. |
| 1344 | |
Ulrich Drepper | c98bcc7 | 2007-08-04 17:06:14 +0000 | [diff] [blame] | 1345 | 2007-08-04 Ulrich Drepper <drepper@redhat.com> |
| 1346 | |
| 1347 | * readelf.c (hex_dump): Use isprint to determine whether to print |
| 1348 | character itself or full stop character. |
| 1349 | (dump_data): No need to check endp for NULL after strtol call. |
| 1350 | |
Roland McGrath | 60fc84c | 2007-08-03 21:59:15 +0000 | [diff] [blame] | 1351 | 2007-08-03 Roland McGrath <roland@redhat.com> |
| 1352 | |
| 1353 | * readelf.c (print_string_sections): New variable. |
| 1354 | (options, parse_opt): Handle --strings/-p to set it. |
| 1355 | (print_strings): New function. |
| 1356 | (process_elf_file): Call it under -p. |
| 1357 | |
| 1358 | * readelf.c (options): Add hidden aliases --segments, --sections, |
| 1359 | as taken by binutils readelf. |
| 1360 | |
| 1361 | 2007-08-01 Roland McGrath <roland@redhat.com> |
| 1362 | |
| 1363 | * readelf.c (dump_data_sections, dump_data_sections_tail): |
| 1364 | New variables. |
| 1365 | (options, parse_opt): Handle --hex-dump/-x, set them. |
| 1366 | (hex_dump): New function. |
| 1367 | (dump_data): New function, call it. |
| 1368 | (process_elf_file): Call it. |
| 1369 | |
| 1370 | 2007-07-25 Roland McGrath <roland@redhat.com> |
| 1371 | |
| 1372 | * addr2line.c (show_symbols): New variable. |
| 1373 | (print_addrsym): New function. |
| 1374 | (handle_address): Call it. |
| 1375 | (options, parse_opt): Handle -S/--symbols. |
| 1376 | |
Ulrich Drepper | b024386 | 2007-06-06 00:09:36 +0000 | [diff] [blame] | 1377 | 2007-06-05 Ulrich Drepper <drepper@redhat.com> |
| 1378 | |
| 1379 | * addr2line.c: Update for latest autoconf header. |
| 1380 | * ar.c: Likewise. |
| 1381 | * elfcmp.c: Likewise. |
| 1382 | * elflint.c: Likewise. |
| 1383 | * findtextrel.c: Likewise. |
| 1384 | * ld.c: Likewise. |
| 1385 | * ldgeneric.c: Likewise. |
| 1386 | * nm.c: Likewise. |
| 1387 | * objdump.c: Likewise. |
| 1388 | * ranlib.c: Likewise. |
| 1389 | * readelf.c: Likewise. |
| 1390 | * size.c: Likewise. |
| 1391 | * strings.c: Likewise. |
| 1392 | * strip.c: Likewise. |
| 1393 | * unstrip.c: Likewise. |
| 1394 | |
Roland McGrath | 9aa8ef7 | 2007-05-18 08:59:43 +0000 | [diff] [blame] | 1395 | 2007-05-18 Roland McGrath <roland@redhat.com> |
| 1396 | |
| 1397 | * unstrip.c (copy_elided_sections): Match up non-NOBITS sections with |
| 1398 | stripped file, so as not to duplicate a section copied in both. |
| 1399 | |
| 1400 | * strip.c (handle_elf): Keep SHT_NOTE section copies in the debug file. |
| 1401 | |
| 1402 | 2007-05-17 Roland McGrath <roland@redhat.com> |
| 1403 | |
| 1404 | * unstrip.c (copy_elided_sections): Don't call gelf_newphdr for 0. |
| 1405 | |
| 1406 | * unstrip.c (handle_file): Tweak BIAS != 0 warning. |
| 1407 | |
| 1408 | * unstrip.c (handle_file): Take new arg CREATE_DIRS. If set, |
| 1409 | call make_directories here. |
| 1410 | (handle_explicit_files): Take new arg CREATE_DIRS, pass it down. |
| 1411 | (handle_dwfl_module): Likewise. |
| 1412 | (handle_implicit_modules): Update callers. |
| 1413 | (handle_output_dir_module): Likewise. Don't do make_directories here. |
| 1414 | |
| 1415 | * unstrip.c (get_section_name): New function, broken out of ... |
| 1416 | (copy_elided_sections): here. Update callers. |
| 1417 | (find_alloc_section): Broken out of ... |
| 1418 | (copy_elided_sections): ... here. Update caller. |
| 1419 | (symtab_count_leading_section_symbols): Take new arg NEWSYMDATA, |
| 1420 | update STT_SECTION symbols' st_value fields as a side effect. |
| 1421 | (check_symtab_section_symbols): Update caller. |
| 1422 | (add_new_section_symbols): Set st_value in symbols added. |
| 1423 | (collect_symbols): Reset S->value for STT_SECTION symbols recorded. |
| 1424 | Take new arg SPLIT_BSS. Adjust S->shndx recorded for symbols moved |
| 1425 | from .bss to .dynbss. |
| 1426 | (find_alloc_sections_prelink): New function. Associate debug file |
| 1427 | allocated SHT_NOBITS shdrs with stripped moved by prelink via |
| 1428 | .gnu.prelink_undo information. |
| 1429 | (copy_elided_sections): Call it when we couldn't find every allocated |
| 1430 | section. Don't use a debug file non-NOBITS section if SHF_ALLOC. |
| 1431 | Take STRIPPED_EHDR arg instead of E_TYPE and PHNUM. |
| 1432 | (handle_file): Update callers. |
| 1433 | |
| 1434 | * unstrip.c (copy_elided_sections): Ignore unfound unallocated section |
| 1435 | named ".comment". |
| 1436 | |
| 1437 | * elflint.c (check_sections): Fix association of segments with |
| 1438 | sections when p_memsz > p_filesz. |
| 1439 | |
| 1440 | 2007-04-29 Roland McGrath <roland@redhat.com> |
| 1441 | |
| 1442 | * addr2line.c (options, main): Tweak argp group settings to fix |
| 1443 | usage output. |
| 1444 | |
| 1445 | 2007-04-28 Roland McGrath <roland@redhat.com> |
| 1446 | |
| 1447 | * strip.c (handle_elf): Update debug file's SHT_NOBITS sections' |
| 1448 | sizes to match sections adjusted in the stripped file. |
| 1449 | |
Roland McGrath | 4be1524 | 2007-04-25 03:09:33 +0000 | [diff] [blame] | 1450 | 2007-04-24 Roland McGrath <roland@redhat.com> |
| 1451 | |
| 1452 | * elfcmp.c (OPT_HASH_INEXACT): New macro. |
| 1453 | (hash_inexact): New variable. |
| 1454 | (options, parse_opt): Add --hash-inexact option to set it. |
| 1455 | (hash_content_equivalent): New function. |
| 1456 | (main): Call it for differing SHT_HASH sections under --hash-inexact. |
| 1457 | |
| 1458 | 2007-04-23 Roland McGrath <roland@redhat.com> |
| 1459 | |
| 1460 | * unstrip.c: New file. |
| 1461 | * Makefile.am (bin_PROGRAMS): Add it. |
| 1462 | (unstrip_LDADD): New variable. |
| 1463 | |
| 1464 | * strip.c (options): Allow --output for -o. |
| 1465 | |
Ulrich Drepper | 8b38310 | 2007-02-16 00:31:57 +0000 | [diff] [blame] | 1466 | 2007-02-15 Ulrich Drepper <drepper@redhat.com> |
| 1467 | |
| 1468 | * readelf.c: Remove unused code. Add a few consts. |
| 1469 | |
Ulrich Drepper | 903c116 | 2007-02-15 19:40:37 +0000 | [diff] [blame] | 1470 | 2007-02-15 Roland McGrath <roland@redhat.com> |
| 1471 | |
| 1472 | * readelf.c (print_debug): Fix brainos in SHDR test. |
| 1473 | |
Roland McGrath | f82a1ec | 2007-02-06 04:47:44 +0000 | [diff] [blame] | 1474 | 2007-02-05 Roland McGrath <roland@redhat.com> |
| 1475 | |
| 1476 | * ar.c: Include <limits.h>, since we use LONG_MAX. |
| 1477 | |
Ulrich Drepper | 0fe6353 | 2007-02-05 21:05:51 +0000 | [diff] [blame] | 1478 | 2007-02-05 Ulrich Drepper <drepper@redhat.com> |
| 1479 | |
Ulrich Drepper | 8b38310 | 2007-02-16 00:31:57 +0000 | [diff] [blame] | 1480 | * ar.c: Add ugly hack to work around gcc complaining that we |
Ulrich Drepper | 93ab56f | 2007-02-05 22:12:41 +0000 | [diff] [blame] | 1481 | ignore fchown's return value. |
| 1482 | (do_oper_insert): Handle error when writing padding. |
| 1483 | * ranlib.c: Add fchown complain work around. |
| 1484 | |
Ulrich Drepper | 0fe6353 | 2007-02-05 21:05:51 +0000 | [diff] [blame] | 1485 | * arlib.c: Make symtab a global variable. Change all users. |
| 1486 | * arlib2.c: Likewise. |
| 1487 | * ranlib.c: Likewise. |
| 1488 | * ar.c: Likewise. |
| 1489 | * arlib.h: Declare it. |
| 1490 | |
Ulrich Drepper | aa915fd | 2007-02-05 07:25:33 +0000 | [diff] [blame] | 1491 | 2007-01-11 Roland McGrath <roland@redhat.com> |
| 1492 | |
| 1493 | * elflint.c (check_sections): Use ebl_machine_section_flag_check on |
| 1494 | SHF_MASKPROC bits separately from generic sh_flags validation. |
| 1495 | |
Ulrich Drepper | ce0bdb6 | 2007-02-05 07:13:52 +0000 | [diff] [blame] | 1496 | 2007-02-04 Ulrich Drepper <drepper@redhat.com> |
| 1497 | |
| 1498 | * ar.c: New file. |
| 1499 | * arlib.c: New file. |
| 1500 | * arlib2.c: New file. |
| 1501 | * arlib.h: New file. |
| 1502 | * Makefile (noinst_LIBRARIES): Add libar. |
| 1503 | (libar_a_SOURCES): Define. |
| 1504 | (ar_LDADD): Define. |
| 1505 | (CFLAGS_ar): Define. |
| 1506 | * ranlib.c: Change to use arlib. |
| 1507 | |
| 1508 | * elflint.c (check_symtab): Work around GNU ld bug which omits |
| 1509 | sections but not symbols in those sections. |
| 1510 | |
Ulrich Drepper | b770cf9 | 2007-01-10 21:02:34 +0000 | [diff] [blame] | 1511 | 2007-01-10 Ulrich Drepper <drepper@redhat.com> |
| 1512 | |
| 1513 | * addr2line.c: Update copyright year. |
| 1514 | * elfcmp.c: Likewise. |
| 1515 | * elflint.c: Likewise. |
| 1516 | * findtextrel.c: Likewise. |
| 1517 | * ld.c: Likewise. |
| 1518 | * nm.c: Likewise. |
| 1519 | * objdump.c: Likewise. |
| 1520 | * ranlib.c: Likewise. |
| 1521 | * readelf.c: Likewise. |
| 1522 | * size.c: Likewise. |
| 1523 | * strings.c: Likewise. |
| 1524 | * strip.c: Likewise. |
| 1525 | |
Ulrich Drepper | 7c0e79f | 2006-12-09 21:10:19 +0000 | [diff] [blame] | 1526 | 2006-12-09 Ulrich Drepper <drepper@redhat.com> |
| 1527 | |
| 1528 | * elflint.c (compare_hash_gnu_hash): New function. Report if the |
| 1529 | two hash tables have different content (module expected omission |
| 1530 | of undefined symbols). |
| 1531 | |
Roland McGrath | 8190db6 | 2006-12-17 23:56:51 +0000 | [diff] [blame] | 1532 | 2006-10-31 Roland McGrath <roland@redhat.com> |
| 1533 | |
| 1534 | * elflint.c (check_program_header): Don't complain about |
Ulrich Drepper | 56bc0b8 | 2006-12-18 22:38:08 +0000 | [diff] [blame] | 1535 | p_filesz > p_memsz if p_memsz is zero and p_type is PT_NOTE. |
Roland McGrath | 8190db6 | 2006-12-17 23:56:51 +0000 | [diff] [blame] | 1536 | |
| 1537 | 2006-09-19 Jakub Jelinek <jakub@redhat.com> |
| 1538 | |
| 1539 | * strip.c (process_file): Disallow -f on archives. |
| 1540 | |
| 1541 | 2006-10-09 Roland McGrath <roland@redhat.com> |
| 1542 | |
| 1543 | * Makefile.am (libld_elf_i386.so): Use $(LINK), not $(CC). |
| 1544 | |
Roland McGrath | c373d85 | 2006-10-10 00:25:21 +0000 | [diff] [blame] | 1545 | 2006-08-29 Roland McGrath <roland@redhat.com> |
| 1546 | |
| 1547 | * Makefile.am (MAINTAINERCLEANFILES): New variable. |
| 1548 | |
| 1549 | * readelf.c (handle_relocs_rel): Typo fix, test DESTSHDR properly. |
| 1550 | Reported by Christian Aichinger <Greek0@gmx.net>. |
| 1551 | |
| 1552 | * elflint.c (valid_e_machine): Add EM_ALPHA. |
| 1553 | Reported by Christian Aichinger <Greek0@gmx.net>. |
| 1554 | |
Ulrich Drepper | 231c590 | 2006-08-08 22:00:11 +0000 | [diff] [blame] | 1555 | 2006-08-08 Ulrich Drepper <drepper@redhat.com> |
| 1556 | |
| 1557 | * elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB. |
| 1558 | Keep track of which "high DT" entries are present. |
| 1559 | Check that either old or GNU-style hash table is present. |
| 1560 | If GNU-style hash table is used a symbol table is mandatory. |
| 1561 | Check that if any prelink entry is present all of them are. |
| 1562 | (check_gnu_hash): Only fail for undefined symbols in GNU-style hash |
| 1563 | table if they don't refer to functions. |
| 1564 | |
Roland McGrath | 858b189 | 2006-07-17 08:41:15 +0000 | [diff] [blame] | 1565 | 2006-07-17 Roland McGrath <roland@redhat.com> |
| 1566 | |
| 1567 | * elflint.c (struct version_namelist): Use GElf_Versym for `ndx' field. |
| 1568 | (add_version): Likewise for argument. |
| 1569 | (check_versym): Cast constant to GElf_Versym for comparison. |
| 1570 | |
Roland McGrath | 4ec807e | 2006-07-13 03:59:46 +0000 | [diff] [blame] | 1571 | 2006-07-12 Roland McGrath <roland@redhat.com> |
| 1572 | |
| 1573 | * readelf.c (handle_gnu_hash): Add casts for machines where |
| 1574 | Elf32_Word != unsigned int. |
| 1575 | |
Ulrich Drepper | dcf6160 | 2006-07-12 19:59:02 +0000 | [diff] [blame] | 1576 | 2006-07-12 Ulrich Drepper <drepper@redhat.com> |
| 1577 | |
| 1578 | * elflint.c (check_sysv_hash64): Fix printf format. |
| 1579 | |
Ulrich Drepper | cc41562 | 2006-07-12 19:42:23 +0000 | [diff] [blame] | 1580 | 2006-07-11 Roland McGrath <roland@redhat.com> |
Ulrich Drepper | 8ae5814 | 2006-07-12 05:22:32 +0000 | [diff] [blame] | 1581 | |
Ulrich Drepper | cc41562 | 2006-07-12 19:42:23 +0000 | [diff] [blame] | 1582 | * addr2line.c (options): English fix in -f doc string. |
| 1583 | |
| 1584 | * addr2line.c (use_comp_dir): New variable. |
| 1585 | (options, parse_opt): Grok -A/--absolute to set it. |
| 1586 | (handle_address): If set, prepend dwfl_line_comp_dir results to |
| 1587 | relative file names. |
Ulrich Drepper | 8ae5814 | 2006-07-12 05:22:32 +0000 | [diff] [blame] | 1588 | |
Ulrich Drepper | 28ed895 | 2006-07-07 03:43:47 +0000 | [diff] [blame] | 1589 | 2006-07-06 Ulrich Drepper <drepper@redhat.com> |
| 1590 | |
| 1591 | * elflint.c: Adjust for latest new hash table format. |
| 1592 | * readelf.c: Likewise. |
| 1593 | |
| 1594 | * elflint.c (check_versym): Ignore hidden bit when comparing version |
| 1595 | numbers. |
| 1596 | |
| 1597 | 2006-07-05 Ulrich Drepper <drepper@redhat.com> |
| 1598 | |
| 1599 | * ldgeneric.c (ld_generic_create_outfile): Correctly recognize |
| 1600 | discarded COMDAT symbols. |
| 1601 | |
| 1602 | * i386_ld.c (elf_i386_count_relocations): Lot of corrections. |
| 1603 | (elf_i386_create_relocations): Likewise. |
| 1604 | * ld.h (struct symbol): Add local and hidden bits. |
| 1605 | * ld.c (create_special_section_symbol): These synthsized symbols |
| 1606 | are local and hidden. |
| 1607 | * ldgeneric.c (file_process2): Check whether input file matches |
| 1608 | the emulation. |
| 1609 | (fillin_special_symbol): Create symbols as local and/or hidden |
| 1610 | if requested. |
| 1611 | (ld_generic_create_outfile): Make local copy of symbol. |
| 1612 | Don't hide global, defined symbols in dynamic symbol table unless |
| 1613 | requested. Synthetic symbols have no version information. |
| 1614 | |
| 1615 | * elflint.c: Add support for checking 64-bit SysV-style hash tables. |
| 1616 | * readelf.c: Add support for printing 64-bit SysV-style hash tables. |
| 1617 | |
| 1618 | 2006-07-04 Ulrich Drepper <drepper@redhat.com> |
| 1619 | |
| 1620 | * elflint.c (is_rel_dyn): Fix and extend DT_RELCOUNT/DT_RELACOUNT |
| 1621 | testing. |
| 1622 | |
| 1623 | 2006-07-03 Ulrich Drepper <drepper@redhat.com> |
| 1624 | |
| 1625 | * elflint.c: Add testing of DT_GNU_HASH. |
| 1626 | * readelf.c: Implement showing histogram for DT_GNU_HASH section. |
| 1627 | |
| 1628 | * Makefile.am: Add hacks to create dependency files for non-generic |
| 1629 | linker. |
| 1630 | |
Ulrich Drepper | 6ca4600 | 2006-06-12 22:40:23 +0000 | [diff] [blame] | 1631 | 2006-06-12 Ulrich Drepper <drepper@redhat.com> |
| 1632 | |
| 1633 | * ldgeneric.c (ld_generic_generate_sections): Don't create .interp |
| 1634 | section if creating a DSO and no interpreter is given. |
| 1635 | (ld_generic_create_outfile): Don't store reference to symbols in |
| 1636 | discarded COMDAT groups. Don't create PHDR and INTERP program header |
| 1637 | for DSO if no interpreter is specified. |
Ulrich Drepper | 595d0e7 | 2006-06-12 23:25:17 +0000 | [diff] [blame] | 1638 | (create_verneed_data): Pretty printing. |
| 1639 | |
Ulrich Drepper | 6ca4600 | 2006-06-12 22:40:23 +0000 | [diff] [blame] | 1640 | * ldscript.y (content): If a DSO is created don't set default |
| 1641 | interpreter from linker script. |
| 1642 | |
| 1643 | * i386_ld.c (elf_i386_count_relocations): Do not add relocations |
| 1644 | for symbols in discarded COMDAT groups. |
| 1645 | (elf_i386_create_relocations): Likewise. |
| 1646 | * ld.h (struct scninfo): Add unused_comdat. |
| 1647 | * ldgeneric.c (add_section): Also check group signature when |
| 1648 | matching COMDAT sections. |
| 1649 | (add_relocatable_file): Ignore symbols in COMDAT group which are |
| 1650 | discarded. |
| 1651 | |
| 1652 | * elflint.c (check_one_reloc): For *_NONE relocs only check type |
| 1653 | and symbol reference. |
| 1654 | |
Ulrich Drepper | 54f33a7 | 2006-06-11 09:07:37 +0000 | [diff] [blame] | 1655 | 2006-06-11 Ulrich Drepper <drepper@redhat.com> |
| 1656 | |
Ulrich Drepper | cbb51e5 | 2006-06-11 20:25:23 +0000 | [diff] [blame] | 1657 | * elflint.c (check_dynamic): Fix checking value of tags which are |
| 1658 | offsets in the string section. Make sure DT_STRTAB points to the |
| 1659 | section referenced in sh_link. |
| 1660 | |
| 1661 | * ld.c (options): Add headers. Add short option 'R' for '--rpath'. |
| 1662 | |
Ulrich Drepper | 54f33a7 | 2006-06-11 09:07:37 +0000 | [diff] [blame] | 1663 | * ld.c: Recognize --eh-frame-hdr option. |
| 1664 | * ld.h (struct ld_state): Add eh_frame_hdr field. |
| 1665 | * ldgeneric.c (struct unw_eh_frame_hdr): Define. |
| 1666 | |
| 1667 | * ldgeneric.c (add_section): Use ebl_sh_flags_combine instead of |
| 1668 | SH_FLAGS_COMBINE. |
| 1669 | (add_relocatable_file): Minor optimization of last change. |
| 1670 | (match_section): Don't preserve SHF_GROUP flag any longer. |
| 1671 | |
Ulrich Drepper | 2d88028 | 2006-06-11 00:20:43 +0000 | [diff] [blame] | 1672 | 2006-06-10 Ulrich Drepper <drepper@redhat.com> |
| 1673 | |
| 1674 | * ld.c (parse_z_option): Recognize execstack and noexecstack. |
Ulrich Drepper | 4f0a7a8 | 2006-06-11 00:53:45 +0000 | [diff] [blame] | 1675 | Handle record and ignore as position dependent options. |
| 1676 | (parse_z_option_2): Handle ignore and record here. |
Ulrich Drepper | 2d88028 | 2006-06-11 00:20:43 +0000 | [diff] [blame] | 1677 | * ld.h (struct ld_state): Add execstack field. |
| 1678 | * ldgeneric.c (add_relocatable_file): Recognize .note.GNU-stack |
| 1679 | sections. |
| 1680 | (ld_generic_create_outfile): Fix program header creation in native |
| 1681 | linker. Add PT_GNU_STACK program header. |
| 1682 | |
Ulrich Drepper | a688a73 | 2006-06-10 06:33:00 +0000 | [diff] [blame] | 1683 | 2006-06-09 Ulrich Drepper <drepper@redhat.com> |
| 1684 | |
| 1685 | * i386_ld.c (elf_i386_finalize_plt): Don't change symbol table entries |
| 1686 | for PLT entries if there is no local definition. |
| 1687 | |
| 1688 | * ld.c (parse_option): Handle -z ignore like --as-needed and |
| 1689 | -z record like --no-as-needed. |
| 1690 | * ld.h (struct ld_state): Remove ignore_unused_dsos field. |
| 1691 | * ldgeneric.c (new_generated_scn): Always compute ndt_needed by |
| 1692 | looping over DSOs. When deciding about adding DT_NEEDED entries |
| 1693 | use ->as_needed instead of ignore_unused_dsos. |
| 1694 | |
Ulrich Drepper | 8c56fe3 | 2006-05-31 15:50:43 +0000 | [diff] [blame] | 1695 | 2006-05-31 Ulrich Drepper <drepper@redhat.com> |
Ulrich Drepper | 11b030e | 2006-05-28 20:28:19 +0000 | [diff] [blame] | 1696 | |
Ulrich Drepper | 8c56fe3 | 2006-05-31 15:50:43 +0000 | [diff] [blame] | 1697 | * ld.c: Recognize --as-needed and --no-as-needed options. |
| 1698 | * ld.h (struct usedfile): Add as_needed field. |
| 1699 | (struct ld_state): Likewise. |
| 1700 | * ldgeneric.c (ld_handle_filename_list): Copy as_needed flag from |
| 1701 | the list. |
| 1702 | * ldscript.y (filename_id_list): Split to correctly parse all |
| 1703 | combinations. |
| 1704 | (mark_as_needed): Fix loop. |
Ulrich Drepper | 11b030e | 2006-05-28 20:28:19 +0000 | [diff] [blame] | 1705 | |
Ulrich Drepper | 697f4db | 2006-06-10 06:50:47 +0000 | [diff] [blame] | 1706 | 2006-05-28 Ulrich Drepper <drepper@redhat.com> |
| 1707 | |
| 1708 | * addr2line.c (print_dwarf_function): Use unsigned type for lineno |
| 1709 | and colno. |
| 1710 | |
Ulrich Drepper | 2cb8e73 | 2006-05-27 21:57:27 +0000 | [diff] [blame] | 1711 | 2006-05-27 Ulrich Drepper <drepper@redhat.com> |
| 1712 | |
| 1713 | * readelf.c (handle_relocs_rela): Better notations for addon value. |
Ulrich Drepper | 41a9908 | 2006-05-28 00:01:43 +0000 | [diff] [blame] | 1714 | (print_ehdr): Distinguish e_ident[EI_VERSION] from e_version. |
Ulrich Drepper | 2cb8e73 | 2006-05-27 21:57:27 +0000 | [diff] [blame] | 1715 | |
Ulrich Drepper | 82c345d | 2006-04-04 22:07:54 +0000 | [diff] [blame] | 1716 | 2006-04-04 Ulrich Drepper <drepper@redhat.com> |
| 1717 | |
| 1718 | * addr2line.c: Update copyright year. |
| 1719 | * elfcmp.c: Likewise. |
| 1720 | * elflint.c: Likewise. |
| 1721 | * findtextrel.c: Likewise. |
| 1722 | * ld.c: Likewise. |
| 1723 | * nm.c: Likewise. |
| 1724 | * objdump.c: Likewise. |
| 1725 | * ranlib.c: Likewise. |
| 1726 | * readelf.c: Likewise. |
| 1727 | * size.c: Likewise. |
| 1728 | * strings.c: Likewise. |
| 1729 | * strip.c: Likewise. |
| 1730 | |
Roland McGrath | dd7e22b | 2006-03-09 23:05:47 +0000 | [diff] [blame] | 1731 | 2006-03-09 Roland McGrath <roland@redhat.com> |
| 1732 | |
| 1733 | * Makefile.am (AM_LDFLAGS): New variable. |
| 1734 | |
Roland McGrath | 060fa05 | 2006-03-02 07:51:50 +0000 | [diff] [blame] | 1735 | 2006-03-01 Roland McGrath <roland@redhat.com> |
| 1736 | |
| 1737 | * readelf.c (dwarf_tag_string, dwarf_attr_string): Update name tables |
| 1738 | for dwarf.h changes matching 3.0 spec. |
| 1739 | (dwarf_encoding_string, dwarf_lang_string, print_ops): Likewise. |
| 1740 | |
Ulrich Drepper | 038129b | 2005-12-04 16:47:24 +0000 | [diff] [blame] | 1741 | 2005-12-04 Ulrich Drepper <drepper@redhat.com> |
| 1742 | |
| 1743 | * elflint.c (check_one_reloc): If relocation section is not loaded, |
| 1744 | don't check whether the relocations modify read-only sections or |
| 1745 | loaded and unloaded sections. |
| 1746 | |
Ulrich Drepper | 607e054 | 2005-12-04 15:51:06 +0000 | [diff] [blame] | 1747 | 2005-11-28 Ulrich Drepper <drepper@redhat.com> |
| 1748 | |
| 1749 | * elflint.c (check_one_reloc): Take additional parameters. Use |
| 1750 | them to determine whether relocation is valid in this type of |
| 1751 | file. DSOs and executables can contain relocation sections in |
| 1752 | unloaded sections which just show the relocations the linker |
| 1753 | applied. Adjust all callers. |
| 1754 | (check_program_header): Check that PT_PHDR is loaded and that offset |
| 1755 | matches the one in the ELF header. |
| 1756 | |
Roland McGrath | 6724c90 | 2005-10-28 07:07:19 +0000 | [diff] [blame] | 1757 | 2005-10-26 Roland McGrath <roland@redhat.com> |
| 1758 | |
| 1759 | * nm.c (get_var_range): dwarf_getloclist -> dwarf_getlocation. |
| 1760 | |
Ulrich Drepper | d044952 | 2005-09-03 07:23:52 +0000 | [diff] [blame] | 1761 | 2005-09-03 Ulrich Drepper <drepper@redhat.com> |
| 1762 | |
Ulrich Drepper | e3f9b7d | 2005-09-03 16:42:46 +0000 | [diff] [blame] | 1763 | * strip.c (handle_elf): Unify some error messages. |
| 1764 | * ld.c (main): Likewise. |
| 1765 | * ldgeneric.c (open_elf): Likewise. |
| 1766 | * elfcmp.c (main): Likewise. |
| 1767 | * elflint.c (check_elf_header): Likewise. |
| 1768 | |
| 1769 | * size.c (process_file): Fix typo in error message. |
| 1770 | |
Ulrich Drepper | d044952 | 2005-09-03 07:23:52 +0000 | [diff] [blame] | 1771 | * readelf.c: Lots of little cleanups. Use _unlocked functions. |
| 1772 | |
Ulrich Drepper | a60501e | 2005-09-02 19:50:17 +0000 | [diff] [blame] | 1773 | 2005-09-02 Ulrich Drepper <drepper@redhat.com> |
| 1774 | |
Ulrich Drepper | e3f9b7d | 2005-09-03 16:42:46 +0000 | [diff] [blame] | 1775 | * strings.c (main): Reset elfmap variable after munmap call. |
Ulrich Drepper | 618795f | 2005-09-02 20:01:37 +0000 | [diff] [blame] | 1776 | [_MUDFLAP] (map_file): Simplify mudflap debugging by not using mmap. |
Ulrich Drepper | a60501e | 2005-09-02 19:50:17 +0000 | [diff] [blame] | 1777 | |
Ulrich Drepper | fbe998a | 2005-08-29 16:27:10 +0000 | [diff] [blame] | 1778 | 2005-08-28 Ulrich Drepper <drepper@redhat.com> |
| 1779 | |
| 1780 | * ranlib.c: Don't define pread_retry and write_retry here. |
| 1781 | |
| 1782 | * Makefile.an [BUILD_STATIC] (libdw): Add -ldl. |
| 1783 | (CLEANFILES): Add *.gcno *.gcda *.gconv. |
| 1784 | |
| 1785 | * strings.c (process_chunk): Reorder expressions in conditional |
| 1786 | (process_chunk_mb): Likewise. |
| 1787 | |
| 1788 | * strings.c: New file. |
| 1789 | * Makefile.am (bin_PROGRAMS): Add strings. |
| 1790 | (strings_no_Wstring): Define. |
| 1791 | (strings_LDADD): Define. |
| 1792 | |
Roland McGrath | 71e15a0 | 2005-08-27 10:33:26 +0000 | [diff] [blame] | 1793 | 2005-08-27 Roland McGrath <roland@redhat.com> |
| 1794 | |
| 1795 | * addr2line.c (dwarf_diename_integrate): Function removed. |
| 1796 | (print_dwarf_function): Use plain dwarf_diename. |
| 1797 | |
Ulrich Drepper | c5a06cd | 2005-08-24 19:50:14 +0000 | [diff] [blame] | 1798 | 2005-08-24 Ulrich Drepper <drepper@redhat.com> |
| 1799 | |
| 1800 | * elflint.c (check_versym): Versioned symbols should not have |
| 1801 | local binding. |
| 1802 | |
Ulrich Drepper | 5d83229 | 2005-08-15 21:36:27 +0000 | [diff] [blame] | 1803 | 2005-08-15 Ulrich Drepper <drepper@redhat.com> |
| 1804 | |
Ulrich Drepper | 61655e0 | 2005-08-16 04:23:02 +0000 | [diff] [blame] | 1805 | * elflint.c (check_versym): Allow VER_NDX_LOCAL symbols to be |
| 1806 | undefined. |
| 1807 | |
Ulrich Drepper | 5d83229 | 2005-08-15 21:36:27 +0000 | [diff] [blame] | 1808 | * Makefile.am: Add rules to build ranlib. |
| 1809 | * ranlib.c: New file. |
| 1810 | |
Roland McGrath | 18e1342 | 2005-08-15 08:01:25 +0000 | [diff] [blame] | 1811 | 2005-08-14 Roland McGrath <roland@redhat.com> |
| 1812 | |
| 1813 | * elflint.c (check_sections): Use ebl_section_type_name and allow any |
| 1814 | sh_type it recognizes. |
| 1815 | |
| 1816 | * elflint.c (check_sections): Print unknown flags in hex, don't |
| 1817 | truncate high bits. Print section number and name for unknown type. |
| 1818 | |
Roland McGrath | f689504 | 2005-08-13 20:56:52 +0000 | [diff] [blame] | 1819 | 2005-08-13 Roland McGrath <roland@redhat.com> |
| 1820 | |
| 1821 | * elflint.c (check_program_header): Use ebl_segment_type_name and |
| 1822 | allow any p_type it recognizes. Include p_type value in error |
| 1823 | message for unknown type. |
| 1824 | |
Ulrich Drepper | c5c33a6 | 2005-08-13 17:50:47 +0000 | [diff] [blame] | 1825 | 2005-08-13 Ulrich Drepper <drepper@redhat.com> |
| 1826 | |
| 1827 | * elflint.c (check_symtab): Simplify last change a bit. Pass ehdr |
| 1828 | to ebl_check_special_symbol. |
| 1829 | (check_sections): Pass ehdr to ebl_bss_plt_p. |
| 1830 | |
Roland McGrath | 653d376 | 2005-08-13 01:59:10 +0000 | [diff] [blame] | 1831 | 2005-08-12 Roland McGrath <roland@redhat.com> |
| 1832 | |
| 1833 | * elflint.c (check_symtab): Check that _GLOBAL_OFFSET_TABLE_ st_shndx |
| 1834 | refers to the right section if it's not SHN_ABS. |
| 1835 | Let ebl_check_special_symbol override _G_O_T_ value and size checks. |
| 1836 | |
| 1837 | * elflint.c (check_sections): Don't complain about a non-NOBITS |
| 1838 | section taking no segment space, if it's sh_size is 0. |
| 1839 | |
| 1840 | * elflint.c (check_sections): Use ebl_bss_plt_p to see if .plt should |
| 1841 | be PROGBITS or NOBITS. |
| 1842 | |
| 1843 | * elflint.c (check_symtab): Use ebl_check_special_symbol to override |
| 1844 | standard st_value and st_size checks. |
| 1845 | |
Roland McGrath | 1c83bf1 | 2005-08-11 07:03:55 +0000 | [diff] [blame] | 1846 | 2005-07-28 Roland McGrath <roland@redhat.com> |
Ulrich Drepper | faf4d19 | 2005-08-11 05:12:05 +0000 | [diff] [blame] | 1847 | |
Roland McGrath | 1c83bf1 | 2005-08-11 07:03:55 +0000 | [diff] [blame] | 1848 | * addr2line.c (options, parse_opt): Don't handle -e here. |
| 1849 | (executable): Variable removed. |
| 1850 | (argp_children): New static variable. |
| 1851 | (argp): Use it. Make const. |
| 1852 | (main): Fill in argp_children from dwfl_standard_argp (). |
| 1853 | Let libdwfl handle file selection, pass Dwfl handle to handle_address. |
| 1854 | (print_dwarf_function): New function. Try to figure out inline chain. |
| 1855 | (elf_getname): Function removed, libdwfl does it for us. |
| 1856 | (handle_address): Take Dwfl handle instead of Elf, Dwarf handles. |
| 1857 | Use dwfl_module_addrname instead of elf_getname. |
| 1858 | Use dwfl_module_getsrc and dwfl_lineinfo instead of libdw calls. |
| 1859 | * Makefile.am (INCLUDES): Add libdwfl directory to path. |
| 1860 | |
| 1861 | 2005-08-10 Ulrich Drepper <drepper@redhat.com> |
| 1862 | |
| 1863 | * strip.c (parse_opt): STATE parameter is now used. |
| 1864 | Various little cleanups. |
| 1865 | |
| 1866 | * readelf.c (print_debug_line_section): Correct fallout of renaming |
| 1867 | of DW_LNS_set_epilog_begin. |
Ulrich Drepper | 6d5c3bd | 2005-08-11 04:37:52 +0000 | [diff] [blame] | 1868 | |
Roland McGrath | 8f31c2c | 2005-08-09 04:58:05 +0000 | [diff] [blame] | 1869 | 2005-08-08 Roland McGrath <roland@redhat.com> |
| 1870 | |
| 1871 | * strip.c (options, parse_opt): Grok -R .comment for compatibility |
| 1872 | with binutils strip. Likewise -d, -S, as aliases for -g. |
| 1873 | Likewise ignore -s/--strip-all. |
| 1874 | |
Roland McGrath | 095a01b | 2005-08-08 03:49:35 +0000 | [diff] [blame] | 1875 | 2005-08-07 Roland McGrath <roland@redhat.com> |
| 1876 | |
| 1877 | * strip.c (process_file): Open read-only when using a different output |
| 1878 | file. |
| 1879 | |
Ulrich Drepper | 47be795 | 2005-08-07 04:41:39 +0000 | [diff] [blame] | 1880 | 2005-08-06 Ulrich Drepper <drepper@redhat.com> |
| 1881 | |
Ulrich Drepper | 637963b | 2005-08-07 05:33:07 +0000 | [diff] [blame] | 1882 | * elflint.c (in_nobits_scn): New function. |
| 1883 | (check_versym): Allow references for defined symbols against versions |
| 1884 | of other DSOs also for symbols in nobits sections. |
| 1885 | Move a few variables around. |
| 1886 | |
Ulrich Drepper | 47be795 | 2005-08-07 04:41:39 +0000 | [diff] [blame] | 1887 | * Makefile.am (AM_CFLAGS): Avoid duplication. |
| 1888 | Link with statis libs if BUILD_STATIC. |
| 1889 | |
Ulrich Drepper | dbace23 | 2005-08-06 01:37:23 +0000 | [diff] [blame] | 1890 | 2005-08-05 Ulrich Drepper <drepper@redhat.com> |
| 1891 | |
| 1892 | * elflint.c: Many, many more tests. Mostly related to symbol |
| 1893 | versioning. Those sections should now be completely checked. |
| 1894 | |
| 1895 | * readelf.c (print_dynamic): Use gelf_offscn. |
| 1896 | |
Ulrich Drepper | acb8983 | 2005-08-04 07:01:49 +0000 | [diff] [blame] | 1897 | 2005-08-04 Ulrich Drepper <drepper@redhat.com> |
| 1898 | |
| 1899 | * elflint.c: Add lots more tests: more extension symbol table sanity, |
| 1900 | versioning section tests, hash table tests. General cleanup. |
| 1901 | |
Ulrich Drepper | c911c9e | 2005-08-02 16:07:42 +0000 | [diff] [blame] | 1902 | 2005-08-02 Ulrich Drepper <drepper@redhat.com> |
| 1903 | |
Ulrich Drepper | 8a68774 | 2005-08-03 02:24:12 +0000 | [diff] [blame] | 1904 | * objdump.c: New file. |
| 1905 | * Makefile.am (bin_PROGRAMS): Add objdump. |
| 1906 | (objdump_LDADD): Define. |
| 1907 | |
Ulrich Drepper | c911c9e | 2005-08-02 16:07:42 +0000 | [diff] [blame] | 1908 | * elflint.c (check_reloc_shdr): New function split out from check_rela |
| 1909 | and check_rel. |
| 1910 | (check_one_reloc): New function. Likewise. |
| 1911 | (check_rela): Use check_reloc_shdr and check_one_reloc. |
| 1912 | (check_rel): Likewise. |
Ulrich Drepper | 41de488 | 2005-08-03 00:02:56 +0000 | [diff] [blame] | 1913 | (check_program_header): Check that PT_DYNAMIC entry matches .dynamic |
| 1914 | section. |
| 1915 | Add checks that relocations against read-only segments are flagged, |
| 1916 | that the text relocation flag is not set unnecessarily, and that |
| 1917 | relocations in one section are either against loaded or not-loaded |
| 1918 | segments. |
Ulrich Drepper | c911c9e | 2005-08-02 16:07:42 +0000 | [diff] [blame] | 1919 | |
Ulrich Drepper | 8533dcf | 2005-08-01 07:18:47 +0000 | [diff] [blame] | 1920 | 2005-08-01 Ulrich Drepper <drepper@redhat.com> |
| 1921 | |
| 1922 | * elfcmp.c (main): Ignore section count and section name string table |
| 1923 | section index. |
| 1924 | |
Roland McGrath | f9ece8a | 2005-07-28 07:03:04 +0000 | [diff] [blame] | 1925 | 2005-07-27 Roland McGrath <roland@redhat.com> |
| 1926 | |
| 1927 | * elfcmp.c: Include <locale.h>. |
| 1928 | |
Ulrich Drepper | 7d48d6a | 2005-07-27 10:13:23 +0000 | [diff] [blame] | 1929 | 2005-07-27 Ulrich Drepper <drepper@redhat.com> |
| 1930 | |
| 1931 | * elfcmp.c: Print name and index of differing section. |
| 1932 | |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 1933 | 2005-07-24 Ulrich Drepper <drepper@redhat.com> |
| 1934 | |
| 1935 | * elfcmp.c: Implement comparing gaps between sections. |
| 1936 | |
| 1937 | 2005-07-23 Ulrich Drepper <drepper@redhat.com> |
| 1938 | |
| 1939 | * elflint.c: Include libeblP.h instead of libebl.h. |
| 1940 | * nm.c: Likewise. |
| 1941 | * readelf.c: Likewise. |
| 1942 | * elfcmp.c: Likewise. |
| 1943 | |
| 1944 | * elfcmp.c (main): Compare individual ELF header fields, excluding |
| 1945 | e_shoff instead of the whole struct at once. |
| 1946 | Use ebl_section_strip_p instead of SECTION_STRIP_P. |
| 1947 | * strip.c: Use ebl_section_strip_p instead of SECTION_STRIP_P. |
| 1948 | |
| 1949 | 2005-07-22 Ulrich Drepper <drepper@redhat.com> |
| 1950 | |
| 1951 | * elfcmp.c (main): Take empty section into account when comparing |
| 1952 | section content. |
| 1953 | |
| 1954 | * elflint.c (check_dynamic): Check that d_tag value is >= 0 before |
| 1955 | using it. |
| 1956 | |
| 1957 | 2005-07-21 Ulrich Drepper <drepper@redhat.com> |
| 1958 | |
| 1959 | * elfcmp.c: New file. |
| 1960 | * Makefile.am (bin_PROGRAMS): Add elfcmp. |
| 1961 | (elfcmp_LDADD): Define. |
| 1962 | |
| 1963 | * elflint.c (check_rela): Check that copy relocations only reference |
| 1964 | object symbols or symbols with unknown type. |
| 1965 | (check_rel): Likewise. |
| 1966 | |
| 1967 | 2005-06-08 Roland McGrath <roland@redhat.com> |
| 1968 | |
| 1969 | * readelf.c (print_ops): Add consts. |
| 1970 | |
| 1971 | 2005-05-31 Roland McGrath <roland@redhat.com> |
| 1972 | |
| 1973 | * readelf.c (print_debug_abbrev_section): Don't bail after first CU's |
| 1974 | abbreviations. Print a header line before each CU section. |
| 1975 | |
| 1976 | * readelf.c (print_debug_loc_section): Fix indentation for larger |
| 1977 | address size. |
| 1978 | |
| 1979 | 2005-05-30 Roland McGrath <roland@redhat.com> |
| 1980 | |
| 1981 | * readelf.c (print_debug_line_section): Print section offset of each |
| 1982 | CU's table, so they are easy to find from seeing the stmt_list value. |
| 1983 | |
| 1984 | * readelf.c (dwarf_attr_string): Add all attributes in <dwarf.h>. |
| 1985 | (attr_callback): Grok DW_AT_ranges and print offset in hex. |
| 1986 | |
| 1987 | * readelf.c (attr_callback): Add 2 to addrsize * 2 for %#0* format. |
| 1988 | (print_debug_ranges_section, print_debug_loc_section): Likewise. |
| 1989 | |
| 1990 | * readelf.c (print_ops): Take different args for indentation control. |
| 1991 | (attr_callback): Caller updated. |
| 1992 | Grok several more block-form attributes as being location expressions. |
| 1993 | For those same attributes with udata forms, format output differently |
| 1994 | for location list offset. |
| 1995 | (print_debug_loc_section): Implement it for real. |
| 1996 | |
| 1997 | * readelf.c (options): Mention ranges for --debug-dump. |
| 1998 | (enum section_e): Add section_ranges. |
| 1999 | (parse_opt): Grok "ranges" for -w/--debug-dump. |
| 2000 | (print_debug_ranges_section): New function. |
| 2001 | (print_debug): Handle .debug_ranges section. |
| 2002 | |
| 2003 | 2005-05-30 Ulrich Drepper <drepper@redhat.com> |
| 2004 | |
| 2005 | * readelf.c (handle_notes): At least x86-64 need not have the note |
| 2006 | section values aligned to 8 bytes. |
| 2007 | |
| 2008 | 2005-05-18 Ulrich Drepper <drepper@redhat.com> |
| 2009 | |
| 2010 | * readelf.c (dwarf_tag_string): Add new tags. |
| 2011 | |
| 2012 | 2005-05-08 Roland McGrath <roland@redhat.com> |
| 2013 | |
| 2014 | * strip.c (handle_elf): Don't translate hash and versym data formats, |
| 2015 | elf_getdata already did it for us. |
| 2016 | |
| 2017 | 2005-05-07 Ulrich Drepper <drepper@redhat.com> |
| 2018 | |
| 2019 | * Makefile.am (findtextrel_LDADD): Add $(libmudflap). |
| 2020 | (addr2line_LDADD): Likewise. |
| 2021 | |
| 2022 | 2005-05-03 Roland McGrath <roland@redhat.com> |
| 2023 | |
| 2024 | * strip.c (handle_elf): Apply symbol table fixups to discarded |
| 2025 | relocation sections when they are being saved in the debug file. |
| 2026 | |
| 2027 | * strip.c (handle_elf): Pass EHDR->e_ident[EI_DATA] to gelf_xlatetom |
| 2028 | and gelf_xlatetof, not the native byte order. |
| 2029 | |
| 2030 | * strip.c (parse_opt): Give error if -f or -o is repeated. |
| 2031 | (main): Exit if argp_parse returns nonzero. |
| 2032 | |
| 2033 | * strip.c (debug_fname_embed): New variable. |
| 2034 | (options, parse_opt): New option -F to set it. |
| 2035 | |
| 2036 | 2005-05-07 Ulrich Drepper <drepper@redhat.com> |
| 2037 | |
| 2038 | * readelf.c (parse_opt): Make any_control_option variable |
| 2039 | local. Simplify some tests. |
| 2040 | |
| 2041 | 2005-05-03 Roland McGrath <roland@redhat.com> |
| 2042 | |
| 2043 | * strip.c (crc32_file): Function removed (now in ../lib). |
| 2044 | |
| 2045 | 2005-05-03 Roland McGrath <roland@redhat.com> |
| 2046 | |
| 2047 | * elflint.c (is_debuginfo): New variable. |
| 2048 | (options, parse_opt): New option --debuginfo/-d to set it. |
| 2049 | (check_sections): If is_debuginfo, don't complain about SHT_NOBITS. |
| 2050 | (check_note): If is_debuginfo, don't try to get note contents. |
| 2051 | |
| 2052 | 2005-04-24 Ulrich Drepper <drepper@redhat.com> |
| 2053 | |
| 2054 | * readelf.c (print_debug_abbrev_section): Don't print error when end of |
| 2055 | section reached. |
| 2056 | |
| 2057 | 2005-04-14 Ulrich Drepper <drepper@redhat.com> |
| 2058 | |
| 2059 | * readelf.c (dwarf_encoding_string): New function. |
| 2060 | (dwarf_inline_string): New function. |
| 2061 | (dwarf_access_string): New function. |
| 2062 | (dwarf_visibility_string): New function. |
| 2063 | (dwarf_virtuality_string): New function. |
| 2064 | (dwarf_identifier_case_string): New function. |
| 2065 | (dwarf_calling_convention_string): New function. |
| 2066 | (dwarf_ordering_string): New function. |
| 2067 | (dwarf_discr_list_string): New function. |
| 2068 | (attr_callback): Decode man more attribute values. |
| 2069 | |
| 2070 | 2005-04-01 Ulrich Drepper <drepper@redhat.com> |
| 2071 | |
| 2072 | * addr2line.c: Finish implementation of -f option. |
| 2073 | |
| 2074 | 2005-03-29 Ulrich Drepper <drepper@redhat.com> |
| 2075 | |
| 2076 | * addr2line.c: New file. |
| 2077 | * Makefile.am (bin_PROGRAMS): Add addr2line. |
| 2078 | Define addr2line_LDADD. |
| 2079 | |
| 2080 | * findtextrel.c: Use new dwarf_addrdie function. |
| 2081 | |
| 2082 | * findtextrel.c: Fix usage message and re-add accidentally removed |
| 2083 | line. |
| 2084 | |
| 2085 | 2005-03-28 Ulrich Drepper <drepper@redhat.com> |
| 2086 | |
| 2087 | * findtextrel.c: New file. |
| 2088 | * Makefile: Add rules to build findtextrel. |
| 2089 | |
| 2090 | 2005-02-15 Ulrich Drepper <drepper@redhat.com> |
| 2091 | |
| 2092 | * ldlex.l: Provide ECHO definition to avoid warning. |
| 2093 | |
| 2094 | * elflint.c (check_program_header): Fix typo in RELRO test. |
| 2095 | |
| 2096 | * Makefile.am (AM_CFLAGS): Add more warning options. |
| 2097 | * elflint.c: Fix warnings introduced by the new warning options. |
| 2098 | * i386_ld.c: Likewise. |
| 2099 | * ld.c: Likewise. |
| 2100 | * ld.h: Likewise. |
| 2101 | * ldgeneric.c: Likewise. |
| 2102 | * nm.c: Likewise. |
| 2103 | * readelf.c: Likewise. |
| 2104 | * sectionhash.c: Likewise. |
| 2105 | * size.c: Likewise. |
| 2106 | * string.c: Likewise. |
| 2107 | |
| 2108 | 2005-02-05 Ulrich Drepper <drepper@redhat.com> |
| 2109 | |
| 2110 | * Makefile.am: Check for text relocations in constructed DSOs. |
| 2111 | |
| 2112 | * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap. Link all apps |
| 2113 | with -lmudflap. |
| 2114 | |
| 2115 | * ldscript.y: Add as_needed handling. |
| 2116 | * ldlex.l: Recognize AS_NEEDED token. |
| 2117 | * ld.h (struct filename_list): Add as_needed flag. |
| 2118 | |
| 2119 | 2005-02-04 Ulrich Drepper <drepper@redhat.com> |
| 2120 | |
| 2121 | * elflint.c (check_symtab): Correctly determine size of GOT section. |
| 2122 | |
| 2123 | 2005-01-19 Ulrich Drepper <drepper@redhat.com> |
| 2124 | |
| 2125 | * ld.c: Remove unnecessary more_help function. Print bug report |
| 2126 | address using argp. |
| 2127 | * strip.c: Likewise. |
| 2128 | * size.c: Likewise. |
| 2129 | * nm.c: Likewise. |
| 2130 | * readelf.c: Likewise. |
| 2131 | * elflint.c: Likewise. |
| 2132 | |
| 2133 | * elflint.c (main): Don't check for parameter problems here. |
| 2134 | (parse_opt): Do it here, where we get informed about some of them |
| 2135 | anyway. |
| 2136 | |
| 2137 | * readelf.c (main): Don't check for parameter problems here. |
| 2138 | (parse_opt): Do it here, where we get informed about some of them |
| 2139 | anyway. |
| 2140 | |
| 2141 | 2005-01-11 Ulrich Drepper <drepper@redhat.com> |
| 2142 | |
| 2143 | * strip.c: Update copyright year. |
| 2144 | * readelf.c: Likewise. |
| 2145 | * size.c: Likewise. |
| 2146 | * nm.c: Likewise. |
| 2147 | * ld.c: Likewise. |
| 2148 | * elflint.c: Likewise. |
| 2149 | |
| 2150 | * elflint.c (check_symtab): Don't warn about wrong size for |
| 2151 | _DYNAMIC and __GLOBAL_OFFSET_TABLE__ for --gnu-ld. |
| 2152 | |
| 2153 | 2004-10-05 Ulrich Drepper <drepper@redhat.com> |
| 2154 | |
| 2155 | * readelf.c (print_phdr): In section mapping, also indicate |
| 2156 | sections in read-only segments. |
| 2157 | |
| 2158 | 2004-09-25 Ulrich Drepper <drepper@redhat.com> |
| 2159 | |
| 2160 | * readelf.c: Make compile with gcc 4.0. |
| 2161 | * strip.c: Likewise. |
| 2162 | |
| 2163 | 2004-08-16 Ulrich Drepper <drepper@redhat.com> |
| 2164 | |
| 2165 | * strip.c (handle_elf): Rewrite dynamic memory handling to use of |
| 2166 | allocate to work around gcc 3.4 bug. |
| 2167 | |
| 2168 | 2004-01-25 Ulrich Drepper <drepper@redhat.com> |
| 2169 | |
| 2170 | * ldlex.l (invalid_char): Better error message. |
| 2171 | |
| 2172 | 2004-01-23 Ulrich Drepper <drepper@redhat.com> |
| 2173 | |
| 2174 | * readelf.c: Print SHT_GNU_LIBLIST sections. |
| 2175 | |
| 2176 | * none_ld.c: New file. |
| 2177 | |
| 2178 | 2004-01-21 Ulrich Drepper <drepper@redhat.com> |
| 2179 | |
| 2180 | * Makefile.am: Enable building of machine specific linker. |
| 2181 | |
| 2182 | 2004-01-20 Ulrich Drepper <drepper@redhat.com> |
| 2183 | |
| 2184 | * Makefile.am: Support building with mudflap. |
| 2185 | |
| 2186 | * i386_ld.c: Fix warnings gcc 3.4 spits out. |
| 2187 | * ldgeneric.c: Likewise. |
| 2188 | * ldscript.y: Likewise. |
| 2189 | * readelf.c: Likewise. |
| 2190 | * strip.c: Likewise. |
| 2191 | |
| 2192 | * readelf.c (print_debug_line_section): Determine address size |
| 2193 | correctly. |
| 2194 | |
| 2195 | 2004-01-19 Ulrich Drepper <drepper@redhat.com> |
| 2196 | |
| 2197 | * readelf.c (print_phdr): Show which sections are covered by the |
| 2198 | PT_GNU_RELRO entry. |
| 2199 | |
| 2200 | * elflint.c (check_program_header): Check PT_GNU_RELRO entry. |
| 2201 | |
| 2202 | * readelf.c (print_debug_macinfo_section): Implement. |
| 2203 | |
| 2204 | 2004-01-18 Ulrich Drepper <drepper@redhat.com> |
| 2205 | |
| 2206 | * readelf.c (print_debug_line_section): Implement. |
| 2207 | |
| 2208 | 2004-01-17 Ulrich Drepper <drepper@redhat.com> |
| 2209 | |
| 2210 | * src/elflint.c: Use PACKAGE_NAME instead of PACKAGE. |
| 2211 | * src/ld.c: Likewise. |
| 2212 | * src/nm.c: Likewise. |
| 2213 | * src/readelf.c: Likewise. |
| 2214 | * src/size.c: Likewise. |
| 2215 | * src/strip.c: Likewise. |
| 2216 | |
| 2217 | * strip.c: Add a few more unlikely. Reduce scope of some variables. |
| 2218 | |
| 2219 | * Makefile.am: Support building with mudflap. |
| 2220 | |
| 2221 | 2004-01-16 Ulrich Drepper <drepper@redhat.com> |
| 2222 | |
| 2223 | * readelf.c (print_debug_info_section): Free dies memory. |
| 2224 | |
| 2225 | * readelf.c: Print .debug_info section content. |
| 2226 | |
| 2227 | 2004-01-13 Ulrich Drepper <drepper@redhat.com> |
| 2228 | |
| 2229 | * readelf.c (print_shdr): Add support for SHF_ORDERED and SHF_EXCLUDE. |
| 2230 | |
| 2231 | 2004-01-12 Ulrich Drepper <drepper@redhat.com> |
| 2232 | |
| 2233 | * readelf.c (print_debug_aranges): Implement using libdw. |
| 2234 | |
| 2235 | 2004-01-11 Ulrich Drepper <drepper@redhat.com> |
| 2236 | |
| 2237 | * nm.c: Adjust for Dwarf_Files type and dwarf_lineno interface change. |
| 2238 | |
| 2239 | * readelf.c: Use libdw instead of libdwarf. Not all of the old |
| 2240 | behavior is available yet. |
| 2241 | * Makefile.am: Link readelf with libdw. Remove libdwarf include path. |
| 2242 | |
| 2243 | 2004-01-09 Ulrich Drepper <drepper@redhat.com> |
| 2244 | |
| 2245 | * nm.c (get_local_names): Adjust call to dwarf_nextcu. |
| 2246 | |
| 2247 | * nm.c: Implement getting information about local variables. |
| 2248 | |
| 2249 | 2004-01-07 Ulrich Drepper <drepper@redhat.com> |
| 2250 | |
| 2251 | * nm.c: Read also debug information for local symbols. |
| 2252 | |
| 2253 | 2004-01-05 Ulrich Drepper <drepper@redhat.com> |
| 2254 | |
| 2255 | * nm.c: Shuffle dwarf handling code around so the maximum column |
| 2256 | width can be computed ahead of printing. Avoid collection symbols |
| 2257 | which are not printed anyway. |
| 2258 | |
| 2259 | * nm.c: Rewrite dwarf handling to use libdw. |
| 2260 | * Makefile.am (AM_CFLAGS): Add -std parameter. |
| 2261 | (INCLUDES): Find header in libdw subdir. |
| 2262 | (nm_LDADD): Replace libdwarf with libdw. |
| 2263 | |
| 2264 | * elflint.c: Update copyright year. |
| 2265 | * readelf.c: Likewise. |
| 2266 | * size.c: Likewise. |
| 2267 | * strip.c: Likewise. |
| 2268 | * nm.c: Likewise. |
| 2269 | |
| 2270 | 2003-12-31 Ulrich Drepper <drepper@redhat.com> |
| 2271 | |
| 2272 | * strip.c (process_file): Close file before returning. |
| 2273 | |
| 2274 | 2003-11-19 Ulrich Drepper <drepper@redhat.com> |
| 2275 | |
| 2276 | * readelf.c (handle_dynamic): Make column for tag name wider. |
| 2277 | |
| 2278 | 2003-09-29 Ulrich Drepper <drepper@redhat.com> |
| 2279 | |
| 2280 | * readelf.c (handle_dynamic): Always terminate tag name with a space. |
| 2281 | |
| 2282 | 2003-09-25 Ulrich Drepper <drepper@redhat.com> |
| 2283 | |
| 2284 | * strip.c (process_file): Don't mmap the input file, we modify the |
| 2285 | data structures and don't want the change end up on disk. |
| 2286 | |
| 2287 | 2003-09-23 Jakub Jelinek <jakub@redhat.com> |
| 2288 | |
| 2289 | * unaligned.h (union u_2ubyte_unaligned, |
| 2290 | union u_4ubyte_unaligned, union u_8ubyte_unaligned): Add |
| 2291 | packed attribute. |
| 2292 | (add_2ubyte_unaligned, add_4ubyte_unaligned, |
| 2293 | add_8ubyte_unaligned): Avoid nesting bswap_NN macros. |
| 2294 | Read/store value through _ptr->u instead of *_ptr. |
| 2295 | |
| 2296 | 2003-09-22 Ulrich Drepper <drepper@redhat.com> |
| 2297 | |
| 2298 | * size.c (show_sysv): Change type of maxlen to int. |
| 2299 | |
| 2300 | * strip.c (handle_elf): Handle the 64-bit archs which is 64-bit |
| 2301 | buckets. |
| 2302 | |
| 2303 | * i386_ld.c: Many many fixes and extensions. |
| 2304 | * ld.c: Likewise. |
| 2305 | * ldgeneric.c: Likewise. |
| 2306 | |
| 2307 | 2003-08-16 Ulrich Drepper <drepper@redhat.com> |
| 2308 | |
| 2309 | * ldgeneric.c (check_definition): Don't add symbol on dso_list if |
| 2310 | the reference is from another DSO. |
| 2311 | |
| 2312 | 2003-08-15 Ulrich Drepper <drepper@redhat.com> |
| 2313 | |
| 2314 | * ldgeneric.c (find_entry_point): It is no fatal error if no entry |
| 2315 | point is found when creating a DSO. |
| 2316 | |
| 2317 | 2003-08-14 Ulrich Drepper <drepper@redhat.com> |
| 2318 | |
| 2319 | * ld.c (main): Always call FLAG_UNRESOLVED. |
| 2320 | * ldgeneric.c (ld_generic_flag_unresolved): Only complain about |
| 2321 | undefined symbols if not creating DSO or ld_state.nodefs is not set. |
| 2322 | |
| 2323 | 2003-08-13 Ulrich Drepper <drepper@redhat.com> |
| 2324 | |
| 2325 | * Makefile.in: Depend on libebl.a, not libebl.so. |
| 2326 | |
| 2327 | * ld.c (main): Mark stream for linker script as locked by caller. |
| 2328 | (read_version_script): Likewise. |
| 2329 | * ldlex.c: Define fread and fwrite to _unlocked variant. |
| 2330 | |
| 2331 | * i386_ld.c (elf_i386_finalize_plt): Replace #ifdefs with uses of |
| 2332 | target_bswap_32. |
| 2333 | * unaligned.h: Define target_bswap_16, target_bswap_32, and |
| 2334 | target_bswap_64. |
| 2335 | (store_2ubyte_unaligned, store_4ubyte_unaligned, |
| 2336 | store_8ubyte_unaligned): Define using new macros. |
| 2337 | |
| 2338 | 2003-08-12 Ulrich Drepper <drepper@redhat.com> |
| 2339 | |
| 2340 | * i386_ld.c (elf_i386_finalize_plt): Use packed structs to access |
| 2341 | possibly unaligned memory. Support use of big endian machines. |
| 2342 | |
| 2343 | 2003-08-11 Ulrich Drepper <drepper@redhat.com> |
| 2344 | |
| 2345 | * Moved to CVS archive. |