🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #1127

Re: [Linux] Problem ze stostem

#1127
From: Bernard
Date: Sun, 13 May 2007 09:09
21 lines
1592 bytes
Tomasz Pieciak wrote:
> Dzień dobry
> 
> 
> Mam problem ze stosem podczas używania GNU Asemblera w Linuksie.

A my mamy zgadnąć, jak wywołujesz asembler i konsolidator, tak?

> zaś... kiedy zamienię etykietę '.global _start' na ' .globl mojanazwa'

To konsolidator zapewne nie wie, od jakiego adresu zaczyna się program, 
i dolinkowuje _start z CRT0. Oczywiście strzelam na ślepo, bo szklanej 
kuli nie dowieźli.

> Moje pytanie jest następujące:
> Czy ta zmienna ilość elementów jest przez cokolwiek uwarunkowana ? Co 
> jest wrzucane na stos w chwili wywołania programu przed ARGC ? Czy to 
> jest zależne od linkera, kompilatora, jądra ?

To zależy, co rozumiesz pod pojęciem "program", bo zgaduję, że to 
właśnie tu leży problem.
Technical Details
Message-ID: <4646be4d$0$13184$f69f905@mamut2.aster.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.astercity.net!news.aster.pl!not-for-mail
References: <f26k9i$gu9$1@atlantis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.astercity.net!news.aster.pl!not-for-mail
Date: Sun, 13 May 2007 11:09:57 +0200
From: Bernard <bernard@earth.net>
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
MIME-Version: 1.0
Newsgroups: pl.comp.lang.asm
Subject: Re: [Linux] Problem ze stostem
References: <f26k9i$gu9$1@atlantis.news.tpi.pl>
In-Reply-To: <f26k9i$gu9$1@atlantis.news.tpi.pl>
X-Antivirus: avast! (VPS 000739-3, 2007-05-11), Outbound message
X-Antivirus-Status: Clean
Lines: 21
Message-ID: <4646be4d$0$13184$f69f905@mamut2.aster.pl>
NNTP-Posting-Date: 13 May 2007 07:29:18 GMT
NNTP-Posting-Host: 82.210.165.187
X-Trace: 1179041358 mamut2.aster.pl 13184 82.210.165.187:1374
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit