Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#750 closed defect (fixed)

Missing linker script inside HelenOS

Reported by: Vojtech Horky Owned by: Jiří Zárevúcky
Priority: major Milestone: 0.8.0
Component: ported-software Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:

Description

Userspace linker scripts were removed in 82d9087eea063a but it seems that we have not handled this inside running HelenOS.

In boot/Makefile we still pretend to create /inc/_link.ld but it cats non-existent file and the error is suppressed by next call to sed. So we create an empty file that, for example, PCC tries to read.

I am not sure whether we have to keep our linker scripts (i.e. re-introduce them) for this or simply copy the ones packed with binutils (i.e. make them come together with binutils harbour).

Change History (5)

comment:1 by Jiří Zárevúcky, 6 years ago

make them come together with binutils harbour

That's imo the best short term solution.

comment:2 by Vojtech Horky, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed (86aad6f88a57 and f32a5ca5e) by removing the reference to the linker script from PCC (and adding all the needed libraries there) and letting binutils use the built-in linker script.

comment:3 by Jakub Jermář, 6 years ago

I think gcc suffers with the same or similar issue.

comment:4 by Vojtech Horky, 6 years ago

I think gcc suffers with the same or similar issue.

Should be worked-around (definitely not fixed) by 2bd63b5a97afbb9d8. I have also added gcc hello.c scenario in d6840eae69bc2596f to test it.

in reply to:  4 comment:5 by Jakub Jermář, 6 years ago

Replying to Vojtech Horky:

I think gcc suffers with the same or similar issue.

Should be worked-around (definitely not fixed) by 2bd63b5a97afbb9d8. I have also added gcc hello.c scenario in d6840eae69bc2596f to test it.

Thanks!

Note: See TracTickets for help on using tickets.