about summary refs log tree commit diff
path: root/tests/codegen-llvm/gdb_debug_script_load.rs
AgeCommit message (Collapse)AuthorLines
2025-08-06Revert "Preserve the .debug_gdb_scripts section"bjorn3-3/+1
This reverts commit 868bdde25b030e0b71a29a5dbc04a891036e702e.
2025-08-05Preserve the .debug_gdb_scripts sectionSebastian Poeplau-1/+3
Make sure that compiler and linker don't optimize the section's contents away by adding the global holding the data to "llvm.used". The volatile load in the main shim is retained because "llvm.used", which translates to SHF_GNU_RETAIN on ELF targets, requires a reasonably recent linker; emitting the volatile load ensures compatibility with older linkers, at least when libstd is used. Pretty printers in dylib dependencies are now emitted by the main crate instead of the dylib; apart from matching how rlibs are handled, this approach has the advantage that `omit_gdb_pretty_printer_section` keeps working with dylib dependencies.
2025-07-22Rename `tests/codegen` into `tests/codegen-llvm`Guillaume Gomez-0/+37