public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* RE: Binutils Port - Infineon xc16x family.
@ 2006-03-03 15:18 Shrirang Khishti
  2006-03-03 15:33 ` Dave Korn
  0 siblings, 1 reply; 7+ messages in thread
From: Shrirang Khishti @ 2006-03-03 15:18 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils, Shrinivas Atre, Anil Paranjape, Shilin Shakti

Hi Nick 

  Thanks for the change suggested by you. 
  I checked the Patch you have send and , its working fine so you can
add it to the sources. 
One confusing thing is that it is not working if use "Return NULL" in
both the conditions.

Thanking you in advance
Regards
Shrirang Khisti

-----Original Message-----
From: Nick Clifton [mailto:nickc@redhat.com] 
Sent: Friday, March 03, 2006 8:07 PM
To: Shrirang Khishti
Cc: binutils@sourceware.org; Shrinivas Atre; Anil Paranjape; Shilin
Shakti
Subject: Re: Binutils Port - Infineon xc16x family.

Hi Shrirang,

>   Please find the patch with this mail for xc16x.opc file.

Sorry, I am confused.  You are changing a function like this:

   static const char *
   parse_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
	    const char **strp,
	    int opindex ATTRIBUTE_UNUSED,
	    long *valuep ATTRIBUTE_UNUSED)
   {
     if (**strp == '#')
       ++*strp;
     return NULL;
   }

To this:

   static const char *
   parse_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
	    const char **strp,
	    int opindex ATTRIBUTE_UNUSED,
	    long *valuep ATTRIBUTE_UNUSED)
   {
     if (**strp == '#')
       {
         ++*strp;
         return NULL;
       }
   }

Correct ?  And you say that this *fixes* a bug ?  How is this possible ?

  If the value pointed to by **strp is not a '#' character then what is 
the function supposed to return ?

Surely you want the patch to produce a function something like this ?

   static const char *
   parse_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
	    const char **strp,
	    int opindex ATTRIBUTE_UNUSED,
	    long *valuep ATTRIBUTE_UNUSED)
   {
     if (**strp == '#')
       {
         ++*strp;
         return NULL;
       }
     return _("Missing '#' prefix");
   }

ie I think that your patch really ought to look like the attached file. 
  What do you think ?

cgen/ChangeLog
2006-03-03 Shrirang Khisti <shrirangk@kpitcummins.com)

	* xc16x.opc (parse_hash): Return NULL if the input was parsed or
         an error message otherwise.
	(parse_dot, parse_pof, parse_pag, parse_sof, parse_seg):
         Likewise.
	Fix up comments to correctly describe the functions.

opcodes/ChangeLog
2006-03-03 Shrirang Khisti <shrirangk@kpitcummins.com)

	* xc16x-asm.c: Regenerate.
	* xc16x-dis.c: Regenerate.
	* xc16x-ibld.c: Regenerate.

Cheers
   Nick

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Binutils Port - Infineon xc16x family.
  2006-03-03 15:18 Binutils Port - Infineon xc16x family Shrirang Khishti
@ 2006-03-03 15:33 ` Dave Korn
  2006-03-03 15:53   ` Nick Clifton
  2006-03-03 22:22   ` binutils cross compilation Basavaraj Hiremath
  0 siblings, 2 replies; 7+ messages in thread
From: Dave Korn @ 2006-03-03 15:33 UTC (permalink / raw)
  To: 'Shrirang Khishti', 'Nick Clifton'
  Cc: binutils, 'Shrinivas Atre', 'Anil Paranjape',
	'Shilin Shakti'

On 03 March 2006 15:19, Shrirang Khishti wrote:

> Hi Nick
> 
>   Thanks for the change suggested by you.
>   I checked the Patch you have send and , its working fine so you can
> add it to the sources.
> One confusing thing is that it is not working if use "Return NULL" in
> both the conditions.

  But if you remove the braces, that's the same thing as returning NULL in
both cases, and you said that that works (because that's what Nick's patch
does), and there /really/ should not be a difference between this:

   static const char *
   parse_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
	    const char **strp,
	    int opindex ATTRIBUTE_UNUSED,
	    long *valuep ATTRIBUTE_UNUSED)
   {
     if (**strp == '#')
       {
         ++*strp;
         return NULL;
       }
     return NULL;
   }

