Hi all,

For the sake of completeness, the change did indeed break gem5 on macOS/OSX as 
well:

ld: unknown option: --relocatable
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It would be great if we could get this resolved.

Thanks,

Andreas

From: gem5-users 
<[email protected]<mailto:[email protected]>> on behalf of 
Gabe Black <[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list 
<[email protected]<mailto:[email protected]>>
Date: Wednesday, 3 May 2017 at 00:55
To: gem5 users mailing list <[email protected]<mailto:[email protected]>>
Subject: Re: [gem5-users] Partial linking on system with -pie as default

Hi Matthias, thank you for the fix. Could you please submit it to gerrit as a 
review? You should have permission to do that, and that will start the process 
of getting it checked into the tree.

Gabe

On Tue, May 2, 2017 at 9:00 AM, Matthias Hille 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

adding support for partial linking broke linking on systems where PIE is 
default. The linker will give you the following error:

/usr/bin/ld: -r and -pie may not be used together

In my case changing the gcc parameter from '-Wl,--relocatable' to '-r' solved 
the problem. With that gcc does not pass the -r flag to the linker if PIE is 
enabled.
Diff is attached.

Cheers,
Matthias


_______________________________________________
gem5-users mailing list
[email protected]<mailto:[email protected]>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to