Re: ELF symtab and ddbsymtab difference

2012-12-06 Thread Konstantin Belousov
On Wed, Dec 05, 2012 at 12:13:24PM +0530, Shrikanth Kamath wrote: This is regarding the fields in the structure elf_file_t in link_elf.c. For some kernel modules the symtab field is different from the ddbsymtab field for some it is the same, would like to know what is the difference between

Re: ELF symtab and ddbsymtab difference

2012-12-06 Thread Shrikanth Kamath
Thanks Konstantin, yeah I think there were two levels of strip happening, one removing the debug sections and another was removing the .strtab and .symtab. I have EXPORT_SYMS = YES in my Makefile but that was not helping as the variables in context are declared static (they are going into the

start of text section in the ELF executable and in the Virtual Memory

2012-09-01 Thread asp imho
Hi all, I've a generic question about how the program looks before and after it is loaded into the memory. I see that the TEXT_START_ADDR = 0x08048000 (found this in ~src/contrib/binutils/ld/emulparams/elf_i386.sh) when I do a procstat -v PID, I see some thing like this PIDSTART

Re: start of text section in the ELF executable and in the Virtual Memory

2012-09-01 Thread Artem Belevich
not necessarily the only thing. readelf command is quite handy when you need to see details of an ELF file. But when I do a objdump of /bin/cat (cmd: `objdump -D /bin/cat`), I see that there is a section named `.interp` starting at 0x8048134 and not 0x8048000. And the .text section starts from

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-16 Thread Alexander Kabaev
0x00102508 in _start () #7 0x4022719c in .rtld_start () at /usr/home/marius/co/head/src/libexec/rtld-elf/sparc64/rtld_start.S:59 #8 0x4022719c in .rtld_start () at /usr/home/marius/co/head/src/libexec/rtld-elf/sparc64/rtld_start.S:59

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-16 Thread Marius Strobl
in __do_global_ctors_aux () #5 0x0010243c in _init () #6 0x00102508 in _start () #7 0x4022719c in .rtld_start () at /usr/home/marius/co/head/src/libexec/rtld-elf/sparc64/rtld_start.S:59 #8 0x4022719c in .rtld_start () at /usr/home

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-14 Thread Kostik Belousov
/marius/co/head/src/sbin/ifconfig/ifclone.c:106 #4 0x00119864 in __do_global_ctors_aux () #5 0x0010243c in _init () #6 0x00102508 in _start () #7 0x4022719c in .rtld_start () at /usr/home/marius/co/head/src/libexec/rtld-elf/sparc64

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-07 Thread Marius Strobl
/src/sbin/ifconfig/ifclone.c:106 #4 0x00119864 in __do_global_ctors_aux () #5 0x0010243c in _init () #6 0x00102508 in _start () #7 0x4022719c in .rtld_start () at /usr/home/marius/co/head/src/libexec/rtld-elf/sparc64/rtld_start.S:59 #8 0x4022719c

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-07 Thread Kostik Belousov
0x0010243c in _init () #6 0x00102508 in _start () #7 0x4022719c in .rtld_start () at /usr/home/marius/co/head/src/libexec/rtld-elf/sparc64/rtld_start.S:59 #8 0x4022719c in .rtld_start () at /usr/home/marius/co/head/src/libexec/rtld-elf/sparc64/rtld_start.S:59

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-07 Thread Marius Strobl
() at /usr/home/marius/co/head/src/libexec/rtld-elf/sparc64/rtld_start.S:59 #8 0x4022719c in .rtld_start () at /usr/home/marius/co/head/src/libexec/rtld-elf/sparc64/rtld_start.S:59 Previous frame identical to this frame (corrupt stack?) All faults I've looked at died

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-06 Thread Kostik Belousov
On Fri, Aug 06, 2010 at 07:06:33AM +0200, Jeremie Le Hen wrote: Hi Kib, In-Reply-To: 20100629083901.gg13...@deviant.kiev.zoral.com.ua On Tue, Jun 29, 2010 at 11:39:01AM +0300, Kostik Belousov wrote: On Tue, Jun 29, 2010 at 10:26:39AM +0200, Marius Strobl wrote: On Mon, Jun 28, 2010 at

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-06 Thread Kostik Belousov
On Fri, Aug 06, 2010 at 01:08:08PM +0200, Marius Strobl wrote: On Fri, Aug 06, 2010 at 12:04:04PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at 07:06:33AM +0200, Jeremie Le Hen wrote: Hi Kib, In-Reply-To: 20100629083901.gg13...@deviant.kiev.zoral.com.ua On Tue, Jun 29, 2010

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-06 Thread Marius Strobl
On Fri, Aug 06, 2010 at 12:04:04PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at 07:06:33AM +0200, Jeremie Le Hen wrote: Hi Kib, In-Reply-To: 20100629083901.gg13...@deviant.kiev.zoral.com.ua On Tue, Jun 29, 2010 at 11:39:01AM +0300, Kostik Belousov wrote: On Tue, Jun 29, 2010

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-05 Thread Jeremie Le Hen
Hi Kib, In-Reply-To: 20100629083901.gg13...@deviant.kiev.zoral.com.ua On Tue, Jun 29, 2010 at 11:39:01AM +0300, Kostik Belousov wrote: On Tue, Jun 29, 2010 at 10:26:39AM +0200, Marius Strobl wrote: On Mon, Jun 28, 2010 at 05:48:59PM +0300, Kostik Belousov wrote: On Wed, Jun 23, 2010 at

avoid producing empty set_pcpu section [Was: elf obj load: skip zero-sized sections early]

2010-07-15 Thread Andriy Gapon
on 11/07/2010 15:23 Andriy Gapon said the following: on 11/07/2010 14:54 Andriy Gapon said the following: For completeness, here is a patch that simply drops the inline assembly and the comment about it, and GCC-generated assembly and its diff:

Re: avoid producing empty set_pcpu section [Was: elf obj load: skip zero-sized sections early]

2010-07-15 Thread Kostik Belousov
On Thu, Jul 15, 2010 at 02:25:26PM +0300, Andriy Gapon wrote: on 11/07/2010 15:23 Andriy Gapon said the following: on 11/07/2010 14:54 Andriy Gapon said the following: For completeness, here is a patch that simply drops the inline assembly and the comment about it, and GCC-generated

Re: avoid producing empty set_pcpu section [Was: elf obj load: skip zero-sized sections early]

2010-07-15 Thread Andriy Gapon
on 15/07/2010 14:39 Kostik Belousov said the following: Is new behaviour completely identical to the behaviour of the newer ld ? No, it's not completely identical. __start_SECNAME placement would be identical, but our ld would still assign the symbol while latest upstream binutils PROVIDES

Re: elf obj load: skip zero-sized sections early

2010-07-12 Thread Jeff Roberson
On Sun, 11 Jul 2010, Andriy Gapon wrote: [oops, sorry, this is not a dup - corrected some omissions/mistakes] on 11/07/2010 14:54 Andriy Gapon said the following: For completeness, here is a patch that simply drops the inline assembly and the comment about it, and GCC-generated assembly and

Re: elf obj load: skip zero-sized sections early

2010-07-12 Thread Andriy Gapon
on 12/07/2010 00:38 Andriy Gapon said the following: on 12/07/2010 00:15 Jeff Roberson said the following: [snip] I appreciate your analysis but I don't understand the motivation for changing working code. Primary reason is that the working code produces zero-sized unused/unnecessary I

Re: elf obj load: skip zero-sized sections early

2010-07-11 Thread Andriy Gapon
on 09/07/2010 13:34 Andriy Gapon said the following: Having thought and experimented more, I don't see why we need inline assembly at all and why DPCPU_DEFINE can not simply be defined as follows: #define DPCPU_DEFINE(t, n)\ t DPCPU_NAME(n) __section(set_pcpu) \

Re: elf obj load: skip zero-sized sections early

2010-07-11 Thread Andriy Gapon
on 11/07/2010 14:54 Andriy Gapon said the following: For completeness, here is a patch that simply drops the inline assembly and the comment about it, and GCC-generated assembly and its diff: http://people.freebsd.org/~avg/dpcpu/pcpu.new.patch http://people.freebsd.org/~avg/dpcpu/dpcpu.new.s

Re: elf obj load: skip zero-sized sections early

2010-07-11 Thread Andriy Gapon
[oops, sorry, this is not a dup - corrected some omissions/mistakes] on 11/07/2010 14:54 Andriy Gapon said the following: For completeness, here is a patch that simply drops the inline assembly and the comment about it, and GCC-generated assembly and its diff:

Re: elf obj load: skip zero-sized sections early

2010-07-11 Thread Andriy Gapon
on 12/07/2010 00:15 Jeff Roberson said the following: On Sun, 11 Jul 2010, Andriy Gapon wrote: [oops, sorry, this is not a dup - corrected some omissions/mistakes] on 11/07/2010 14:54 Andriy Gapon said the following: For completeness, here is a patch that simply drops the inline

Re: elf obj load: skip zero-sized sections early

2010-07-09 Thread Andriy Gapon
Having thought and experimented more, I don't see why we need inline assembly at all and why DPCPU_DEFINE can not simply be defined as follows: #define DPCPU_DEFINE(t, n) \ t DPCPU_NAME(n) __section(set_pcpu) \ __aligned(CACHE_LINE_SIZE) __used And, honestly, I can not

Re: elf obj load: skip zero-sized sections early

2010-07-07 Thread Andriy Gapon
What do you think about something like the following? diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h index 1ee7717..ddfdefc 100644 --- a/sys/sys/pcpu.h +++ b/sys/sys/pcpu.h @@ -53,14 +53,17 @@ extern uintptr_t *__start_set_pcpu; extern uintptr_t *__stop_set_pcpu; -__asm__( -#ifdef __arm__ -

Re: elf obj load: skip zero-sized sections early

2010-07-05 Thread Andriy Gapon
on 02/07/2010 11:29 Bjoern A. Zeeb said the following: On Fri, 25 Jun 2010, Andriy Gapon wrote: Hey, Proposed patch skips zero sized sections without going into trouble of allocating section entry (progtab), doing zero-sized memory allocs and copies. I observe that sometimes zero-sized

Re: elf obj load: skip zero-sized sections early

2010-07-05 Thread Bjoern A. Zeeb
On Mon, 5 Jul 2010, Andriy Gapon wrote: on 02/07/2010 11:29 Bjoern A. Zeeb said the following: On Fri, 25 Jun 2010, Andriy Gapon wrote: Hey, Proposed patch skips zero sized sections without going into trouble of allocating section entry (progtab), doing zero-sized memory allocs and copies.

Re: elf obj load: skip zero-sized sections early

2010-07-05 Thread Andriy Gapon
on 05/07/2010 20:12 Bjoern A. Zeeb said the following: On Mon, 5 Jul 2010, Andriy Gapon wrote: on 02/07/2010 11:29 Bjoern A. Zeeb said the following: On Fri, 25 Jun 2010, Andriy Gapon wrote: Hey, Proposed patch skips zero sized sections without going into trouble of allocating section

Re: elf obj load: skip zero-sized sections early

2010-07-05 Thread Julian Elischer
On 7/5/10 10:12 AM, Bjoern A. Zeeb wrote: On Mon, 5 Jul 2010, Andriy Gapon wrote: [...] The same applies to VIMAGE btw. Same technique. or the proposed per-vimage AND per-CPU zone (to allow pcpu stats in a vimage..).. which degenerates to just more pcpu stuff if vimage is not enabled.

Re: elf obj load: skip zero-sized sections early

2010-07-02 Thread Bjoern A. Zeeb
On Fri, 25 Jun 2010, Andriy Gapon wrote: Hey, Proposed patch skips zero sized sections without going into trouble of allocating section entry (progtab), doing zero-sized memory allocs and copies. I observe that sometimes zero-sized set_pcpu sections are produced in module objects, maybe when a

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-06-29 Thread Kostik Belousov
On Tue, Jun 29, 2010 at 10:26:39AM +0200, Marius Strobl wrote: On Mon, Jun 28, 2010 at 05:48:59PM +0300, Kostik Belousov wrote: On Wed, Jun 23, 2010 at 11:09:59PM +0200, Jeremie Le Hen wrote: Hi Kostik, This patch seems to have faded out from memory. Is it possible to go forward

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-06-29 Thread Marius Strobl
On Mon, Jun 28, 2010 at 05:48:59PM +0300, Kostik Belousov wrote: On Wed, Jun 23, 2010 at 11:09:59PM +0200, Jeremie Le Hen wrote: Hi Kostik, This patch seems to have faded out from memory. Is it possible to go forward and commit it? I refreshed the patch. Hopefully, nobody will object,

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-06-28 Thread Kostik Belousov
[1] = KERN_ARND; diff --git a/libexec/rtld-elf/Symbol.map b/libexec/rtld-elf/Symbol.map index ce1e3e5..f45f955 100644 --- a/libexec/rtld-elf/Symbol.map +++ b/libexec/rtld-elf/Symbol.map @@ -24,4 +24,5 @@ FBSDprivate_1.0 { _rtld_free_tls; _rtld_atfork_pre; _rtld_atfork_post

elf obj load: skip zero-sized sections early

2010-06-25 Thread Andriy Gapon
Proposed patch skips zero sized sections without going into trouble of allocating section entry (progtab), doing zero-sized memory allocs and copies. I observe that sometimes zero-sized set_pcpu sections are produced in module objects, maybe when a module doesn't create any per cpu data of its

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-06-23 Thread Jeremie Le Hen
--git a/libexec/rtld-elf/Symbol.map b/libexec/rtld-elf/Symbol.map index ce1e3e5..f45f955 100644 --- a/libexec/rtld-elf/Symbol.map +++ b/libexec/rtld-elf/Symbol.map @@ -24,4 +24,5 @@ FBSDprivate_1.0 { _rtld_free_tls; _rtld_atfork_pre; _rtld_atfork_post; +_rtld_aux_info

Modifying ELF files

2010-04-08 Thread Patrick Mahan
the file for writing, locate the .compsign section and stuff in the signature, write it out and close the file. (simple ELF manipulation) An 'ls -l' shows the following: % ls compklm.ko -rw-r--r-- 1 pmahan pmahan 125296 Apr 6 22:50 /home/pmahan/temp/compklm.ko When I try to run my program

Re: Modifying ELF files

2010-04-08 Thread Nate Eldredge
(.compsign))); What I need to do is open the file for writing, locate the .compsign section and stuff in the signature, write it out and close the file. (simple ELF manipulation) An 'ls -l' shows the following: % ls compklm.ko -rw-r--r-- 1 pmahan pmahan 125296 Apr 6 22:50 /home/pmahan/temp

Re: Modifying ELF files

2010-04-08 Thread Peter Pentchev
[40] __attribute__((section(.compsign))); What I need to do is open the file for writing, locate the .compsign section and stuff in the signature, write it out and close the file. (simple ELF manipulation) An 'ls -l' shows the following: % ls compklm.ko -rw-r--r-- 1 pmahan pmahan 125296

Re: Modifying ELF files

2010-04-08 Thread Patrick Mahan
] __attribute__((section(.compsign))); What I need to do is open the file for writing, locate the .compsign section and stuff in the signature, write it out and close the file. (simple ELF manipulation) An 'ls -l' shows the following: % ls compklm.ko -rw-r--r-- 1 pmahan pmahan 125296 Apr 6

Re: Is Elf formatdocumented anywhere?

2008-01-21 Thread Dag-Erling Smørgrav
Yuri [EMAIL PROTECTED] writes: Erik Trulsson [EMAIL PROTECTED] writes: ELF is fairly well documented and standardized. No, I would say ELF is somewhat documented. Do not confuse your inability or unwillingness to read a specification with the absence of such a specification. http

Re: Is Elf formatdocumented anywhere?

2008-01-16 Thread Alexander V. Chernikov
Yuri wrote: When I am trying to understand how Elf executable works I am only getting to few pages with very fragmentary information. Googling many constants like R_386_PC32, R_386_TLS_LD only yields some discussion references and code. Anybody knows where to read more about the Elf format

Is Elf formatdocumented anywhere?

2008-01-15 Thread Yuri
When I am trying to understand how Elf executable works I am only getting to few pages with very fragmentary information. Googling many constants like R_386_PC32, R_386_TLS_LD only yields some discussion references and code. Anybody knows where to read more about the Elf format? Does

Re: Is Elf formatdocumented anywhere?

2008-01-15 Thread Erik Trulsson
On Tue, Jan 15, 2008 at 02:46:03PM -0800, Yuri wrote: When I am trying to understand how Elf executable works I am only getting to few pages with very fragmentary information. Googling many constants like R_386_PC32, R_386_TLS_LD only yields some discussion references and code. Anybody

Re: Is Elf formatdocumented anywhere?

2008-01-15 Thread Bob Bishop
Hi, On 15 Jan 2008, at 22:46, Yuri wrote: [...] Anybody knows where to read more about the Elf format? Does such document even exist? It's originally defined in the System V ABI specification, http://www.caldera.com/developers/devspecs/gabi41.pdf -- Bob Bishop +44 (0)118 940

Re: Is Elf formatdocumented anywhere?

2008-01-15 Thread Yuri
ELF is fairly well documented and standardized. No, I would say ELF is somewhat documented. Just googling for 'ELF' quickly yields the Wikipedia page http://en.wikipedia.org/wiki/Executable_and_Linkable_Format which contains several links to documents describing plenty of details

Re: Is Elf formatdocumented anywhere?

2008-01-15 Thread Rayson Ho
What specifically you want to know about ELF?? Rayson On Jan 15, 2008 6:46 PM, Yuri [EMAIL PROTECTED] wrote: ELF is fairly well documented and standardized. No, I would say ELF is somewhat documented. Just googling for 'ELF' quickly yields the Wikipedia page http://en.wikipedia.org

Re: Is Elf formatdocumented anywhere?

2008-01-15 Thread Marcin Cieslak
Yuri wrote: ELF is fairly well documented and standardized. No, I would say ELF is somewhat documented. Just googling for 'ELF' quickly yields the Wikipedia page http://en.wikipedia.org/wiki/Executable_and_Linkable_Format which contains several links to documents describing plenty

Anyone solved boot freebsd-elf image from u-boot now?

2006-11-22 Thread Zhao Tongyi
I found *rafal.jaworowski* have wrote some patch to boot freebsd-elf image through u-boot in freebsd-hackers mail list, I have a ppc-4xx board ,and want to use u-boot as bootloader, Can we boot freebsd through u-boot ? ___ freebsd-hackers@freebsd.org

Static built binaries having unknown ELF binary types

2006-07-07 Thread Victor Roman Archidona
(usr.bin/make), but when I try to execute it I got the following results: [EMAIL PROTECTED] ~ # /usr/bin/make ELF binary type 0 not known. - -su: /usr/bin/make: cannot execute binary file [EMAIL PROTECTED] ~ # I must say that this *only* happends when make is built statically (if you want it compiled

Re: Static built binaries having unknown ELF binary types

2006-07-07 Thread Steve Kargl
On Sat, Jul 08, 2006 at 06:08:13AM +0200, Victor Roman Archidona wrote: at first I should mention that this post is about Gentoo/FreeBSD for amd64 port, using the Gentoo portage system with FreeBSD sources, library and so on. If you're not interested in this you can stop reading now :-).

Re: Static built binaries having unknown ELF binary types

2006-07-07 Thread Joseph Koshy
I'm compiling make (usr.bin/make), but when I try to execute it I got the following results: [snip] 'Tis a bug in your toolchain. e_ident[EI_OSABI] in the ELF header isn't being set correctly for static executables. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy

How do I control the load address in Elf header

2005-11-17 Thread Freebsd Enthu
Hi, I am one of the firmware guys that is writing a Secondary Boot Loader that boots FreeBSD kernel. From what I see in the ELF header for FreeBSD kernel, the load address seems to have a value of 0x8020 which seems to be a Virtual address for me. If I want to put the Physical

Re: How do I control the load address in Elf header

2005-11-17 Thread Joseph Koshy
I am one of the firmware guys that is writing a Secondary Boot Loader that boots FreeBSD kernel. From what I see in the ELF header for FreeBSD kernel, the load address seems to have a value of 0x8020 which seems to be a Virtual address for me. If I want to put the Physical address

Re: ELF binary type 0 not known.

2005-09-19 Thread Guido van Rooij
On Fri, Sep 16, 2005 at 11:56:09AM +, Wouter van Rooij wrote: I have this error message when i'm wanting to start mozilla for example. Do some of you know whats wrong and what I can do to get it working again? Wouter van Rooij Hey Wouter, you should have just asked

ELF binary type 0 not known.

2005-09-16 Thread Wouter van Rooij
I have this error message when i'm wanting to start mozilla for example. Do some of you know whats wrong and what I can do to get it working again? Wouter van Rooij ___ freebsd-hackers@freebsd.org mailing list

Re: ELF binary type 0 not known.

2005-09-16 Thread Peter Pentchev
On Fri, Sep 16, 2005 at 11:56:09AM +, Wouter van Rooij wrote: I have this error message when i'm wanting to start mozilla for example. Do some of you know whats wrong and what I can do to get it working again? Is this a Linux binary of Mozilla? If you are trying to run a Linux

Re: ELF binary type 0 not known.

2005-09-16 Thread Joerg Sonnenberger
On Fri, Sep 16, 2005 at 11:56:09AM +, Wouter van Rooij wrote: I have this error message when i'm wanting to start mozilla for example. Do some of you know whats wrong and what I can do to get it working again? Is it by any chance a Linux binary? Try brandelf in that case. Well, try

Re: ELF binary type 0 not known.

2005-09-16 Thread Eirik Mikkelsen
On Fri, Sep 16, 2005 at 03:18:05PM +0200, Joerg Sonnenberger wrote: On Fri, Sep 16, 2005 at 11:56:09AM +, Wouter van Rooij wrote: I have this error message when i'm wanting to start mozilla for example. Do some of you know whats wrong and what I can do to get it working again? Is it

Re: ELF binary type 0 not known.

2005-09-16 Thread Daniel O'Connor
On Friday 16 September 2005 22:53, Peter Pentchev wrote: On Fri, Sep 16, 2005 at 11:56:09AM +, Wouter van Rooij wrote: I have this error message when i'm wanting to start mozilla for example. Do some of you know whats wrong and what I can do to get it working again? Is this a Linux

Re: ELF binary type 0 not known.

2005-09-16 Thread Peter Pentchev
the error message mention ELF binary type 3, not 0? So I went ahead and included all the steps, just to cover all bases :) G'luck, Peter -- Peter Pentchev [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED] PGP key:http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79

