Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ jobs:
tidy: false
os: ubuntu-latest
env: {}
- name: x86_64-gnu-tools
os: ubuntu-latest
env: {}
defaults:
run:
shell: "${{ contains(matrix.os, 'windows') && 'msys2 {0}' || 'bash' }}"
Expand Down
3 changes: 0 additions & 3 deletions compiler/rustc_codegen_ssa/src/back/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,6 @@ impl<'a> GccLinker<'a> {
if self.sess.opts.cg.target_cpu.as_ref()
.unwrap_or(&self.sess.target.cpu.as_ref().to_string()) == "v3" {
self.linker_arg("-Bsymbolic");
if self.sess.opts.debuginfo == DebugInfo::None {
self.linker_arg("--strip-all");
}
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions compiler/rustc_codegen_ssa/src/back/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static
"msp430" => (Architecture::Msp430, None),
"hexagon" => (Architecture::Hexagon, None),
"bpf" => (Architecture::Bpf, None),
"sbf" if sess.target.options.cpu.as_ref() == "v3" => {
(Architecture::Bpf, None)
},
"loongarch64" => (Architecture::LoongArch64, None),
"csky" => (Architecture::Csky, None),
"arm64ec" => (Architecture::Aarch64, Some(SubArchitecture::Arm64EC)),
Expand Down
38 changes: 9 additions & 29 deletions compiler/rustc_target/src/spec/base/sbf_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,15 @@ SECTIONS
const V3_LINKER_SCRIPT: &str = r"
SECTIONS
{
.text 0x000000000 : {
. = 0x00;
KEEP(*(.text.abort))
*(.text*)
} :text
.rodata 0x100000000 : {
.rodata 0x000000000 : SUBALIGN(8) {
BYTE(0);
*(.rodata*)
*(.data.rel.ro*)
BYTE(0);
. = ALIGN(8);
} :rodata
.bss.stack 0x200000000 (NOLOAD) : {
_stack_start = .;
. = . + 0x1000;
_stack_end = .;
. = ALIGN(8);
} :stack
.bss.heap 0x300000000 (NOLOAD) : {
_heap_start = .;
. = . + 0x1000;
_heap_end = .;
. = ALIGN(8);
} :heap
.dynsym 0xFFFFFFFF00000000 : {
*(.dynsym)
. = ALIGN(8);
} :dynsym
.strtab : { *(.strtab) } :other
.dynstr : { *(.dynstr) } :other
.text 0x100000000 : {
*(.text*)
} :text
/DISCARD/ : {
*(.comment*)
*(.eh_frame*)
Expand All @@ -68,15 +48,15 @@ SECTIONS
*(.data*)
*(.rel.dyn*)
*(.dynamic)
*(.dynsym)
*(.dynstr)
}
}

PHDRS
{
text PT_LOAD FLAGS(1);
rodata PT_LOAD FLAGS(4);
stack PT_GNU_STACK FLAGS(6);
heap PT_LOAD FLAGS(6);
dynsym PT_NULL FLAGS(0);
text PT_LOAD FLAGS(1);
other PT_NULL FLAGS(0);
}
";
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_target/src/target_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const WASM_ALLOWED_FEATURES: &[(&str, Stability)] = &[
// tidy-alphabetical-end
];

const BPF_ALLOWED_FEATURES: &[(&str, Stability)] = &[("alu32", Unstable(sym::bpf_target_feature))];
const BPF_ALLOWED_FEATURES: &[(&str, Stability)] = &[("alu32", Stable)];

const SBF_ALLOWED_FEATURES: &[(&str, Stability)] =
&[("alu32", Unstable(sym::sbf_target_feature)), ("static-syscalls", Stable)];
Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/host-x86_64/sbpfv3-solana-solana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

RUN PATH="${HOME}/.cargo/bin:${PATH}" \
cargo install --git https://github.com/anza-xyz/cargo-run-solana-tests.git \
--rev c5df324a62a5e03d2ff5f9efbdbf5a4e4182325e \
--rev db104fd1ce22986a0935f10f07e7e1f889db7e80 \
--bin cargo-run-solana-tests --root /usr/local

COPY scripts/sccache.sh /scripts/
Expand Down
4 changes: 2 additions & 2 deletions src/ci/docker/scripts/sccache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ set -ex

case "$(uname -m)" in
x86_64)
url="https://cached-ci-artifacts.s3.us-east-2.amazonaws.com/sccache-5d2a373-x86_64-unknown-linux-musl"
url="https://ci-mirrors.rust-lang.org/rustc/2021-08-24-sccache-v0.2.15-x86_64-unknown-linux-musl"
;;
aarch64)
url="https://ci-mirrors.rust-lang.org/rustc/2021-08-25-sccache-v0.2.15-aarch64-unknown-linux-musl"
url="https://ci-mirrors.rust-lang.org/rustc/2025-02-24-sccache-v0.10.0-aarch64-unknown-linux-musl"
;;
*)
echo "unsupported architecture: $(uname -m)"
Expand Down
3 changes: 0 additions & 3 deletions src/ci/github-actions/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,6 @@ jobs:
<<: *job-linux-16c
tidy: false

