Skip to content

Commit

Permalink
[build] Fix calculation of _filesz
Browse files Browse the repository at this point in the history
_filesz was incorrectly forced to be aligned up to MAX_ALIGN.  In a
non-compressed build, this would cause a build failure unless _filesz
happened to already be aligned to MAX_ALIGN.
  • Loading branch information
Michael Brown committed Nov 18, 2008
1 parent c661945 commit cc93556
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/arch/i386/scripts/i386.lds
Expand Up @@ -163,30 +163,30 @@ SECTIONS {
PROVIDE ( _max_align = 16 );
. = 0;

. = ALIGN ( _max_align );
_prefix_lma = .;
. += _prefix_filesz;
. = ALIGN ( _max_align );

. = ALIGN ( _max_align );
_payload_lma = .;

_text16_lma = .;
. += _text16_filesz;
. = ALIGN ( _max_align );

. = ALIGN ( _max_align );
_data16_lma = .;
. += _data16_filesz;
. = ALIGN ( _max_align );

. = ALIGN ( _max_align );
_textdata_lma = .;
. += _textdata_filesz;
. = ALIGN ( _max_align );

_filesz = .; /* Do not include zinfo block in file size */

. = ALIGN ( _max_align );
_zinfo_lma = .;
. += _zinfo_filesz;
. = ALIGN ( _max_align );

. = ALIGN ( _max_align );
_end_lma = .;

/*
Expand Down

0 comments on commit cc93556

Please sign in to comment.