* 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:
Nathan Sidwell
2004-02-20 15:31:10 +00:00
parent 627fe3fb79
commit 876f40905a
9 changed files with 75 additions and 10 deletions

View 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")
}