All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: piggy broken in 2.5.24 build
       [not found] <linux.kernel.Pine.LNX.4.44.0206222143550.7338-100000@chaos.physics.uiowa.edu>
@ 2002-06-23 16:03 ` sean darcy
  2002-06-23 16:32 ` piggy broken in 2.5.24 build - not piggy; it was BINUTILS sean darcy
  1 sibling, 0 replies; 2+ messages in thread
From: sean darcy @ 2002-06-23 16:03 UTC (permalink / raw)
  To: Kai Germaschewski, linux kernel

Kai Germaschewski wrote:
> On Sat, 22 Jun 2002, sean darcy wrote:

> 
> Well, could you try to 
> 
> cd /opt/kernel/linux-2.5.24/arch/i386/boot/compressed
> objcopy -O binary -R .note -R .comment -S /opt/kernel/linux-2.5.24/vmlinux 
> _tmp_piggy
> 
> and see if that generates _tmp_piggy in that directory?
> 
> --Kai


Nope .It generates a segmentation fault!. I'm running 2.4.18, binutils 
2.12.90. I'm going to try a different binutils.

  Here's strace:

[root@daddy compressed]# strace objcopy -O binary -R .note -R .comment 
-S /opt/kernel/linux-2.5.24/vmlinux _tmp_piggy
execve("/usr/bin/objcopy", ["objcopy", "-O", "binary", "-R", ".note", 
"-R", ".comment", "-S", "/opt/kernel/linux-2.5.24/vmlinux", 
"_tmp_piggy"], [/* 28 vars */]) = 0
uname({sys="Linux", node="daddy", ...}) = 0
brk(0)                                  = 0x807c66c
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/lib/libNoVersion.so.1", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=6135, ...}) = 0
close(3)                                = 0
open("/lib/libNoVersion.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\10\0\000"..., 
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=6135, ...}) = 0
old_mmap(NULL, 7248, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40014000
mprotect(0x40015000, 3152, PROT_NONE)   = 0
old_mmap(0x40015000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0) = 0x40015000
close(3)                                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=76711, ...}) = 0
old_mmap(NULL, 76711, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3)                                = 0
open("/lib/i686/libc.so.6", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`u\1B4\0"..., 
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1401027, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40029000
old_mmap(0x42000000, 1264928, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0x42000000
mprotect(0x4212c000, 36128, PROT_NONE)  = 0
old_mmap(0x4212c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x12c000) = 0x4212c000
old_mmap(0x42131000, 15648, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x42131000
close(3)                                = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++





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

* Re: piggy broken in 2.5.24 build - not piggy; it was BINUTILS
       [not found] <linux.kernel.Pine.LNX.4.44.0206222143550.7338-100000@chaos.physics.uiowa.edu>
  2002-06-23 16:03 ` piggy broken in 2.5.24 build sean darcy
@ 2002-06-23 16:32 ` sean darcy
  1 sibling, 0 replies; 2+ messages in thread
From: sean darcy @ 2002-06-23 16:32 UTC (permalink / raw)
  To: Kai Germaschewski, linux kernel

Kai Germaschewski wrote:

> 
> cd /opt/kernel/linux-2.5.24/arch/i386/boot/compressed
> objcopy -O binary -R .note -R .comment -S /opt/kernel/linux-2.5.24/vmlinux 
> _tmp_piggy
> 
> and see if that generates _tmp_piggy in that directory?
> 

It was objcopy. I got binutils-2.12.90.0.12 from ftp.kernel.org - just 
released. It now works.

Thanks for putting me on the right track.

jay



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

end of thread, other threads:[~2002-06-23 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <linux.kernel.Pine.LNX.4.44.0206222143550.7338-100000@chaos.physics.uiowa.edu>
2002-06-23 16:03 ` piggy broken in 2.5.24 build sean darcy
2002-06-23 16:32 ` piggy broken in 2.5.24 build - not piggy; it was BINUTILS sean darcy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.