and this:

   static const char *
   parse_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
	    const char **strp,
	    int opindex ATTRIBUTE_UNUSED,
	    long *valuep ATTRIBUTE_UNUSED)
   {
     if (**strp == '#')
         ++*strp;
     return NULL;
   }


  It's not valid C code to try and fall off the end of a non-void function
without returning a proper value, so your original code:

>  Code1:	 "If ( condition  ) 
>  		 {
>  		 Str ++ ;
>   	 	 Return NULL;
>  		 }"

or in other words:

   static const char *
   parse_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
	    const char **strp,
	    int opindex ATTRIBUTE_UNUSED,
	    long *valuep ATTRIBUTE_UNUSED)
   {
     if (**strp == '#')
       {
         ++*strp;
         return NULL;
       }
   }

simply /has/ to be incorrect.  Looking back at your original patch, I see that
you had some code in the else clause that once returned a value, but you've
commented it out:

+/* Handle '#' prefixes (i.e. skip over them).  */
+static const char *parse_hash (cd, strp, opindex, valuep)
+     CGEN_CPU_DESC cd ATTRIBUTE_UNUSED;
+     const char **strp;
+     int opindex ATTRIBUTE_UNUSED;
+     unsigned long *valuep ATTRIBUTE_UNUSED;
+{
+     if (**strp == '#')
+     {
+         ++*strp;
+     	 return NULL;
+     }
+   //  else
+   //      return cgen_parse_unsigned_integer (cd, strp, opindex, valuep);
+}


  Whenever that "else return cgen_parse_unsigned_integer ..." bit got
