~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/ld/testsuite/ld-size/size-4b.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
extern char bar[];
 
2
extern char size_of_bar asm ("bar@SIZE");
 
3
 
 
4
char *bar_size_1 = &size_of_bar;
 
5
static char *bar_size_2 = &size_of_bar;
 
6
 
 
7
char *
 
8
bar_size1 (void)
 
9
{
 
10
  return bar_size_1;
 
11
}
 
12
 
 
13
char *
 
14
bar_size2 (void)
 
15
{
 
16
  return bar_size_2;
 
17
}
 
18
 
 
19
extern char foo[];
 
20
extern char size_of_foo asm ("foo@SIZE");
 
21
 
 
22
char *foo_size_1 = &size_of_foo;
 
23
static char *foo_size_2 = &size_of_foo;
 
24
 
 
25
char *
 
26
foo_size1 (void)
 
27
{
 
28
  return foo_size_1;
 
29
}
 
30
 
 
31
char *
 
32
foo_size2 (void)
 
33
{
 
34
  return foo_size_2;
 
35
}