- name: x86_64-gnu-tools
<<: *job-linux-16c

push:
<<: *base-ci-job
name: push
Expand Down
2 changes: 1 addition & 1 deletion src/llvm-project
Submodule llvm-project updated 88 files
+83 −0 .github/workflows/anza-main.yml
+0 −40 .github/workflows/clang-tests.yml
+0 −40 .github/workflows/lld-tests.yml
+0 −39 .github/workflows/lldb-tests.yml
+0 −63 .github/workflows/llvm-bugs.yml
+0 −136 .github/workflows/llvm-project-tests.yml
+0 −211 .github/workflows/llvm-tests.yml
+2 −0 lld/ELF/Arch/SBF.cpp
+2 −0 lld/ELF/InputFiles.cpp
+1 −1 lld/ELF/InputSection.cpp
+2 −38 lld/ELF/SyntheticSections.cpp
+0 −1 lld/ELF/SyntheticSections.h
+1 −2 lld/ELF/Target.cpp
+1 −27 lld/ELF/Writer.cpp
+ lld/test/ELF/Inputs/sbf-dynsyms-dup.o
+ lld/test/ELF/Inputs/sbf-dynsyms-local.o
+ lld/test/ELF/Inputs/sbf-dynsyms-noexport.o
+34 −0 lld/test/ELF/sbf-abs64-addend.s
+0 −32 lld/test/ELF/sbf-dynsyms-dup.s
+0 −44 lld/test/ELF/sbf-dynsyms-local.s
+0 −38 lld/test/ELF/sbf-dynsyms-noexport.s
+1 −0 lld/test/lit.cfg.py
+8 −2 lldb/include/lldb/Utility/ArchSpec.h
+1 −1 lldb/source/Core/Opcode.cpp
+14 −3 lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+8 −5 lldb/source/Utility/ArchSpec.cpp
+1 −0 llvm/include/llvm/BinaryFormat/ELF.h
+2 −0 llvm/include/llvm/TargetParser/Triple.h
+1 −0 llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+1 −1 llvm/lib/Object/ELF.cpp
+1 −1 llvm/lib/ObjectYAML/ELFYAML.cpp
+4 −2 llvm/lib/Target/SBF/Disassembler/SBFDisassembler.cpp
+1 −1 llvm/lib/Target/SBF/MCTargetDesc/SBFELFObjectWriter.cpp
+2 −0 llvm/lib/Target/SBF/MCTargetDesc/SBFMCTargetDesc.cpp
+2 −1 llvm/lib/Target/SBF/SBF.h
+17 −27 llvm/lib/Target/SBF/SBFFrameLowering.cpp
+6 −7 llvm/lib/Target/SBF/SBFFrameLowering.h
+28 −15 llvm/lib/Target/SBF/SBFISelLowering.cpp
+0 −3 llvm/lib/Target/SBF/SBFISelLowering.h
+22 −35 llvm/lib/Target/SBF/SBFInstrInfo.td
+8 −47 llvm/lib/Target/SBF/SBFMIPeephole.cpp
+61 −38 llvm/lib/Target/SBF/SBFRegisterInfo.cpp
+3 −2 llvm/lib/Target/SBF/SBFRegisterInfo.h
+11 −4 llvm/lib/Target/SBF/SBFSubtarget.cpp
+19 −1 llvm/lib/Target/SBF/SBFSubtarget.h
+22 −5 llvm/lib/Target/SBF/SBFTargetFeatures.td
+1 −3 llvm/lib/Target/SBF/SBFTargetMachine.cpp
+6 −0 llvm/lib/Target/SBF/TargetInfo/SBFTargetInfo.cpp
+6 −3 llvm/lib/TargetParser/Triple.cpp
+2 −1 llvm/test/CodeGen/BPF/reloc-2.ll
+1 −0 llvm/test/CodeGen/BPF/reloc-3.ll
+1 −0 llvm/test/CodeGen/BPF/reloc-btf-2.ll
+1 −0 llvm/test/CodeGen/BPF/reloc-btf.ll
+1 −0 llvm/test/CodeGen/BPF/reloc.ll
+1 −0 llvm/test/CodeGen/Mips/ldexp.ll
+5 −5 llvm/test/CodeGen/SBF/32-bit-subreg-alu.ll
+1 −1 llvm/test/CodeGen/SBF/CORE/simplifypatable-nullptr.ll
+6 −8 llvm/test/CodeGen/SBF/call_internal.ll
+3 −0 llvm/test/CodeGen/SBF/callx.ll
+22 −1 llvm/test/CodeGen/SBF/dynamic_stack_frame_add_and_sub.ll
+32 −0 llvm/test/CodeGen/SBF/f64-intrinsics.ll
+63 −16 llvm/test/CodeGen/SBF/many_args_new_conv.ll
+16 −1 llvm/test/CodeGen/SBF/many_args_value_size.ll
+2 −0 llvm/test/CodeGen/SBF/ninline_asm.ll
+3 −3 llvm/test/CodeGen/SBF/objdump_trivial.ll
+1 −1 llvm/test/CodeGen/SBF/reloc-btf.ll
+1 −1 llvm/test/CodeGen/SBF/reloc.ll
+0 −14 llvm/test/CodeGen/SBF/return_instr.ll
+1 −1 llvm/test/CodeGen/SBF/stack_args_v2.ll
+6 −10 llvm/test/CodeGen/SBF/static_syscall.ll
+2 −2 llvm/test/CodeGen/SBF/static_syscall_2.ll
+2 −2 llvm/test/CodeGen/SBF/unreachable_return.ll
+70 −0 llvm/test/CodeGen/SBF/v3_stack_warnings.ll
+9 −7 llvm/test/CodeGen/SBF/warn-stack.ll
+1 −1 llvm/test/MC/BPF/insn-unit.s
+9 −8 llvm/test/MC/Disassembler/SBF/sbf-jmp.txt
+13 −1 llvm/test/MC/SBF/elf-flags.s
+21 −18 llvm/test/MC/SBF/elf-header.s
+8 −1 llvm/test/MC/SBF/sbf-jmp.s
+0 −8 llvm/test/MC/SBF/sbf-return-syscall.s
+4 −4 llvm/test/Object/BPF/yaml2obj-elf-bpf-rel.yaml
+9 −9 llvm/test/tools/llvm-objdump/BPF/core-relo-formatting.s
+1 −0 llvm/test/tools/lto/hide-linkonce-odr.ll
+1 −0 llvm/test/tools/lto/no-bitcode.s
+1 −0 llvm/test/tools/lto/opt-level.ll
+17 −1 llvm/tools/llvm-objdump/llvm-objdump.cpp
+1 −1 llvm/unittests/TargetParser/Host.cpp
+14 −0 llvm/unittests/TargetParser/TripleTest.cpp
Loading