No elf(5) man page (docs/7914)

1999-07-30 Thread Nik Clayton
Hi folks, We have an a.out(5), but no elf(5) (as pointed out in docs/7914). Does anyone feel up to writing one? N -- [intentional self-reference] can be easily accommodated using a blessed, non-self-referential dummy head-node whose own object destructor severs the links. -- Tom

Re: make aout-to-elf-build Failing

1999-08-30 Thread Doug
finally thinking of doing the > > > > 2.2.8-STABLE to 3.2-STABLE upgrade. > > > > > > > > I have upgraded within a major release several times (a number of > > > > 2.2.7 to 2.2.8 and 3.1 to 3.2 systems), but never done the a.out to > > > >

Re: make aout-to-elf-build Failing

1999-08-30 Thread John Birrell
On Mon, Aug 30, 1999 at 09:13:58AM -0700, Doug wrote: > I've seen quite a few reports of this lately, and while this fixes it, it > shouldn't be necessary, should it? Has something changed in the 'make > upgrade' target recently? `make' has changed. -- John Birrell - [EMAIL PROTECTED]; [

Re: make aout-to-elf-build Failing

1999-08-30 Thread Doug
On Tue, 31 Aug 1999, John Birrell wrote: > On Mon, Aug 30, 1999 at 09:13:58AM -0700, Doug wrote: > > I've seen quite a few reports of this lately, and while this fixes it, it > > shouldn't be necessary, should it? Has something changed in the 'make > > upgrade' target recently? > > `make' h

Re: make aout-to-elf-build Failing

1999-08-31 Thread John Birrell
On Mon, Aug 30, 1999 at 03:55:42PM -0700, Doug wrote: > > `make' has changed. > > Ok, that's the cause then, so what's the solution? :) And > meanwhile is it going to hurt anything if I put a suggestion on my 'make > upgrade' web page that users do 'make -DMACHINE_ARCH=i386 upgrade' as a >

Re: make aout-to-elf-build Failing

1999-08-31 Thread Doug
John Birrell wrote: > > On Mon, Aug 30, 1999 at 03:55:42PM -0700, Doug wrote: > > > `make' has changed. > > > > Ok, that's the cause then, so what's the solution? :) And > > meanwhile is it going to hurt anything if I put a suggestion on my 'make > > upgrade' web page that users do 'make -D

Re: make aout-to-elf-build Failing

1999-08-31 Thread John Birrell
est the patch because you won't execute the code in question. Do I really need to send you a patch to change one word in /usr/src/usr.bin/make/main.c?! Please take a few moments to have a look for "unknown" in that file. Sigh. If there is someone with a scratch disk on which they ca

Re: make aout-to-elf-build Failing

1999-08-31 Thread David Scheidt
On Wed, 1 Sep 1999, John Birrell wrote: > If there is someone with a scratch disk on which they can install 2.2.8 > (or 2.2.7 or 2.2.6) and do a `make aout-to-elf' and report the results, > we could get this sorted out. I don't have the hardware to do that > anymore. An

Re: make aout-to-elf-build Failing

1999-08-31 Thread Doug
On Wed, 1 Sep 1999, John Birrell wrote: > On Tue, Aug 31, 1999 at 08:27:00AM -0700, Doug wrote: > > John Birrell wrote: > > > The solution is to fix `make'. I could commit the fix, but I'm not > > > in a position to build -stable just now. I'm not supposed to commit > > > without testing. The fix

Re: make aout-to-elf-build Failing

