This is an archive of the discontinued LLVM Phabricator instance.

handle global strings in merge string sections
ClosedPublic

Authored by shankarke on Feb 19 2013, 12:46 PM.

Details

Reviewers
Bigcheese
Summary

Handles global strings in merge string sections. With this patch, helloworld on x86_64/hexagon.

Diff Detail

Event Timeline

Bigcheese accepted this revision.Feb 19 2013, 1:52 PM

Looks good with the changes.

lib/ReaderWriter/ELF/File.h
417–418

Why are we treating them as defined? So they don't get merged away? This comment should explain why.

lib/ReaderWriter/ELF/TargetHandler.h
71

They are always referred to as relocations in ELF.

test/elf/mergeglobalatoms.objtxt
1

This file should be named .test, not .objtxt.

shankarke added inline comments.Feb 19 2013, 1:55 PM
lib/ReaderWriter/ELF/File.h
417–418

These atoms dont get merged away as well. Also take part in symbol resolution as they are defined atoms.

lib/ReaderWriter/ELF/TargetHandler.h
71

will change it to relocAddend

test/elf/mergeglobalatoms.objtxt
1

ok

Eugene.Zelenko closed this revision.Oct 5 2016, 3:37 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rL175636.