diff options
author | Ayke van Laethem <[email protected]> | 2021-10-31 01:30:17 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-10-31 10:44:17 +0100 |
commit | 90076f9401ff5bc6572e6f932d7fa937049d628f (patch) | |
tree | a31ff7eb46486b503904816954eb61e07fa1c7ac /builder/sizes.go | |
parent | afd49e7cdd358eda85a7fcf615d768ecf04d62ce (diff) | |
download | tinygo-90076f9401ff5bc6572e6f932d7fa937049d628f.tar.gz tinygo-90076f9401ff5bc6572e6f932d7fa937049d628f.zip |
all: drop support for LLVM 10
Diffstat (limited to 'builder/sizes.go')
-rw-r--r-- | builder/sizes.go | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/builder/sizes.go b/builder/sizes.go index 750c4bd94..c88c9b7ba 100644 --- a/builder/sizes.go +++ b/builder/sizes.go @@ -84,18 +84,7 @@ func loadProgramSize(path string) (*programSize, error) { if section.Type != elf.SHT_PROGBITS && section.Type != elf.SHT_NOBITS { continue } - if section.Name == ".stack" { - // HACK: this works around a bug in ld.lld from LLVM 10. The linker - // marks sections with no input symbols (such as is the case for the - // .stack section) as SHT_PROGBITS instead of SHT_NOBITS. While it - // doesn't affect the generated binaries (.hex and .bin), it does - // affect the reported size. - // https://bugs.llvm.org/show_bug.cgi?id=45336 - // https://reviews.llvm.org/D76981 - // It has been merged in master, but it has not (yet) been - // backported to the LLVM 10 release branch. - sumBSS += section.Size - } else if section.Type == elf.SHT_NOBITS { + if section.Type == elf.SHT_NOBITS { sumBSS += section.Size } else if section.Flags&elf.SHF_EXECINSTR != 0 { sumCode += section.Size |