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
1ed3ca08
Commit
1ed3ca08
authored
Jan 21, 2006
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Output a .note.GNU-stack section to allow nonexecutable stack.
parent
d6d64196
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
0 deletions
+19
-0
build.h
tools/winebuild/build.h
+1
-0
relay.c
tools/winebuild/relay.c
+2
-0
spec16.c
tools/winebuild/spec16.c
+1
-0
spec32.c
tools/winebuild/spec32.c
+1
-0
utils.c
tools/winebuild/utils.c
+14
-0
No files found.
tools/winebuild/build.h
View file @
1ed3ca08
...
...
@@ -176,6 +176,7 @@ extern const char *get_asm_short_keyword(void);
extern
const
char
*
get_asm_rodata_section
(
void
);
extern
const
char
*
get_asm_string_section
(
void
);
extern
void
output_function_size
(
FILE
*
outfile
,
const
char
*
name
);
extern
void
output_gnu_stack_note
(
FILE
*
outfile
);
extern
void
add_import_dll
(
const
char
*
name
,
const
char
*
filename
);
extern
void
add_delayed_import
(
const
char
*
name
);
...
...
tools/winebuild/relay.c
View file @
1ed3ca08
...
...
@@ -982,6 +982,7 @@ void BuildRelays16( FILE *outfile )
fprintf
(
outfile
,
"%s
\n\t
.long 0
\n
"
,
asm_globl
(
"CallTo16_DataSelector"
)
);
fprintf
(
outfile
,
"%s
\n\t
.long 0
\n
"
,
asm_globl
(
"CallTo16_TebSelector"
)
);
if
(
UsePIC
)
fprintf
(
outfile
,
"wine_ldt_copy_ptr:
\t
.long %s
\n
"
,
asm_name
(
"wine_ldt_copy"
)
);
output_gnu_stack_note
(
outfile
);
}
/*******************************************************************
...
...
@@ -1007,4 +1008,5 @@ void BuildRelays32( FILE *outfile )
BuildCallFrom32Regs
(
outfile
);
output_function_size
(
outfile
,
"__wine_spec_thunk_text_32"
);
output_gnu_stack_note
(
outfile
);
}
tools/winebuild/spec16.c
View file @
1ed3ca08
...
...
@@ -804,6 +804,7 @@ void BuildSpec16File( FILE *outfile, DLLSPEC *spec )
output_stubs
(
outfile
,
spec
);
output_get_pc_thunk
(
outfile
);
output_init_code
(
outfile
,
spec
,
header_name
);
output_gnu_stack_note
(
outfile
);
free
(
typelist
);
}
tools/winebuild/spec32.c
View file @
1ed3ca08
...
...
@@ -479,6 +479,7 @@ void BuildSpec32File( FILE *outfile, DLLSPEC *spec )
output_imports
(
outfile
,
spec
);
output_resources
(
outfile
,
spec
);
output_asm_constructor
(
outfile
,
"__wine_spec_init_ctor"
);
output_gnu_stack_note
(
outfile
);
}
...
...
tools/winebuild/utils.c
View file @
1ed3ca08
...
...
@@ -533,6 +533,20 @@ void output_function_size( FILE *outfile, const char *name )
}
}
/* output the GNU note for non-exec stack */
void
output_gnu_stack_note
(
FILE
*
outfile
)
{
switch
(
target_platform
)
{
case
PLATFORM_WINDOWS
:
case
PLATFORM_APPLE
:
break
;
default:
fprintf
(
outfile
,
"
\t
.section .note.GNU-stack,
\"\"
,@progbits
\n
"
);
break
;
}
}
/* return a global symbol declaration for an assembly symbol */
const
char
*
asm_globl
(
const
char
*
func
)
{
...
...
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