Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cookbook
Commits
86ed70de
Verified
Commit
86ed70de
authored
4 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Update kernel recipe for GS segment TLS
parent
4c52a95c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
recipes/kernel/init.rc
+2
-1
2 additions, 1 deletion
recipes/kernel/init.rc
recipes/kernel/kernel_ld.sh
+17
-0
17 additions, 0 deletions
recipes/kernel/kernel_ld.sh
recipes/kernel/recipe.sh
+4
-2
4 additions, 2 deletions
recipes/kernel/recipe.sh
with
23 additions
and
3 deletions
recipes/kernel/init.rc
+
2
−
1
View file @
86ed70de
...
...
@@ -6,8 +6,9 @@ randd
vesad T T G
stdio display:1
ps2d us
ramfs logging
pcid /etc/pcid/initfs.toml
redoxfs --uuid $REDOXFS_UUID file
redoxfs --uuid $REDOXFS_UUID file
$REDOXFS_BLOCK
cd file:
export PATH file:/bin
run.d /etc/init.d
This diff is collapsed.
Click to expand it.
recipes/kernel/kernel_ld.sh
0 → 100755
+
17
−
0
View file @
86ed70de
#!/usr/bin/env bash
set
-ex
LD
=
"
$1
"
shift
if
"
${
LD
}
"
-z
use-gs-for-tls 2>&1 |
grep
"warning: -z use-gs-for-tls ignored"
&> /dev/null
then
echo
"Please update your prefix:"
>
&2
echo
" rm -rf prefix"
>
&2
echo
" make prefix"
>
&2
exit
1
fi
exec
"
${
LD
}
"
-z
use-gs-for-tls
"
$@
"
This diff is collapsed.
Click to expand it.
recipes/kernel/recipe.sh
+
4
−
2
View file @
86ed70de
...
...
@@ -5,15 +5,17 @@ function recipe_build {
export
INITFS_FOLDER
=
"
$(
realpath
../sysroot
)
"
mkdir
-pv
"
$INITFS_FOLDER
/etc"
cp
-v
"
$(
realpath
../init.rc
)
"
"
$INITFS_FOLDER
/etc/init.rc"
x
argo rustc
\
c
argo rustc
\
--lib
\
--target
"
${
ARCH
}
-unknown-none"
\
--release
\
-Z
build-std
=
core,alloc
\
--
\
-C
soft-float
\
-C
debuginfo
=
2
\
-C
lto
\
--emit
link
=
libkernel.a
"
${
LD
}
"
\
../kernel_ld.sh
"
${
LD
}
"
\
--gc-sections
\
-z
max-page-size
=
0x1000
\
-T
"linkers/
${
ARCH
}
.ld"
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment