Skip site navigation (1)Skip section navigation (2)

CVS log for src/sys/amd64/include/elf.h

[BACK] Up to [FreeBSD] / src / sys / amd64 / include

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.25.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.25.2.1: preferred, colored
Changes since revision 1.25.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jan 7 14:22:34 2011 UTC (13 months ago) by kib
Branches: MAIN
CVS tags: RELENG_9_BP, HEAD
Branch point for: RELENG_9
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -1 lines
SVN rev 217097 on 2011-01-07 14:22:34Z by kib

Add AT_STACKPROT elf aux vector. Will be used to inform rtld about the
initial stack protection set by the kernel image activator.

Revision 1.19.2.3.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.19.2.3: preferred, colored; next MAIN 1.19.6.1: preferred, colored
Changes since revision 1.19.2.3: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.21.2.3.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.21.2.3: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.3: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Aug 17 08:55:45 2010 UTC (17 months, 3 weeks ago) by kib
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +7 -1 lines
SVN rev 211412 on 2010-08-17 08:55:45Z by kib

Supply some useful information to the started image using ELF aux vectors.
In particular, provide pagesize and pagesizes array, the canary value
for SSP use, number of host CPUs and osreldate.

Tested by:	marius (sparc64)
MFC after:	1 month

Revision 1.21.2.3.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.21.2.3: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.3: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)

Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 7 02:24:41 2010 UTC (22 months ago) by nwhitehorn
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP
Branch point for: RELENG_8_2, RELENG_8_1
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.2: +1 -0 lines
SVN rev 206336 on 2010-04-07 02:24:41Z by nwhitehorn

MFC r205014,205015:

Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32
option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts
of the kernel and enhances the freebsd32 compatibility code to support
big-endian platforms.

This MFC is required for MFCs of later changes to the freebsd32
compatibility from HEAD.

Requested by:	kib

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Mar 11 14:49:06 2010 UTC (23 months ago) by nwhitehorn
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -0 lines
SVN rev 205014 on 2010-03-11 14:49:06Z by nwhitehorn

Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32
option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts
of the kernel and enhances the freebsd32 compatibility code to support
big-endian platforms.

Reviewed by:	kib, jhb

Revision 1.19.2.3.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.19.2.3: preferred, colored; next MAIN 1.19.6.1: preferred, colored
Changes since revision 1.19.2.3: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Tue Jan 19 19:51:54 2010 UTC (2 years ago) by kib
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP
Branch point for: RELENG_7_4, RELENG_7_3
Diff to: previous 1.19.2.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.2: +6 -0 lines
SVN rev 202642 on 2010-01-19 19:51:54Z by kib

MFC r197933:
Define architectural load bases for PIE binaries.

MFC r198203:
Change the load base to below 2GB for sparc64/sun4v.

Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Tue Dec 22 19:59:01 2009 UTC (2 years, 1 month ago) by kib
Branches: RELENG_7
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.1: +2 -4 lines
SVN rev 200861 on 2009-12-22 19:59:01Z by kib

MFC r189926:
Add AT_EXECPATH ELF auxinfo entry type.

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 22 19:51:49 2009 UTC (2 years, 1 month ago) by kib
Branches: RELENG_7
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +0 -12 lines
SVN rev 200858 on 2009-12-22 19:51:49Z by kib

MFC r186212 (by imp):
AT_DEBUG and AT_BRK were OBE like 10 years ago, so retire them.

MFC r186225:
Remove two remnant uses of AT_DEBUG.

Revision 1.21.2.2.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.21.2.2: preferred, colored; next MAIN 1.21.2.3: preferred, colored
Changes since revision 1.21.2.2: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)

Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 20 13:32:28 2009 UTC (2 years, 3 months ago) by kib
Branches: RELENG_8
CVS tags: RELENG_8_0_BP
Branch point for: RELENG_8_0
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +6 -0 lines
SVN rev 198283 on 2009-10-20 13:32:28Z by kib

MFC r197933:
Define architectural load bases for PIE binaries.

