From: Tim R. <Ti...@Ri...> - 2002-01-28 21:31:16
|
Anyone know why blob has close to 14k of nulls on the end? -- Tim Riker - http://rikers.org/ - short SIGs! <g> All I need to know I could have learned in Kindergarten ... if I'd just been paying attention. |
From: Erik M. <J.A...@it...> - 2002-01-28 22:17:25
|
On Mon, Jan 28, 2002 at 02:13:45PM -0700, Tim Riker wrote: > Anyone know why blob has close to 14k of nulls on the end? It doesn't, unless you have put a segment definition *after* the .bss segment in src/blob/rest-ld-script.in . Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A...@it... WWW: http://www-ict.its.tudelft.nl/~erik/ |
From: Tim R. <Ti...@Ri...> - 2002-01-28 23:02:35
|
hmm... I have not touched that file. Compiling for idr from cvs I see: timr@localhost:~/work/vercel/blob/src/blob$ ls -l blob* -rwxr-xr-x 1 timr timr 46520 Jan 28 14:12 blob -rwxr-xr-x 1 timr timr 46520 Jan 28 14:12 blob-chain -rwxr-xr-x 1 timr timr 45496 Jan 28 14:12 blob-rest -rwxr-xr-x 1 timr timr 77029 Jan 28 14:12 blob-rest-elf32 -rwxr-xr-x 1 timr timr 852 Jan 27 01:30 blob-start -rwxr-xr-x 1 timr timr 196 Jan 27 01:30 blob-start-chain -rwxr-xr-x 1 timr timr 34179 Jan 27 01:30 blob-start-chain-elf32 -rwxr-xr-x 1 timr timr 35805 Jan 27 01:30 blob-start-elf32 where blob has 13k of nulls on the end. blob-rest-elf32 contains this same block on the end of the code before the debug blocks. Erik Mouw wrote: > > On Mon, Jan 28, 2002 at 02:13:45PM -0700, Tim Riker wrote: > > Anyone know why blob has close to 14k of nulls on the end? > > It doesn't, unless you have put a segment definition *after* the .bss > segment in src/blob/rest-ld-script.in . > > Erik > > -- > J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty > of Information Technology and Systems, Delft University of Technology, > PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 > Fax: +31-15-2781843 Email: J.A...@it... > WWW: http://www-ict.its.tudelft.nl/~erik/ > > _______________________________________________ > blob-cvs-commit mailing list > blo...@li... > https://lists.sourceforge.net/lists/listinfo/blob-cvs-commit -- Tim Riker - http://rikers.org/ - short SIGs! <g> All I need to know I could have learned in Kindergarten ... if I'd just been paying attention. |
From: Erik M. <J.A...@it...> - 2002-01-29 00:59:16
|
On Mon, Jan 28, 2002 at 03:44:24PM -0700, Tim Riker wrote: > hmm... > > I have not touched that file. Compiling for idr from cvs I see: > > timr@localhost:~/work/vercel/blob/src/blob$ ls -l blob* > -rwxr-xr-x 1 timr timr 46520 Jan 28 14:12 blob > -rwxr-xr-x 1 timr timr 46520 Jan 28 14:12 blob-chain > -rwxr-xr-x 1 timr timr 45496 Jan 28 14:12 blob-rest > -rwxr-xr-x 1 timr timr 77029 Jan 28 14:12 blob-rest-elf32 > -rwxr-xr-x 1 timr timr 852 Jan 27 01:30 blob-start > -rwxr-xr-x 1 timr timr 196 Jan 27 01:30 blob-start-chain > -rwxr-xr-x 1 timr timr 34179 Jan 27 01:30 blob-start-chain-elf32 > -rwxr-xr-x 1 timr timr 35805 Jan 27 01:30 blob-start-elf32 > > where blob has 13k of nulls on the end. > > blob-rest-elf32 contains this same block on the end of the code before > the debug blocks. I currently can't compile for idr because of compiler errors (SBI_SKCR undeclared in sa1111_init()), but this is the output from the last time I compiled it: erik@arthur:idr/src/blob >pwd /home/erik/src/sourceforge/build/idr/src/blob erik@arthur:idr/src/blob >ls -l blob* -rwxr-xr-x 1 erik users 32148 Jan 18 23:43 blob -rwxr-xr-x 1 erik users 32148 Jan 17 00:22 blob-chain -rwxr-xr-x 1 erik users 31124 Jan 17 00:22 blob-rest -rwxr-xr-x 1 erik users 76596 Jan 17 00:22 blob-rest-elf32 -rwxr-xr-x 1 erik users 852 Jan 18 23:43 blob-start -rwxr-xr-x 1 erik users 196 Jan 9 00:31 blob-start-chain -rwxr-xr-x 1 erik users 34465 Jan 9 00:31 blob-start-chain-elf32 -rwxr-xr-x 1 erik users 36382 Jan 18 23:43 blob-start-elf32 And this is with today's CVS version for LART (compiled with --enable-md5): erik@arthur:lart/src/blob >pwd /home/erik/src/sourceforge/build/lart/src/blob erik@arthur:lart/src/blob >ls -l blob* -rwxr-xr-x 1 erik users 24632 Jan 21 22:51 blob -rwxr-xr-x 1 erik users 24632 Jan 21 22:51 blob-chain -rwxr-xr-x 1 erik users 23608 Jan 21 22:51 blob-rest -rwxr-xr-x 1 erik users 65826 Jan 21 22:51 blob-rest-elf32 -rwxr-xr-x 1 erik users 640 Jan 19 00:47 blob-start -rwxr-xr-x 1 erik users 196 Jan 19 00:47 blob-start-chain -rwxr-xr-x 1 erik users 34466 Jan 19 00:47 blob-start-chain-elf32 -rwxr-xr-x 1 erik users 36162 Jan 19 00:47 blob-start-elf32 I can't really repeat your problem. I am using both my gcc-2.95.2 toolchain (available from the LART site) and the gcc-2.95.3 toolchain (available from LART site and arm-linux FTP site). Unless something is defining a non-null byte somewhere in the .bss segment or on the stack, I can't really see what's wrong. Erik > Erik Mouw wrote: > > > > On Mon, Jan 28, 2002 at 02:13:45PM -0700, Tim Riker wrote: > > > Anyone know why blob has close to 14k of nulls on the end? > > > > It doesn't, unless you have put a segment definition *after* the .bss > > segment in src/blob/rest-ld-script.in . -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A...@it... WWW: http://www-ict.its.tudelft.nl/~erik/ |
From: Tim R. <Ti...@Ri...> - 2002-01-29 03:11:28
|
just to confirn, if you hexedit your lart blob you do not what are the last 100 bytes or so? I'm building with: ./configure \ --with-linux-prefix=/home/timr/work/vercel/linux \ --enable-maintainer-mode \ --enable-clock-scaling \ --enable-memtest \ --enable-debug \ --enable-lcd \ --enable-jffs2 \ --enable-md5 \ --with-board=idr \ --enable-all-features \ arm-linux make lcd and clock scale are not yet supported. Erik Mouw wrote: > > On Mon, Jan 28, 2002 at 03:44:24PM -0700, Tim Riker wrote: > > hmm... > > > > I have not touched that file. Compiling for idr from cvs I see: > > > > timr@localhost:~/work/vercel/blob/src/blob$ ls -l blob* > > -rwxr-xr-x 1 timr timr 46520 Jan 28 14:12 blob > > -rwxr-xr-x 1 timr timr 46520 Jan 28 14:12 blob-chain > > -rwxr-xr-x 1 timr timr 45496 Jan 28 14:12 blob-rest > > -rwxr-xr-x 1 timr timr 77029 Jan 28 14:12 blob-rest-elf32 > > -rwxr-xr-x 1 timr timr 852 Jan 27 01:30 blob-start > > -rwxr-xr-x 1 timr timr 196 Jan 27 01:30 blob-start-chain > > -rwxr-xr-x 1 timr timr 34179 Jan 27 01:30 blob-start-chain-elf32 > > -rwxr-xr-x 1 timr timr 35805 Jan 27 01:30 blob-start-elf32 > > > > where blob has 13k of nulls on the end. > > > > blob-rest-elf32 contains this same block on the end of the code before > > the debug blocks. > > I currently can't compile for idr because of compiler errors (SBI_SKCR > undeclared in sa1111_init()), but this is the output from the last time > I compiled it: > > erik@arthur:idr/src/blob >pwd > /home/erik/src/sourceforge/build/idr/src/blob > erik@arthur:idr/src/blob >ls -l blob* > -rwxr-xr-x 1 erik users 32148 Jan 18 23:43 blob > -rwxr-xr-x 1 erik users 32148 Jan 17 00:22 blob-chain > -rwxr-xr-x 1 erik users 31124 Jan 17 00:22 blob-rest > -rwxr-xr-x 1 erik users 76596 Jan 17 00:22 blob-rest-elf32 > -rwxr-xr-x 1 erik users 852 Jan 18 23:43 blob-start > -rwxr-xr-x 1 erik users 196 Jan 9 00:31 blob-start-chain > -rwxr-xr-x 1 erik users 34465 Jan 9 00:31 blob-start-chain-elf32 > -rwxr-xr-x 1 erik users 36382 Jan 18 23:43 blob-start-elf32 > > And this is with today's CVS version for LART (compiled with > --enable-md5): > > erik@arthur:lart/src/blob >pwd > /home/erik/src/sourceforge/build/lart/src/blob > erik@arthur:lart/src/blob >ls -l blob* > -rwxr-xr-x 1 erik users 24632 Jan 21 22:51 blob > -rwxr-xr-x 1 erik users 24632 Jan 21 22:51 blob-chain > -rwxr-xr-x 1 erik users 23608 Jan 21 22:51 blob-rest > -rwxr-xr-x 1 erik users 65826 Jan 21 22:51 blob-rest-elf32 > -rwxr-xr-x 1 erik users 640 Jan 19 00:47 blob-start > -rwxr-xr-x 1 erik users 196 Jan 19 00:47 blob-start-chain > -rwxr-xr-x 1 erik users 34466 Jan 19 00:47 blob-start-chain-elf32 > -rwxr-xr-x 1 erik users 36162 Jan 19 00:47 blob-start-elf32 > > I can't really repeat your problem. I am using both my gcc-2.95.2 > toolchain (available from the LART site) and the gcc-2.95.3 toolchain > (available from LART site and arm-linux FTP site). > > Unless something is defining a non-null byte somewhere in the .bss > segment or on the stack, I can't really see what's wrong. > > Erik > > > Erik Mouw wrote: > > > > > > On Mon, Jan 28, 2002 at 02:13:45PM -0700, Tim Riker wrote: > > > > Anyone know why blob has close to 14k of nulls on the end? > > > > > > It doesn't, unless you have put a segment definition *after* the .bss > > > segment in src/blob/rest-ld-script.in . > > -- > J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty > of Information Technology and Systems, Delft University of Technology, > PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 > Fax: +31-15-2781843 Email: J.A...@it... > WWW: http://www-ict.its.tudelft.nl/~erik/ > > _______________________________________________ > blob-cvs-commit mailing list > blo...@li... > https://lists.sourceforge.net/lists/listinfo/blob-cvs-commit -- Tim Riker - http://rikers.org/ - short SIGs! <g> All I need to know I could have learned in Kindergarten ... if I'd just been paying attention. |
From: Tim R. <Ti...@Ri...> - 2002-01-30 02:00:16
|
got the mapfile patch and rebuild. map file is here: http://opensource.lineo.com/~timr/vercel/ -- Tim Riker - http://rikers.org/ - short SIGs! <g> All I need to know I could have learned in Kindergarten ... if I'd just been paying attention. |
From: Erik M. <J.A...@it...> - 2002-01-30 17:05:49
|
On Tue, Jan 29, 2002 at 06:36:02PM -0700, Tim Riker wrote: > got the mapfile patch and rebuild. map file is here: > > http://opensource.lineo.com/~timr/vercel/ OK, I can reproduce your bug. My original 2.95.2 based toolchain uses binutils 2.9.5 and behaves OK, the 2.95.3 and 3.0 based toolchains use binutils 2.11.2 and 2.11.90.0.4. All gcc versions issue the same linker command line (with some differences in the -L flags), but so far only the 2.9.5 based linker works as expected. I'm trying to track it down further. I have a meeting tonight, could you add the following flag to blob_rest_elf32_LDFLAGS in src/blob/Makefile.am: -Wl,--gc-sections and try if that gives you a bootable blob image? Erik [who really has to go now] -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A...@it... WWW: http://www-ict.its.tudelft.nl/~erik/ |