https://llvm.org/bugs/show_bug.cgi?id=30269

            Bug ID: 30269
           Summary: lld: implement --section-start, aka -Ttext etc.
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: ema...@freebsd.org
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

The build for FreeBSD's boot loader components was recently reworked to use a
linker script instead of -N, but we've now encountered another issue in the
lack of -Ttext.

GNU ld documents them as:
       --section-start sectionname=org
           Locate a section in the output file at the absolute address given
           by org.  You may use this option as many times as necessary to
           locate multiple sections in the command line.  org must be a single
           hexadecimal integer; for compatibility with other linkers, you may
           omit the leading 0x usually associated with hexadecimal values.
           Note: there should be no white space between sectionname, the
           equals sign ("="), and org.

       -Tbss org
       -Tdata org
       -Ttext org
           Same as --section-start, with ".bss", ".data" or ".text" as the
           sectionname.

However, see this note about Gold's -Ttext / -Ttext-segment:

Gold's -Ttext option is approximately the same as GNU ld's
-Ttext-segment option.  This patch adds -Ttext-segment to gold as an
alias for -Ttext, so that scripts can use both linkers the same way.
This was prompted in particular by
http://gcc.gnu.org/ml/gcc-patches/2013-02/msg00699.html .

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to