Sorry for the noobish question, but I'm thoroughly confused.
I've been trying to break into ARM ASM using GAS, however, none of my programs have actually assembled properly due to a branching problem, where the assembler has decided to use absolute addressing rather than PC-relative addressing.
I'm programming for the GBA and am using devkitadv. I use a combination of two programs in the program suite named "arm-agb-elf-as" and "arm-agb-elf-objcopy". The "as" creates a *.elf file, which "objcopy" translates into a raw binary file. I also disassemble the *.elf file with another program called "arm-agb-elf-objdump", and can confirm from that that the branch statements are not PC-relative. I've also looked at the raw binary files and the opcodes match the disassembly.
What I want to know is either:
a) What option(s) do I need for "as" and/or "objcopy" to successfully create PC-relative branching in my binary files?
b) Is there an easier way, perhaps with a different program?
Thanks in advance.