This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] bfd function for chasing .gnu_debuglink


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]