* readelf.c (eh_addr_size): New variable.
commit2a1ed429f82819a92e7c45e4d2df07b2d100cd24
authorRichard Sandiford <rsandifo@nildram.co.uk>
Mon, 31 Jan 2005 20:35:25 +0000 (31 20:35 +0000)
committerRichard Sandiford <rsandifo@nildram.co.uk>
Mon, 31 Jan 2005 20:35:25 +0000 (31 20:35 +0000)
tree946e733fe85f67bf9b84a47ca2b0af19518412f4
parent4b150a9452f1536385f9a99e1c2898792742193a
* readelf.c (eh_addr_size): New variable.
(find_section): Move earlier in file.  Return empty sections too.
(process_program_headers): Use find_section to find .dynamic.
(process_section_headers): Initialize eh_addr_size.
(dump_ia64_unwind, slurp_ia64_unwind_table, ia64_process_unwind)
(dump_hppa_unwind, slurp_hppa_unwind_table, hppa_process_unwind)
(display_debug_frames): Use it instead of local addr_size variable.
(size_of_encoded_value): Get pointer size from eh_addr_size rather
than is_32bit_elf.
binutils/ChangeLog
binutils/readelf.c