bebbo / binutils-gdb

Unofficial mirror of sourceware binutils-gdb repository. Updated daily.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git
GNU General Public License v2.0
3 stars 3 forks source link

-resident: relocation truncated to fit: DREL16 against amplitude1 #3

Closed githubaf closed 5 years ago

githubaf commented 5 years ago

When compiling the project I get an executable with not to many data.

capture

When I now change the optimization from -OS to -O2 for the file render020.o, I get the relocation truncated error. Judging from the data size in picture above I would say that is wrong!?

To reproduce please try https://github.com/githubaf/SAM Change optimization option in line 58 in Makefile.amiga render020.o: src/render2.c $(CC) $(CFLAGS) -m68020 -O2 -c $< -o render020.o

githubaf commented 5 years ago

Solved. Thanks!