Show
Ignore:
Timestamp:
2006年07月29日 07時48分34秒 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/progmodes/ld-script.el

    r4037 r4131  
    7575 
    7676;; Font lock keywords 
     77;; (The section number comes from ld's info.) 
    7778(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 
    8085    "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 
    8290    "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 
    88109    "NOLOAD" "DSECT" "COPY" "INFO" "OVERLAY" 
     110    ;; 3.6.8.2 Output Section LMA 
    89111    "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 
    90117    "MEMORY" 
     118    ;; 3.8 PHDRS Command 
    91119    "PHDRS" "FILEHDR" "FLAGS" 
    92120    "PT_NULL" "PT_LOAD" "PT_DYNAMIC" "PT_INTERP" "PT_NONE" "PT_SHLIB" "PT_PHDR" 
     121    ;; 3.9 VERSION Command 
    93122    "VERSION") 
    94123  "Keywords used of GNU ld script.") 
    95124 
     125;; 3.10.8 Builtin Functions 
    96126(defvar ld-script-builtins 
    97127  '("ABSOLUTE" 
     
    103133    "DATA_SEGMENT_RELRO_END" 
    104134    "DEFINED" 
    105     "LENGTH" 
     135    "LENGTH" "len" "l" 
    106136    "LOADADDR" 
    107137    "MAX" 
    108138    "MIN" 
    109139    "NEXT" 
    110     "ORIGIN" 
     140    "ORIGIN" "org" "o" 
    111141    "SEGMENT_START" 
    112142    "SIZEOF" 
     
    121151     (,(regexp-opt ld-script-builtins 'words) 
    122152      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) 
    124157     ("\\W\\(\\.\\)\\W" 1 ld-script-location-counter-face) 
    125158     )