This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
gdb and binutils branch master updated. d493b2839b90ba7f4b5200505f94e45268777d7b
- From: tromey at sourceware dot org
- To: binutils-cvs at sourceware dot org
- Date: 19 Dec 2013 15:48:41 -0000
- Subject: gdb and binutils branch master updated. d493b2839b90ba7f4b5200505f94e45268777d7b
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via d493b2839b90ba7f4b5200505f94e45268777d7b (commit)
from 9373215cfffc82cd64517ca5ab3e00c13fa0bbfe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d493b2839b90ba7f4b5200505f94e45268777d7b
commit d493b2839b90ba7f4b5200505f94e45268777d7b
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Dec 9 15:01:31 2013 -0700
remove remnants of old Mach-O workaround
I happened to run readelf on an ELF file created by Guile. readelf
complained about invalid values for DW_FORM_strp. At first I assumed
this was just a Guile bug, but eu-readelf did the right thing, so I
looked a bit deeper.
I came across some old Mach-O code to bias some offsets by section
addresses. Guile, unlike many ELF writers, sets the address for the
various DWARF-related sections, causing this unusual code to be run.
This code came from an old commit:
2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
* dwarf.c (fetch_indirect_string): Adjust for section address.
(process_debug_info): Likewise.
(display_debug_loc): Likewise.
(display_debug_ranges): Likewise.
* objdump.c (mach_o_dwarf_sections): New.
(generic_dwarf_sections): Likewise.
(check_mach_o_dwarf): Likewise.
(dump_dwarf): Call check_mach_o_dwarf.
However it was partially reverted here:
https://sourceware.org/ml/binutils/2008-11/msg00134.html
This patch just completes the reversion.
Built and regtested on x86-64 Fedora 18. I also ran the resulting
readelf against the Guile-created object with success.
I have no way of testing this on Mach-O, so your feedback is
solicited.
2013-12-19 Tom Tromey <tromey@redhat.com>
* dwarf.c (fetch_indirect_string): Don't bias by section address.
(fetch_indexed_string): Likewise.
(process_debug_info): Likewise.
(display_debug_loc): Likewise.
(display_debug_ranges): Likewise.
-----------------------------------------------------------------------
Summary of changes:
binutils/ChangeLog | 8 ++++++++
binutils/dwarf.c | 19 +++++--------------
2 files changed, 13 insertions(+), 14 deletions(-)
hooks/post-receive
--
gdb and binutils