All of lore.kernel.org
 help / color / mirror / Atom feed
* error: relocation 0x2 is not module-local on OS X 10.7 using native compiler
@ 2016-04-19 19:11 Andrei Borzenkov
  2016-04-19 21:53 ` Vladimir 'phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: Andrei Borzenkov @ 2016-04-19 19:11 UTC (permalink / raw)
  To: The development of GNU GRUB

TARGET_OBJ2ELF= sh genmod.sh moddep.lst disk.module
build-grub-module-verifier disk.mod

Input file: disk.mod.tmp.bin, output file: disk.mod.tmp
Converting from Mach-O Little Endian64 to ELF64
Removing leading underscores from symbol names
Changing leading underscores on section names to dot

  0 Debug sections removed
  0 Exception sections removed
 13 Changes in leading underscores on symbol names
  7 Changes in leading characters on section names
  2 Symbol names changed
build-grub-module-verifier: error: relocation 0x2 is not module-local.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error: relocation 0x2 is not module-local on OS X 10.7 using native compiler
  2016-04-19 19:11 error: relocation 0x2 is not module-local on OS X 10.7 using native compiler Andrei Borzenkov
@ 2016-04-19 21:53 ` Vladimir 'phcoder' Serbinenko
  2016-04-20 17:29   ` Andrei Borzenkov
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2016-04-19 21:53 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 900 bytes --]

What is the target platform? What is the result of mcmodel=large check?
Le 20 avr. 2016 07:11, "Andrei Borzenkov" <arvidjaar@gmail.com> a écrit :

> TARGET_OBJ2ELF= sh genmod.sh moddep.lst disk.module
> build-grub-module-verifier disk.mod
>
> Input file: disk.mod.tmp.bin, output file: disk.mod.tmp
> Converting from Mach-O Little Endian64 to ELF64
> Removing leading underscores from symbol names
> Changing leading underscores on section names to dot
>
>   0 Debug sections removed
>   0 Exception sections removed
>  13 Changes in leading underscores on symbol names
>   7 Changes in leading characters on section names
>   2 Symbol names changed
> build-grub-module-verifier: error: relocation 0x2 is not module-local.
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>

[-- Attachment #2: Type: text/html, Size: 1323 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error: relocation 0x2 is not module-local on OS X 10.7 using native compiler
  2016-04-19 21:53 ` Vladimir 'phcoder' Serbinenko
@ 2016-04-20 17:29   ` Andrei Borzenkov
  0 siblings, 0 replies; 3+ messages in thread
From: Andrei Borzenkov @ 2016-04-20 17:29 UTC (permalink / raw)
  To: The development of GNU GRUB

On Wed, Apr 20, 2016 at 1:53 AM, Vladimir 'phcoder' Serbinenko
<phcoder@gmail.com> wrote:
> What is the target platform? What is the result of mcmodel=large check?
>

x86_64-efi and yes, check fails.

conftest.c:1: error: code model 'large' not supported in the 64 bit mode

I do not know if this is specific to Apple; but in this version Xcode
compiler is based on gcc 4.2:

i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2336.11.00)

and the first version where large model is documented as working for
x86 is gcc 4.3. Our INSTALL says minimal requirement is gcc 4.1.

Note that run-time check did not necessary prevent module loading -
only if modules were more than 2GB apart.

So basically we need to either bump gcc version requirement, or relax
verifier check.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-20 17:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-19 19:11 error: relocation 0x2 is not module-local on OS X 10.7 using native compiler Andrei Borzenkov
2016-04-19 21:53 ` Vladimir 'phcoder' Serbinenko
2016-04-20 17:29   ` Andrei Borzenkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.