commented out, someone should have arranged to return a different value
instead.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Binutils Port - Infineon xc16x family.
  2006-03-03 15:33 ` Dave Korn
@ 2006-03-03 15:53   ` Nick Clifton
  2006-03-03 22:22   ` binutils cross compilation Basavaraj Hiremath
  1 sibling, 0 replies; 7+ messages in thread
From: Nick Clifton @ 2006-03-03 15:53 UTC (permalink / raw)
  To: Dave Korn, 'Shrirang Khishti'
  Cc: binutils, 'Shrinivas Atre', 'Anil Paranjape',
	'Shilin Shakti'

Hi Dave,

>>One confusing thing is that it is not working if use "Return NULL" in
>>both the conditions.

>   But if you remove the braces, that's the same thing as returning NULL in
> both cases, and you said that that works

Actually he said that it did not work.  That was the point.

What was actually happening was that in this (working but broken) code:

>    static const char *
>    parse_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
> 	    const char **strp,
> 	    int opindex ATTRIBUTE_UNUSED,
> 	    long *valuep ATTRIBUTE_UNUSED)
>    {
>      if (**strp == '#')
>        {
>          ++*strp;
>          return NULL;
>        }
>    }

if the parse failed, a non-deterministic value was being returned, which 
was probably not NULL (it was probably the value of the 'cd' argument) 
and so the code appeared to work.

That was what confused me originally.  I saw that the else.. clause had 
been commented out, assumed that the programmer's intention had been to 
return NULL in all cases and so made my change.  I did not foresee the 
fortuitous behaviour of returning a non-NULL value which indicated an 
error but which was not further examined for any meaning.

Anyway, all is well now, so I will check in the revised patch.

Cheers
   Nick

^ permalink raw reply	[flat|nested] 7+ messages in thread

* binutils cross compilation..
  2006-03-03 15:33 ` Dave Korn
  2006-03-03 15:53   ` Nick Clifton
@ 2006-03-03 22:22   ` Basavaraj Hiremath
  2006-03-04 15:14     ` Daniel Jacobowitz
  1 sibling, 1 reply; 7+ messages in thread
From: Basavaraj Hiremath @ 2006-03-03 22:22 UTC (permalink / raw)
  To: binutils

Hi,
I am compiling binutils for arm, getting following
link errors, could some one help me?

Thanks in advance..

Thanks & Regards,
Raj

/bin/sh ./libtool --mode=link arm-wince-pe-gcc
-mcpu=xscale -W -Wall -Wstrict-pr
ototypes -Wmissing-prototypes
-I/usr/local/wince/cross-tools/include   -o size.e
xe  size.o bucomm.o version.o filemode.o
../bfd/libbfd.la ../libiberty/libiberty
.a ./../intl/libintl.a
arm-wince-pe-gcc -mcpu=xscale -W -Wall
-Wstrict-prototypes -Wmissing-prototypes
-I/usr/local/wince/cross-tools/include -o size.exe
size.o bucomm.o version.o fil
emode.o  ../bfd/.libs/libbfd.a
../libiberty/libiberty.a ./../intl/libintl.a
/usr/local/wince/cross-tools/lib/gcc/arm-wince-pe/4.1.0/../../../../arm-wince-pe
/bin/ld: warning: cannot find entry symbol
_mainCRTStartup; defaulting to 000110
00
bucomm.o:bucomm.c:(.text+0x134): undefined reference
to `putc'
bucomm.o:bucomm.c:(.text+0x6ec): undefined reference
to `unlink'
bucomm.o:bucomm.c:(.text+0xa20): undefined reference
to `unlink'
bucomm.o:bucomm.c:(.text+0xa78): undefined reference
to `getenv'
bucomm.o:bucomm.c:(.text+0xcd8): undefined reference
to `ctime'
bucomm.o:bucomm.c:(.text+0xf18): undefined reference
to `mktemp'
bucomm.o:bucomm.c:(.text+0xf4c): undefined reference
to `mktemp'
bucomm.o:bucomm.c:(.text+0x1000): undefined reference
to `stat'
version.o:version.c:(.text+0x60): undefined reference
to `exit'
../bfd/.libs/libbfd.a(bfd.o):bfd.c:(.text+0x100):
undefined reference to `perror
'
../bfd/.libs/libbfd.a(bfd.o):bfd.c:(.text+0x72c):
undefined reference to `putc'
../bfd/.libs/libbfd.a(archive.o):archive.c:(.text+0x23c0):
undefined reference t
o `time'
../bfd/.libs/libbfd.a(archive.o):archive.c:(.text+0x23f8):
undefined reference t
o `stat'
../bfd/.libs/libbfd.a(archive.o):archive.c:(.text+0x39e4):
undefined reference t
o `stat'
../bfd/.libs/libbfd.a(archive.o):archive.c:(.text+0x40c4):
undefined reference t
o `time'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xbe4):
undefined reference to `
stat'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xbf8):
undefined reference to `
umask'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xc0c):
undefined reference to `
umask'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xc40):
undefined reference to `
chmod'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xccc):
undefined reference to `
stat'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xce0):
undefined reference to `
umask'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xcf4):
undefined reference to `
umask'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xd28):
undefined reference to `
chmod'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0x13e4):
undefined reference to
`open'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0x1430):
undefined reference to
`read'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0x144c):
undefined reference to
`close'
../bfd/.libs/libbfd.a(targets.o):targets.c:(.text+0x1f0):
undefined reference to
 `getenv'
../bfd/.libs/libbfd.a(cache.o):cache.c:(.text+0x40c):
undefined reference to `fs
tat'
../bfd/.libs/libbfd.a(cache.o):cache.c:(.text+0x944):
undefined reference to `st
at'
../bfd/.libs/libbfd.a(cache.o):cache.c:(.text+0x96c):
undefined reference to `un
link'
../bfd/.libs/libbfd.a(peigen.o):peigen.c:(.text+0x23fc):
undefined reference to
`time'
../bfd/.libs/libbfd.a(peigen.o):peigen.c:(.text+0x4b4c):
undefined reference to
`ctime'
../libiberty/libiberty.a(getopt.o):getopt.c:(.text+0x34c):
undefined reference t
o `getenv'
../libiberty/libiberty.a(xexit.o):xexit.c:(.text+0x34):
undefined reference to `
exit'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x3c):
undefi
ned reference to `getenv'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x5c):
undefi
ned reference to `getenv'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x7c):
undefi
ned reference to `getenv'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x1e8):
undef
ined reference to `access'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x304):
undef
ined reference to `abort'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x30c):
undef
ined reference to `close'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x31c):
undef
ined reference to `abort'
../libiberty/libiberty.a(xstrerror.o):xstrerror.c:(.text+0x18):
undefined refere
nce to `strerror'
../libiberty/libiberty.a(objalloc.o):objalloc.c:(.text+0x430):
undefined referen
ce to `abort'
../libiberty/libiberty.a(mkstemps.o):mkstemps.c:(.text+0xa0):
undefined referenc
e to `getpid'
../libiberty/libiberty.a(mkstemps.o):mkstemps.c:(.text+0x334):
undefined referen
ce to `open'
./../intl/libintl.a(dcgettext.o):dcgettext.c:(.text+0x1dc):
undefined reference
to `getwd'
./../intl/libintl.a(dcgettext.o):dcgettext.c:(.text+0xe10):
undefined reference
to `getenv'
./../intl/libintl.a(dcgettext.o):dcgettext.c:(.text+0xe48):
undefined reference
to `getenv'
./../intl/libintl.a(dcgettext.o):dcgettext.c:(.text+0xe80):
undefined reference
to `getenv'
./../intl/libintl.a(dcgettext.o):dcgettext.c:(.text+0xeb8):
undefined reference
to `getenv'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x54):
undefined reference
 to `open'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x78):
