Subject: Re: bug#27629: add some commands and LOG2CEIL builtin to ld-script mode

From: Alexander Kuleshov <[email-masked]>
Date: Sun, 9 Jul 2017 18:25:07 +0600

The patch is attached.
From d541e74f28284dd9fa76e0738f0b8183b832663f Mon Sep 17 00:00:00 2001
From: Alexander Kuleshov <[email-masked]>
Date: Sun, 9 Jul 2017 00:41:44 +0600
Subject: [PATCH] import ld-script mode (bug#27629)

  * lisp/progmodes/ld-script.el: (ld-script-keywords): New commands
NOCROSSREFS_TO and HIDDEN added. Documentation sections numbers
for PROVIDE/PROVIDE_HIDDEN commands are fixed.
    (ld-script-builtins): new builtin function - LOG2CEIL added.
---
 lisp/progmodes/ld-script.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/ld-script.el b/lisp/progmodes/ld-script.el
index 389ddfc..7a666e9 100644
--- a/lisp/progmodes/ld-script.el
+++ b/lisp/progmodes/ld-script.el
@@ -85,10 +85,12 @@ ld-script-keywords
     ;; 3.4.5 Other Linker Script Commands
     "ASSERT" "EXTERN" "FORCE_COMMON_ALLOCATION"
     "INHIBIT_COMMON_ALLOCATION" "INSERT" "AFTER" "BEFORE"
-    "NOCROSSREFS" "OUTPUT_ARCH" "LD_FEATURE"
-    ;; 3.5.2 PROVIDE
+    "NOCROSSREFS" "NOCROSSREFS_TO" "OUTPUT_ARCH" "LD_FEATURE"
+    ;; 3.5.2 HIDDEN
+    "HIDDEN"
+    ;; 3.5.3 PROVIDE
     "PROVIDE"
-    ;; 3.5.3 PROVIDE_HIDDEN
+    ;; 3.5.4 PROVIDE_HIDDEN
     "PROVIDE_HIDDEN"
     ;; 3.6 SECTIONS Command
     "SECTIONS"
@@ -142,6 +144,7 @@ ld-script-builtins
     "DEFINED"
     "LENGTH" "len" "l"
     "LOADADDR"
+    "LOG2CEIL"
     "MAX"
     "MIN"
     "NEXT"
-- 
2.9.0.GIT