* bfd assertion fail in cofflink.c:1397 on aixps2
@ 1994-10-03 20:11 Minh Tran-Le
1994-10-04 8:53 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Minh Tran-Le @ 1994-10-03 20:11 UTC (permalink / raw)
To: gas2
Hi,
I was trying the latest gas+binutils under aix ps/2 and I am getting
the following error from the new linker:
gcc -O -shlib -o nm.new nm.o bucomm.o version.o filemode.o ../bfd/libbfd.a ../libiberty/libiberty.a
bfd assertion fail /minh/gnu/src/gas-941003/bfd/cofflink.c:1397
At the line 1397 of cofflink.c there is following code:
BFD_ASSERT(auxp->x_file.x_n.x_offset >= STRING_SIZE_SIZE)
and that assert fail when I am using shared libraries under aix386 with:
auxp->x_file.x_n.x_offset = 0 and
STRING_SIZE_SIZE = 4
Does anybody have the same problem on other svr3 shared libraries ?
I seems that some of my shared libraries contains .file symbol with
a null symbol. Can I just ignore those bogus .file symbols ?
Thanks,
Minh Tran-Le.
-------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bfd assertion fail in cofflink.c:1397 on aixps2
1994-10-03 20:11 bfd assertion fail in cofflink.c:1397 on aixps2 Minh Tran-Le
@ 1994-10-04 8:53 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 1994-10-04 8:53 UTC (permalink / raw)
To: tranle; +Cc: gas2
Date: Mon, 3 Oct 94 20:00:16 PDT
From: Minh Tran-Le <TRANLE@intellicorp.com>
At the line 1397 of cofflink.c there is following code:
BFD_ASSERT(auxp->x_file.x_n.x_offset >= STRING_SIZE_SIZE)
and that assert fail when I am using shared libraries under aix386 with:
auxp->x_file.x_n.x_offset = 0 and
STRING_SIZE_SIZE = 4
Does anybody have the same problem on other svr3 shared libraries ?
I seems that some of my shared libraries contains .file symbol with
a null symbol. Can I just ignore those bogus .file symbols ?
cofflink.c is buggy. Here is the patch.
Ian
Index: cofflink.c
===================================================================
RCS file: /rel/cvsfiles/devo/bfd/cofflink.c,v
retrieving revision 1.5
diff -p -r1.5 cofflink.c
*** cofflink.c 1994/09/27 21:09:20 1.5
--- cofflink.c 1994/10/04 15:52:37
*************** coff_link_input_bfd (finfo, input_bfd)
*** 1388,1394 ****
{
/* If this is a long filename, we must put it in the
string table. */
! if (auxp->x_file.x_n.x_zeroes == 0)
{
const char *filename;
bfd_size_type indx;
--- 1388,1395 ----
{
/* If this is a long filename, we must put it in the
string table. */
! if (auxp->x_file.x_n.x_zeroes == 0
! && auxp->x_file.x_n.x_offset != 0)
{
const char *filename;
bfd_size_type indx;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-10-04 8:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-10-03 20:11 bfd assertion fail in cofflink.c:1397 on aixps2 Minh Tran-Le
1994-10-04 8:53 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).