2009-01-06 05:24:48     lds issus

Document created by Aaronwu Employee on Aug 9, 2013
Version 1Show Document
  • View in full screen mode

2009-01-06 05:24:48     lds issus

vijai ragavan (INDIA)

Message: 67464   

 

hai,

 

i am using Bf561 board & i am trying to add the L2 section on the vmlinux.lds.S file, But i am facing the following issue

 

 

 

./include/linux/autoconf.h:214:24: warning: missing whitespace after the macro name

  LD      init/built-in.o

  LD      .tmp_vmlinux1

/bin/sh: line 1: 11571 Segmentation fault      bfin-uclinux-ld -X -o .tmp_vmlinux1 -T arch/blackfin/kernel/vmlinux.lds arch/blackfin/mach-bf561/head.o arch/blackfin/kernel/init_task.o init/built-in.o --start-group usr/built-in.o arch/blackfin/kernel/built-in.o arch/blackfin/mm/built-in.o arch/blackfin/mach-common/built-in.o arch/blackfin/mach-bf561/built-in.o arch/blackfin/mach-bf561/boards/built-in.o arch/blackfin/kernel/cplb-nompu/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o block/built-in.o lib/lib.a arch/blackfin/lib/lib.a lib/built-in.o arch/blackfin/lib/built-in.o drivers/built-in.o sound/built-in.o net/built-in.o --end-group

make[1]: *** [.tmp_vmlinux1] Error 139

make[1]: Leaving directory `/home/raghavan/Philips/Distribution/uClinux-dist-2008R1.5-RC3/linux-2.6.x'

make: *** [linux] Error 1

raghavan@mdtv:~/

 

 

 

Plaese find the attached vmlinus.lds.S. Any suggestion?

 

vmlinux.lds.S

QuoteReplyEditDelete

 

 

2009-01-06 06:02:22     Re: lds issus

Mike Frysinger (UNITED STATES)

Message: 67466   

 

the definition of .data_l1 is incorrect.  refer to current trunk's vmlinux.lds.S.

QuoteReplyEditDelete

 

 

2009-01-06 06:06:56     Re: lds issus

Mike Frysinger (UNITED STATES)

Message: 67468   

 

also, the segfault in question is only in binutils-2.17.  it has since been fixed in newer versions, so we'll get the fix automatically once Jie finishes updating binutils.

QuoteReplyEditDelete

 

 

2009-01-06 06:57:47     Re: lds issus

vijai ragavan (INDIA)

Message: 67470   

 

I modified the L1 section,eventhogh i got the following issue

 

./include/linux/autoconf.h:214:24: warning: missing whitespace after the macro name

  LD      init/built-in.o

  LD      .tmp_vmlinux1

arch/blackfin/kernel/vmlinux.lds:898 non constant expression for load base

make[1]: *** [.tmp_vmlinux1] Error 1

make[1]: Leaving directory `/home/raghavan/Philips/Distribution/uClinux-dist-2008R1.5-RC3/linux-2.6.x'

make: *** [linux] Error 1

raghavan@mdtv:~

 

 

 

Plese find the attached vmlinux.lds file

 

vmlinux.lds

QuoteReplyEditDelete

 

 

2009-01-06 07:09:59     Re: lds issus

Mike Frysinger (UNITED STATES)

Message: 67471   

 

your .data_l2 definition is also wrong

QuoteReplyEditDelete

 

 

2009-01-07 00:00:58     Re: lds issus

vijai ragavan (INDIA)

Message: 67502   

 

i modified the data l2 section. Eventhogh i am facing the same issue. Please suggest

 

vmlinux.lds.S

QuoteReplyEditDelete

 

 

2009-01-07 00:11:36     Re: lds issus

Mike Frysinger (UNITED STATES)

Message: 67503   

 

it's still incorrect.  fully functioning code is in kernel trunk for you to refer to.

QuoteReplyEditDelete

 

 

2009-01-07 00:58:03     Re: lds issus

vijai ragavan (INDIA)

Message: 67504   

 

I can not understand, What you are saying.Please suggest what is wrong in my code.

QuoteReplyEditDelete

 

 

2009-01-07 03:16:10     Re: lds issus

Mike Frysinger (UNITED STATES)

Message: 67509   

 

i told you that the version in trunk is correct.  you should therefore go look at it and compare it to your version.  output sections cannot refer to themselves ... that is why things are segfaulting/erroring on you.

 

QuoteReplyEditDelete

 

 

2009-01-07 06:15:18     Re: lds issus

vijai ragavan (INDIA)

Message: 67549   

 

Thanks, for the support, I modified the lds file.And it is working fine.

Outcomes