[PATCH] D30419: [ELF] - Define __bss_start symbol.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 11:18:18 PST 2017


grimar created this revision.

GNU linkers define __bss_start symbol.
Patch teaches LLD to do that. This is PR32051.

Below is part of standart ld.bfd script:

  .data1          : { *(.data1) }
    _edata = .; PROVIDE (edata = .);
    . = .;
    __bss_start = .;
    .bss            :
    {

Currently LLD can emit up to 3 .bss* sections as one of testcase shows.
Implementation inserts this symbol before first .bss* output section.


https://reviews.llvm.org/D30419

Files:
  ELF/Symbols.h
  ELF/Writer.cpp
  test/ELF/Inputs/bss-start.s
  test/ELF/bss-start.s
  test/ELF/bss-start2.s
  test/ELF/bss-start3.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30419.89908.patch
Type: text/x-patch
Size: 4505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170227/07717893/attachment-0001.bin>


More information about the llvm-commits mailing list