Re: ELF binary type 0 not known.

2005-09-16 Thread Daniel O'Connor
the error message mention ELF binary type 3, not 0? So I went ahead and included all the steps, just to cover all bases :) I'd be *very* suprised.. I expect he just downloaded an RPM from somewhere.. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au

Re: ELF binary type 0 not known.

2005-09-16 Thread Daniel Eischen
on the executables - if brandelf had been run, wouldn't the error message mention ELF binary type 3, not 0? So I went ahead and included all the steps, just to cover all bases :) I'd be *very* suprised.. I expect he just downloaded an RPM from somewhere.. It's probably just not having linux.ko

Re: ELF binary type 0 not known.

2005-09-16 Thread Daniel O'Connor
/compat/linux/bin/ls ELF binary type 0 not known. $ sudo kldload linux.ko $ kldstat Id Refs AddressSize Name 15 0xc040 498518 kernel 21 0xc2a1a000 16000linux.ko $ /usr/compat/linux/bin/ls /bin basename chgrp cpecho fgrep ls mvrm

Re: ELF binary type 0 not known.

2005-09-16 Thread Peter Pentchev
AddressSize Name 11 0xc040 498518 kernel $ /usr/compat/linux/bin/ls ELF binary type 0 not known. $ sudo kldload linux.ko $ kldstat Id Refs AddressSize Name 15 0xc040 498518 kernel 21 0xc2a1a000 16000linux.ko $ /usr

