changeset 68148:df4b9089ebe1

* progmodes/ld-script.el (auto-mode-alist): Support suffix conventions used in netbsd and eCos.
author Masatake YAMATO <jet@gyve.org>
date Thu, 12 Jan 2006 10:09:44 +0000
parents ead022af8d81
children 6962eb3cd807
files lisp/ChangeLog lisp/progmodes/ld-script.el
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Jan 12 08:16:12 2006 +0000
+++ b/lisp/ChangeLog	Thu Jan 12 10:09:44 2006 +0000
@@ -1,3 +1,8 @@
+2006-01-12  Masatake YAMATO  <jet@gyve.org>
+
+	* progmodes/ld-script.el (auto-mode-alist): Support
+	suffix conventions used in netbsd and eCos.
+
 2006-01-11  Luc Teirlinck  <teirllm@auburn.edu>
 
 	* cus-edit.el (custom-reset-menu, custom-buffer-create-internal)
--- a/lisp/progmodes/ld-script.el	Thu Jan 12 08:16:12 2006 +0000
+++ b/lisp/progmodes/ld-script.el	Thu Jan 12 10:09:44 2006 +0000
@@ -125,8 +125,14 @@
    cpp-font-lock-keywords)
   "Default font-lock-keywords for `ld-script-mode'.")
 
+;; Linux-2.6.9 uses some different suffix for linker scripts:
+;; "ld", "lds", "lds.S", "lds.in", "ld.script", and "ld.script.balo".
+;; eCos uses "ld" and "ldi".
+;; Netbsd uses "ldscript.*".
 ;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.ld[s]?\\>" . ld-script-mode))
+(add-to-list 'auto-mode-alist '("\\.ld[si]?\\>" . ld-script-mode))
+(add-to-list 'auto-mode-alist '("ld[.]?script\\>" . ld-script-mode))
+
 ;;;###autoload
 (add-to-list 'auto-mode-alist '("\\.x[bdsru]?[cn]?$" . ld-script-mode))