1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in
Show
Ignore:
Timestamp:
12/04/11 02:00:20 (18 months ago)
Author:
kaiwang27
Message:

Implement linker script command "ENTRY" and command line option "-e":
set executable entry point.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ld/ld_script_parser.y

    r2281 r2282  
    504504 
    505505entry_command 
    506         : T_ENTRY '(' ident ')' 
     506        : T_ENTRY '(' ident ')' { 
     507                if (ld->ld_scp_entry != NULL) 
     508                        free(ld->ld_scp_entry); 
     509                ld->ld_scp_entry = $3; 
     510        } 
    507511        ; 
    508512 
     
    555559 
    556560output_command 
    557         : T_OUTPUT '(' ident ')' { ld_script_output(ld, $3); } 
     561        : T_OUTPUT '(' ident ')' { 
     562                if (ld->ld_output == NULL) 
     563                        ld->ld_output = $3; 
     564                else 
     565                        free($3); 
     566        } 
    558567        ; 
    559568