X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Sergey Gotsulyak" Newsgroups: comp.os.msdos.djgpp Subject: Linker script Date: Fri, 13 Feb 2004 19:50:36 +0500 Lines: 37 Message-ID: NNTP-Posting-Host: ns.novotec.ru (82.195.11.25) X-Trace: news.uni-berlin.de 1076683856 26711184 D 82.195.11.25 ([199380]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Comment-To: All FL-Build: Fidolook 2002 (SL) 6.0.2800.85 - 28/1/2003 19:07:30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello, Delorie and All! I write own operating system with excellent DJGPP port, but I confused in one thing. Variables like etext, edata etc. that I put into linker script (see below) has zero value at my program (I declared them as external from *.cpp)! Where is the problem? OUTPUT_FORMAT("binary") ENTRY(start) SECTIONS { . = 0x00000000; .text : { *(.text) etext = . ; } .data ALIGN(0x10) : { *(.data) edata = . ; } .bss ALIGN(0x10) : { *(.bss) *(COMMON) } end = ABSOLUTE(.) ; } With best regards, Sergey Gotsulyak. E-mail: sergo AT pisem DOT net