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
nexedi
linux
Commits
8a4e1b97
Commit
8a4e1b97
authored
Feb 12, 2004
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Update toolchain-flags with a check for working .align inside a
now that there is a fixed GAS.
parent
c71752bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
arch/ia64/scripts/toolchain-flags
arch/ia64/scripts/toolchain-flags
+15
-0
No files found.
arch/ia64/scripts/toolchain-flags
View file @
8a4e1b97
...
@@ -5,9 +5,14 @@
...
@@ -5,9 +5,14 @@
CPPFLAGS
=
""
CPPFLAGS
=
""
CC
=
$1
CC
=
$1
OBJDUMP
=
$2
OBJDUMP
=
$2
READELF
=
$3
dir
=
$(
dirname
$0
)
dir
=
$(
dirname
$0
)
tmp
=
${
TMPDIR
:-
/tmp
}
tmp
=
${
TMPDIR
:-
/tmp
}
out
=
$tmp
/out
$$
out
=
$tmp
/out
$$
# Check whether cross-segment segment-relative relocs work fine. We need
# that for building the gate DSO:
$CC
-nostdlib
-static
-Wl
,-T
$dir
/check-segrel.lds
$dir
/check-segrel.S
-o
$out
$CC
-nostdlib
-static
-Wl
,-T
$dir
/check-segrel.lds
$dir
/check-segrel.S
-o
$out
res
=
$(
$OBJDUMP
--full
--section
.rodata
$out
| fgrep 000 |
cut
-f3
-d
' '
)
res
=
$(
$OBJDUMP
--full
--section
.rodata
$out
| fgrep 000 |
cut
-f3
-d
' '
)
rm
-f
$out
rm
-f
$out
...
@@ -20,6 +25,16 @@ warning: your linker cannot handle cross-segment segment-relative relocations.
...
@@ -20,6 +25,16 @@ warning: your linker cannot handle cross-segment segment-relative relocations.
EOF
EOF
fi
fi
# Check whether .align inside a function works as expected.
$CC
-c
$dir
/check-text-align.S
-o
$out
$READELF
-u
$out
| fgrep
-q
'prologue(rlen=12)'
res
=
$?
rm
-f
$out
if
[
$res
-eq
0
]
;
then
CPPFLAGS
=
"
$CPPFLAGS
-DHAVE_WORKING_TEXT_ALIGN"
fi
if
!
$CC
-c
$dir
/check-model.c
-o
$out
2>&1 |
grep
__model__ |
grep
-q
attrib
if
!
$CC
-c
$dir
/check-model.c
-o
$out
2>&1 |
grep
__model__ |
grep
-q
attrib
then
then
CPPFLAGS
=
"
$CPPFLAGS
-DHAVE_MODEL_SMALL_ATTRIBUTE"
CPPFLAGS
=
"
$CPPFLAGS
-DHAVE_MODEL_SMALL_ATTRIBUTE"
...
...
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