forked from Imagelibrary/binutils-gdb
* ldgram.y (exp): Add two operand ALIGN.
* ldexp.c (fold_binary): Add ALIGN_K case.
* ld.texinfo (ALIGN): Document two operand version.
* ld-scripts/align.{s,t,exp}: New.
This commit is contained in:
8
ld/testsuite/ld-scripts/align.t
Normal file
8
ld/testsuite/ld-scripts/align.t
Normal file
@@ -0,0 +1,8 @@
|
||||
SECTIONS
|
||||
{
|
||||
.text : {*(.text)}
|
||||
.data ALIGN(0x40) : AT (ALIGN (LOADADDR (.text) + SIZEOF (.text), 0x80))
|
||||
{}
|
||||
ASSERT (LOADADDR(.data) == 0x80, "dyadic ALIGN broken")
|
||||
ASSERT (ADDR(.data) == 0x40, "monadic ALIGN broken")
|
||||
}
|
||||
Reference in New Issue
Block a user