This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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: STB_GNU_UNIQUE vs ELFOSABI_LINUX


On Thu, 2011-04-07 at 21:50 +0200, Mark Wielaard wrote:
> On Thu, 2011-04-07 at 06:46 -0400, Ulrich Drepper wrote:
> > If STB_GNU_UNIQUE is used but ELFOSABI_LINUX is not set this is a tool
> > bug somewhere (assembler or linker).
> 
> It is a linker bug (the assembler already does the right thing):
> http://sourceware.org/bugzilla/show_bug.cgi?id=10549
> I'll post a patch.

Patch accepted. On the elfutils dwarf branch I added some of the new c++
programs to run-elflint-self.sh. That will complain about "unknown
symbol binding" if you run it with a broken toolchain (and passes when
using the fixed gnu binutils ld).

Cheers,

Mark



commit 6dc02e72b9c3e7709d68199cdac11f08f540511e
Author: Mark Wielaard <mjw@redhat.com>
Date:   Mon Apr 11 13:08:57 2011 +0200

    Run elflint and dwarflint on c++ programs.
    
    * tests/run-dwarflint-self.sh: Add dwarflint itself.
    * tests/run-elflint-self.sh: Add dwarfcmp, unstrip and dwarflint.

diff --git a/tests/run-dwarflint-self.sh b/tests/run-dwarflint-self.sh
index e83d820..45ed39b 100755
--- a/tests/run-dwarflint-self.sh
+++ b/tests/run-dwarflint-self.sh
@@ -49,5 +49,6 @@ runtest ../src/size
 runtest ../src/strip
 runtest ../src/unstrip
 runtest ../*/*.so
+runtest ../dwarflint/dwarflint
 
 exit $status
diff --git a/tests/run-elflint-self.sh b/tests/run-elflint-self.sh
index 7da0886..684f983 100755
--- a/tests/run-elflint-self.sh
+++ b/tests/run-elflint-self.sh
@@ -37,6 +37,7 @@ runtest() {
 }
 
 runtest ../src/addr2line
+runtest ../src/dwarfcmp
 runtest ../src/elfcmp
 runtest ../src/elflint
 runtest ../src/findtextrel
@@ -46,6 +47,7 @@ runtest ../src/objdump
 runtest ../src/readelf
 runtest ../src/size
 runtest ../src/strip
+runtest ../src/unstrip
 runtest ../libelf/libelf.so
 runtest ../libdw/libdw.so
 runtest ../libasm/libasm.so
@@ -58,5 +60,6 @@ runtest ../libebl/libebl_ppc64.so
 runtest ../libebl/libebl_sh.so
 runtest ../libebl/libebl_sparc.so
 runtest ../libebl/libebl_x86_64.so
+runtest ../dwarflint/dwarflint
 
 exit $status

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