1999-08-31 Thread David Scheidt
> If there is someone with a scratch disk on which they can install 2.2.8 > (or 2.2.7 or 2.2.6) and do a `make aout-to-elf' and report the results, > we could get this sorted out. I don't have the hardware to do that > anymore. Any list-lurkers want to help out? The obvious one-lin

Re: make aout-to-elf-build Failing

1999-09-01 Thread John Birrell
On Tue, Aug 31, 1999 at 10:12:27PM -0500, David Scheidt wrote: > The obvious one-line fix appears to work. My 2.2.6 to RELENG_3 build hasn't > finished yet, but it makes it past the point where it fails due to > machine_arch be ing undefined. Do I need to check if 2.2.6 to -CURRENT > works? I

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: > > sy

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

Static built binaries having unknown ELF binary types

2006-07-07 Thread Victor Roman Archidona
ling "make" (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&q

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 misinterpretin

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. : :Th

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

2003-09-01 Thread Andrey Alekseyev
ays failed when 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

Re: No elf(5) man page (docs/7914)

1999-07-30 Thread Jeroen Ruigrok/Asmodai
* Nik Clayton (n...@nothing-going-on.demon.co.uk) [990730 23:37]: > Hi folks, > > We have an a.out(5), but no elf(5) (as pointed out in docs/7914). > > Does anyone feel up to writing one? Saw it before, noticed it, placed on my to-do list. If no-one objects I'll submit a

Re: No elf(5) man page (docs/7914)

1999-07-31 Thread Sheldon Hearn
On Fri, 30 Jul 1999 23:46:26 +0200, Jeroen Ruigrok/Asmodai wrote: > If no-one objects I'll submit a manpage per a.out(5) style tomorrow > for review untill it's ready for inclusion. Anyone who objects to your submissions is a woes -- real bastards wait for you to do the work before shooting you

Re: No elf(5) man page (docs/7914)

1999-07-31 Thread Jeroen Ruigrok/Asmodai
* Sheldon Hearn (sheld...@uunet.co.za) [990801 00:35]: > > > On Fri, 30 Jul 1999 23:46:26 +0200, Jeroen Ruigrok/Asmodai wrote: > > > If no-one objects I'll submit a manpage per a.out(5) style tomorrow > > for review untill it's ready for inclusion. > > Anyone who objects to your submissions is

Re: No elf(5) man page (docs/7914)

1999-07-31 Thread Wes Peters
Jeroen Ruigrok/Asmodai wrote: > > * Nik Clayton (n...@nothing-going-on.demon.co.uk) [990730 23:37]: > > Hi folks, > > > > We have an a.out(5), but no elf(5) (as pointed out in docs/7914). > > > > Does anyone feel up to writing one? > > Saw it before,

Re: No elf(5) man page (docs/7914)

1999-08-01 Thread Jeroen Ruigrok/Asmodai
* Wes Peters (w...@softweyr.com) [990801 07:12]: > Jeroen Ruigrok/Asmodai wrote: > > > > * Nik Clayton (n...@nothing-going-on.demon.co.uk) [990730 23:37]: > > > > > > We have an a.out(5), but no elf(5) (as pointed out in docs/7914). > > > > > >

Re: No elf(5) man page (docs/7914)

1999-08-01 Thread Daniel C. Sobral
Sheldon Hearn wrote: > > On Fri, 30 Jul 1999 23:46:26 +0200, Jeroen Ruigrok/Asmodai wrote: > > > If no-one objects I'll submit a manpage per a.out(5) style tomorrow > > for review untill it's ready for inclusion. > > Anyone who objects to your submissions is a woes -- real bastards wait > for yo

Re: no elf(5) man page (docs/7914)

1999-08-01 Thread Andy Doran
Wes Peters writes: > NetBSD doesn't have one as of 1.4, so they may be interested in yours. ;^) It'd be cool if Asmodai could bounce this around one of the NetBSD lists once it's near completion. tech-toolchain@ or tech-userlevel@ would be the right place I guess. - ad To Unsubscribe: send ma

Re: no elf(5) man page (docs/7914)

1999-08-01 Thread Jeroen Ruigrok/Asmodai
* Andy Doran (a...@netbsd.org) [990802 00:53]: > Wes Peters writes: > > > NetBSD doesn't have one as of 1.4, so they may be interested in yours. ;^) > > It'd be cool if Asmodai could bounce this around one of the NetBSD lists > once it's near completion. tech-toolchain@ or tech-userlevel@ would b

Re: no elf(5) man page (docs/7914)

1999-08-02 Thread Wes Peters
Jeroen Ruigrok/Asmodai wrote: > > * Andy Doran (a...@netbsd.org) [990802 00:53]: > > Wes Peters writes: > > > > > NetBSD doesn't have one as of 1.4, so they may be interested in yours. ;^) > > > > It'd be cool if Asmodai could bounce this around one of the NetBSD lists > > once it's near completio

Re: no elf(5) man page (docs/7914)

1999-08-03 Thread Jeroen Ruigrok/Asmodai
* Wes Peters (w...@softweyr.com) [990803 10:13]: > Jeroen Ruigrok/Asmodai wrote: > > * Andy Doran (a...@netbsd.org) [990802 00:53]: > > > Wes Peters writes: > > > > NetBSD doesn't have one as of 1.4, so they may be interested in yours. > > > > ;^) > > > > > > It'd be cool if Asmodai could bounce

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 one

Re: No elf(5) man page (docs/7914)

1999-07-30 Thread Jeroen Ruigrok/Asmodai
* Nik Clayton ([EMAIL PROTECTED]) [990730 23:37]: > Hi folks, > > We have an a.out(5), but no elf(5) (as pointed out in docs/7914). > > Does anyone feel up to writing one? Saw it before, noticed it, placed on my to-do list. If no-one objects I'll submit a manpage per a.o

Re: No elf(5) man page (docs/7914)

1999-07-31 Thread Sheldon Hearn
On Fri, 30 Jul 1999 23:46:26 +0200, Jeroen Ruigrok/Asmodai wrote: > If no-one objects I'll submit a manpage per a.out(5) style tomorrow > for review untill it's ready for inclusion. Anyone who objects to your submissions is a woes -- real bastards wait for you to do the work before shooting yo

Re: No elf(5) man page (docs/7914)

1999-07-31 Thread Jeroen Ruigrok/Asmodai
* Sheldon Hearn ([EMAIL PROTECTED]) [990801 00:35]: > > > On Fri, 30 Jul 1999 23:46:26 +0200, Jeroen Ruigrok/Asmodai wrote: > > > If no-one objects I'll submit a manpage per a.out(5) style tomorrow > > for review untill it's ready for inclusion. > > Anyone who objects to your submissions is a

Re: No elf(5) man page (docs/7914)

1999-07-31 Thread Wes Peters
Jeroen Ruigrok/Asmodai wrote: > > * Nik Clayton ([EMAIL PROTECTED]) [990730 23:37]: > > Hi folks, > > > > We have an a.out(5), but no elf(5) (as pointed out in docs/7914). > > > > Does anyone feel up to writing one? > > Saw it before, noticed it,

Re: No elf(5) man page (docs/7914)

1999-08-01 Thread Jeroen Ruigrok/Asmodai
* Wes Peters ([EMAIL PROTECTED]) [990801 07:12]: > Jeroen Ruigrok/Asmodai wrote: > > > > * Nik Clayton ([EMAIL PROTECTED]) [990730 23:37]: > > > > > > We have an a.out(5), but no elf(5) (as pointed out in docs/7914). > > > > > > Does anyone feel

Re: No elf(5) man page (docs/7914)

1999-08-01 Thread Daniel C. Sobral
Sheldon Hearn wrote: > > On Fri, 30 Jul 1999 23:46:26 +0200, Jeroen Ruigrok/Asmodai wrote: > > > If no-one objects I'll submit a manpage per a.out(5) style tomorrow > > for review untill it's ready for inclusion. > > Anyone who objects to your submissions is a woes -- real bastards wait > for y

Re: no elf(5) man page (docs/7914)

1999-08-01 Thread Andy Doran
Wes Peters writes: > NetBSD doesn't have one as of 1.4, so they may be interested in yours. ;^) It'd be cool if Asmodai could bounce this around one of the NetBSD lists once it's near completion. tech-toolchain@ or tech-userlevel@ would be the right place I guess. - ad To Unsubscribe: send m

Re: no elf(5) man page (docs/7914)

1999-08-01 Thread Jeroen Ruigrok/Asmodai
* Andy Doran ([EMAIL PROTECTED]) [990802 00:53]: > Wes Peters writes: > > > NetBSD doesn't have one as of 1.4, so they may be interested in yours. ;^) > > It'd be cool if Asmodai could bounce this around one of the NetBSD lists > once it's near completion. tech-toolchain@ or tech-userlevel@ woul

Re: no elf(5) man page (docs/7914)

1999-08-02 Thread Wes Peters
Jeroen Ruigrok/Asmodai wrote: > > * Andy Doran ([EMAIL PROTECTED]) [990802 00:53]: > > Wes Peters writes: > > > > > NetBSD doesn't have one as of 1.4, so they may be interested in yours. ;^) > > > > It'd be cool if Asmodai could bounce this around one of the NetBSD lists > > once it's near comple

Re: no elf(5) man page (docs/7914)

1999-08-03 Thread Jeroen Ruigrok/Asmodai
* Wes Peters ([EMAIL PROTECTED]) [990803 10:13]: > Jeroen Ruigrok/Asmodai wrote: > > * Andy Doran ([EMAIL PROTECTED]) [990802 00:53]: > > > Wes Peters writes: > > > > NetBSD doesn't have one as of 1.4, so they may be interested in yours. ;^) > > > > > > It'd be cool if Asmodai could bounce this a

Compiling elf gcc 2.7.2.3 on FreeBSD 3.3-R?

1999-01-02 Thread Charles Randall
. make LANGUAGES=c and I get --- snip --- ./xgcc -B./ -DIN_GCC -g -I./include enquire.o -o enquire /usr/libexec/elf/ld: cannot open crt0.o: No such file or directory *** Error code 1 Stop. --- snip --- I presume that this is an a.out vs elf issue -- gcc is trying to build an a.out version and

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://p

ELF & putting inode at the front of a file

1999-12-06 Thread Zhihui Zhang
I have modified FFS filesystem code to put the disk inode at the beginning of a file, i.e, the logical block #0 of each file begins with 128 bytes of its disk inode and the rest of it are file data. Everything seems to be working. But I am stuck with an ELF executable file stored in this

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: 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 z

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

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

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-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-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 und

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

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: > http://people.freebsd.org/~

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 in

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/unnecess

Re: Compiling elf gcc 2.7.2.3 on FreeBSD 3.3-R?

1999-01-02 Thread Ricardo Bernardini
-o enquire /usr/libexec/elf/ld: cannot open crt0.o: No such file or directory *** Error code 1 Stop. --- snip --- I presume that this is an a.out vs elf issue -- gcc is trying to build an a.out version and 3.3-R is elf. However, I get the same problem if I try configure with "configure

Re: Compiling elf gcc 2.7.2.3 on FreeBSD 3.3-R?

1999-01-02 Thread Barrett Richardson
> > 1. configure > 2. remove references to gnumalloc in Makefile and cp/Makefile > 3. make LANGUAGES=c > > and I get > > --- snip --- > ./xgcc -B./ -DIN_GCC -g -I./include enquire.o -o enquire > /usr/libexec/elf/ld: cannot open crt0.o: No such file or di

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

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Ronald G. Minnich
On Mon, 6 Dec 1999, Zhihui Zhang wrote: > I have modified FFS filesystem code to put the disk inode at the beginning > of a file, i.e, the logical block #0 of each file begins with 128 bytes of > its disk inode and the rest of it are file data. first question I have is, why? ron To Unsubscri

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Zhihui Zhang
On Mon, 6 Dec 1999, Ronald G. Minnich wrote: > On Mon, 6 Dec 1999, Zhihui Zhang wrote: > > I have modified FFS filesystem code to put the disk inode at the beginning > > of a file, i.e, the logical block #0 of each file begins with 128 bytes of > > its disk inode and the rest of it are file data

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Matthew Dillon
:On Mon, 6 Dec 1999, Zhihui Zhang wrote: :> I have modified FFS filesystem code to put the disk inode at the beginning :> of a file, i.e, the logical block #0 of each file begins with 128 bytes of :> its disk inode and the rest of it are file data. : :first question I have is, why? : :ron Go

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Matthew Dillon
:On Mon, 6 Dec 1999, Ronald G. Minnich wrote: : :> On Mon, 6 Dec 1999, Zhihui Zhang wrote: :> > I have modified FFS filesystem code to put the disk inode at the beginning :> > of a file, i.e, the logical block #0 of each file begins with 128 bytes of :> > its disk inode and the rest of it are file

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Julian Elischer
how do you find the inode? On Mon, 6 Dec 1999, Zhihui Zhang wrote: > > On Mon, 6 Dec 1999, Ronald G. Minnich wrote: > > > On Mon, 6 Dec 1999, Zhihui Zhang wrote: > > > I have modified FFS filesystem code to put the disk inode at the beginning > > > of a file, i.e, the logical block #0 of eac

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Zhihui Zhang
odify the mmap() so that this works. But this mmap() is done by the user, I can intercept it at the mmap() system call. As I said in my original email, the kernel uses memory map internally to load an ELF object file. I have to let the kernel know that there is a disk inode at the beginning of

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Zhihui Zhang
On Mon, 6 Dec 1999, Julian Elischer wrote: > how do you find the inode? There is an inode address map to look up. Each entry is four bytes. -Zhihui To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Julian Elischer
On Mon, 6 Dec 1999, Matthew Dillon wrote: > :On Mon, 6 Dec 1999, Ronald G. Minnich wrote: > : > :> On Mon, 6 Dec 1999, Zhihui Zhang wrote: > :> > I have modified FFS filesystem code to put the disk inode at the beginning > :> > of a file, i.e, the logical block #0 of each file begins with 128 b

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Ronald G. Minnich
On Mon, 6 Dec 1999, Zhihui Zhang wrote: > I am doing some research on filesystem. I guess it may be faster to put > the disk inode with its file data together so that both can be read into > memory in one I/O. I still don't get it. To get the file, you do a lookup. So the inode is in memory. Th

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, "Ronal d G. Minnich" writes: >On Mon, 6 Dec 1999, Zhihui Zhang wrote: >> I am doing some research on filesystem. I guess it may be faster to put >> the disk inode with its file data together so that both can be read into >> memory in one I/O. > >I still don't get

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Zhihui Zhang
On Mon, 6 Dec 1999, Ronald G. Minnich wrote: > On Mon, 6 Dec 1999, Zhihui Zhang wrote: > > I am doing some research on filesystem. I guess it may be faster to put > > the disk inode with its file data together so that both can be read into > > memory in one I/O. > > I still don't get it. To g

Re: ELF & putting inode at the front of a file

1999-12-06 Thread Matthew Dillon
sfers and potentially extra seeking. : :Yes. The cp command may use mmap(). I modify the mmap() so that this :works. But this mmap() is done by the user, I can intercept it at the :mmap() system call. As I said in my original email, the kernel uses :memory map internally to load an ELF object f

Re: ELF & putting inode at the front of a file

1999-12-07 Thread Randell Jesup
Matthew Dillon <[EMAIL PROTECTED]> writes: >:On Mon, 6 Dec 1999, Zhihui Zhang wrote: >:> I have modified FFS filesystem code to put the disk inode at the beginning >:> of a file, i.e, the logical block #0 of each file begins with 128 bytes of >:> its disk inode and the rest of it are file data. >

Re: ELF & putting inode at the front of a file

1999-12-07 Thread Randell Jesup
Matthew Dillon <[EMAIL PROTECTED]> writes: >:> distribute the inodes all over the cylinder group rather then concentrate >:> all the inodes in one place. >: >:Yes. I have implemented most of the code. I noticed the "ls -al" is slow >:but "ls" is OK. > >Yes, ls (without any options) is ok bec

Re: ELF & putting inode at the front of a file

1999-12-08 Thread Zhihui Zhang
> The big benefits to locality of meta & file data are to allow > drive/driver caching to do sequential (or close to) reads in as large > blocks as possible. There was a recent SigOS paper on a modified Unix > filesystem that was designed to take advantage of modern disk systems, Do you st

Re: ELF & putting inode at the front of a file

1999-12-08 Thread Jonathan M. Bresler
> > > The big benefits to locality of meta & file data are to allow > > drive/driver caching to do sequential (or close to) reads in as large > > blocks as possible. There was a recent SigOS paper on a modified Unix > > filesystem that was designed to take advantage of modern disk systems, >

Re: fbsdboot.exe can't load elf kernels (flash cards off topic)

2000-01-12 Thread Warner Losh
In message <[EMAIL PROTECTED]> Marcin Cieslak writes: : Once can easily read them with low-level pccardc interface. : In general, flash cards are not meant to be written too often, : so I belive we won't put a real filesystem on them. : Just a kernel and mfsroot image perhaps? Well, there is mfs

Re: fbsdboot.exe can't load elf kernels (flash cards off topic)

2000-01-13 Thread Wes Peters
Marcin Cieslak wrote: > > On Wed, 12 Jan 2000, Warner Losh wrote: > > > The linear flash cards don't have an ata interface, > > so PAO and soon -current won't recognize them. > > They don't have and we don't need it. > Once can easily read them with low-level pccardc interface. > In general, fl

Re: fbsdboot.exe can't load elf kernels (flash cards off topic)

2000-01-13 Thread Warner Losh
In message <[EMAIL PROTECTED]> Wes Peters writes: : Modern flash chips support on the order of 1,000,000 write cycles, so this : is not such a concern anymore. There is no reason why we shouldn't put : a filesystem on a flash card. We weren't talking about modern flash cards :-). These flash ca

Re: fbsdboot.exe can't load elf kernels (flash cards off topic)

2000-01-12 Thread Marcin Cieslak
On Wed, 12 Jan 2000, Warner Losh wrote: > The linear flash cards don't have an ata interface, > so PAO and soon -current won't recognize them. They don't have and we don't need it. Once can easily read them with low-level pccardc interface. In general, flash cards are not meant to be written too

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 t

How the `struct linker_set' is used in building an ELF kernel?

