diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-04-02 16:32:04 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-04-02 16:32:04 +0000 |
commit | f856040accecf254a5130936e69218ed935711a6 (patch) | |
tree | e999c053ca724603cd1ebda3d72e3e52f0c95d85 /ld/testsuite | |
parent | 0c000745190c009ceaab0e94ae9692d5a7226e84 (diff) | |
download | gdb-f856040accecf254a5130936e69218ed935711a6.zip gdb-f856040accecf254a5130936e69218ed935711a6.tar.gz gdb-f856040accecf254a5130936e69218ed935711a6.tar.bz2 |
ld/
2007-04-02 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4090
* ldexp.h (node_type): Add lineno.
* ldexp.c: Include "ldlex.h".
(exp_intop): Set the lineno field from lineno.
(exp_bigintop): Likewise.
(exp_relop): Likewise.
(exp_nameop): Likewise.
(exp_binop): Set the lineno field from lineno of lhs.
(exp_trinop): Likewise.
(exp_unop): Set the lineno field from lineno of child.
(exp_assop): Set the lineno field from lineno of src.
(exp_provide): Likewise.
(exp_assert): Set the lineno field from lineno of exp.
(exp_get_abs_int): Set lineno from lineno of nonconstant
expression when report problem.
ld/testsuite/
2007-04-02 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4090
* ld-elf/expr1.d: New file.
* ld-elf/expr1.s: Likewise.
* ld-elf/expr1.t: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/expr1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/expr1.s | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/expr1.t | 6 |
4 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 0893e8e..21a924c 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2007-04-02 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/4090 + * ld-elf/expr1.d: New file. + * ld-elf/expr1.s: Likewise. + * ld-elf/expr1.t: Likewise. + 2007-03-29 Richard Sandiford <richard@codesourcery.com> * ld-libs/lib-1.s, ld-libs/lib-2.s, ld-libs/lib-2.d, diff --git a/ld/testsuite/ld-elf/expr1.d b/ld/testsuite/ld-elf/expr1.d new file mode 100644 index 0000000..7bf5d22 --- /dev/null +++ b/ld/testsuite/ld-elf/expr1.d @@ -0,0 +1,2 @@ +# ld: -T expr1.t +# error: expr1.t:3: nonconstant expression for load base diff --git a/ld/testsuite/ld-elf/expr1.s b/ld/testsuite/ld-elf/expr1.s new file mode 100644 index 0000000..998bbc0 --- /dev/null +++ b/ld/testsuite/ld-elf/expr1.s @@ -0,0 +1,4 @@ + .section .bar,"ax","progbits" + .byte 0 + .section .foo,"aw","progbits" + .byte 0 diff --git a/ld/testsuite/ld-elf/expr1.t b/ld/testsuite/ld-elf/expr1.t new file mode 100644 index 0000000..9670e25 --- /dev/null +++ b/ld/testsuite/ld-elf/expr1.t @@ -0,0 +1,6 @@ +SECTIONS +{ + .bar : AT ((ADDR(.foo) + 4095) & ~(4095)) { *(.bar) } + .foo : { *(.foo) } + /DISCARD/ : { *(.*) } +} |