bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Broken assumption in readelf.c about location lists and compilation


From: Nick Clifton
Subject: Re: Broken assumption in readelf.c about location lists and compilation units
Date: Tue, 04 Jan 2005 11:30:55 +0000
User-agent: Mozilla Thunderbird 1.0RC1 (X11/20041201)

Hi Fred,

The code in readelf.c which dumps the debug_loc section currently makes the 
assumption
that the location list terminator (start and end addresses of zero) marks the 
end

This has been reported as PR binutils/615 and should now be fixed.

I stumbled across this problem independently via:

  $ cat s.c
  main ()
  {
    {
      int x;
      x = getpid ();
      printf ("pid = %d\n", x);
    }
    {
      int x;
      x = getuid ();
      printf ("uid = %d\n", x);
    }
  }

Would you care to turn this into a binutils testsuite file to help check debug loc decoding by readelf ?

Cheers
  Nick






reply via email to

[Prev in Thread] Current Thread [Next in Thread]