OS Specific Toolchain: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Prefer binutils-2.25 instructions, update /include and /lib change instructions
→‎gas/configure.tgt: Added a not about emulation effects on '/' character.
Line 65:
 
You should use '<tt>i386</tt>' in this line even if you are targeting x86_64. This is the only file where you should do it. It is basically because the variable 'generic_target' is not your canonical target name, but rather a variable generated further up in the configure.tgt file, and it sets the first part to <tt>i386</tt> for any <tt>i[3-7]86</tt> or <tt>x86_64</tt>.
 
Note: this will use the 'generic' emulation. One side-effect is that gas will interpret slash ('/') as a comment, not as a division operator. This will break any code like "<tt>movl $(ADDRESS/PAGE_SIZE), %eax</tt>". Using "<tt>fmt=elf em=gnu ;;</tt>" or "<tt>fmt=elf em=linux ;;</tt>" will disable slash as a comment character.
 
=== ld/configure.tgt ===