MFC r198203 (by marius):
Change load base for sparc to match default gcc memory layout model.

Approved by:	re (kensmith)

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Oct 10 15:31:24 2009 UTC (2 years, 4 months ago) by kib
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -0 lines
SVN rev 197933 on 2009-10-10 15:31:24Z by kib

Define architectural load bases for PIE binaries. Addresses were selected
by looking at the bases used for non-relocatable executables by gnu ld(1),
and adjusting it slightly.

Discussed with:	bz
Reviewed by:	kan
Tested by:	bz (i386, amd64), bsam (linux)
MFC after:	some time

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)

Revision 1.19.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Mar 17 12:50:16 2009 UTC (2 years, 10 months ago) by kib
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -4 lines
SVN rev 189926 on 2009-03-17 12:50:16Z by kib

Add AT_EXECPATH ELF auxinfo entry type. The value's a_ptr is a pointer
to the full path of the image that is being executed.
Increase AT_COUNT.

Remove no longer true comment about types used in Linux ELF binaries,
listed types contain FreeBSD-specific entries.

Reviewed by:	kan

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Dec 17 06:56:58 2008 UTC (3 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +0 -12 lines
SVN rev 186212 on 2008-12-17 06:56:58Z by imp

AT_DEBUG and AT_BRK were OBE like 10 years ago, so retire them.

Reviewed by:	peter

Revision 1.19.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.18.8.1.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.18.8.1: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.8.1: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.18.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 3 21:30:34 2007 UTC (4 years, 2 months ago) by marius
Branches: RELENG_6
CVS tags: RELENG_6_4_BP
Branch point for: RELENG_6_4
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +0 -25 lines
MFC: sys/amd64/include/elf.h 1.19; sys/arm/include/elf.h 1.8;
     sys/i386/include/elf.h 1.17; sys/ia64/include/elf.h 1.15;
     sys/powerpc/include/elf.h 1.8; sys/sparc64/include/elf.h 1.13, 1.14, 1.15;
     sys/sys/elf32.h 1.11, 1.12, 1.13; sys/sys/elf64.h 1.14, 1.16, 1.17;
     sys/sys/elf_common.h 1.17, 1.18 (partial), 1.19, 1.20, 1.21, 1.22;
     sys/sys/elf_generic.h 1.8

- Add GNU symbol versioning constants.
- Correct URL to ELF header documantation.
- Add Sparc TLS relocation definitions.
- Move the relocation definitions to the common elf header so that DTrace
  can use them on one architecture targeted to a different one.
  Add the additional ELF types defines in Sun's "Linker and Libraries"
  manual.
- Add `PN_XNUM', for supporting ELF objects with a large number of program
  header table entries.

Discussed with:	jb (who in turn discussed the MFC with jkoshy)

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Oct 4 21:37:09 2006 UTC (5 years, 4 months ago) by jb
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7_2, RELENG_7_1, RELENG_7
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +0 -25 lines
PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:
Security:
Move the relocation definitions to the common elf header so that DTrace
can use them on one architecture targeted to a different one.

Add the additional ELF types defines in Sun's "Linker and Libraries"
manual.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Aug 3 08:21:48 2004 UTC (7 years, 6 months ago) by dfr
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0, RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5
Branch point for: RELENG_6
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -8 lines
Add style(9) foolishness.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Aug 2 19:12:17 2004 UTC (7 years, 6 months ago) by dfr
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +9 -1 lines
Add definitions for TLS relocations.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Sep 25 01:10:23 2003 UTC (8 years, 4 months ago) by peter
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +0 -12 lines
Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit
systems where the data/stack/etc limits are too big for a 32 bit process.

Move the 5 or so identical instances of ELF_RTLD_ADDR() into imgact_elf.c.

Supply an ia32_fixlimits function.  Export the clip/default values to
sysctl under the compat.ia32 heirarchy.

Have mmap(0, ...) respect the current p->p_limits[RLIMIT_DATA].rlim_max
value rather than the sysctl tweakable variable.  This allows mmap to
place mappings at sensible locations when limits have been reduced.

Have the imgact_elf.c ld-elf.so.1 placement algorithm use the same
method as mmap(0, ...) now does.

Note that we cannot remove all references to the sysctl tweakable
maxdsiz etc variables because /etc/login.conf specifies a datasize
of 'unlimited'.  And that causes exec etc to fail since it can no
longer find space to mmap things.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed May 14 04:10:49 2003 UTC (8 years, 9 months ago) by peter
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +16 -2 lines
Add BASIC i386 binary support for the amd64 kernel.  This is largely
stolen from the ia64/ia32 code (indeed there was a repocopy), but I've
redone the MD parts and added and fixed a few essential syscalls.  It
is sufficient to run i386 binaries like /bin/ls, /usr/bin/id (dynamic)
and p4.  The ia64 code has not implemented signal delivery, so I had
to do that.

Before you say it, yes, this does need to go in a common place.  But
we're in a freeze at the moment and I didn't want to risk breaking ia64.
I will sort this out after the freeze so that the common code is in a
common place.

On the AMD64 side, this required adding segment selector context switch
support and some other support infrastructure.  The %fs/%gs etc code
is hairy because loading %gs will clobber the kernel's current MSR_GSBASE
setting.  The segment selectors are not used by the kernel, so they're only
changed at context switch time or when changing modes.  This still needs
to be optimized.

Approved by:	re (amd64/* blanket)

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu May 1 01:05:23 2003 UTC (8 years, 9 months ago) by peter
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +26 -21 lines
Commit MD parts of a loosely functional AMD64 port.  This is based on
a heavily stripped down FreeBSD/i386 (brutally stripped down actually) to
attempt to get a stable base to start from.  There is a lot missing still.
Worth noting:
- The kernel runs at 1GB in order to cheat with the pmap code.  pmap uses
  a variation of the PAE code in order to avoid having to worry about 4
  levels of page tables yet.
- It boots in 64 bit "long mode" with a tiny trampoline embedded in the
  i386 loader.  This simplifies locore.s greatly.
- There are still quite a few fragments of i386-specific code that have
  not been translated yet, and some that I cheated and wrote dumb C
  versions of (bcopy etc).
- It has both int 0x80 for syscalls (but using registers for argument
  passing, as is native on the amd64 ABI), and the 'syscall' instruction
  for syscalls.  int 0x80 preserves all registers, 'syscall' does not.
- I have tried to minimize looking at the NetBSD code, except in a couple
  of places (eg: to find which register they use to replace the trashed
  %rcx register in the syscall instruction).  As a result, there is not a
  lot of similarity.  I did look at NetBSD a few times while debugging to
  get some ideas about what I might have done wrong in my first attempt.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu May 30 08:32:18 2002 UTC (9 years, 8 months ago) by dfr
Branches: MAIN
CVS tags: old_RELENG_5_0_BP, old_RELENG_5_0_0_RELEASE, old_RELENG_5_0
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -12 lines
Move the definition of ElfN_Hashelt to common headers. The only platform
which has a different definition for this is alpha.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 3 01:41:08 2001 UTC (10 years, 3 months ago) by ps
Branches: old_RELENG_4
CVS tags: old_RELENG_4_8_BP, old_RELENG_4_8_0_RELEASE, old_RELENG_4_8, old_RELENG_4_7_BP, old_RELENG_4_7_0_RELEASE, old_RELENG_4_7, old_RELENG_4_6_BP, old_RELENG_4_6_2_RELEASE, old_RELENG_4_6_1_RELEASE, old_RELENG_4_6_0_RELEASE, old_RELENG_4_6, old_RELENG_4_5_BP, old_RELENG_4_5_0_RELEASE, old_RELENG_4_5
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +2 -2 lines
MFC:
- Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loader
  tunable.
- Change TUNABLE_*_FETCH to have a return value of 0 if the variable
  was not found or successfully converted and true otherwise.
- Use vm_offset_t instead of caddr_t to fix a warning and remove
  two casts in kern_exec.c.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Oct 10 23:06:52 2001 UTC (10 years, 4 months ago) by ps
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loader
tunable.

Reviewed by:	peter
MFC after:	2 weeks

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jul 31 03:46:38 2001 UTC (10 years, 6 months ago) by jake
Branches: MAIN
CVS tags: old_KSE_PRE_MILESTONE_2, old_KSE_MILESTONE_2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +12 -1 lines
Use a machine dependent type, Elf_Hashelt, for the elements of the elf
dynamic symbol table buckets and chains.  The sparc64 toolchain uses 32
bit .hash entries, unlike other 64 bits architectures (alpha), which use
64 bit entries.

Discussed with: dfr, jdp

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Jun 9 05:21:16 2001 UTC (10 years, 8 months ago) by obrien
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +39 -39 lines
Fix style of defines.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Dec 29 04:33:00 1999 UTC (12 years, 1 month ago) by peter
Branches: MAIN
CVS tags: old_RELENG_4_BP, old_RELENG_4_4_BP, old_RELENG_4_4_0_RELEASE, old_RELENG_4_4, old_RELENG_4_3_BP, old_RELENG_4_3_0_RELEASE, old_RELENG_4_3, old_RELENG_4_2_0_RELEASE, old_RELENG_4_1_1_RELEASE, old_RELENG_4_1_0_RELEASE, old_RELENG_4_0_0_RELEASE, old_PRE_SMPNG
Branch point for: old_RELENG_4
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers.  "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Sun Sep 5 08:11:46 1999 UTC (12 years, 5 months ago) by peter
Branches: old_RELENG_2_2
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Sun Aug 29 16:06:28 1999 UTC (12 years, 5 months ago) by peter
Branches: old_RELENG_3
CVS tags: old_RELENG_3_5_0_RELEASE, old_RELENG_3_4_0_RELEASE, old_RELENG_3_3_0_RELEASE
Diff to: previous 1.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.2: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Aug 28 00:44:10 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Fri Feb 19 01:36:29 1999 UTC (12 years, 11 months ago) by jdp
Branches: old_RELENG_3
CVS tags: old_RELENG_3_2_PAO_BP, old_RELENG_3_2_PAO, old_RELENG_3_2_0_RELEASE
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +7 -5 lines
MFC 1.6 -> 1.7: Fix Linux emulator breakage by not loading dynamic
linker at a fixed address.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Feb 19 01:30:43 1999 UTC (12 years, 11 months ago) by jdp
Branches: MAIN
CVS tags: old_PRE_VFS_BIO_NFS_PATCH, old_PRE_SMP_VMSHARE, old_PRE_NEWBUS, old_POST_VFS_BIO_NFS_PATCH, old_POST_SMP_VMSHARE, old_POST_NEWBUS
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +7 -5 lines
On the i386, load the ELF dynamic linker where an mmap(0, ...) would
put it, just like on the Alpha.  It was wrong to load it at the
fixed address 0x08000000.  That should only be done if the dynamic
linker is an executable (not a shared object) with a specific load
address encoded in the object file itself.

This fixes the recent breakage in the Linux emulator.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 8 18:58:36 1999 UTC (13 years ago) by jdp
Branches: old_RELENG_3
CVS tags: old_RELENG_3_1_0_RELEASE
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +11 -1 lines
MFC: Load the ELF dynamic linker at an architecture-specific
location, thereby solving breakage that was observed in large-memory
configurations where MAXDSIZ had to be increased.  This merge
includes the following revisions:

	src/sys/kern/imgact_elf.c	1.52 -> 1.53
	src/sys/i386/include/elf.h	1.5  -> 1.6
	src/sys/alpha/include/elf.h	1.5  -> 1.6

Merge approved by <jkh>.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Feb 7 23:49:55 1999 UTC (13 years ago) by jdp
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +11 -1 lines
Change the load address of the ELF dynamic linker from "2L*MAXDSIZ"
to an architecture-specific value defined in <machine/elf.h>.  This
solves problems on large-memory systems that have a high value for
MAXDSIZ.

The load address is controlled by a new macro ELF_RTLD_ADDR(vmspace).
On the i386 it is hard-wired to 0x08000000, which is the standard
SVR4 location for the dynamic linker.

On the Alpha, the dynamic linker is loaded MAXDSIZ bytes beyond
the start of the program's data segment.  This is the same place
a userland mmap(0, ...) call would put it, so it ends up just below
all the shared libraries.  The rationale behind the calculation is
that it allows room for the data segment to grow to its maximum
possible size.

These changes have been tested on the i386 for several months
without problems.  They have been tested on the Alpha as well,
though not for nearly as long.  I would like to merge the changes
into 3.1 within a week if no problems have surfaced as a result of
them.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Oct 18 15:31:23 1998 UTC (13 years, 3 months ago) by peter
Branches: MAIN
CVS tags: old_RELENG_3_BP
Branch point for: old_RELENG_3
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -1 lines
Add an ELF_MACHINE_OK() macro for compatability with the Alpha version.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Sep 14 20:30:12 1998 UTC (13 years, 4 months ago) by jdp
Branches: MAIN
CVS tags: old_RELENG_3_0_0_RELEASE
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -1 lines
Add generic defines ELF_ARCH, ELF_CLASS, and ELF_DATA.  These give
the relevant characteristics of the native machine, for building
and checking Elf_Ehdr structures.

Add structures to represent ELF "note" headers.  Add defines for the
note types used in ELF core files.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Aug 16 03:03:31 1998 UTC (13 years, 5 months ago) by jdp
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -1 lines
Revamp the ELF include files to better support architecture-independent
applications.  Here's how it works.

The kernel should include <machine/elf.h> to get the definitions
for the native architecture.  It can reference the various ELF
structures with generic names like Elf_Sym, Elf_Shdr, etc.  A define
__ELF_WORD_SIZE is also available with the value 32 or 64 as
appropriate for the native architecture.

Generic applications should include <elf.h>, which is just a wrapper
for <machine/elf.h>.

Applications such as object file dumpers that need to deal with
foreign ELF files can include <sys/elf32.h> and/or <sys/elf64.h>.
Both can be included from the same source file if desired.  The
structure names must be referenced using wordsize-specific names
like Elf32_Sym, Elf64_Shdr, etc.

I haven't change the alpha stuff, but I haven't broken it either.

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 27 16:23:49 1998 UTC (14 years ago) by jdp
Branches: old_RELENG_2_2
CVS tags: old_RELENG_2_2_8_RELEASE, old_RELENG_2_2_7_RELEASE, old_RELENG_2_2_6_RELEASE
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -1 lines
Merge from main branch: add ELF header files and fix a misspelled
identifier in brandelf.c.

Files merged from main branch:
    src/usr.bin/brandelf/brandelf.c	1.5  -> 1.6
    src/include/Makefile		1.55 -> 1.56
    src/sys/sys/imgact_elf.h		1.4  -> 1.5

Files added from main branch:
    src/include/elf.h			1.1
    src/sys/i386/include/elf.h		1.2
    src/sys/sys/elf32.h			1.2

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Aug 30 18:59:48 1997 UTC (14 years, 5 months ago) by peter
Branches: MAIN
CVS tags: old_PRE_SOFTUPDATE, old_PRE_NOBDEV, old_PRE_DEVFS_SLICE, old_POST_SOFTUPDATE, old_POST_DEVFS_SLICE
Branch point for: old_RELENG_2_2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -1 lines
Define some machine characteristics using symbol naming on conventions
in place in the other BSD's.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed May 21 23:07:28 1997 UTC (14 years, 8 months ago) by jdp
Branches: MAIN
CVS tags: old_WOLLMAN_MBUF, old_BP_WOLLMAN_MBUF
Fill out the ELF header files to make them more or less complete.
Fix a macro name that was misspelled both in brandelf.c and
imgact_elf.h.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options