> Yes it does. I wonder how it is implemented differently than objcopy > and objdump...
My understanding is that objcopy has far less knowledge about the ELF format than readelf, and in particular about section group like item #3. > Anyway, the bug I am reporting is that using objcopy (even just to > duplicate a .o file) is making SunPro C++ objects unlinkable. May I ask you why you need to use Binutils with SunPro C++? AFAIK Sun doesn't implement the common C++ ABI. > Using the source files and Makefile I posted to the web: > http://www.cs.cornell.edu/marques/bfdexample/a.cxx > http://www.cs.cornell.edu/marques/bfdexample/c.cxx > http://www.cs.cornell.edu/marques/bfdexample/Makefile > > > [EMAIL PROTECTED] objcopy_bug]$ gmake final1 > Test without using objcopy > CC -xarch=v8plusb -c a.cxx > CC -xarch=v8plusb -c c.cxx > CC -xarch=v8plusb a.o c.o -o final1 > > Test completed > > [EMAIL PROTECTED] objcopy_bug]$ gmake final2 > Test with using objcopy > CC -xarch=v8plusb -c a.cxx > CC -xarch=v8plusb -c c.cxx > objcopy a.o > objcopy c.o > CC -xarch=v8plusb a.o c.o -o final1 > ld: fatal: symbol > `std::basic_ostream<__type_0,__type_1>&std::endl<char,std::char_traits<char objcopy appears to botch the section group: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] __1cDstdEendl4Ccn GROUP 00000000 000034 000008 04 11 4 4 [ 2] .text PROGBITS 00000000 000040 000050 00 AX 0 0 8 [ 3] .rela.text RELA 00000000 000c94 000060 0c 11 2 4 [ 4] .text%__1cDstdEen PROGBITS 00000000 000090 000040 00 AXG 0 0 8 [ 5] .rela.text%__1cDs RELA 00000000 000cf4 000018 0c 11 4 4 [ 6] .rodata PROGBITS 00000000 0000d0 000002 00 A 0 0 1 [ 7] .comment PROGBITS 00000000 0000d2 0005f1 00 0 0 1 [ 8] .stab.index PROGBITS 00000000 0006c4 000024 0c 9 0 4 [ 9] .stab.indexstr STRTAB 00000000 0006e8 0000a6 00 0 0 1 [10] .shstrtab STRTAB 00000000 00078e 0000a3 00 0 0 1 [11] .symtab SYMTAB 00000000 000a3c 000100 10 12 9 4 [12] .strtab STRTAB 00000000 000b3c 000155 00 0 0 1 -- Eric Botcazou _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils