# HG changeset patch # User Masatake YAMATO # Date 1137060584 0 # Node ID df4b9089ebe120346732ff7af8c4718935971cf5 # Parent ead022af8d81ac87785da4d8ca89f7df970ba12a * progmodes/ld-script.el (auto-mode-alist): Support suffix conventions used in netbsd and eCos. diff -r ead022af8d81 -r df4b9089ebe1 lisp/ChangeLog --- 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 + + * progmodes/ld-script.el (auto-mode-alist): Support + suffix conventions used in netbsd and eCos. + 2006-01-11 Luc Teirlinck * cus-edit.el (custom-reset-menu, custom-buffer-create-internal) diff -r ead022af8d81 -r df4b9089ebe1 lisp/progmodes/ld-script.el --- 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))