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
c1937d6a
Commit
c1937d6a
authored
Apr 06, 1998
by
Andreas Schwab
Browse files
(unexec): Account for possible padding before the old .bss
section.
parent
8daf7106
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 @
c1937d6a
...
...
@@ -799,7 +799,9 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
if
(
n
<
0
)
fatal
(
"Couldn't find segment next to .bss in %s
\n
"
,
old_name
,
0
);
NEW_PROGRAM_H
(
n
).
p_filesz
+=
new_data2_size
;
/* Make sure that the size includes any padding before the old .bss
section. */
NEW_PROGRAM_H
(
n
).
p_filesz
=
new_bss_addr
-
NEW_PROGRAM_H
(
n
).
p_vaddr
;
NEW_PROGRAM_H
(
n
).
p_memsz
=
NEW_PROGRAM_H
(
n
).
p_filesz
;
#if 0 /* Maybe allow section after data2 - does this ever happen? */
...
...
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