repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Delete asection.symbol_ptr_ptr
[binutils-gdb.git]
/
ld
/
testsuite
/
ld-scripts
/
sane1.t
blob
09c1409990e0e008a8ee2c08c1983b974f9e1de2
1
LD_FEATURE("SANE_EXPR")
2
e1 = 0x100;
3
e2 = 0x80;
4
e3 = e1 * e2;
5
SECTIONS
6
{
7
. = e3;
8
.data :
9
{
10
d1 = 4;
11
. += d1 + 5 << 2;
12
d2 = .;
13
s_diff = d2 - d1;
14
s_sum_neg = d2 + -d1;
15
s_sum = d2 + d1;
16
s_prod = d2 * d1;
17
s1 = d1 - 2;
18
s2 = d2 % 5;
19
s3 = d2 / 5;
20
s4 = ABSOLUTE (d1) - 2;
21
s5 = ABSOLUTE (d2) % 5;
22
s6 = ABSOLUTE (d2) / 5;
23
*(.data .rw)
24
}
25
.text : { *(.text) }
26
.bss : { *(.bss) }
27
/DISCARD/ : {*(*)}
28
29
diff = d2 - d1;
30
sum_neg = d2 + -d1;
31
sum = d2 + d1;
32
prod = d2 * d1;
33
x1 = d1 - 2;
34
x2 = d2 % 5;
35
x3 = d2 / 5;
36
x4 = ABSOLUTE (d1) - 2;
37
x5 = ABSOLUTE (d2) % 5;
38
x6 = ABSOLUTE (d2) / 5;
39
}