undefined reference
 to `fstat'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0xb4):
undefined reference
 to `close'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x100):
undefined referenc
e to `read'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x11c):
undefined referenc
e to `close'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x158):
undefined referenc
e to `close'
./../intl/libintl.a(l10nflist.o):l10nflist.c:(.text+0xb34):
undefined reference
to `isalnum'
./../intl/libintl.a(l10nflist.o):l10nflist.c:(.text+0xb64):
undefined reference
to `isalpha'
./../intl/libintl.a(l10nflist.o):l10nflist.c:(.text+0xc30):
undefined reference
to `isalpha'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x5c):
undefined referen
ce to `bsearch'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x314):
undefined refere
nce to `isspace'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x384):
undefined refere
nce to `isspace'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x3d8):
undefined refere
nce to `isspace'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x438):
undefined refere
nce to `isspace'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x800):
undefined refere
nce to `isupper'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x854):
undefined refere
nce to `isupper'
size.o:size.c:(.text+0xf0): undefined reference to
`exit'
collect2: ld returned 1 exit status
make[3]: *** [size.exe] Error 1
make[3]: Leaving directory
`/home/raj/VLC/wince/binutils-050201/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/raj/VLC/wince/binutils-050201/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/home/raj/VLC/wince/binutils-050201/binutils'
make: *** [all-binutils] Error 2




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: binutils cross compilation..
  2006-03-03 22:22   ` binutils cross compilation Basavaraj Hiremath
@ 2006-03-04 15:14     ` Daniel Jacobowitz
  2006-03-04 16:06       ` Basavaraj Hiremath
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2006-03-04 15:14 UTC (permalink / raw)
  To: Basavaraj Hiremath; +Cc: binutils

On Fri, Mar 03, 2006 at 02:22:34PM -0800, Basavaraj Hiremath wrote:
> Hi,
> I am compiling binutils for arm, getting following
> link errors, could some one help me?

Then something is wrong with your cross compilation toolchain; this
problem won't have anything to do with binutils.  Your compiler is not
including necessary libraries and startup files.

