So I'm using gcc and want to do do away with the data segment and relocate symbols. Let me explain.
the code is for an architecture that only has ram at 0xff0000
$ ld stuff.o main.o -Tdata 0xff0000 -e 0 --oformat binary -o pants.bin
works fine but it produces a bloody huge output file. The data segment is empty and does not need initialization. So
basically I am wanting to relocate data symbols to start at 0xff0000 an only output the text segment from my linker. Has anyone done this before? any ideas?