This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] bfd function for chasing .gnu_debuglink
- From: Nick Clifton <nickc at redhat dot com>
- To: graydon hoare <graydon at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 31 Jan 2003 10:05:20 +0000
- Subject: Re: [PATCH] bfd function for chasing .gnu_debuglink
- References: <1043801222.9286.122.camel@dub.venge.net>
Hi Graydon,
> Attached it a patch to BFD which adds such a function. The comments
> give a pretty clear overview of its use. Configury also needs to be
> rebuilt, of course.
>
> Any BFD maintainers interested in pulling this in?
I have applied a slightly modified version of your patch.
There were two problems:
* The patch used the 'boolean' type instead of the 'bfd_boolean'.
(Easily fixed).
* The patch made use of the AH_TEMPLATE macro in the configure.in
file, which is not supported by autoconf 2.13. Unfortunately
binutils is still using version 2.13, and since I am no autoconf
wizard, I did not know how to replicate the behavior of the
AH_TEMPLATE macro. Instead I have not applied the configure.in
part of your patch and commented out the use of DEBUGDIR in
bfd_follow_gnu_debuglink().
I realise that this is probably not very helpful, but if you can
work out how to defined DEBUGDIR using autoconf 2.13 macros, then
I will be pleased to accept a follow up patch.
Cheers
Nick
2003-01-31 Graydon Hoare <graydon@redhat.com>
* Makefile.am (opncls.lo): Add dependency upon libiberty.h.
* Makefile.in: Regenerate.
* opncls.c (calc_crc32, get_debug_link_info,
seperate_debug_file_exists, find_seperate_debug_file): New
internal functions.
(bfd_follow_gnu_debuglink): New function. Follow the pointer
contained inside a .gnu_debuglink section.
* bfd-in2.h: Regenerate.