]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Make ALIGN(x) behave as ALIGN(.,x)
authorAlan Modra <amodra@gmail.com>
Wed, 8 Jul 2015 12:48:34 +0000 (22:18 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 10 Jul 2015 10:38:55 +0000 (20:08 +0930)
commita2c59f280dda14a2f68d0175c8879238be1aa200
treeee181b1fac3d8fbd51eedcc900fef1443c5e1061
parent40f77f827b91ab9665ce27950c30c688f8fde983
Make ALIGN(x) behave as ALIGN(.,x)

Inside output sections, ALIGN(.,x) uses a section-relative value for
dot.  The unary ALIGN always used the absolute value of dot.

* ldexp.c (align_dot_val): New function.
(fold_unary <ALIGN_K, NEXT>): Use it.
ld/ChangeLog
ld/ldexp.c