diff --git a/src/cmd/ld/elf.c b/src/cmd/ld/elf.c index a3359cdd72..a4829da4e8 100644 --- a/src/cmd/ld/elf.c +++ b/src/cmd/ld/elf.c @@ -52,6 +52,9 @@ elfinit(void) break; // 32-bit architectures + case '5': + hdr.flags = 0x5000002; // has entry point, Version5 EABI + // fallthrough default: hdr.phoff = ELF32HDRSIZE; /* Must be be ELF32HDRSIZE: first PHdr must follow ELF header */ hdr.shoff = ELF32HDRSIZE; /* Will move as we add PHeaders */