Re: ELF binary type 0 not known.

2005-09-16 Thread Daniel O'Connor
On Saturday 17 September 2005 00:16, Peter Pentchev wrote: Wow that's weird.. I wonder why that happens? What is weird? The fact that if linux.ko is not loaded, the kernel does not know what to do with an unknown ELF binary type? :) I misread that as having linprocfs loaded :) What I

Re: ELF binary type 0 not known.

2005-09-16 Thread Daniel Eischen
On Fri, 16 Sep 2005, Peter Pentchev wrote: What is weird? The fact that if linux.ko is not loaded, the kernel does not know what to do with an unknown ELF binary type? :) What I find weird is the fact that as soon as linux.ko is loaded, the kernel learns to treat type 0 binaries as type 3

Re: ELF branding / magic numbers

2004-02-10 Thread Nathan Hawkins
, or is there some part of the puzzle I'm missing? There's an EI_ABIVERSION byte following the EI_OSABI byte, which is both documented in the elf(5) manpage, and is shown in the ``readelf -h'' output. You misunderstood me. My question was why is there a need for a PT_NOTE section (which

ELF branding / magic numbers

2004-02-05 Thread Philip Reynolds
Hi, At the moment, on both OpenBSD and FreeBSD (you're going to have to excuse my lack of familiarity with NetBSD but I presume this situation is similar) ELF files are branded via the CSU library, inside a PT_NOTE section. I've looked through as much documentation and list archives that I

Re: ELF branding / magic numbers

2004-02-05 Thread Ruslan Ermilov
On Thu, Feb 05, 2004 at 08:39:45AM +, Philip Reynolds wrote: [...] Does the magic number not then support multiple ABI's per system architecture, or is there some part of the puzzle I'm missing? There's an EI_ABIVERSION byte following the EI_OSABI byte, which is both documented in the elf

Re: ELF branding / magic numbers

2004-02-05 Thread Philip Reynolds
byte following the EI_OSABI byte, which is both documented in the elf(5) manpage, and is shown in the ``readelf -h'' output. You misunderstood me. My question was why is there a need for a PT_NOTE section (which is a more convaluted way of branding and reading a brand of an elf binary

Re: ELF branding / magic numbers

2004-02-05 Thread M. Warner Losh
: architecture, or is there some part of the puzzle I'm missing? : : There's an EI_ABIVERSION byte following the EI_OSABI byte, which : is both documented in the elf(5) manpage, and is shown in the : ``readelf -h'' output. : : You misunderstood me. : : My question was why is there a need

ld-elf/libc problem? (was: php3/php4 problem)

2003-09-01 Thread Andrey Alekseyev
php3 and php4 were both enabled. I spent long hours reading through commit logs since 4.6.2 and I found a solution. It turns out that backing out the commits below and replacing certain ld-elf and libc source files with the appropriate old versions effectively solves php3+php4 dynamic modules

Re: Possible issue with in-kernel ELF loader.

2003-07-21 Thread Matthew Dillon
:It turns out that the kernel's internal ELF loader is misinterpreting :an ABS symbol (i.e. set with .SET in assembly) whos value is 0 as being :'not found', and once that is fixed it was also confusing the absolute :symbol with a COMMON symbol. : :Thanks for the pointer. FWIW, We

Re: Possible issue with in-kernel ELF loader.

2003-07-20 Thread Peter Wemm
Matthew Dillon wrote: I got an odd bug report for DragonFly today. Apparently the module loader was broken, the kernel complained about not being able to find 'globaldata'. It turns out that the kernel's internal ELF loader is misinterpreting an ABS symbol (i.e. set

Possible issue with in-kernel ELF loader.

2003-07-17 Thread Matthew Dillon
I got an odd bug report for DragonFly today. Apparently the module loader was broken, the kernel complained about not being able to find 'globaldata'. It turns out that the kernel's internal ELF loader is misinterpreting an ABS symbol (i.e. set with .SET in assembly) whos value

elf core dump files

2003-06-04 Thread T.M. Sommers
I am trying to write a little program to get some information from core dump files. I do not understand, however, what is in each of the loadable segments in the core dump, and how those segments correlate to the segments in the executable file. For one thing, there are more loadable segments in

Re: Assembly and ELF

2002-11-25 Thread Jonah Sherman
I suggest you read The Design and Implementation of the 4.4BSD Operating System. It will answer most if not all of your questions. On Sat, Nov 23, 2002 at 02:05:03AM +0100, [EMAIL PROTECTED] wrote: OK, I have read some more now and will ask a few questions. If I am asking the wrong place,

Re: Assembly and ELF

2002-11-25 Thread dslb
On 2002.11.23 02:13 Jonah Sherman wrote: I suggest you read The Design and Implementation of the 4.4BSD Operating System. It will answer most if not all of your questions. Funny you should mention that. I ordered that book thursday, It will be here within 6-8 days :-) br socketd To

Re: Assembly and ELF

2002-11-22 Thread dslb
OK, I have read some more now and will ask a few questions. If I am asking the wrong place, please say so. 1. If have found part of what I am looking for: http://www.cs.ucdavis.edu/~haungs/paper/node14.html#sections But I need more info (in depth info). Is .bss = the heap? 2. I would like more

Assembly and ELF

2002-11-21 Thread dslb
is. Btw why do we need to pad arguments? 3. Why do BSD use the stack and not the registres to pass arguments to functions? I bet there is a really good reason, but isn't the Linux/Windows way better performancewise? 4. I would really like to know more (everything) about the ELF file format

Re: Assembly and ELF

2002-11-21 Thread dslb
On 2002.11.21 17:54 [EMAIL PROTECTED] wrote: I can't remember if I'm on the list, so please CC to me. Just found out I'm on the list :-) br socketd To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: Assembly and ELF

2002-11-21 Thread dslb
On 2002.11.21 18:00 Bruce M Simpson wrote: One big question I'd have is, why are you using assembly language? 1. I like assembly 2. FreeBSD will still need assembly programms 3. To learn more about the FreeBSD kernel (internals) I do however program in C++, so if you are worried about

Re: Assembly and ELF

2002-11-21 Thread dslb
On 2002.11.21 18:33 Chuck Tuffli wrote: There is http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x86.html I'm not sure if this is the same as the above link I'll read it, thanks :-) br socketd To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe

Re: Assembly and ELF

2002-11-21 Thread dslb
On 2002.11.21 18:33 Chuck Tuffli wrote: My questions are: 1. Can you guide my to some good info on asm programming under FreeBSD (I have read www.int80h.org/bsdasm) There is http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x86.html I'm not sure if this is the same

ELF p_offset p_vaddr

2001-06-08 Thread milunovic
-BEGIN PGP SIGNED MESSAGE- I'm little confused.I'm reading ELF specification and I found that p_offset and p_vaddr should be congrunet to module PAGE_SIZE. So is this correct ? If it isn't can anybody tell me what is correct. #define PAGE_SIZE 4096 p_offset % PAGE_SIZE == p_vaddr

Re: ELF p_offset p_vaddr

2001-06-08 Thread John Polstra
In article [EMAIL PROTECTED], milunovic [EMAIL PROTECTED] wrote: I'm little confused.I'm reading ELF specification and I found that p_offset and p_vaddr should be congrunet to module PAGE_SIZE. So is this correct ? If it isn't can anybody tell me what is correct. It is correct. It is done

[ls@Gambit.Msk.SU: ELF rlimits problem (kern/18209)]

2001-05-28 Thread Kris Kennaway
Can someone take a look at this PR? It seems to still be relevant. Kris - Forwarded message from Sergei Laskavy [EMAIL PROTECTED] - Delivered-To: [EMAIL PROTECTED] Date: Wed, 31 May 2000 14:03:30 +0400 From: Sergei Laskavy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: ELF rlimits

Re: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/rtld.c:2033

2001-01-04 Thread John Polstra
. This patch is against -current, but I think it will apply cleanly to -stable too. Thanks, John Index: rtld.c === RCS file: /home/ncvs/src/libexec/rtld-elf/rtld.c,v retrieving revision 1.50 diff -u -r1.50 rtld.c --- rtld.c 2000/11/07

Re: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/rtld.c:2033

2001-01-04 Thread Russell L. Carter
%=== %RCS file: /home/ncvs/src/libexec/rtld-elf/rtld.c,v %retrieving revision 1.50 %diff -u -r1.50 rtld.c %--- rtld.c 2000/11/07 22:41:53 1.50 %+++ rtld.c 2001/01/05 00:13:18 %@@ -77,6 +77,8 @@ % static Obj_Entry *digest_phdr(const

Re: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/rtld.c:2033

2001-01-04 Thread John Polstra
%Could you please try the patch below? It is like the patch that Paul %sent, except it should handle error conditions better. % %This patch is against -current, but I think it will apply cleanly to %-stable too. My pleasure. This patch applies cleanly against a two day old -stable, and

Re: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/rtld.c:2033

2000-12-30 Thread Russell L. Carter
Bingo! Thanks guys! Russell %John Polstra ([EMAIL PROTECTED]) wrote: % In article [EMAIL PROTECTED], % Russell L. Carter [EMAIL PROTECTED] wrote: % % On a fairly recent -STABLE I am getting this failure: % % ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/rtld.c:2033 % % I

ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/rtld.c:2033

2000-12-29 Thread Russell L. Carter
Greetings, On a fairly recent -STABLE I am getting this failure: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/rtld.c:2033 I assume I'm doing something stupid, however the same code works on Linux gcc-2.95.2, so I'm looking for what the difference might be. The program is an ACE/TAO

Re: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/rtld.c:2033

2000-12-29 Thread John Polstra
In article [EMAIL PROTECTED], Russell L. Carter [EMAIL PROTECTED] wrote: On a fairly recent -STABLE I am getting this failure: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/rtld.c:2033 I assume I'm doing something stupid, however the same code works on Linux gcc-2.95.2, so I'm

Re: Source code of the dynamic loader (ELF)

2000-12-20 Thread Sven C. Koehler
Umm I should have asked better. I am looking for the ELF Dynamic Loader, which loads Shared Objects (the thing behind dlopen() et al.). kern_linker.c looks to me as the loader of kernel objects (.ko files). On Tue, Dec 19, 2000 at 06:36:00PM -0500, Andrew R. Reiter wrote: sys/kern

Re: Source code of the dynamic loader (ELF)

2000-12-20 Thread Bjoern Fischer
Hello Sven, Umm I should have asked better. I am looking for the ELF Dynamic Loader, which loads Shared Objects (the thing behind dlopen() et al.). kern_linker.c looks to me as the loader of kernel objects (.ko files). look into /usr/src/libexec/rtld-elf/. Bjoern -- -BEGIN GEEK

Re: ELF rtld and environment variables...

2000-08-14 Thread Julian Stacey
Ollivier Robert wrote: According to Julian Stacey: 4.1-release produces no /sbin/mount_cfs, man mount give no hint, If you have patches to test, I volunteer to test on 4.1 or 3.4 :-) It is a port. I'd love to import it into CURRENT though. Some friends running vile Micro$oft asked me if

Re: ELF rtld and environment variables...

2000-08-14 Thread Wes Peters
Julian Stacey wrote: Ollivier Robert wrote: According to Julian Stacey: 4.1-release produces no /sbin/mount_cfs, man mount give no hint, If you have patches to test, I volunteer to test on 4.1 or 3.4 :-) It is a port. I'd love to import it into CURRENT though. Some friends

Re: ELF rtld and environment variables...

2000-08-07 Thread Julian Stacey
Ollivier Robert wrote: According to Julian Stacey: just as today I'd use an encrypting file system on my new laptop, but such file system don't exist on FreeBSD unfortunately. Ahem. Why did I sent an update for security/cfs to green a few months ago? :-) 4.1-release produces no

Re: ELF rtld and environment variables...

2000-08-07 Thread Ollivier Robert
According to Julian Stacey: 4.1-release produces no /sbin/mount_cfs, man mount give no hint, If you have patches to test, I volunteer to test on 4.1 or 3.4 :-) It is a port. I'd love to import it into CURRENT though. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- [EMAIL PROTECTED]

Re: ELF rtld and environment variables...

2000-07-27 Thread Kris Kennaway
On Wed, 26 Jul 2000, Julian Stacey wrote: That laptop has now gone to 4.0, aout to elf, a 1.5G disc, so no incentive to do it all again to see how much FreeBSD-4 gzipped aout binary tree might save/waste on a whole tree. BTW I was `strip'ing gzexe(1) is your friend :-) Kris -- In God we

  1   2   >