1999-08-01 Thread Joe Jih-Shien Lu
the details behind the scene. I notice that gensetdefs looks for the sections by the `.set.'-prefixed name in all the ELF kernel object files, and produces the setdef[12].c accordingly. Does the `.set.'-prefixed section name have any special meaning in an ELF object file? I hope someone can

How the `struct linker_set' is used in building an ELF kernel?

1999-08-01 Thread Joe Jih-Shien Lu
the details behind the scene. I notice that gensetdefs looks for the sections by the `.set.'-prefixed name in all the ELF kernel object files, and produces the setdef[12].c accordingly. Does the `.set.'-prefixed section name have any special meaning in an ELF object file? I hope someone can

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

Re: How the `struct linker_set' is used in building an ELF kernel?

1999-08-05 Thread John Polstra
many object files. The first word contains the number of elements (pointers) in the set. Then come the pointers themselves. Finally, a NULL pointer appears at the end of the set. The old a.out linker supported linker sets directly, and did all the bookkeeping necessary to keep track of the set sizes and

Re: How the `struct linker_set' is used in building an ELF kernel?

1999-08-05 Thread John Polstra
from many object files. The first word contains the number of elements (pointers) in the set. Then come the pointers themselves. Finally, a NULL pointer appears at the end of the set. The old a.out linker supported linker sets directly, and did all the bookkeeping necessary to keep track of the set s

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

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

2000-12-29 Thread Paul Saab
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:

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 fai

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

2001-01-04 Thread John Polstra
hould handle error conditions better. 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 dif

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

2001-01-04 Thread Russell L. Carter
hanks, %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 22:41:53 1.50 %+++ rtld.c 2001/01/05 00:13:18 %@@ -77,

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 > -stab

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 , I see some thing like this PIDSTART

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

2010-06-23 Thread Jeremie Le Hen
up(void) > { > int mib[2]; > size_t len; > + int error; > > if (__stack_chk_guard[0] != 0) > return; > + if (_rtld_aux_info != NULL) > + error = _rtld_aux_info(AT_CANARY, __stack_chk_guard, > + sizeof(

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

2010-06-28 Thread Kostik Belousov
error; if (__stack_chk_guard[0] != 0) return; + if (_rtld_aux_info != NULL) + error = _rtld_aux_info(AT_CANARY, __stack_chk_guard, + sizeof(__stack_chk_guard)); + else + error = ENOSYS; + if (error == 0 && __

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 >

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

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: >> http://people.freebsd.org/~avg/dpcpu/pc

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

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,

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 T

<    1   2   3   >