1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 1984

Show
Ignore:
Timestamp:
10/02/11 10:47:17 (20 months ago)
Author:
kaiwang27
Message:

* Document option --gap-fill and --pad-to.
* Add option --gap-fill and --pad-to to elfcopy usage message.

Ticket: #297

Location:
trunk/elfcopy
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/elfcopy/elfcopy.1

    r1983 r1984  
    4949.Op Fl x | Fl -discard-all 
    5050.Op Fl -add-section Ar sectionname Ns = Ns Ar filename 
     51.Op Fl -gap-fill Ar val 
    5152.Op Fl -only-keep-debug 
     53.Op Fl -pad-to Ar address 
    5254.Op Fl -rename-section Ar oldname Ns = Ns Ar newname Ns Op Ar ,flags 
    5355.Op Fl -set-section-flags Ar sectionname Ns = Ns Ar flags 
     
    146148The size of the section will be the number of bytes in file 
    147149.Ar filename . 
     150.It Fl -gap-fill Ar val 
     151Fill the gaps between sections with the value specified by argument 
     152.Ar val . 
    148153.It Fl -only-keep-debug 
    149154Copy only debugging information to the output file. 
     155.It Fl -pad-to Ar address 
     156Pad the output object LMA address to 
     157.Ar address 
     158by inceasing the size of the section with the highest LMA address. 
    150159.It Fl -rename-section Ar oldname Ns = Ns Ar newname Ns Op Ar ,flags 
    151160Rename the section named by argument 
  • trunk/elfcopy/main.c

    r1983 r1984  
    12861286  --add-section NAME=FILE      Add the contents of FILE to the ELF object as\n\ 
    12871287                               a new section named NAME.\n\ 
     1288  --gap-fill=val               Fill the gaps between sections.\n\ 
    12881289  --only-keep-debug            Copy only debugging information.\n\ 
    12891290  --output-target=FORMAT       Use the specified format for the output.\n\ 
     1291  --pad-to=address             Pad output object LMA address.\n\ 
    12901292  --rename-section OLDNAME=NEWNAME[,FLAGS]\n\ 
    12911293                               Rename and optionally change section flags.\n\