[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 |
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: 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!");
}
}
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/12451] New: --build-id regression,
jakub at redhat dot com <=
- [Bug binutils/12451] --build-id regression, jakub at redhat dot com, 2011/01/28
- [Bug binutils/12451] --build-id regression, jakub at redhat dot com, 2011/01/28
- [Bug ld/12451] --build-id regression, jakub at redhat dot com, 2011/01/28
- [Bug ld/12451] --build-id regression, address@hidden, 2011/01/28
- [Bug ld/12451] --build-id regression, hjl.tools at gmail dot com, 2011/01/28
- [Bug ld/12451] --build-id regression, nickc at redhat dot com, 2011/01/31