linux - Create an ELF file where the section after the .text section is very distant from the .text section -
I need to test a program that I am writing against a case of a diseased angle. To do this, I want to compile an assembly file so that the .text section is too far from the section that follows it
12 Text 00000204 0000000000400400 That is, when I run objdump -h
on the compiled file, then I have to do something like this: 0000000000400400 00000400 2 ** 4 content, alom, load , Readonly, Code 13 .Fini 00000016 0000000000500000 000000000000500000000 00000604 2 ** 2 Note that there is a very different difference between the end of a section. And the beginning of the second, I have modified the output of the command, what I want, so if the output does not do anything, then the reason is this.
... and you want to know how forced the linker to create a file like this Go?
You can manually type the link script and the "T file name" option is "ld" (which is the "-v, -t, file name" option of "GCC").
Comments
Post a Comment