This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

i386 and "R_386_16 relocation against SEC_MERGE section"


  Hello,

  Tested Gujin (gcc producing i386 real mode code) with Mandrake
 new version, they use this compiler:
[etienne@localhost gujin]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/specs
gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)

 And the linker:
[etienne@localhost gujin]$ ld --version
GNU ld version 2.11.92.0.12 20011121
Copyright 2001 Free Software Foundation, Inc.

 I get:
ld boot.o user.o debug.o malloc.o library.o disk.o util.o main.o gzlib.o
fs.o vmlinuz.o mouse.o  -nostdlib -Tboot.lnk -Map=boot.map
--undefined=__ERROR --sort-common --cref --warn-section-align
--no-check-sections --gc-sections -o boot.elf
ld: warning: no memory region specified for section
`.ld-2.12.bug_please_ignore_warning'
ld: main.o(.text.menu+0x887): R_386_16 relocation against SEC_MERGE section

 Extract of main.lis:
 1780                   .LC160:
 1781 0638 3A2000               .string ": "

 2436                           .section        .text.menu,"ax",@progbits
 2437                           .align 4
 2439                   menu:
 2440 0000 6655                 pushl   %ebp
    

 3045 0884 7414                 je      .L3195
 3046 0886 A13806               movw    .LC160, %ax
 3047 0889 678903               movw    %ax, (%ebx)

  In short I am really asking for such a "R_386_16 relocation",
 and I think the linker should not stop there.
 I did not check if this "typo" is present in the latest binutils.
 Note that, considering the little endian i386, I do not care
 to have R_386_16 or R_386_32 : the addresses are limited to 64 Kb.

  Thanks for reading,
  Etienne.

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]