bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/24997] New: ld.gold creates huge binary with same options as l


From: johnson.troy.a at gmail dot com
Subject: [Bug gold/24997] New: ld.gold creates huge binary with same options as ld.bfd
Date: Fri, 13 Sep 2019 20:14:01 +0000

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

            Bug ID: 24997
           Summary: ld.gold creates huge binary with same options as
                    ld.bfd
           Product: binutils
           Version: 2.32
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: johnson.troy.a at gmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

> cat hello.c
#include <stdio.h>

int main()
{
  printf( "hello\n" );
  return 0;
}

> ld.gold --version
GNU gold (GNU Binutils 2.32) 1.16
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

> gcc -fuse-ld=gold hello.c 
> -Wl,-Ttext-segment=0x20000000,-zmax-page-size=0x20000000

> ls -l a.out
-rwxr-xr-x 1 ----- ----- 536878744 Sep 13 15:09 a.out

> gcc hello.c -Wl,-Ttext-segment=0x20000000,-zmax-page-size=0x20000000

> ls -l a.out
-rwxr-xr-x 1 ----- ----- 12376 Sep 13 15:09 a.out

-- 
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]