-- 
Daniel Jacobowitz
CodeSourcery

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: binutils cross compilation..
  2006-03-04 15:14     ` Daniel Jacobowitz
@ 2006-03-04 16:06       ` Basavaraj Hiremath
  2006-03-04 20:48         ` Daniel Jacobowitz
  0 siblings, 1 reply; 7+ messages in thread
From: Basavaraj Hiremath @ 2006-03-04 16:06 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: binutils

Hi,
thanks for your reply, I am getting some of the linker
error like 'stat', 'fstat' etc..
these are all defined in libiberty.a.
When I do objectdump/nm, I can see these symbols.
but while creating executables, it's giving 'fstat' is
missing

Thanks in advance,
Raj


Log below
=========
arm-wince-pe-gcc -mcpu=xscale -W -Wall
-Wstrict-prototypes -Wmissing-prototypes
-I/usr/local/wince/cross-tools/include -Ino -o
size.exe size.o bucomm.o version.
o filemode.o  ../bfd/.libs/libbfd.a
../libiberty/libiberty.a ./../intl/libintl.a
/usr/local/wince/cross-tools/lib/gcc/arm-wince-pe/4.1.0/../../../../arm-wince-pe
/bin/ld: warning: cannot find entry symbol
_mainCRTStartup; defaulting to 000110
00
bucomm.o:bucomm.c:(.text+0x134): undefined reference
to `putc'
bucomm.o:bucomm.c:(.text+0x6ec): undefined reference
to `unlink'
bucomm.o:bucomm.c:(.text+0xa20): undefined reference
to `unlink'
bucomm.o:bucomm.c:(.text+0xa78): undefined reference
to `getenv'
bucomm.o:bucomm.c:(.text+0xcd8): undefined reference
to `ctime'
bucomm.o:bucomm.c:(.text+0xf18): undefined reference
to `mktemp'
bucomm.o:bucomm.c:(.text+0xf4c): undefined reference
to `mktemp'
bucomm.o:bucomm.c:(.text+0x1000): undefined reference
to `stat'
version.o:version.c:(.text+0x60): undefined reference
to `exit'
../bfd/.libs/libbfd.a(bfd.o):bfd.c:(.text+0x100):
undefined reference to `perror
'
../bfd/.libs/libbfd.a(bfd.o):bfd.c:(.text+0x72c):
undefined reference to `putc'
../bfd/.libs/libbfd.a(archive.o):archive.c:(.text+0x23c0):
undefined reference t
o `time'
../bfd/.libs/libbfd.a(archive.o):archive.c:(.text+0x23f8):
undefined reference t
o `stat'
../bfd/.libs/libbfd.a(archive.o):archive.c:(.text+0x39e4):
undefined reference t
o `stat'
../bfd/.libs/libbfd.a(archive.o):archive.c:(.text+0x40c4):
undefined reference t
o `time'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xbe4):
undefined reference to `
stat'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xbf8):
undefined reference to `
umask'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xc0c):
undefined reference to `
umask'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xc40):
undefined reference to `
chmod'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xccc):
undefined reference to `
stat'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xce0):
undefined reference to `
umask'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xcf4):
undefined reference to `
umask'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0xd28):
undefined reference to `
chmod'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0x13e4):
undefined reference to
`open'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0x1430):
undefined reference to
`read'
../bfd/.libs/libbfd.a(opncls.o):opncls.c:(.text+0x144c):
undefined reference to
`close'
../bfd/.libs/libbfd.a(targets.o):targets.c:(.text+0x1f0):
undefined reference to
 `getenv'
../bfd/.libs/libbfd.a(cache.o):cache.c:(.text+0x40c):
undefined reference to `fs
tat'
../bfd/.libs/libbfd.a(cache.o):cache.c:(.text+0x944):
undefined reference to `st
at'
../bfd/.libs/libbfd.a(cache.o):cache.c:(.text+0x96c):
undefined reference to `un
link'
../bfd/.libs/libbfd.a(peigen.o):peigen.c:(.text+0x23fc):
undefined reference to
`time'
../bfd/.libs/libbfd.a(peigen.o):peigen.c:(.text+0x4b4c):
undefined reference to
`ctime'
../libiberty/libiberty.a(getopt.o):getopt.c:(.text+0x34c):
undefined reference t
o `getenv'
../libiberty/libiberty.a(xexit.o):xexit.c:(.text+0x34):
undefined reference to `
exit'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x3c):
undefi
ned reference to `getenv'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x5c):
undefi
ned reference to `getenv'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x7c):
undefi
ned reference to `getenv'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x1e8):
undef
ined reference to `access'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x304):
undef
ined reference to `abort'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x30c):
undef
ined reference to `close'
../libiberty/libiberty.a(make-temp-file.o):make-temp-file.c:(.text+0x31c):
undef
ined reference to `abort'
../libiberty/libiberty.a(xstrerror.o):xstrerror.c:(.text+0x18):
undefined refere
nce to `strerror'
../libiberty/libiberty.a(objalloc.o):objalloc.c:(.text+0x430):
undefined referen
ce to `abort'
../libiberty/libiberty.a(mkstemps.o):mkstemps.c:(.text+0xa0):
undefined referenc
e to `getpid'
../libiberty/libiberty.a(mkstemps.o):mkstemps.c:(.text+0x334):
undefined referen
ce to `open'
./../intl/libintl.a(dcgettext.o):dcgettext.c:(.text+0x1dc):
undefined reference
to `getwd'
./../intl/libintl.a(dcgettext.o):dcgettext.c:(.text+0xe10):
undefined reference
to `getenv'
./../intl/libintl.a(dcgettext.o):dcgettext.c:(.text+0xe48):
undefined reference
to `getenv'
./../intl/libintl.a(dcgettext.o):dcgettext.c:(.text+0xe80):
undefined reference
to `getenv'
./../intl/libintl.a(dcgettext.o):dcgettext.c:(.text+0xeb8):
undefined reference
to `getenv'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x54):
undefined reference
 to `open'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x78):
