That's why you can at times run into spellings like "гъдѣ" in old manuscripts.

Твердый знак ("ер") was used to denote this very reducted ы-like sound (and still does in Bulgarian AFAIK).