From: Alan Modra Date: Fri, 13 Aug 2021 13:08:31 +0000 (+0930) Subject: ld script lower-case absolute and sizeof_headers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b325429b2fcc53f5823d5b4a1974597c11b8dcf9;p=binutils-gdb.git ld script lower-case absolute and sizeof_headers I think these happened by accident, so let's see what breaks if they are removed. * ldlex.l: Remove lower case "absolute" and "sizeof_headers" in non-mri mode. * ld.texi: Remove sizeof_headers index. * testsuite/ld-mmix/mmohdr1.ld: Use SIZEOF_HEADERS. --- diff --git a/ld/ld.texi b/ld/ld.texi index 71cfaa3d1b1..72b5c373ba1 100644 --- a/ld/ld.texi +++ b/ld/ld.texi @@ -7044,7 +7044,6 @@ SECTIONS@{ @dots{} @end smallexample @item SIZEOF_HEADERS -@itemx sizeof_headers @kindex SIZEOF_HEADERS @cindex header size Return the size in bytes of the output file's headers. This is diff --git a/ld/ldlex.l b/ld/ldlex.l index dfe8382d0bb..b0861d78e49 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -245,6 +245,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)* "ADDR" { RTOKEN(ADDR);} "LOADADDR" { RTOKEN(LOADADDR);} "ALIGNOF" { RTOKEN(ALIGNOF); } +"ABSOLUTE" { RTOKEN(ABSOLUTE); } "MAX" { RTOKEN(MAX_K); } "MIN" { RTOKEN(MIN_K); } "LOG2CEIL" { RTOKEN(LOG2CEIL); } @@ -252,7 +253,6 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)* "ENTRY" { RTOKEN(ENTRY);} "EXTERN" { RTOKEN(EXTERN);} "NEXT" { RTOKEN(NEXT);} -"sizeof_headers" { RTOKEN(SIZEOF_HEADERS);} "SIZEOF_HEADERS" { RTOKEN(SIZEOF_HEADERS);} "SEGMENT_START" { RTOKEN(SEGMENT_START);}