~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-elf/pr14323-2.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
int foo __attribute__ ((section ("_data_foo"))) = 0;
 
2
extern int foo_alias __attribute__ ((weak, alias ("foo")));
 
3
extern char __start__data_foo;
 
4
asm (".type __start__data_foo,%object");
 
5
int x1 = 1;
 
6
int x2 = 2;
 
7
 
 
8
char *
 
9
bar ()
 
10
{
 
11
  foo = -1;
 
12
  return &__start__data_foo;
 
13
}