Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c77cbbcd
Commit
c77cbbcd
authored
Nov 27, 2000
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Nov 27, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test if we need to put the .type directive inside a .def directive.
parent
e38b4191
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
2 deletions
+33
-2
configure
configure
+0
-0
configure.in
configure.in
+19
-0
acconfig.h
include/acconfig.h
+3
-0
config.h.in
include/config.h.in
+3
-0
winnt.h
include/winnt.h
+8
-2
No files found.
configure
View file @
c77cbbcd
This diff is collapsed.
Click to expand it.
configure.in
View file @
c77cbbcd
...
...
@@ -454,6 +454,25 @@ int main(void) {
fi
fi
dnl **** Check if we need to place .type inside a .def directive ****
AC_CACHE_CHECK("whether .type must sit inside a .def directive",
ac_cv_c_type_in_def,
[saved_libs=$LIBS
LIBS="conftest_asm.s $LIBS"
cat > conftest_asm.s <<EOF
.globl _ac_test
.def _ac_test; .scl 2; .type 32; .endef
_ac_test:
.long 0
EOF
AC_TRY_LINK(,,ac_cv_c_type_in_def="yes",ac_cv_c_type_in_def="no")
LIBS=$saved_libs])
if test "$ac_cv_c_type_in_def" = "yes"
then
AC_DEFINE(NEED_TYPE_IN_DEF)
fi
dnl **** Check for underscore on external symbols ****
AC_CACHE_CHECK("whether external symbols need an underscore prefix",
...
...
include/acconfig.h
View file @
c77cbbcd
...
...
@@ -3,6 +3,9 @@
* defined in the 'configure' script.
*/
/* Define if .type asm directive must be inside a .def directive */
#undef NEED_TYPE_IN_DEF
/* Define if symbols declared in assembly code need an underscore prefix */
#undef NEED_UNDERSCORE_PREFIX
...
...
include/config.h.in
View file @
c77cbbcd
...
...
@@ -47,6 +47,9 @@
/* Define if lex declares yytext as a char * by default, not a char[]. */
#undef YYTEXT_POINTER
/* Define if .type asm directive must be inside a .def directive */
#undef NEED_TYPE_IN_DEF
/* Define if symbols declared in assembly code need an underscore prefix */
#undef NEED_UNDERSCORE_PREFIX
...
...
include/winnt.h
View file @
c77cbbcd
...
...
@@ -721,11 +721,17 @@ typedef HANDLE *PHANDLE;
# define __ASM_NAME(name) name
#endif
#ifdef NEED_TYPE_IN_DEF
# define __ASM_TYPE(name) ".def " __ASM_NAME(#name) "; .scl 2; .type 32; .endef\n"
#else
# define __ASM_TYPE(name) ".type " __ASM_NAME(#name) ",@function\n"
#endif
#ifdef __GNUC__
# define __ASM_GLOBAL_FUNC(name,code) \
__asm__( ".align 4\n\t" \
".globl " __ASM_NAME(#name) "\n\t" \
".type " __ASM_NAME(#name) ",@function\n"
\
__ASM_TYPE(name)
\
__ASM_NAME(#name) ":\n\t" \
code );
#else
/* __GNUC__ */
...
...
@@ -733,7 +739,7 @@ typedef HANDLE *PHANDLE;
void __asm_dummy_##name(void) { \
asm( ".align 4\n\t" \
".globl " __ASM_NAME(#name) "\n\t" \
".type " __ASM_NAME(#name) ",@function\n"
\
__ASM_TYPE(name)
\
__ASM_NAME(#name) ":\n\t" \
code ); \
}
...
...
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