Skip to main content
Filter by
Sorted by
Tagged with
9 votes
2 answers
93 views

Why is the AL field (FP register usage count) necessary in the SysV ABI?

I was going through the System V AMD64 ABI and couldn’t find a clear explanation for why the AL field (which tracks how many floating-point registers are used) is necessary. From my understanding, ...
OODAX's user avatar
  • 149
2 votes
1 answer
235 views

Forcing a C program to take a forged epilogue made with inline-assembly to jump to arbitrary function

This comes from a post about invoking a trivial buffer overflow (to jump to a function present in the source but not called explicitly in any place of the program (2333909/how-can-i-invoke-buffer-...
nostromo's user avatar
  • 405
0 votes
0 answers
29 views

Android App Crashes on Launch for Specific Devices [duplicate]

Android App Crashes on Launch for Specific Devices (Samsung Galaxy A12) - No Crashlytics Logs Problem Description My Android app works perfectly for most users, but some users are experiencing crashes ...
Ahmed Gabr's user avatar
0 votes
1 answer
57 views

How to correctly ABI-decode multicall results (ERC-20 decimals + symbol) in tests?

I’m trying to understand ABI decoding of multicall RPC calls so I can create stubbed tests using WireMock for my Rust EVM application. The multicall function signature is: function aggregate(Call[] ...
Joel Earps's user avatar
1 vote
0 answers
53 views

How to initialize stack pointer in x86 assembler on Linux [duplicate]

Given the example of a simple program for GNU assembler on i386 architecture in Linux: .section .data msg: .ascii "Hi, People!\n" len = . - msg .section .text .global _start _start: # ...
Rodion Gorkovenko's user avatar
1 vote
1 answer
96 views

Is [[__no_unique_address__]] applied to second members in this tail padding optimization check in libc++ redundant?

In the libc++ implementation of std::expected, there is this helper variable template: // This function returns whether the type `_Second` can be stuffed into the tail padding // of the `_First` type ...
TheAliceBaskerville's user avatar
1 vote
2 answers
116 views

C++ polymorphism across boundaries in shared libraries

I am developing a simple logic-gate simulation. For each logic gate type the following class is implemented: class Gate { public: explicit Gate(); virtual ~Gate() = default; virtual void ...
Placeblock's user avatar
14 votes
1 answer
895 views

What is correct mental model for [[no_unique_address]] in C++?

I recently found out about [[no_unique_address]] attribute in C++. According to cppreference.com: Applies to the name being declared in the declaration of a non-static data member that is not a bit-...
TheAliceBaskerville's user avatar
0 votes
1 answer
49 views

Why is the static chain pointer needed for nested functions?

I stumbled upon the static chain pointer while reading about the System V ABI and I found this explanation on its usage in nested functions. I am curious, why do we need the static chain pointer at ...
GuillemVS's user avatar
  • 368
3 votes
2 answers
248 views

electron-builder building issue "can't detect abi"

I was trying to use electron-builder to build my app, and I get an error. It worked a month ago and I didn't change anything in the package.json file, but now it doesn't work. The app does work when I ...
Rick Sanchez's user avatar
0 votes
0 answers
52 views

How to handle dependencies during toolset update in C++ MSVC project?

I have a big solution in MVS 2013, which consists of several projects, which are linked together. There is one main project, which is built as Windows application (.exe). All other projects are built ...
Eugene's user avatar
  • 87
0 votes
2 answers
73 views

How to declare the 'types' argument to `Eth::Abi.decode` to parse the response of a Solidity function that returns a single struct

I am using eth gem to interact with a Smart Contract in EVM. The Smart Contract has a function whose ABI in JSON format is this: { "inputs": [ {"internalType": "...
p.matsinopoulos's user avatar
0 votes
0 answers
20 views

How to Fully Infer Return Type from a Nested Field Transformer Schema

I'm building a strongly-typed schemas to decode and transform eth event logs using Viem-style ABIs. I use a createAbiSchema helper to define a transformation schema for each event, where each field ...
Mert's user avatar
  • 564
0 votes
0 answers
51 views

Finding global variables in ARM disassembly

My question is related to In the ARM ABI, how are global variables accessed? but is somewhat different. I'm trying to debug an issue and for that I went looking in the build outputs of my project. I ...
Yair M's user avatar
  • 482
4 votes
1 answer
133 views

Why are there symbols in my object file with `[abi:de180100]` appended?

I am compiling an application on macOS 15.4 with Xcode 16.1. Upon examining the object files the compiler produces, some of the symbols have [abi:de180100] appended to them. This suffix is not in the ...
fbrereto's user avatar
  • 36.1k

15 30 50 per page
1
2 3 4 5
64