forked from Imagelibrary/binutils-gdb
* ldlex.l, ldgram.y: Add ALIGNOF.
* ldexp.c (exp_print_token, foldname): Likewise. * ld.texinfo: Likewise. ld/testsuite/ * ld-scripts/alignof.s: New. * ld-scripts/alignof.t: New * ld-scripts/alignof.exp: New.
This commit is contained in:
15
ld/testsuite/ld-scripts/alignof.t
Normal file
15
ld/testsuite/ld-scripts/alignof.t
Normal file
@@ -0,0 +1,15 @@
|
||||
SECTIONS {
|
||||
.text :
|
||||
{
|
||||
tmpdir/alignof.o (.text)
|
||||
}
|
||||
.data :
|
||||
{
|
||||
tmpdir/alignof.o (.data)
|
||||
LONG (ALIGNOF(.text))
|
||||
LONG (ALIGNOF(.data))
|
||||
}
|
||||
}
|
||||
|
||||
alignof_text = ALIGNOF(.text);
|
||||
alignof_data = ALIGNOF(.data);
|
||||
Reference in New Issue
Block a user