lkml.org 
[lkml]   [2009]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 0/8] clean up vdso-layout.lds.S
From
Date
Petr Tesarik píše v Po 15. 06. 2009 v 17:16 +0200:
> [...]
> An example can probably explain it better:
>
> $ cat >shared.c <<EOF
> int shared_object[100];
> EOF
> $ cat >exe.c <<EOF
> #include <stdio.h>
> extern int shared_object[100];
> int main(void) {
> printf("%p\n", &shared_object);
> return 0;
> }
> EOF

BTW this example demonstrates that there is one section which should be
included in .data but is not:

*(COMMON)

I'll send a patch later.

Petr Tesarik

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-06-15 17:29    [W:0.687 / U:0.116 seconds]
©2003-2014 Jasper Spaans. Advertise on this site