[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/30974] DEFINED() always evaluates to 0
From: |
amodra at gmail dot com |
Subject: |
[Bug ld/30974] DEFINED() always evaluates to 0 |
Date: |
Mon, 16 Oct 2023 23:16:52 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30974
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |NOTABUG
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
Ordering matters with symbols defined in linker scripts. DEFINED(x) will be 0
for x defined later in the script. --defsym on the command line is treated the
same, ie. it's as if the symbol was defined in a tiny script.
So, this will work:
ld -melf_i386 -static -o fdppkrnl.elf --defsym=DOS_PSP=0x60 -Tkernel.ld
kernel.o entry.o io.o console.o serial.o printer.o execrh.o nlssupt.o
procsupt.o dosidle.o int2f.o nls_hc.o intr.o irqstack.o cpu.o plt.o cdata.o
floppy.o rdpcclk.o wrpcclk.o wratclk.o
--
You are receiving this mail because:
You are on the CC list for the bug.