Did you make sure to pass -Clink-arg=-Tlinkall.x to rustc? Also the esp32c3-hal crate mentioned in the post you linked has been deprecated in favor of the esp-hal crate. You may want to look at Introduction - The Rust on ESP Book for up to date documentation instead.