7.13. Bin86-0.16.17

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc1-x86_64-Pure64

### Chapter 7. If You Are Going to Boot

- Prev

  Building a bootloader

- Next

  Lilo-22.7.1

- Up.
- Home

# 7.13. Bin86-0.16.17

The Bin86 package contains an assembler and linker to produce 16 or 32-bit 8086 machine code.

## 7.13.1. Installation of Bin86

We are building bin86 so that we can compile lilo. Both as86 and ld86 need to run on the host system to assemble x86_64 code. We cannot compile the whole package like this, but fortunately these two programs are the only parts we require.

This patch updates bin86 to compile on x86_64:

    patch -Np1 -i ../bin86-0.16.17-x86_64-1.patch

The Bin86 package does not contain a configure script. Natively compile only the necessary parts with:

    make CC=gcc -C as as86
    make CC=gcc -C ld ld86

Install the assembler and linker where they will be on the PATH when we build lilo, using prefixes to show that their output is not for a native system.

    install -v -m 755 -s as/as86 /cross-tools/bin/${LFS_TARGET}-as86
    install -v -m 755 -s ld/ld86 /cross-tools/bin/${LFS_TARGET}-ld86

Details on this package are located in Section 10.54.2, “Contents of Bin86.”

- Prev

  Building a bootloader

- Next

  Lilo-22.7.1

- Up.
- Home.