bmwcarit / Emma

Emma Memory and Mapfile Analyser. (Repo marked private after security audit. Contact Marian Kneer for details)
GNU General Public License v3.0
4 stars 0 forks source link

`SECTIONS_TO_EXCLUDE` should be in a configuration file #43

Closed holzkohlengrill closed 3 years ago

holzkohlengrill commented 4 years ago

Feature Description

SECTIONS_TO_EXCLUDE (find it here) contains kind of specific data. It would be better placed in the globalConfig file.

Define a default behaviour (= current behaviour with one exception (see below)) and add a weak warning notifying that this setting is not overwritten and the default SECTIONS_TO_EXCLUDE is currently active.

Exception: remove:

".unused_ram",
".mr_rw_NandFlashDataBuffer"

but keep the variable SECTIONS_TO_EXCLUDE.

DariaPigasova commented 3 years ago

SECTIONS_TO_EXCLUDE - union of DWARF_SECTIONS and a set that can be defined per config ID. If section to exclude is not defined in config ID, a weak warning should appear that sections to exclude are not defined in global config and only DWARF_SECTIONS will be excluded. If the flag "analyse_debug" is set, the weak warning should not appear.