aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/sizeof.t
blob: 6244a37b7ac2e1ca34973052b1a47f1c4601694c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SECTIONS {
	.text :
	  {
	    text_start = .;
	    tmpdir/sizeof.o 
	    text_end = .;
	  }
	.data : 
	  { 
	    data_start = .;
	    . = . + SIZEOF(.text);
	    data_end = .;
	  }
}	

sizeof_text = SIZEOF(.text);
sizeof_data = SIZEOF(.data);