* ld option --build-id=none
@ 2008-11-28 15:21 Manoel Rebelo Abranches
2008-11-28 19:59 ` Robert Millan
0 siblings, 1 reply; 6+ messages in thread
From: Manoel Rebelo Abranches @ 2008-11-28 15:21 UTC (permalink / raw)
To: The development of GRUB 2
In the file conf/powerpc-ieee1275.rmk I need in newer ld versions to
have:
kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
-Wl,-N,-S,-Ttext,0x200000,-Bstatic,--build-id=none
and in older versions:
kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
-Wl,-N,-S,-Ttext,0x200000,-Bstatic
Should I move it from conf/powerpc-ieee1275.rmk to the configure script?
--
Best Regards,
Manoel Abranches <mrabran@linux.vnet.ibm.com>
IBM Linux Technology Center Brazil
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ld option --build-id=none
2008-11-28 15:21 ld option --build-id=none Manoel Rebelo Abranches
@ 2008-11-28 19:59 ` Robert Millan
2008-11-28 20:11 ` Manoel Rebelo Abranches
0 siblings, 1 reply; 6+ messages in thread
From: Robert Millan @ 2008-11-28 19:59 UTC (permalink / raw)
To: The development of GRUB 2
On Fri, Nov 28, 2008 at 01:21:43PM -0200, Manoel Rebelo Abranches wrote:
> In the file conf/powerpc-ieee1275.rmk I need in newer ld versions to
> have:
>
> kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
> -Wl,-N,-S,-Ttext,0x200000,-Bstatic,--build-id=none
>
>
> and in older versions:
>
> kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
> -Wl,-N,-S,-Ttext,0x200000,-Bstatic
>
> Should I move it from conf/powerpc-ieee1275.rmk to the configure script?
I thought it was there already (or something similar):
aclocal.m4:[AC_MSG_CHECKING([whether linker accepts --build-id=none])
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ld option --build-id=none
2008-11-28 19:59 ` Robert Millan
@ 2008-11-28 20:11 ` Manoel Rebelo Abranches
2008-11-28 20:17 ` Robert Millan
0 siblings, 1 reply; 6+ messages in thread
From: Manoel Rebelo Abranches @ 2008-11-28 20:11 UTC (permalink / raw)
To: The development of GRUB 2
But it is only passed in modules compilation. I need it when creating
kernel.elf as well.
On Fri, 2008-11-28 at 20:59 +0100, Robert Millan wrote:
> On Fri, Nov 28, 2008 at 01:21:43PM -0200, Manoel Rebelo Abranches wrote:
> > In the file conf/powerpc-ieee1275.rmk I need in newer ld versions to
> > have:
> >
> > kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
> > -Wl,-N,-S,-Ttext,0x200000,-Bstatic,--build-id=none
> >
> >
> > and in older versions:
> >
> > kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
> > -Wl,-N,-S,-Ttext,0x200000,-Bstatic
> >
> > Should I move it from conf/powerpc-ieee1275.rmk to the configure script?
>
> I thought it was there already (or something similar):
>
> aclocal.m4:[AC_MSG_CHECKING([whether linker accepts --build-id=none])
>
--
Best Regards,
Manoel Abranches <mrabran@linux.vnet.ibm.com>
IBM Linux Technology Center Brazil
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ld option --build-id=none
2008-11-28 20:11 ` Manoel Rebelo Abranches
@ 2008-11-28 20:17 ` Robert Millan
2008-11-28 20:30 ` Manoel Rebelo Abranches
0 siblings, 1 reply; 6+ messages in thread
From: Robert Millan @ 2008-11-28 20:17 UTC (permalink / raw)
To: The development of GRUB 2
On Fri, Nov 28, 2008 at 06:11:12PM -0200, Manoel Rebelo Abranches wrote:
> But it is only passed in modules compilation. I need it when creating
> kernel.elf as well.
I assume we want this for every *_elf target? Then we shouldn't be restricting
it to modules (perhaps this comes from the assumption that only modules use
ELF, which is true on i386-pc)
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ld option --build-id=none
2008-11-28 20:17 ` Robert Millan
@ 2008-11-28 20:30 ` Manoel Rebelo Abranches
2008-11-28 20:41 ` Robert Millan
0 siblings, 1 reply; 6+ messages in thread
From: Manoel Rebelo Abranches @ 2008-11-28 20:30 UTC (permalink / raw)
To: The development of GRUB 2
Its not necessary when creating the .o object files, only when linking
then to create the final kern.elf.
That is done changing the variable kernel_elf_LDFLAGS in
conf/powerpc-ieee1275.rmk.
but I dont know how to use the grub_cv_prog_ld_build_id_none variable in
aclocal.m4 to change kernelelf_LDFLAGS in the conf/powerpc-ieee1275.rm
file.
Thanks in advance for the help.
On Fri, 2008-11-28 at 21:17 +0100, Robert Millan wrote:
> On Fri, Nov 28, 2008 at 06:11:12PM -0200, Manoel Rebelo Abranches wrote:
> > But it is only passed in modules compilation. I need it when creating
> > kernel.elf as well.
>
> I assume we want this for every *_elf target? Then we shouldn't be restricting
> it to modules (perhaps this comes from the assumption that only modules use
> ELF, which is true on i386-pc)
>
--
Best Regards,
Manoel Abranches <mrabran@linux.vnet.ibm.com>
IBM Linux Technology Center Brazil
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: ld option --build-id=none
2008-11-28 20:30 ` Manoel Rebelo Abranches
@ 2008-11-28 20:41 ` Robert Millan
0 siblings, 0 replies; 6+ messages in thread
From: Robert Millan @ 2008-11-28 20:41 UTC (permalink / raw)
To: The development of GRUB 2
On Fri, Nov 28, 2008 at 06:30:22PM -0200, Manoel Rebelo Abranches wrote:
> Its not necessary when creating the .o object files, only when linking
> then to create the final kern.elf.
> That is done changing the variable kernel_elf_LDFLAGS in
> conf/powerpc-ieee1275.rmk.
>
> but I dont know how to use the grub_cv_prog_ld_build_id_none variable in
> aclocal.m4 to change kernelelf_LDFLAGS in the conf/powerpc-ieee1275.rm
> file.
Look in genmk.rb. The "class Image" stanza adds a "-R .note.gnu.build-id"
to objcopy, which gets rid of the build-id for *.img files on i386-pc.
For ELF images, I think you need something similar in "class Program".
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-11-28 20:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28 15:21 ld option --build-id=none Manoel Rebelo Abranches
2008-11-28 19:59 ` Robert Millan
2008-11-28 20:11 ` Manoel Rebelo Abranches
2008-11-28 20:17 ` Robert Millan
2008-11-28 20:30 ` Manoel Rebelo Abranches
2008-11-28 20:41 ` Robert Millan
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.