public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/29840] New: elf_machine_dynamic compile error when compiling glibc with --enable-static-pie option turned on
@ 2022-12-02  3:08 linzhuorong at huawei dot com
  2022-12-02  9:52 ` [Bug dynamic-link/29840] " schwab@linux-m68k.org
  0 siblings, 1 reply; 2+ messages in thread
From: linzhuorong at huawei dot com @ 2022-12-02  3:08 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29840

            Bug ID: 29840
           Summary: elf_machine_dynamic compile error when compiling glibc
                    with --enable-static-pie option turned on
           Product: glibc
           Version: 2.36
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: linzhuorong at huawei dot com
  Target Milestone: ---

The patch that caused the error:
https://sourceware.org/git/?p=glibc.git;a=commit;h=bca0f5cbc9257c13322b99e55235c4f21ba0bd82

Error when compiling glibc with gcc-10.3.0 compiler with --enable-static-pie
enabled

I think Static executables do not have symbol _DYNAMIC

Log:

/home/XXXX/workspace/compiler/gcc/build/arm-linux-glibc/arm_linux_glibc_build_dir/arm-linux-glibc/lib/gcc/arm-linux-gnueabi/10.3.0/../../../../arm-linux-gnueabi/bin/ld:
/home/XXXX/workspace/compiler/gcc/build/arm-linux-glibc/arm_linux_glibc_build_dir/obj/build-glibc/libc.a(dl-reloc-static-pie.o):
in function elf_machine_rel':
/home/XXXX/workspace/compiler/gcc/open_source/arm-linux-glibc-build_src/glibc-2.34/elf/../sysdeps/arm/dl-machine.h:440:
undefined reference to _DYNAMIC'
/home/XXXX/workspace/compiler/gcc/build/arm-linux-glibc/arm_linux_glibc_build_dir/arm-linux-glibc/lib/gcc/arm-linux-gnueabi/10.3.0/../../../../arm-linux-gnueabi/bin/ld:
/home/XXXX/workspace/compiler/gcc/open_source/arm-linux-glibc-build_src/glibc-2.34/elf/../sysdeps/arm/dl-machine.h:440:
undefined reference to _DYNAMIC'
/home/XXXX/workspace/compiler/gcc/build/arm-linux-glibc/arm_linux_glibc_build_dir/arm-linux-glibc/lib/gcc/arm-linux-gnueabi/10.3.0/../../../../arm-linux-gnueabi/bin/ld:
/home/XXXX/workspace/compiler/gcc/build/arm-linux-glibc/arm_linux_glibc_build_dir/obj/build-glibc/elf/sln:
hidden symbol _DYNAMIC' isn't defined
/home/XXXX/workspace/compiler/gcc/build/arm-linux-glibc/arm_linux_glibc_build_dir/arm-linux-glibc/lib/gcc/arm-linux-gnueabi/10.3.0/../../../../arm-linux-gnueabi/bin/ld:
final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: ***
[/home/XXXX/workspace/compiler/gcc/build/arm-linux-glibc/arm_linux_glibc_build_dir/obj/build-glibc/elf/sln]
Error 1
../Rules:293: recipe for target
'/home/XXXX/workspace/compiler/gcc/build/arm-linux-glibc/arm_linux_glibc_build_dir/obj/build-glibc/elf/sln'
failed
make[2]: Leaving directory
'/home/XXXX/workspace/compiler/gcc/open_source/arm-linux-glibc-build_src/glibc-2.34/elf'
make[1]: *** [elf/subdir_install] Error 2
Makefile:478: recipe for target 'elf/subdir_install' failed
make[1]: Leaving directory
'/home/XXXX/workspace/compiler/gcc/open_source/arm-linux-glibc-build_src/glibc-2.34'
Makefile:12: recipe for target 'install' failed
make: *** [install] Error 2
~/workspace/compiler/gcc/build/arm-linux-glibc
~/workspace/compiler/gcc/open_source/arm-linux-glibc-build_src/platform
~/workspace/compiler/gcc/build/arm-linux-glibc
cd ./secure_c/src && make
make[1]: Entering directory
'/home/XXXX/workspace/compiler/gcc/open_source/arm-linux-glibc-build_src/platform/secure_c/src'

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug dynamic-link/29840] elf_machine_dynamic compile error when compiling glibc with --enable-static-pie option turned on
  2022-12-02  3:08 [Bug dynamic-link/29840] New: elf_machine_dynamic compile error when compiling glibc with --enable-static-pie option turned on linzhuorong at huawei dot com
@ 2022-12-02  9:52 ` schwab@linux-m68k.org
  0 siblings, 0 replies; 2+ messages in thread
From: schwab@linux-m68k.org @ 2022-12-02  9:52 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29840

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
dup

*** This bug has been marked as a duplicate of bug 29835 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2022-12-02  9:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-02  3:08 [Bug dynamic-link/29840] New: elf_machine_dynamic compile error when compiling glibc with --enable-static-pie option turned on linzhuorong at huawei dot com
2022-12-02  9:52 ` [Bug dynamic-link/29840] " schwab@linux-m68k.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).