Skip to content

Commit

Permalink
x86, boot: use .code16gcc instead of .code16
Browse files Browse the repository at this point in the history
Use .code16gcc to compile arch/x86/boot/bioscall.S rather than
.code16, since some older versions of binutils can't generate 32-bit
addressing expressions (67 prefixes) in .code16 mode, only in
.code16gcc mode.

Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Jun 17, 2009
1 parent e2a7147 commit 28b4868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/boot/bioscall.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* touching registers they shouldn't be.
*/

.code16
.code16gcc
.text
.globl intcall
.type intcall, @function
Expand Down

0 comments on commit 28b4868

Please sign in to comment.