From b325429b2fcc53f5823d5b4a1974597c11b8dcf9 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 13 Aug 2021 22:38:31 +0930 Subject: [PATCH] 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. --- ld/ld.texi | 1 - ld/ldlex.l | 6 +++--- ld/testsuite/ld-mmix/mmohdr1.ld | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) 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);}