aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/libelf/Makefile
blob: 470595af6f8d8514d0c8ba2609d4d2413ac3f47c (plain)
1
2
3
4
5
6
7
8
9
obj-bin-y := libelf.o

SECTIONS := text data rodata $(foreach n,1 2 4 8,rodata.str1.$(n)) $(foreach r,rel rel.ro,data.$(r) data.$(r).local)

libelf.o: libelf-temp.o Makefile
	$(OBJCOPY) $(foreach s,$(SECTIONS),--rename-section .$(s)=.init.$(s)) $< $@

libelf-temp.o: libelf-tools.o libelf-loader.o libelf-dominfo.o #libelf-relocate.o
	$(LD) $(LDFLAGS) -r -o $@ $^