Skip to content

IRGen/Runtime: Relative-reference the nominal type descriptor and parent type from metadata. #1154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Feb 1, 2016

Save a couple relocations per concrete value type, leaving only the value witness table as an absolute symbol.

@jckarter
Copy link
Contributor Author

jckarter commented Feb 1, 2016

This is awaiting matching work from @egranata in lldb to handle the format change.

@jckarter jckarter self-assigned this Feb 1, 2016
@jckarter
Copy link
Contributor Author

jckarter commented Feb 1, 2016

@swift-ci Please test

@jckarter
Copy link
Contributor Author

jckarter commented Feb 2, 2016

@swift-ci Please test

@jckarter
Copy link
Contributor Author

jckarter commented Feb 2, 2016

In #1157 it was noted that gold doesn't like the PC64 relocations this produces, which might be a problem for Linux.

@egranata
Copy link
Contributor

egranata commented Feb 3, 2016

I'll try to get to it this week

This prevents the linker from trying to emit relative relocations to locally-defined public symbols into dynamic libraries, which gives ld.so heartache.
…ent type from metadata.

Save a couple relocations per concrete value type, leaving only the value witness table as an absolute symbol.
@jckarter jckarter force-pushed the relative-from-metadata branch from abc36a3 to 1306d40 Compare February 8, 2016 18:52
@jckarter
Copy link
Contributor Author

jckarter commented Feb 8, 2016

@egranata Any progress?

@jckarter
Copy link
Contributor Author

jckarter commented Feb 8, 2016

@swift-ci Please test

@egranata
Copy link
Contributor

egranata commented Feb 8, 2016

Not yet, sorry - other work has kept me busy all week - and the stable merge seems to have left us in a rather brittle state, so I am hesitant to push changes until that is taken care of. Do you have a deadline to get this in by?

@jckarter
Copy link
Contributor Author

jckarter commented Feb 8, 2016

No worries, thanks for the update @egranata. There's no deadline—just the occasion frustration of merge hell keeping the branch alive.

@jckarter jckarter closed this Feb 9, 2016
@jckarter jckarter deleted the relative-from-metadata branch February 9, 2016 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants