![]() |
|
Message-ID: <20110606185800.GE191@brightrain.aerifal.cx> Date: Mon, 6 Jun 2011 14:58:00 -0400 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: Cleanup patches On Mon, Jun 06, 2011 at 08:31:15PM +0200, Szabolcs Nagy wrote: > the c compiler may use different asm syntax than you do? > so $(AS) can be something that knows your .s syntax Except that inline asm is also used, so they must agree. > what's the difference between > static int f() { stuff(); } > int g() __attribute__((weak, alias("f"))); > and > int g() { stuff(); } The former provides a tentative definition of g which will avoid pulling in other .o files from an archive (.a) to satisfy references to g, but which allows another .o file which defines g to override the tentative definition. The latter provides a full definition of g which will result in link errors if g is defined elsewhere. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.