Class GccLinker

All Implemented Interfaces:
Cloneable, Linker, Processor

public class GccLinker extends AbstractLdLinker
Adapter for the GCC linker
Author:
Adam Murdoch
  • Constructor Details

  • Method Details

    • getInstance

      public static GccLinker getInstance()
    • addImpliedArgs

      protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args)
      Overrides:
      addImpliedArgs in class AbstractLdLinker
    • decorateLinkerOption

      public String decorateLinkerOption(StringBuffer buf, String arg)
      Allows drived linker to decorate linker option. Override by GccLinker to prepend a "-Wl," to pass option to through gcc to linker.
      Overrides:
      decorateLinkerOption in class CommandLineLinker
      Parameters:
      buf - buffer that may be used and abused in the decoration process, must not be null.
      arg - linker argument
    • getLibraryPath

      public File[] getLibraryPath()
      Returns library path.
      Specified by:
      getLibraryPath in interface Linker
      Overrides:
      getLibraryPath in class AbstractLdLinker
    • getLinker

      public Linker getLinker(LinkType type)
      Description copied from interface: Linker
      Gets the linker for the specified link type.
      Returns:
      appropriate linker or null, will return this if this linker can handle the specified link type