Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
faee8ef0
Commit
faee8ef0
authored
Jun 24, 1996
by
Richard M. Stallman
Browse files
(unexec): Round up section header offset to bss alignment
before deciding whether it's after the bss section.
parent
aa39a5dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/unexelf.c
src/unexelf.c
+3
-1
No files found.
src/unexelf.c
View file @
faee8ef0
...
...
@@ -767,7 +767,9 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
>=
OLD_SECTION_H
(
old_bss_index
-
1
).
sh_offset
)
NEW_SECTION_H
(
nn
).
sh_offset
+=
new_data2_size
;
#else
if
(
NEW_SECTION_H
(
nn
).
sh_offset
>=
new_data2_offset
)
if
(
round_up
(
NEW_SECTION_H
(
nn
).
sh_offset
,
OLD_SECTION_H
(
old_bss_index
).
sh_addralign
)
>=
new_data2_offset
)
NEW_SECTION_H
(
nn
).
sh_offset
+=
new_data2_size
;
#endif
/* Any section that was originally placed after the section
...
...
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