[Top][All Lists]

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

[Bug binutils/12451] New: --build-id regression

From: jakub at redhat dot com
Subject: [Bug binutils/12451] New: --build-id regression
Date: Fri, 28 Jan 2011 13:45:44 +0000


           Summary: --build-id regression
           Product: binutils
           Version: 2.22 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: address@hidden
        ReportedBy: address@hidden

Apparently ld --build-id behavior changed recently, so it no longer checksums
symbol table sections.
A short testcase:
cat > A.java <<\EOF
class A
  public static void main(String args[])
    System.out.println("Hello World!");
sed s/A/B/ A.java > B.java
gcj -C A.java
gcj -C B.java
gcj -shared -fpic -o libAB.so A.class B.class
gcj -o A -fmain=A ./libAB.so -Wl,--build-id
gcj -o B -fmain=B ./libAB.so -Wl,--build-id
objdump -s -j .note.gnu.build-id A B

While with older linkers (e.g. the build ids were different
between A and B, in CVS head as well as the build ids are the same,
eventhough the binaries are different (although they have exactly the same code
sections, as they call different code they certainly aren't the same).

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

reply via email to

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