Changeset 4131 for trunk/lisp/progmodes/ld-script.el
- Timestamp:
- 2006年07月29日 07時48分34秒 (2 years ago)
- Files:
-
- trunk/lisp/progmodes/ld-script.el (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/progmodes/ld-script.el
r4037 r4131 75 75 76 76 ;; Font lock keywords 77 ;; (The section number comes from ld's info.) 77 78 (defvar ld-script-keywords 78 '("ENTRY" "INCLUDE" "INPUT" "GROUP" 79 "OUTPUT" "SEARCH_DIR" "STARTUP" 79 '( 80 ;; 3.4.1 Setting the Entry Point 81 "ENTRY" 82 ;; 3.4.2 Commands Dealing with Files 83 "INCLUDE" "INPUT" "GROUP" "AS_NEEDED" "OUTPUT" "SEARCH_DIR" "STARTUP" 84 ;; 3.4.3 Commands Dealing with Object File Formats 80 85 "OUTPUT_FORMAT" "TARGET" 81 "ASSERT" "EXTERN" "FORCE_COMMON_ALLOCATION" "NOCROSSREFS" "OUTPUT_ARCH" 86 ;; 3.4.3 Other Linker Script Commands 87 "ASSERT" "EXTERN" "FORCE_COMMON_ALLOCATION" 88 "INHIBIT_COMMON_ALLOCATION" "NOCROSSREFS" "OUTPUT_ARCH" 89 ;; 3.5.2 PROVIDE 82 90 "PROVIDE" 83 "SECTIONS" "SORT" "COMMON" "KEEP" 84 "BYTE" "SHORT" "LONG" "QUAD" "SQAD" 85 "FILL" 86 "CREATE_OBJECT_SYMBOLS" 87 "CONSTRUCTORS" 91 ;; 3.5.3 PROVIDE_HIDDEN 92 "PROVIDE_HIDEN" 93 ;; 3.6 SECTIONS Command 94 "SECTIONS" 95 ;; 3.6.4.2 Input Section Wildcard Patterns 96 "SORT" "SORT_BY_NAME" "SORT_BY_ALIGNMENT" 97 ;; 3.6.4.3 Input Section for Common Symbols 98 "COMMON" 99 ;; 3.6.4.4 Input Section and Garbage Collection 100 "KEEP" 101 ;; 3.6.5 Output Section Data 102 "BYTE" "SHORT" "LONG" "QUAD" "SQUAD" "FILL" 103 ;; 3.6.6 Output Section Keywords 104 "CREATE_OBJECT_SYMBOLS" "CONSTRUCTORS" 105 "__CTOR_LIST__" "__CTOR_END__" "__DTOR_LIST__" "__DTOR_END__" 106 ;; 3.6.7 Output Section Discarding 107 ;; See `ld-script-font-lock-keywords' 108 ;; 3.6.8.1 Output Section Type 88 109 "NOLOAD" "DSECT" "COPY" "INFO" "OVERLAY" 110 ;; 3.6.8.2 Output Section LMA 89 111 "AT" 112 ;; 3.6.8.4 Forced Input Alignment 113 "SUBALIGN" 114 ;; 3.6.8.6 Output Section Phdr 115 ":PHDR" 116 ;; 3.7 MEMORY Command 90 117 "MEMORY" 118 ;; 3.8 PHDRS Command 91 119 "PHDRS" "FILEHDR" "FLAGS" 92 120 "PT_NULL" "PT_LOAD" "PT_DYNAMIC" "PT_INTERP" "PT_NONE" "PT_SHLIB" "PT_PHDR" 121 ;; 3.9 VERSION Command 93 122 "VERSION") 94 123 "Keywords used of GNU ld script.") 95 124 125 ;; 3.10.8 Builtin Functions 96 126 (defvar ld-script-builtins 97 127 '("ABSOLUTE" … … 103 133 "DATA_SEGMENT_RELRO_END" 104 134 "DEFINED" 105 "LENGTH" 135 "LENGTH" "len" "l" 106 136 "LOADADDR" 107 137 "MAX" 108 138 "MIN" 109 139 "NEXT" 110 "ORIGIN" 140 "ORIGIN" "org" "o" 111 141 "SEGMENT_START" 112 142 "SIZEOF" … … 121 151 (,(regexp-opt ld-script-builtins 'words) 122 152 1 font-lock-builtin-face) 123 ("/DISCARD/" . font-lock-warning-face) 153 ;; 3.6.7 Output Section Discarding 154 ;; 3.6.4.1 Input Section Basics 155 ;; 3.6.8.6 Output Section Phdr 156 ("/DISCARD/\\|EXCLUDE_FILE\\|:NONE" . font-lock-warning-face) 124 157 ("\\W\\(\\.\\)\\W" 1 ld-script-location-counter-face) 125 158 )
