public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/26559] New: Get OUTPUT_FORMAT from objdump -f to support LLD
@ 2020-08-31 23:31 i at maskray dot me
  2020-08-31 23:31 ` [Bug build/26559] " i at maskray dot me
  2021-09-06  4:40 ` i at maskray dot me
  0 siblings, 2 replies; 3+ messages in thread
From: i at maskray dot me @ 2020-08-31 23:31 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 26559
           Summary: Get OUTPUT_FORMAT from objdump -f to support LLD
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: i at maskray dot me
                CC: carlos at redhat dot com
  Target Milestone: ---

OUTPUT_FORMAT is needed as the first line of libc.so (a linker script). The
string comes from either

(a) ld --verbose on /dev/null, get the output (the OUTPUT_FORMAT line and the
continuation lines), feed the output to scripts/output-format.sed
(b) ld --print-output-format

Neither choice makes sense for LLD. It supports multi targets and there is not
a preferred default target. Like gold, it does not have the concept of "an
internal linker script". ld.lld --verbose does not print OUTPUT_FORMAT.

As an alternative, we can get the string from objdump -f

```
% objdump -f /lib/x86_64-linux-gnu/libc.so.6 

/lib/x86_64-linux-gnu/libc.so.6:     file format elf64-x86-64

# LLVM>=11.0.0 (since https://reviews.llvm.org/D76046 )
% llvm-objdump -f /lib/x86_64-linux-gnu/libc.so.6

/lib/x86_64-linux-gnu/libc.so.6:        file format elf64-x86-64

architecture: x86_64
start address: 0x0000000000026e00
```

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

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

* [Bug build/26559] Get OUTPUT_FORMAT from objdump -f to support LLD
  2020-08-31 23:31 [Bug build/26559] New: Get OUTPUT_FORMAT from objdump -f to support LLD i at maskray dot me
@ 2020-08-31 23:31 ` i at maskray dot me
  2021-09-06  4:40 ` i at maskray dot me
  1 sibling, 0 replies; 3+ messages in thread
From: i at maskray dot me @ 2020-08-31 23:31 UTC (permalink / raw)
  To: glibc-bugs

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

Fangrui Song <i at maskray dot me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |26558


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=26558
[Bug 26558] [meta] Build glibc with LLD
-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/26559] Get OUTPUT_FORMAT from objdump -f to support LLD
  2020-08-31 23:31 [Bug build/26559] New: Get OUTPUT_FORMAT from objdump -f to support LLD i at maskray dot me
  2020-08-31 23:31 ` [Bug build/26559] " i at maskray dot me
@ 2021-09-06  4:40 ` i at maskray dot me
  1 sibling, 0 replies; 3+ messages in thread
From: i at maskray dot me @ 2021-09-06  4:40 UTC (permalink / raw)
  To: glibc-bugs

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

Fangrui Song <i at maskray dot me> changed:

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

--- Comment #1 from Fangrui Song <i at maskray dot me> ---
Fixed by
https://sourceware.org/git/?p=glibc.git;a=commit;h=02d393f2483aedc4ce74e6edf8a15f063198041d
("install: Replace scripts/output-format.sed with objdump -f [BZ #26559]") a
while ago.

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

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

end of thread, other threads:[~2021-09-06  4:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-31 23:31 [Bug build/26559] New: Get OUTPUT_FORMAT from objdump -f to support LLD i at maskray dot me
2020-08-31 23:31 ` [Bug build/26559] " i at maskray dot me
2021-09-06  4:40 ` i at maskray dot me

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).