Mail Archives: djgpp/1999/05/05/11:59:22
Message-ID: | <001301be970f$644b1b60$9cf2e5c1@jairn-tietokone>
|
From: | "Jari Tuominen" <jer64 AT kolumbus DOT fi>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Mysterious _GLOBAL_OFFSET_TABLE_
|
Date: | Wed, 5 May 1999 18:53:07 +0300
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 4.72.3110.1
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
This is a multi-part message in MIME format.
------=_NextPart_000_0010_01BE9728.8391A980
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am doing a mini kernel, well, I don't know much how to use GCC, I can =
do the 32bit KERNEL with NASM also but I would like to use GCC instead.
There are no documents about this available, atleast as far I know...
C:\jtm\bin\JTMOS\KERNEL32>mk kernel32
MAKE KERNEL - By Jari Tapio Tuominen in 1999
e:/djgpp/bin/ld.exe: warning: cannot find entry symbol start; defaulting =
to 0001
0000
kernel32.o(.text+0xc):kernel32.c: undefined reference to =
`_GLOBAL_OFFSET_TABLE_'
kernel32.o(.text+0x30):kernel32.c: undefined reference to =
`_GLOBAL_OFFSET_TABLE_
'
kernel32.o(.text+0x94):kernel32.c: undefined reference to =
`_GLOBAL_OFFSET_TABLE_
'
kernel32.o(.text+0xec):kernel32.c: undefined reference to =
`_GLOBAL_OFFSET_TABLE_
'
kernel32.o(.text+0x11a):kernel32.c: undefined reference to =
`_GLOBAL_OFFSET_TABLE
_'
kernel32.o(.text+0x168):kernel32.c: more undefined references to =
`_GLOBAL_OFFSET
_TABLE_' follow
kernel32.o(.text+0x301):kernel32.c: undefined reference to `___main'
C:\jtm\bin\JTMOS\KERNEL32>type c:\jtm\bin\bat\mk.bat
@echo off
gcc -fpic -w -c %1.c -Wall -O
rem -fstrength-reduce -fomit-frame-pointer -nostdinc
ld %1.o -o %1.bin -oformat binary -Ttext 0x10000 -Tdata 0x20000 -Tbss =
0x20000
.......................
What is this _GLOBAL_OFFSET_TABLE_?
------=_NextPart_000_0010_01BE9728.8391A980
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I am doing a mini kernel,</FONT><FONT size=3D2> =
well, I=20
don't know much how to use GCC, I can do the 32bit KERNEL with NASM also =
but I=20
would like to use GCC instead.</FONT></DIV>
<DIV><FONT size=3D2>There are no documents about this available, atleast =
as far I=20
know...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>C:\jtm\bin\JTMOS\KERNEL32>mk kernel32<BR>MAKE =
KERNEL - By=20
Jari Tapio Tuominen in 1999<BR>e:/djgpp/bin/ld.exe: warning: cannot find =
entry=20
symbol start; defaulting to =
0001<BR>0000<BR>kernel32.o(.text+0xc):kernel32.c:=20
undefined reference to `_GLOBAL_OFFSET_TABLE_'</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>kernel32.o(.text+0x30):kernel32.c: undefined =
reference to=20
`_GLOBAL_OFFSET_TABLE_<BR>'<BR>kernel32.o(.text+0x94):kernel32.c: =
undefined=20
reference to =
`_GLOBAL_OFFSET_TABLE_<BR>'<BR>kernel32.o(.text+0xec):kernel32.c:=20
undefined reference to=20
`_GLOBAL_OFFSET_TABLE_<BR>'<BR>kernel32.o(.text+0x11a):kernel32.c: =
undefined=20
reference to =
`_GLOBAL_OFFSET_TABLE<BR>_'<BR>kernel32.o(.text+0x168):kernel32.c:=20
more undefined references to `_GLOBAL_OFFSET<BR>_TABLE_'=20
follow<BR>kernel32.o(.text+0x301):kernel32.c: undefined reference to=20
`___main'</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>C:\jtm\bin\JTMOS\KERNEL32>type=20
c:\jtm\bin\bat\mk.bat<BR>@echo off<BR>gcc -fpic -w -c %1.c -Wall =
-O<BR>rem=20
-fstrength-reduce -fomit-frame-pointer -nostdinc<BR>ld %1.o -o %1.bin =
-oformat=20
binary -Ttext 0x10000 -Tdata 0x20000 -Tbss 0x20000<BR></FONT></DIV>
<DIV><FONT size=3D2>.......................</FONT></DIV>
<DIV><FONT size=3D2>What is this =
_GLOBAL_OFFSET_TABLE_?</DIV></FONT></BODY></HTML>
------=_NextPart_000_0010_01BE9728.8391A980--
- Raw text -