Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d446b7c4
Commit
d446b7c4
authored
Jan 17, 2003
by
Jeff Dike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some build changes for 2.5.59 and SMP. Also cleanup of the linker
scripts and Kconfig.
parent
1dcf46c3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
320 deletions
+78
-320
arch/um/Kconfig
arch/um/Kconfig
+2
-35
arch/um/Makefile
arch/um/Makefile
+4
-2
arch/um/dyn_link.ld.in
arch/um/dyn_link.ld.in
+0
-214
arch/um/uml.lds.S
arch/um/uml.lds.S
+1
-69
include/asm-um/common.lds.S
include/asm-um/common.lds.S
+71
-0
No files found.
arch/um/Kconfig
View file @
d446b7c4
...
@@ -30,19 +30,7 @@ config RWSEM_GENERIC_SPINLOCK
...
@@ -30,19 +30,7 @@ config RWSEM_GENERIC_SPINLOCK
bool
bool
default y
default y
config LOG_BUF_SHIFT
menu "UML-specific options"
int
default 14
menu "Code maturity level options"
config EXPERIMENTAL
bool "Prompt for development and/or incomplete code/drivers"
endmenu
menu "General Setup"
config MODE_TT
config MODE_TT
bool "Tracing thread support"
bool "Tracing thread support"
...
@@ -78,15 +66,6 @@ config MODE_SKAS
...
@@ -78,15 +66,6 @@ config MODE_SKAS
config NET
config NET
bool "Networking support"
bool "Networking support"
config SYSVIPC
bool "System V IPC"
config BSD_PROCESS_ACCT
bool "BSD Process Accounting"
config SYSCTL
bool "Sysctl support"
config BINFMT_AOUT
config BINFMT_AOUT
tristate "Kernel support for a.out binaries"
tristate "Kernel support for a.out binaries"
...
@@ -193,19 +172,7 @@ config HIGHMEM
...
@@ -193,19 +172,7 @@ config HIGHMEM
endmenu
endmenu
source "init/Kconfig"
menu "Loadable module support"
config MODULES
bool "Enable loadable module support"
# MODVERSIONS does not yet work in this architecture
# bool ' Set version information on all module symbols' CONFIG_MODVERSIONS
config KMOD
bool "Kernel module loader"
depends on MODULES
endmenu
source "arch/um/Kconfig_char"
source "arch/um/Kconfig_char"
...
...
arch/um/Makefile
View file @
d446b7c4
...
@@ -100,10 +100,12 @@ CPP_MODE_TT := $(shell [ "$(CONFIG_MODE_TT)" = "y" ] && echo -DMODE_TT)
...
@@ -100,10 +100,12 @@ CPP_MODE_TT := $(shell [ "$(CONFIG_MODE_TT)" = "y" ] && echo -DMODE_TT)
CONFIG_KERNEL_STACK_ORDER
?=
2
CONFIG_KERNEL_STACK_ORDER
?=
2
STACK_SIZE
:=
$(
shell
echo
$$
[
4096
*
(
1 <<
$(CONFIG_KERNEL_STACK_ORDER)
)
]
)
STACK_SIZE
:=
$(
shell
echo
$$
[
4096
*
(
1 <<
$(CONFIG_KERNEL_STACK_ORDER)
)
]
)
AFLAGS_
$(LD_SCRIPT-y
:
.s=)
.o = -U$(SUBARCH)
\
AFLAGS_
vmlinux.lds
.o
=
-U
$(SUBARCH)
\
-DSTART
=
$$
((
$(TOP_ADDR)
-
$(SIZE)
))
-DELF_ARCH
=
$(ELF_ARCH)
\
-DSTART
=
$$
((
$(TOP_ADDR)
-
$(SIZE)
))
-DELF_ARCH
=
$(ELF_ARCH)
\
-DELF_FORMAT
=
\"
$(ELF_FORMAT)
\"
$(CPP_MODE_TT)
\
-DELF_FORMAT
=
\"
$(ELF_FORMAT)
\"
$(CPP_MODE_TT)
\
-DKERNEL_STACK_SIZE=$(STACK_SIZE) -P -C -Uum
-DKERNEL_STACK_SIZE
=
$(STACK_SIZE)
AFLAGS_$(LD_SCRIPT-y
:
.s=).o = $(AFLAGS_vmlinux.lds.o) -P -C -Uum
LD_SCRIPT-y
:=
$(ARCH_DIR)
/
$
(
LD_SCRIPT-y
)
LD_SCRIPT-y
:=
$(ARCH_DIR)
/
$
(
LD_SCRIPT-y
)
...
...
arch/um/dyn_link.ld.in
deleted
100644 → 0
View file @
1dcf46c3
OUTPUT_FORMAT("ELF_FORMAT")
OUTPUT_ARCH(ELF_ARCH)
ENTRY(_start)
SEARCH_DIR("/usr/local/i686-pc-linux-gnu/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
/* Do we need any of these for elf?
__DYNAMIC = 0; */
SECTIONS
{
. = START() + SIZEOF_HEADERS;
.interp : { *(.interp) }
. = ALIGN(4096);
__binary_start = .;
. = ALIGN(4096); /* Init code and data */
_stext = .;
__init_begin = .;
.text.init : { *(.text.init) }
. = ALIGN(4096);
/* Read-only sections, merged into text segment: */
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.rel.init : { *(.rel.init) }
.rela.init : { *(.rela.init) }
.rel.text : { *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) }
.rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
.rel.fini : { *(.rel.fini) }
.rela.fini : { *(.rela.fini) }
.rel.rodata : { *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) }
.rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
.rel.data : { *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) }
.rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
.rel.tdata : { *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) }
.rela.tdata : { *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) }
.rel.tbss : { *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) }
.rela.tbss : { *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) }
.rel.ctors : { *(.rel.ctors) }
.rela.ctors : { *(.rela.ctors) }
.rel.dtors : { *(.rel.dtors) }
.rela.dtors : { *(.rela.dtors) }
.rel.got : { *(.rel.got) }
.rela.got : { *(.rela.got) }
.rel.bss : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
.rela.bss : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
.init : {
KEEP (*(.init))
} =0x90909090
.plt : { *(.plt) }
.text : {
*(.text .stub .text.* .gnu.linkonce.t.*)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
} =0x90909090
.fini : {
KEEP (*(.fini))
} =0x90909090
.kstrtab : { *(.kstrtab) }
. = ALIGN(16); /* Exception table */
__start___ex_table = .;
__ex_table : { *(__ex_table) }
__stop___ex_table = .;
__start___ksymtab = .; /* Kernel symbol table */
__ksymtab : { *(__ksymtab) }
__stop___ksymtab = .;
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
.eh_frame_hdr : { *(.eh_frame_hdr) }
. = ALIGN(4096);
PROVIDE (_sdata = .);
.unprotected : { *(.unprotected) }
. = ALIGN(4096);
PROVIDE (_unprotected_end = .);
. = ALIGN(4096);
__uml_setup_start = .;
.uml.setup.init : { *(.uml.setup.init) }
__uml_setup_end = .;
__uml_help_start = .;
.uml.help.init : { *(.uml.help.init) }
__uml_help_end = .;
__uml_postsetup_start = .;
.uml.postsetup.init : { *(.uml.postsetup.init) }
__uml_postsetup_end = .;
__setup_start = .;
.setup.init : { *(.setup.init) }
__setup_end = .;
__initcall_start = .;
.initcall.init : { *(.initcall.init) }
__initcall_end = .;
__uml_initcall_start = .;
.uml.initcall.init : { *(.uml.initcall.init) }
__uml_initcall_end = .;
__init_end = .;
__exitcall_begin = .;
.exitcall : { *(.exitcall.exit) }
__exitcall_end = .;
__uml_exitcall_begin = .;
.uml.exitcall : { *(.uml.exitcall.exit) }
__uml_exitcall_end = .;
.data.init : { *(.data.init) }
/* Ensure the __preinit_array_start label is properly aligned. We
could instead move the label definition inside the section, but
the linker would then create the section even if it turns out to
be empty, which isn't pretty. */
. = ALIGN(32 / 8);
.preinit_array : { *(.preinit_array) }
.init_array : { *(.init_array) }
.fini_array : { *(.fini_array) }
.data : {
. = ALIGN(KERNEL_STACK_SIZE); /* init_task */
*(.data.init_task)
*(.data .data.* .gnu.linkonce.d.*)
SORT(CONSTRUCTORS)
}
.data1 : { *(.data1) }
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
.eh_frame : { KEEP (*(.eh_frame)) }
.gcc_except_table : { *(.gcc_except_table) }
.dynamic : { *(.dynamic) }
.ctors : {
/* gcc uses crtbegin.o to find the start of
the constructors, so we make sure it is
first. Because this is a wildcard, it
doesn't matter if the user does not
actually link against crtbegin.o; the
linker won't look for a file to match a
wildcard. The wildcard also means that it
doesn't matter which directory crtbegin.o
is in. */
KEEP (*crtbegin.o(.ctors))
/* We don't want to include the .ctor section from
from the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
}
.dtors : {
KEEP (*crtbegin.o(.dtors))
KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
}
.jcr : { KEEP (*(.jcr)) }
.got : { *(.got.plt) *(.got) }
_edata = .;
PROVIDE (edata = .);
__bss_start = .;
.bss : {
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections. */
. = ALIGN(32 / 8);
. = ALIGN(32 / 8);
}
_end = .;
PROVIDE (end = .);
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
}
arch/um/uml.lds.S
View file @
d446b7c4
...
@@ -36,75 +36,7 @@ SECTIONS
...
@@ -36,75 +36,7 @@ SECTIONS
*(.
gnu.linkonce.t
*)
*(.
gnu.linkonce.t
*)
}
}
.
=
ALIGN
(
16
)
; /* Exception table */
#include "asm/common.lds.S"
__start___ex_table
=
.
;
__ex_table
:
{
*(
__ex_table
)
}
__stop___ex_table
=
.
;
RODATA
.
fini
:
{
*(
.
fini
)
}
=
0x9090
_etext
=
.
;
PROVIDE
(
etext
=
.
)
;
.
=
ALIGN
(
4096
)
;
PROVIDE
(
_sdata
=
.
)
;
.
unprotected
:
{
*(
.
unprotected
)
}
.
=
ALIGN
(
4096
)
;
PROVIDE
(
_unprotected_end
=
.
)
;
.
=
ALIGN
(
4096
)
;
__uml_setup_start
=
.
;
.
uml.setup.init
:
{
*(
.
uml
.
setup
.
init
)
}
__uml_setup_end
=
.
;
__uml_help_start
=
.
;
.
uml.help.init
:
{
*(
.
uml
.
help
.
init
)
}
__uml_help_end
=
.
;
__uml_postsetup_start
=
.
;
.
uml.postsetup.init
:
{
*(
.
uml
.
postsetup
.
init
)
}
__uml_postsetup_end
=
.
;
__setup_start
=
.
;
.
init.setup
:
{
*(
.
init
.
setup
)
}
__setup_end
=
.
;
__start___param
=
.
;
__param
:
{
*(
__param
)
}
__stop___param
=
.
;
__per_cpu_start
=
.
;
.
data.percpu
:
{
*(
.
data
.
percpu
)
}
__per_cpu_end
=
.
;
__initcall_start
=
.
;
.
initcall.init
:
{
*(.
initcall1.init
)
*(.
initcall2.init
)
*(.
initcall3.init
)
*(.
initcall4.init
)
*(.
initcall5.init
)
*(.
initcall6.init
)
*(.
initcall7.init
)
}
__initcall_end
=
.
;
__uml_initcall_start
=
.
;
.
uml.initcall.init
:
{
*(
.
uml
.
initcall
.
init
)
}
__uml_initcall_end
=
.
;
__init_end
=
.
;
__exitcall_begin
=
.
;
.
exitcall
:
{
*(
.
exitcall
.
exit
)
}
__exitcall_end
=
.
;
__uml_exitcall_begin
=
.
;
.
uml.exitcall
:
{
*(
.
uml
.
exitcall
.
exit
)
}
__uml_exitcall_end
=
.
;
.
=
ALIGN
(
4096
)
;
__initramfs_start
=
.
;
.
init.ramfs
:
{
*(
.
init
.
ramfs
)
}
__initramfs_end
=
.
;
.
data.init
:
{
*(
.
data
.
init
)
}
.
data.init
:
{
*(
.
data
.
init
)
}
.
data
:
.
data
:
...
...
include/asm-um/common.lds.S
0 → 100644
View file @
d446b7c4
.
=
ALIGN
(
16
)
; /* Exception table */
__start___ex_table
=
.
;
__ex_table
:
{
*(
__ex_table
)
}
__stop___ex_table
=
.
;
RODATA
.
fini
:
{
*(
.
fini
)
}
=
0x9090
_etext
=
.
;
PROVIDE
(
etext
=
.
)
;
.
=
ALIGN
(
4096
)
;
_sdata
=
.
;
PROVIDE
(
sdata
=
.
)
;
.
unprotected
:
{
*(
.
unprotected
)
}
.
=
ALIGN
(
4096
)
;
PROVIDE
(
_unprotected_end
=
.
)
;
.
=
ALIGN
(
4096
)
;
__uml_setup_start
=
.
;
.
uml.setup.init
:
{
*(
.
uml
.
setup
.
init
)
}
__uml_setup_end
=
.
;
__uml_help_start
=
.
;
.
uml.help.init
:
{
*(
.
uml
.
help
.
init
)
}
__uml_help_end
=
.
;
__uml_postsetup_start
=
.
;
.
uml.postsetup.init
:
{
*(
.
uml
.
postsetup
.
init
)
}
__uml_postsetup_end
=
.
;
__setup_start
=
.
;
.
init.setup
:
{
*(
.
init
.
setup
)
}
__setup_end
=
.
;
__start___param
=
.
;
__param
:
{
*(
__param
)
}
__stop___param
=
.
;
.
=
ALIGN
(
32
)
;
__per_cpu_start
=
.
;
.
data.percpu
:
{
*(
.
data
.
percpu
)
}
__per_cpu_end
=
.
;
__initcall_start
=
.
;
.
initcall.init
:
{
*(.
initcall1.init
)
*(.
initcall2.init
)
*(.
initcall3.init
)
*(.
initcall4.init
)
*(.
initcall5.init
)
*(.
initcall6.init
)
*(.
initcall7.init
)
}
__initcall_end
=
.
;
__uml_initcall_start
=
.
;
.
uml.initcall.init
:
{
*(
.
uml
.
initcall
.
init
)
}
__uml_initcall_end
=
.
;
__init_end
=
.
;
__exitcall_begin
=
.
;
.
exitcall
:
{
*(
.
exitcall
.
exit
)
}
__exitcall_end
=
.
;
__uml_exitcall_begin
=
.
;
.
uml.exitcall
:
{
*(
.
uml
.
exitcall
.
exit
)
}
__uml_exitcall_end
=
.
;
.
=
ALIGN
(
4096
)
;
__initramfs_start
=
.
;
.
init.ramfs
:
{
*(
.
init
.
ramfs
)
}
__initramfs_end
=
.
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment