public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ronaldo Luiz Alonso <ronaldo.luiz.alonso@gmail.com>
To: cygwin@cygwin.com
Subject: ld linker with option -m elf_i386 stopped working in new version of cygwin.
Date: Sun, 10 Oct 2021 11:17:41 -0400	[thread overview]
Message-ID: <CAPCuWjnnFLWZKSjF5Yz=vBxUnoJ=+ONtgeKeLwfsVy3ZvJatYQ@mail.gmail.com> (raw)

Hello everybody!
I am a professor teaching operational system and using a tutorial in
french by michelizza:
https://michelizza.developpez.com/realiser-son-propre-systeme/
In order to build the system and debug it in bochs I use the
following Makefile:
------------------------------------------------------------------------
OBJ=kernel
CC=gcc -Wall *-m32* -g

all: $(OBJ)

kernel: kernel.o screen.o lib.o gdt.o idt.o interrupt.o int.o pic.o
syscalls.o mm.o printk.o process.o schedule.o sched.o
* ld --oformat binary -m elf_i386 -Ttext 1000 $^ -o $@*

int.o: int.asm
nasm -f elf -o $@ $^

sched.o: sched.asm
nasm -f elf -o $@ $^

.o: .c
$(CC) -c $^

clean:
rm -f $(OBJ) *.o
------------------------------------------------------------------------
Note that the system is compiled using -m 32 (system is for machines with
32 bits) bits and the linker uses elf_i386 multiboot format.

This was working fine few weeks later, but when I run setup again to update
cygwin it stops working and ld complains that* this emulation mode is no
longer  supported! *
 The system now only links and builds PE windows executables!

The question is:
*how can I get and build an older version of ld source, so that this works
again in cygwin ?*
*Is it possible?*
*or should I give up developping this kernel using windows and cygwin and
turn back to Linux?*

Thanks in advance.
Ronaldo Alonso - Computer Engeneer and professor
 Federal University of Mato Grosso
Brazil.

             reply	other threads:[~2021-10-10 15:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-10 15:17 Ronaldo Luiz Alonso [this message]
2021-10-10 18:54 ` Brian Inglis
2021-10-10 22:40   ` Ronaldo Luiz Alonso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPCuWjnnFLWZKSjF5Yz=vBxUnoJ=+ONtgeKeLwfsVy3ZvJatYQ@mail.gmail.com' \
    --to=ronaldo.luiz.alonso@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).