ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
fabic has joined #rust-embedded
starblue has quit [Ping timeout: 268 seconds]
starblue has joined #rust-embedded
emerent has quit [Ping timeout: 264 seconds]
emerent has joined #rust-embedded
Amadiro_ has joined #rust-embedded
Amadiro has quit [Ping timeout: 276 seconds]
causal has joined #rust-embedded
starblue has quit [Ping timeout: 272 seconds]
starblue has joined #rust-embedded
explore has quit [Quit: Connection closed for inactivity]
explore has joined #rust-embedded
starblue has quit [Ping timeout: 246 seconds]
starblue has joined #rust-embedded
starblue has quit [Ping timeout: 272 seconds]
starblue has joined #rust-embedded
j`ey has joined #rust-embedded
<j`ey> anyone got an example of getting the runtime address of a linkerscript variable? (aka getting _text_start or something)
<j`ey> yeah.. hm. does that require sheap to have a fixed location by the linkerscript?
<j`ey> for some reason, my code that does a similar thing is just completely compiled away..
<jr-oss_> The location in the linker script should not matter, but I am not an expert. If the symbol or the code is not used (or the compiler thinks so) it can get removed from the binary.
<j`ey> annoyingly #[inline(never)] is not being respected either
<jr-oss_> This commit added _sheap to cortex-m-rt. Maybe it gives you a hint about it is supposed to work: https://github.com/rust-embedded/cortex-m-rt/pull/11/files
<j`ey> weirdly I had it working in another project.. but I cant figure out what the difference is (maybe i have a broken nightly..)
<j`ey> and if i hardcode inline asm to get the address, it works
starblue has quit [Ping timeout: 272 seconds]
starblue has joined #rust-embedded
crabbedhaloablut has quit [Ping timeout: 268 seconds]
<re_irc> <jannic> Perhaps LTO can optimize it away even if it's not a fixed address? At link time it will be known so LTO could use that information.
crabbedhaloablut has joined #rust-embedded
<j`ey> this should be loadable at any address
<j`ey> ok, it seems that using the rust way produces code that needs to be relocated, so I have to use inline asm
<j`ey> because I need the _text_start for the relocation routine, so that cant need a relocation itself
dc740 has joined #rust-embedded
dc740 has quit [Remote host closed the connection]
gsalazar has quit [Remote host closed the connection]
radens has quit [Quit: Connection closed for inactivity]
<re_irc> <Clark Kozak> I have a broken treadmill and it seems to be the board. Anyone know of IRCs / chats for troubleshooting electrical appliances?
starblue has quit [Ping timeout: 272 seconds]
fabic has quit [Ping timeout: 246 seconds]
dne has quit [Read error: Connection reset by peer]
dne has joined #rust-embedded
starblue has joined #rust-embedded
explore has quit [Quit: Connection closed for inactivity]
starblue has quit [Ping timeout: 248 seconds]
starblue has joined #rust-embedded