ld option --build-id=none
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?
Signature · 4 lines
Best Regards, Manoel Abranches <[email protected]> IBM Linux Technology Center Brazil
Quoted 7 lines · Manoel Rebelo Abranches
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
Quoted 6 lines
and in older versions:
kernel_elf_LDFLAGS= $(COMMON_LDFLAGS) -static-libgcc -lgcc \
-Wl,-N,-S,-Ttext,0x200000,-BstaticShould 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])
Signature · 5 lines
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."
But it is only passed in modules compilation. I need it when creating kernel.elf as well.
Quoted 19 lines · Robert Millan
Quoted 7 lines · Manoel Rebelo Abranches
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=noneQuoted 6 lines
and in older versions:
kernel_elf_LDFLAGS= $(COMMON_LDFLAGS) -static-libgcc -lgcc \
-Wl,-N,-S,-Ttext,0x200000,-BstaticShould 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])
Signature · 4 lines
Best Regards, Manoel Abranches <[email protected]> IBM Linux Technology Center Brazil
Quoted 2 lines · Manoel Rebelo Abranches
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)
Signature · 5 lines
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."
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.
Quoted 8 lines · Robert Millan
Quoted 2 lines · Manoel Rebelo Abranches
But it is only passed in modules compilation. I need it when creating kernel.elf as well.
I assume we want this for every
*_elftarget? 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)
Signature · 4 lines
Best Regards, Manoel Abranches <[email protected]> IBM Linux Technology Center Brazil
Quoted 8 lines · Manoel Rebelo Abranches
Its not necessary when creating the .o object files, only when linking then to create the final kern.elf.
That is done changing the variablekernel_elf_LDFLAGSin conf/powerpc-ieee1275.rmk.but I dont know how to use the
grub_cv_prog_ld_build_id_nonevariable in aclocal.m4 to changekernelelf_LDFLAGSin 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".
Signature · 5 lines
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."