bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/25023] New: Different output when linking archive or object file


From: ohngeonocaewoungooth at xff dot cz
Subject: [Bug ld/25023] New: Different output when linking archive or object file directly, while using -T option
Date: Sat, 21 Sep 2019 20:50:54 +0000

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

            Bug ID: 25023
           Summary: Different output when linking archive or object file
                    directly, while using -T option
           Product: binutils
           Version: 2.33 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: ohngeonocaewoungooth at xff dot cz
  Target Milestone: ---

Created attachment 11997
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11997&action=edit
Reproducer code

I have a symbol marked with __attribute__((section(".something"))) and I'd like
to place it into a custom output section.

It works when I link the object file directly into the executable, but LD does
not place anything into my output section, when I place the .o file into an
archive and link with the archive.

I can't find the reason why, and I'm not sure if it's the LD issue, or I'm
missing some option.

My simplified reproducer code is attached.

I've tested on binutils 2.33 branch with gcc 9.2. But I've also tried older gcc
(4.9 something), and the result is the same.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]