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