01:06
fabic has joined #rust-embedded
01:56
starblue has quit [Ping timeout: 268 seconds]
01:57
starblue has joined #rust-embedded
02:11
emerent has quit [Ping timeout: 264 seconds]
02:11
emerent has joined #rust-embedded
02:39
Amadiro_ has joined #rust-embedded
02:40
Amadiro has quit [Ping timeout: 276 seconds]
03:23
causal has joined #rust-embedded
04:46
starblue has quit [Ping timeout: 272 seconds]
04:48
starblue has joined #rust-embedded
06:41
explore has quit [Quit: Connection closed for inactivity]
07:34
explore has joined #rust-embedded
09:38
starblue has quit [Ping timeout: 246 seconds]
09:40
starblue has joined #rust-embedded
09:50
starblue has quit [Ping timeout: 272 seconds]
09:52
starblue has joined #rust-embedded
10:51
j`ey has joined #rust-embedded
10:52
<
j`ey >
anyone got an example of getting the runtime address of a linkerscript variable? (aka getting _text_start or something)
11:05
<
j`ey >
yeah.. hm. does that require sheap to have a fixed location by the linkerscript?
11:05
<
j`ey >
for some reason, my code that does a similar thing is just completely compiled away..
11:10
<
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.
11:10
<
j`ey >
annoyingly #[inline(never)] is not being respected either
11:16
<
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..)
11:20
<
j`ey >
and if i hardcode inline asm to get the address, it works
11:43
starblue has quit [Ping timeout: 272 seconds]
11:44
starblue has joined #rust-embedded
11:52
crabbedhaloablut has quit [Ping timeout: 268 seconds]
11:52
<
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.
11:53
crabbedhaloablut has joined #rust-embedded
11:54
<
j`ey >
this should be loadable at any address
12:00
<
j`ey >
ok, it seems that using the rust way produces code that needs to be relocated, so I have to use inline asm
12:00
<
j`ey >
because I need the _text_start for the relocation routine, so that cant need a relocation itself
12:16
dc740 has joined #rust-embedded
12:17
dc740 has quit [Remote host closed the connection]
13:00
gsalazar has quit [Remote host closed the connection]
13:28
radens has quit [Quit: Connection closed for inactivity]
15:01
<
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?
16:26
starblue has quit [Ping timeout: 272 seconds]
17:21
fabic has quit [Ping timeout: 246 seconds]
17:24
dne has quit [Read error: Connection reset by peer]
17:25
dne has joined #rust-embedded
19:05
starblue has joined #rust-embedded
20:01
explore has quit [Quit: Connection closed for inactivity]
21:18
starblue has quit [Ping timeout: 248 seconds]
21:41
starblue has joined #rust-embedded