http://sourceware.org/bugzilla/show_bug.cgi?id=12451

           Summary: --build-id regression
           Product: binutils
           Version: 2.22 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassig...@sources.redhat.com
        ReportedBy: ja...@redhat.com


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!");
  }
}
EOF
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. 2.20.51.0.2) the build ids were different
between A and B, in CVS head as well as 2.21.51.0.5 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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to