🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #308911

Re: Linker C nie widzi procedury assemblerowej

#308911
From: Marek Borowski
Date: Sun, 16 Oct 2016 12:48
34 lines
1729 bytes
On 16.10.2016 12:49, Borneq wrote:
> W dniu 16.10.2016 o 08:27, slawek pisze:
>> Ale pamiętasz że jak ma być fun() w C to musi być _fun w Asemblerze?
> Nic to nie dało, linker żąda akurat bez podkreślenia. Nie wiem, czy
> nazwa funkcji musi być w assemblerze w linii "LEAF_PROC mpn_addmul_1"
> czy też trzeba aby cały plik assemblerowy nazywał się tak jak żądana
> funkcja.
>
A może warto sprawdzic co to LEAF_PROC ?


%macro LEAF_PROC 1

     global  __g%1

%ifdef DLL
     export  __g%1
%endif

__g%1:


Jak widac dodaje prefix __g wiec nie dziwne ze linker nie znajduje 
symbolu. Albo uzywaj __gmpn_addmul_1 w c albo zrezygnuj z LEAF_PROC.


	global mpn_addmul_1

mpn_addmul_1:


Pozdrawiam

Marek
Technical Details
Message-ID: <ntvsuu$9ke$1@portraits.wsisiz.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.84-10-32-242.static.chello.pl!not-for-mail
References: <ntt002$su4$1@node1.news.atman.pl> <ntt002$su4$1@node1.news.atman.pl> <almarsoft.7768711683328874933@news.v.pl> <ntvlv2$k5e$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.84-10-32-242.static.chello.pl!not-for-mail
From: Marek Borowski <marek@nazwisko.com>
Newsgroups: pl.comp.lang.c
Subject: Re: Linker C nie widzi procedury assemblerowej
Date: Sun, 16 Oct 2016 14:48:29 +0200
Organization: http://www.wit.edu.pl
Message-ID: <ntvsuu$9ke$1@portraits.wsisiz.edu.pl>
References: <ntt002$su4$1@node1.news.atman.pl> <ntt002$su4$1@node1.news.atman.pl> <almarsoft.7768711683328874933@news.v.pl> <ntvlv2$k5e$1@node1.news.atman.pl>
Mime-Version: 1.0
Injection-Date: Sun, 16 Oct 2016 12:48:30 +0000 (UTC)
Injection-Info: portraits.wsisiz.edu.pl; posting-host="84-10-32-242.static.chello.pl:84.10.32.242"; logging-data="9870"; mail-complaints-to="abuse@wsisiz.edu.pl"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
In-Reply-To: <ntvlv2$k5e$1@node1.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit