This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

GCC 3.1 produces incorrect executable for LD and AS


Dear Sir/Madam,

I have tried to send this bug report using GNATS on the web without success.
If you like that peoples do use it you should make it more user-friendly.

OS: Cygwin on W2K.

GCC:
Configured with: /usr/src/gcctree/configure --enable-languages=c,c++
Thread model: single
gcc version 3.1
GCC was bootrapped successfully.

Binutils sources: 20020706-1

When I try to build binutils by GCC 3.1 for native Cygwin or arm-ecos-elf
targets I get incorrect LD and AS executables. Runned LD prints message
"Segmentation fault (core dumped)". I tried other versions of binutils
(binutils-2.12.1 and binutils-20011002-1) without success. GCC-3.0.4 builded
20011002-1 successfully.

Futher analysis has shown that the bug appear if libiberty from binutils
package is built by gcc-3.1. If I build the libiberty first by native cygwin
cc compiler (gcc-2.95.3-5) and all other modules by gcc-3.1 I get correct
LD. And otherwise building of libiberty by gcc-3.1 leads to incorrect LD
even if all other build is done by CC.

With best regards,
Eugene Starokoltsev.

Attachment: ld-new.exe.stackdump
Description: Binary data


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