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