1. 28 Mar, 2013 2 commits
    • Alessandro Rubini's avatar
      shell: reorganize parsing using .cmd ELF section · a9ce831d
      Alessandro Rubini authored
      This commit creates a .cmd section, so there is no global list of
      commands in shell.c any more, and no ifdef in the code for conditional
      commands.  Also, (unrelated) makes shell errors slightly more friendly.
      
      The technique is widely used, in the Linux kernel and all boot
      loaders, as well as a lot of my own personal code, so this is safe
      (and tested).
      
      As a side effect, this allows (in later commits) to move the "verbose"
      ppsi-specific command back to ppsi/arch-wrpc/ where it really belongs.
      It allows new commands to be easily added by just adding their
      respective file to the build.
      
      Even though this increases code size by around 50 lines, it makes it
      more modular and only costs 8 bytes in the final executable (in my
      configuration: 128 bytes less of text and 136 bytes more of data).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      a9ce831d
    • Alessandro Rubini's avatar
      Makefile: use bigobj.lds during initial partial link · eb9d18a4
      Alessandro Rubini authored
      This commit makes no effect, but it prepares for the following one.
      In general, using an intermediate platform-agnostic linker script
      when making wrc.o is not bad, so let's do it here.
      
      The main reason why we need it is to force the "KEEP" command for the
      ".cmd" ELF section, introduced by the next commit.  The alternative to
      this would be chaning the main linker script, which is worse in my
      opinion.
      
      If we add initcalls or similar stuff later, this bigobj.lds is the
      place to do it.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      eb9d18a4
  2. 26 Mar, 2013 4 commits
  3. 19 Mar, 2013 1 commit
  4. 18 Mar, 2013 6 commits
  5. 12 Mar, 2013 1 commit
  6. 07 Mar, 2013 6 commits
  7. 06 Mar, 2013 2 commits
  8. 05 Mar, 2013 1 commit
  9. 20 Feb, 2013 17 commits