undefined reference
 to `fstat'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0xb4):
undefined reference
 to `close'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x100):
undefined referenc
e to `read'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x11c):
undefined referenc
e to `close'
./../intl/libintl.a(loadmsgcat.o):loadmsgcat.c:(.text+0x158):
undefined referenc
e to `close'
./../intl/libintl.a(l10nflist.o):l10nflist.c:(.text+0xb34):
undefined reference
to `isalnum'
./../intl/libintl.a(l10nflist.o):l10nflist.c:(.text+0xb64):
undefined reference
to `isalpha'
./../intl/libintl.a(l10nflist.o):l10nflist.c:(.text+0xc30):
undefined reference
to `isalpha'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x5c):
undefined referen
ce to `bsearch'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x314):
undefined refere
nce to `isspace'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x384):
undefined refere
nce to `isspace'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x3d8):
undefined refere
nce to `isspace'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x438):
undefined refere
nce to `isspace'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x800):
undefined refere
nce to `isupper'
./../intl/libintl.a(localealias.o):localealias.c:(.text+0x854):
undefined refere
nce to `isupper'
size.o:size.c:(.text+0xf0): undefined reference to
`exit'
collect2: ld returned 1 exit status
make[3]: *** [size.exe] Error 1
make[3]: Leaving directory
`/home/raj/VLC/wince/binutils-050201/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/raj/VLC/wince/binutils-050201/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/home/raj/VLC/wince/binutils-050201/binutils'
make: *** [all-binutils] Error 2
-bash-2.05b$



--- Daniel Jacobowitz <drow@false.org> wrote:

> On Fri, Mar 03, 2006 at 02:22:34PM -0800, Basavaraj
> Hiremath wrote:
> > Hi,
> > I am compiling binutils for arm, getting following
> > link errors, could some one help me?
> 
> Then something is wrong with your cross compilation
> toolchain; this
> problem won't have anything to do with binutils. 
> Your compiler is not
> including necessary libraries and startup files.
> 
> -- 
> Daniel Jacobowitz
> CodeSourcery
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: binutils cross compilation..
  2006-03-04 16:06       ` Basavaraj Hiremath
@ 2006-03-04 20:48         ` Daniel Jacobowitz
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Jacobowitz @ 2006-03-04 20:48 UTC (permalink / raw)
  To: Basavaraj Hiremath; +Cc: binutils

On Sat, Mar 04, 2006 at 08:05:53AM -0800, Basavaraj Hiremath wrote:
> Hi,
> thanks for your reply, I am getting some of the linker
> error like 'stat', 'fstat' etc..
> these are all defined in libiberty.a.

No, they're referenced from libiberty.  Please see this again:

> > Then something is wrong with your cross compilation
> > toolchain; this
> > problem won't have anything to do with binutils. 
> > Your compiler is not
> > including necessary libraries and startup files.

-- 
Daniel Jacobowitz
CodeSourcery

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-04 20:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-03 15:18 Binutils Port - Infineon xc16x family Shrirang Khishti
2006-03-03 15:33 ` Dave Korn
2006-03-03 15:53   ` Nick Clifton
2006-03-03 22:22   ` binutils cross compilation Basavaraj Hiremath
2006-03-04 15:14     ` Daniel Jacobowitz
2006-03-04 16:06       ` Basavaraj Hiremath
2006-03-04 20:48         ` Daniel Jacobowitz

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).