Message-ID: <001301be970f$644b1b60$9cf2e5c1@jairn-tietokone> From: "Jari Tuominen" To: Subject: Mysterious _GLOBAL_OFFSET_TABLE_ Date: Wed, 5 May 1999 18:53:07 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0010_01BE9728.8391A980" 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
 
I am doing a mini kernel, = 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.
There are no documents about this available, atleast = as far I=20 know...
 
C:\jtm\bin\JTMOS\KERNEL32>mk kernel32
MAKE = KERNEL - By=20 Jari Tapio Tuominen in 1999
e:/djgpp/bin/ld.exe: warning: cannot find = entry=20 symbol start; defaulting to = 0001
0000
kernel32.o(.text+0xc):kernel32.c:=20 undefined reference to `_GLOBAL_OFFSET_TABLE_'
 
kernel32.o(.text+0x30):kernel32.c: undefined = reference to=20 `_GLOBAL_OFFSET_TABLE_
'
kernel32.o(.text+0x94):kernel32.c: = undefined=20 reference to = `_GLOBAL_OFFSET_TABLE_
'
kernel32.o(.text+0xec):kernel32.c:=20 undefined reference to=20 `_GLOBAL_OFFSET_TABLE_
'
kernel32.o(.text+0x11a):kernel32.c: = undefined=20 reference to = `_GLOBAL_OFFSET_TABLE
_'
kernel32.o(.text+0x168):kernel32.c:=20 more undefined references to `_GLOBAL_OFFSET
_TABLE_'=20 follow
kernel32.o(.text+0x301):kernel32.c: undefined reference to=20 `___main'
 
C:\jtm\bin\JTMOS\KERNEL32>type=20 c:\jtm\bin\bat\mk.bat
@echo off
gcc -fpic -w -c %1.c -Wall = -O
rem=20 -fstrength-reduce -fomit-frame-pointer -nostdinc
ld %1.o -o %1.bin = -oformat=20 binary -Ttext 0x10000 -Tdata 0x20000 -Tbss 0x20000
.......................
What is this = _GLOBAL_OFFSET_TABLE_?
------=_NextPart_000_0010_01BE9728.8391A980--