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
e468ab35
Commit
e468ab35
authored
Jul 22, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Add support for specifying section alignment on Solaris.
parent
b24b2d58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
winegcc.c
tools/winegcc/winegcc.c
+17
-0
No files found.
tools/winegcc/winegcc.c
View file @
e468ab35
...
...
@@ -160,6 +160,7 @@ struct options
const
char
*
wine_objdir
;
const
char
*
output_name
;
const
char
*
image_base
;
const
char
*
section_align
;
strarray
*
prefix
;
strarray
*
lib_dirs
;
strarray
*
linker_args
;
...
...
@@ -640,6 +641,17 @@ static void build(struct options* opts)
}
#endif
#ifdef __sun
{
char
*
mapfile
=
get_temp_file
(
output_name
,
".map"
);
const
char
*
align
=
opts
->
section_align
?
opts
->
section_align
:
"0x1000"
;
create_file
(
mapfile
,
0644
,
"text = A%s;
\n
data = A%s;
\n
"
,
align
,
align
);
strarray_add
(
link_args
,
strmake
(
"-Wl,-M,%s"
,
mapfile
));
strarray_add
(
tmp_files
,
mapfile
);
}
#endif
for
(
j
=
0
;
j
<
lib_dirs
->
size
;
j
++
)
strarray_add
(
link_args
,
strmake
(
"-L%s"
,
lib_dirs
->
base
[
j
]));
...
...
@@ -971,6 +983,11 @@ int main(int argc, char **argv)
opts
.
image_base
=
strdup
(
Wl
->
base
[
++
j
]
);
continue
;
}
if
(
!
strcmp
(
Wl
->
base
[
j
],
"--section-alignment"
)
&&
j
<
Wl
->
size
-
1
)
{
opts
.
section_align
=
strdup
(
Wl
->
base
[
++
j
]
);
continue
;
}
if
(
!
strcmp
(
Wl
->
base
[
j
],
"-static"
))
linking
=
-
1
;
strarray_add
(
opts
.
linker_args
,
strmake
(
"-Wl,%s"
,
Wl
->
base
[
j
]));
}
...
...
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