mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-14 17:57:39 +01:00
Change-Id: I7a413a81d33762f3cb1e8c67883d1e616f83d0e9 Reviewed-on: https://review.haiku-os.org/c/1536 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
14 lines
246 B
C
14 lines
246 B
C
__attribute__((section(".data.a")))
|
|
static int int_from_a_1 = 0x11223344;
|
|
|
|
__attribute__((section(".data.rel.ro.a")))
|
|
int *p_int_from_a_2 = &int_from_a_1;
|
|
|
|
const char *hello (void);
|
|
|
|
const char *
|
|
hello (void)
|
|
{
|
|
return "XXXHello, world!" + 3;
|
|
}
|