[PATCH] [lld] [LinkerScript] Implement semantics for simple sections mappings

Shankar Kalpathi Easwaran shankarke at gmail.com
Thu Feb 26 12:53:02 PST 2015


Rui,

There are more complicated examples than that where ruleid's are required, It makes the design scale a lot, than keeping more data structures IMO.

For example :

.data : { *(.data1 *.data2 *.data3) } is very hard to implement with one single map.

Say you have say you have two objects 1.o 2.o, which contains data1, data2, data3 as sections.

1.o { data1->a, data2->b, data3->c } and 2.o { data1->d data2->e data2->f }

The (->) corresponds to the section containing the defined atom.

The Layout would need to be a,b,c,d,e,f instead of a,d,b,e,c,f.

Rule id is less costly than using a map IMO.


http://reviews.llvm.org/D7915

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list