mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 01:07:04 +08:00
A user program may enumerate sections named with a C identifier using __start_* and __stop_* symbols. We cannot ICF any such sections because that could change program semantics. Differential Revision: https://reviews.llvm.org/D47242 llvm-svn: 333054
10 lines
206 B
ArmAsm
10 lines
206 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
# RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections | count 0
|
|
|
|
.section .foo,"ax"
|
|
.byte 42
|
|
|
|
.section .bar,"ax"
|
|
.byte 42
|