c++ - How to get address of printf function in arm executable -
i have assingment make loader arm elf relocatible files. have managed parse elf somehow, , managed make simple relocations, have following , have trouble. need call printf function inside elf file trying load, , must same printf function 1 program trying load it. (thats host program, writen in c++ arm arch). how can printf address, , after how can relocate symbol in elf file. (i googled , found out type of relocation uses 24-bit pc relative addressing) can me extract address of printf? thanx in advance! if can understand c++, use source luke. arm-reloc-property.cc arm-reloc-property.h arm-reloc.def elf32-arm.c see: assemblers , loader , david solomon . [some pearls of wisdom, archaic trivia] as understand, printf in same file , need patch address @ run-time. in case, relocation 24-bit pc relative relocation. answer nothing in case. executable , implementation both in same binary, 24-bit pc relative relocated no matter load address is. if relocating sha...